Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/Html.php.tar
Назад
home/wuectly/www/libraries/fof30/Utils/FEFHelper/Html.php 0000604 00000005145 15245557256 0017203 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Utils\FEFHelper; defined('_JEXEC') || die; use FOF30\View\DataView\DataViewInterface; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Pagination\Pagination; /** * Interim FEF helper which was used in FOF 3.2. This is deprecated. Please use the FEFHelper.browse JHtml helper * instead. The implementation of this class should be a good hint on how you can do that. * * @deprecated 4.0 */ abstract class Html { /** * Helper function to create Javascript code required for table ordering * * @param string $order Current order * * @return string Javascript to add to the page */ public static function jsOrderingBackend($order) { return HTMLHelper::_('FEFHelper.browse.orderjs', $order, true); } /** * Creates the required HTML code for backend pagination and sorting * * @param Pagination $pagination Pagination object * @param array $sortFields Fields allowed to be sorted * @param string $order Ordering field * @param string $order_Dir Ordering direction (ASC, DESC) * * @return string */ public static function selectOrderingBackend($pagination, $sortFields, $order, $order_Dir) { if (is_null($sortFields)) { $sortFields = []; } if (is_string($sortFields)) { $sortFields = [$sortFields]; } if (!is_array($sortFields)) { $sortFields = []; } return '<div class="akeeba-filter-bar akeeba-filter-bar--right">' . HTMLHelper::_('FEFHelper.browse.orderheader', null, $sortFields, $pagination, $order, $order_Dir) . '</div>'; } /** * Returns the drag'n'drop reordering field for Browse views * * @param DataViewInterface $view The DataView you're rendering against * @param string $orderingField The name of the field you're ordering by * @param string $order The order value of the current row * @param string $class CSS class for the ordering value INPUT field * @param string $icon CSS class for the d'n'd handle icon * @param string $inactiveIcon CSS class for the d'n'd disabled icon * * @return string */ public static function dragDropReordering(DataViewInterface $view, $orderingField, $order, $class = 'input-sm', $icon = 'akion-drag', $inactiveIcon = 'akion-android-more-vertical') { return HTMLHelper::_('FEFHelper.browse.order', $orderingField, $order, $class, $icon, $inactiveIcon, $view); } } home/wuectly/www/libraries/fof30/View/DataView/Html.php 0000604 00000007462 15245561530 0016753 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\View\DataView; defined('_JEXEC') || die; use Exception; use FOF30\Render\RenderInterface; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; class Html extends Raw implements DataViewInterface { /** @var bool Should I set the page title in the front-end of the site? */ public $setFrontendPageTitle = false; /** @var string The translation key for the default page title */ public $defaultPageTitle = null; public function setPageTitle() { if (!$this->container->platform->isFrontend()) { return ''; } /** @var SiteApplication $app */ $app = Factory::getApplication(); $document = Factory::getDocument(); $menus = $app->getMenu(); $menu = $menus->getActive(); $title = null; // Get the option and view name $option = $this->container->componentName; $view = $this->getName(); // Get the default page title translation key $default = empty($this->defaultPageTitle) ? $option . '_TITLE_' . $view : $this->defaultPageTitle; $params = $app->getParams($option); // Set the default value for page_heading if ($menu) { $params->def('page_heading', $params->get('page_title', $menu->title)); } else { $params->def('page_heading', Text::_($default)); } // Set the document title $title = $params->get('page_title', ''); $sitename = $app->get('sitename'); if ($title == $sitename) { $title = Text::_($default); } if (empty($title)) { $title = $sitename; } elseif ($app->get('sitename_pagetitles', 0) == 1) { $title = Text::sprintf('JPAGETITLE', $app->get('sitename'), $title); } elseif ($app->get('sitename_pagetitles', 0) == 2) { $title = Text::sprintf('JPAGETITLE', $title, $app->get('sitename')); } $document->setTitle($title); // Set meta if ($params->get('menu-meta_description')) { $document->setDescription($params->get('menu-meta_description')); } if ($params->get('menu-meta_keywords')) { $document->setMetadata('keywords', $params->get('menu-meta_keywords')); } if ($params->get('robots')) { $document->setMetadata('robots', $params->get('robots')); } return $title; } /** * Runs before rendering the view template, echoing HTML to put before the * view template's generated HTML * * @return void * * @throws Exception */ protected function preRender() { $view = $this->getName(); $task = $this->task; // Don't load the toolbar on CLI $platform = $this->container->platform; if (!$platform->isCli()) { $toolbar = $this->container->toolbar; $toolbar->perms = $this->permissions; $toolbar->renderToolbar($view, $task); } if ($platform->isFrontend() && $this->setFrontendPageTitle) { $this->setPageTitle(); } $renderer = $this->container->renderer; $renderer->preRender($view, $task); } /** * Runs after rendering the view template, echoing HTML to put after the * view template's generated HTML * * @return void * * @throws Exception */ protected function postRender() { $view = $this->getName(); $task = $this->task; $renderer = $this->container->renderer; if ($renderer instanceof RenderInterface) { $renderer->postRender($view, $task); } } /** * Executes before rendering the page for the Add task. */ protected function onBeforeAdd() { // Hide main menu Factory::getApplication()->input->set('hidemainmenu', true); parent::onBeforeAdd(); } /** * Executes before rendering the page for the Edit task. */ protected function onBeforeEdit() { // Hide main menu Factory::getApplication()->input->set('hidemainmenu', true); parent::onBeforeEdit(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка