Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/select.tar
Назад
view.html.php 0000604 00000003127 15245625302 0007175 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_modules * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * HTML View class for the Modules component * * @since 1.6 */ class ModulesViewSelect extends JViewLegacy { protected $state; protected $items; /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return void */ public function display($tpl = null) { $state = $this->get('State'); $items = $this->get('Items'); // Check for errors. if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } $this->state = &$state; $this->items = &$items; $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); // Add page title if ($state->get('client_id') == 1) { JToolbarHelper::title(JText::_('COM_MODULES_MANAGER_MODULES_ADMIN'), 'cube module'); } else { JToolbarHelper::title(JText::_('COM_MODULES_MANAGER_MODULES_SITE'), 'cube module'); } // Get the toolbar object instance $bar = JToolbar::getInstance('toolbar'); // Instantiate a new JLayoutFile instance and render the layout $layout = new JLayoutFile('toolbar.cancelselect'); $bar->appendButton('Custom', $layout->render(array()), 'new'); } } tmpl/default.php 0000604 00000002341 15245625302 0007655 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_modules * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('bootstrap.popover'); $document = JFactory::getDocument(); ?> <h2><?php echo JText::_('COM_MODULES_TYPE_CHOOSE'); ?></h2> <ul id="new-modules-list" class="list list-striped"> <?php foreach ($this->items as &$item) : ?> <?php // Prepare variables for the link. ?> <?php $link = 'index.php?option=com_modules&task=module.add&eid=' . $item->extension_id; ?> <?php $name = $this->escape($item->name); ?> <?php $desc = JHtml::_('string.truncate', $this->escape(strip_tags($item->desc)), 200); ?> <?php $short_desc = JHtml::_('string.truncate', $this->escape(strip_tags($item->desc)), 90); ?> <li> <a href="<?php echo JRoute::_($link); ?>"> <strong><?php echo $name; ?></strong></a> <small class="hasPopover" data-placement="right" title="<?php echo $name; ?>" data-content="<?php echo $desc; ?>"><?php echo $short_desc; ?></small> </li> <?php endforeach; ?> </ul> <div class="clr"></div>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка