__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package DPCalendar
* @copyright Copyright (C) 2018 Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
\defined('_JEXEC') or die();
use DigitalPeak\Component\DPCalendar\Administrator\HTML\Block\Icon;
use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Factory;
$app = Factory::getApplication();
if (!$app instanceof CMSApplication) {
return '';
}
$icon = basename((string) $displayData['icon']);
$path = JPATH_ROOT . '/templates/' . $app->getTemplate() . '/images/com_dpcalendar/icons/' . $icon . '.svg';
if (!file_exists($path)) {
$path = JPATH_ROOT . '/templates/' . $app->getTemplate() . '/images/icons/' . $icon . '.svg';
}
if (!file_exists($path)) {
$path = JPATH_ROOT . '/media/com_dpcalendar/images/icons/' . $icon . '.svg';
}
if (!file_exists($path)) {
echo '';
return;
}
if (!empty($displayData['raw'])) {
echo @file_get_contents($path);
return;
}
if (array_key_exists($path, Icon::$pathCache) && (!array_key_exists('force', $displayData) || !$displayData['force'])) {
$content = '<svg><use href="#dp-icon-' . $icon . '"/></svg>';
} else {
Icon::$pathCache[$path] = $path;
$content = @file_get_contents($path) ?: '';
if (!empty($displayData['title'])) {
$content = str_replace('><path', '><title>' . $displayData['title'] . '</title><path', $content);
}
$content = str_replace('<svg', '<svg id="dp-icon-' . $icon . '"', $content);
}
?>
<span class="dp-icon dp-icon_<?php echo $icon; ?>"><?php echo $content; ?></span>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| currency.php | File | 1.9 KB | 0664 |
|
| datepicker.php | File | 1.68 KB | 0664 |
|
| filter.php | File | 6.16 KB | 0664 |
|
| flatcalendar.php | File | 784 B | 0664 |
|
| icon.php | File | 1.51 KB | 0664 |
|
| loader.php | File | 266 B | 0664 |
|
| map.php | File | 3.21 KB | 0664 |
|
| timepicker.php | File | 792 B | 0664 |
|
| timezone.php | File | 2.92 KB | 0664 |
|