File manager - Edit - /home/ferretapmx/public_html/icon.php.tar
Back
home/ferretapmx/public_html/layouts/joomla/quickicons/icon.php 0000644 00000006325 15231065542 0020756 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; $id = empty($displayData['id']) ? '' : (' id="' . $displayData['id'] . '"'); $target = empty($displayData['target']) ? '' : (' target="' . $displayData['target'] . '"'); $onclick = empty($displayData['onclick']) ? '' : (' onclick="' . $displayData['onclick'] . '"'); if (isset($displayData['ajaxurl'])) { $dataUrl = 'data-url="' . $displayData['ajaxurl'] . '"'; } else { $dataUrl = ''; } // The title for the link (a11y) $title = empty($displayData['title']) ? '' : (' title="' . $this->escape($displayData['title']) . '"'); // The information $text = empty($displayData['text']) ? '' : ('<span class="j-links-link">' . $displayData['text'] . '</span>'); // Make the class string $class = empty($displayData['class']) ? '' : (' class="' . $this->escape($displayData['class']) . '"'); ?> <?php // If it is a button with two links: make it a list if (isset($displayData['linkadd'])) : ?> <li class="quickicon-group"> <ul class="list-unstyled d-flex w-100"> <li class="quickicon"> <?php else : ?> <li class="quickicon quickicon-single"> <?php endif; ?> <a <?php echo $id . $class; ?> href="<?php echo $displayData['link']; ?>"<?php echo $target . $onclick . $title; ?>> <div class="quickicon-info"> <?php if (isset($displayData['image'])) : ?> <div class="quickicon-icon"> <div class="<?php echo $displayData['image']; ?>" aria-hidden="true"></div> </div> <?php endif; ?> <?php if (isset($displayData['ajaxurl'])) : ?> <div class="quickicon-amount" <?php echo $dataUrl ?> aria-hidden="true"> <span class="icon-spinner" aria-hidden="true"></span> </div> <div class="quickicon-sr-desc visually-hidden"></div> <?php endif; ?> </div> <?php // Name indicates the component if (isset($displayData['name'])) : ?> <div class="quickicon-name d-flex align-items-end" <?php echo isset($displayData['ajaxurl']) ? ' aria-hidden="true"' : ''; ?>> <?php echo Text::_($displayData['name']); ?> </div> <?php endif; ?> <?php // Information or action from plugins if (isset($displayData['text'])) : ?> <div class="quickicon-name d-flex align-items-center"> <?php echo $text; ?> </div> <?php endif; ?> </a> </li> <?php // Add the link to the edit-form if (isset($displayData['linkadd'])) : ?> <li class="quickicon-linkadd j-links-link d-flex"> <a class="d-flex" href="<?php echo $displayData['linkadd']; ?>" title="<?php echo Text::_($displayData['name'] . '_ADD'); ?>"> <span class="icon-plus" aria-hidden="true"></span> </a> </li> </ul> </li> <?php endif; ?> home/ferretapmx/public_html/components/com_content/helpers/icon.php 0000644 00000011657 15231077641 0021773 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage com_content * * @copyright (C) 2007 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt * * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace */ use Joomla\CMS\Language\Text; use Joomla\Registry\Registry; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Content Component HTML Helper * * @since 1.5 * * @deprecated 4.3 will be removed in 6.0 * Use the class \Joomla\Component\Content\Administrator\Service\HTML\Icon instead */ abstract class JHtmlIcon { /** * Method to generate a link to the create item page for the given category * * @param object $category The category information * @param Registry $params The item parameters * @param array $attribs Optional attributes for the link * @param boolean $legacy True to use legacy images, false to use icomoon based graphic * * @return string The HTML markup for the create item link * * @deprecated 4.3 will be removed in 6.0 * Use \Joomla\Component\Content\Administrator\Service\HTML\Icon::create instead * Example: * use Joomla\Component\Content\Administrator\Service\HTML\Icon; * Factory::getContainer()->get(Registry::class)->register('icon', new Icon()); * echo HTMLHelper::_('icon.create', ...); */ public static function create($category, $params, $attribs = [], $legacy = false) { return self::getIcon()->create($category, $params, $attribs, $legacy); } /** * Display an edit icon for the article. * * This icon will not display in a popup window, nor if the article is trashed. * Edit access checks must be performed in the calling code. * * @param object $article The article information * @param Registry $params The item parameters * @param array $attribs Optional attributes for the link * @param boolean $legacy True to use legacy images, false to use icomoon based graphic * * @return string The HTML for the article edit icon. * * @since 1.6 * * @deprecated 4.3 will be removed in 6.0 * Use \Joomla\Component\Content\Administrator\Service\HTML\Icon::edit instead * Example: * use Joomla\Component\Content\Administrator\Service\HTML\Icon; * Factory::getContainer()->get(Registry::class)->register('icon', new Icon()); * echo HTMLHelper::_('icon.edit', ...); */ public static function edit($article, $params, $attribs = [], $legacy = false) { return self::getIcon()->edit($article, $params, $attribs, $legacy); } /** * Method to generate a popup link to print an article * * @param object $article The article information * @param Registry $params The item parameters * @param array $attribs Optional attributes for the link * @param boolean $legacy True to use legacy images, false to use icomoon based graphic * * @return string The HTML markup for the popup link * * @deprecated 4.3 will be removed in 6.0 * No longer used, will be removed without replacement */ public static function print_popup($article, $params, $attribs = [], $legacy = false) { throw new \Exception(Text::_('COM_CONTENT_ERROR_PRINT_POPUP')); } /** * Method to generate a link to print an article * * @param object $article Not used * @param Registry $params The item parameters * @param array $attribs Not used * @param boolean $legacy True to use legacy images, false to use icomoon based graphic * * @return string The HTML markup for the popup link * * @deprecated 4.3 will be removed in 6.0 * Use \Joomla\Component\Content\Administrator\Service\HTML\Icon::print_screen instead * Example: * use Joomla\Component\Content\Administrator\Service\HTML\Icon; * Factory::getContainer()->get(Registry::class)->register('icon', new Icon()); * echo HTMLHelper::_('icon.print_screen', ...); */ public static function print_screen($article, $params, $attribs = [], $legacy = false) { return self::getIcon()->print_screen($params, $legacy); } /** * Creates an icon instance. * * @return \Joomla\Component\Content\Administrator\Service\HTML\Icon * * @deprecated 4.3 will be removed in 6.0 without replacement */ private static function getIcon() { return new \Joomla\Component\Content\Administrator\Service\HTML\Icon(Joomla\CMS\Factory::getApplication()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings