Файловый менеджер - Редактировать - /home/lmsyaran/public_html/joomla4/html.tar
Назад
com_media/imageslist/default_folder.php 0000644 00000001527 14735734751 0014337 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_media * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $input = JFactory::getApplication()->input; ?> <li class="imgOutline thumbnail height-80 width-80 center"> <a href="index.php?option=com_media&view=imagesList&tmpl=component&folder=<?php echo rawurlencode($this->_tmp_folder->path_relative); ?>&asset=<?php echo $input->getCmd('asset');?>&author=<?php echo $input->getCmd('author');?>" target="imageframe"> <div class="imgFolder"> <span class="icon-folder-2"></span> </div> <div class="small"> <?php echo JHtml::_('string.truncate', $this->escape($this->_tmp_folder->name), 10, false); ?> </div> </a> </li> com_media/imageslist/default_image.php 0000644 00000002553 14735734751 0014146 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_media * * @copyright (C) 2017 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\Registry\Registry; $params = new Registry; $dispatcher = JEventDispatcher::getInstance(); $dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params, 0)); ?> <li class="imgOutline thumbnail height-80 width-80 center"> <a class="img-preview" href="javascript:ImageManager.populateFields('<?php echo $this->escape($this->_tmp_img->path_relative); ?>')" title="<?php echo $this->escape($this->_tmp_img->name); ?>" > <div class="imgThumb"> <div class="imgThumbInside"> <?php echo JHtml::_('image', $this->baseURL . '/' . $this->escape($this->_tmp_img->path_relative), JText::sprintf('COM_MEDIA_IMAGE_TITLE', $this->escape($this->_tmp_img->title), JHtml::_('number.bytes', $this->_tmp_img->size)), array('width' => $this->_tmp_img->width_60, 'height' => $this->_tmp_img->height_60)); ?> </div> </div> <div class="imgDetails small"> <?php echo JHtml::_('string.truncate', $this->escape($this->_tmp_img->name), 10, false); ?> </div> </a> </li> <?php $dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params, 0)); layouts/joomla/form/field/contenthistory.php 0000644 00000005253 14735734751 0015405 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * * @var string $link The link for the content history page * @var string $label The label text */ extract($displayData); echo JHtml::_( 'bootstrap.renderModal', 'versionsModal', array( 'url' => $link, 'title' => $label, 'height' => '300px', 'width' => '800px', 'footer' => '<button type="button" class="btn" data-dismiss="modal">' . JText::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>' ) ); ?> <button type="button" onclick="jQuery('#versionsModal').modal('show')" class="btn versions" data-toggle="modal" title="<?php echo $label; ?>"> <span class="icon-archive" aria-hidden="true"></span><?php echo $label; ?> </button> layouts/joomla/form/field/media.php 0000644 00000011324 14735734751 0013364 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var string $asset The asset text * @var string $authorField The label text * @var integer $authorId The author id * @var string $class The class text * @var boolean $disabled True if field is disabled * @var string $folder The folder text * @var string $id The label text * @var string $link The link text * @var string $name The name text * @var string $preview The preview image relative path * @var integer $previewHeight The image preview height * @var integer $previewWidth The image preview width * @var string $onchange The onchange text * @var boolean $readonly True if field is readonly * @var integer $size The size text * @var string $value The value text * @var string $src The path and filename of the image */ extract($displayData); // The button. if ($disabled != true) { JHtml::_('bootstrap.tooltip'); } $attr = ''; // Initialize some field attributes. $attr .= !empty($class) ? ' class="input-small hasTooltip field-media-input ' . $class . '"' : ' class="input-small hasTooltip field-media-input"'; $attr .= !empty($size) ? ' size="' . $size . '"' : ''; // Initialize JavaScript field attributes. $attr .= !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; switch ($preview) { case 'no': // Deprecated parameter value case 'false': case 'none': $showPreview = false; $showAsTooltip = false; break; case 'yes': // Deprecated parameter value case 'true': case 'show': $showPreview = true; $showAsTooltip = false; break; case 'tooltip': default: $showPreview = true; $showAsTooltip = true; break; } // Pre fill the contents of the popover if ($showPreview) { if ($value && file_exists(JPATH_ROOT . '/' . $value)) { $src = JUri::root() . $value; } else { $src = JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY'); } } // The URL for the modal $url = ($readonly ? '' : ($link ?: 'index.php?option=com_media&view=images&tmpl=component&asset=' . $asset . '&author=' . $authorId) . '&fieldid={field-media-id}&ismoo=0&folder=' . $folder); ?> <div class="field-media-wrapper" data-basepath="<?php echo JUri::root(); ?>" data-url="<?php echo $url; ?>" data-modal=".modal" data-modal-width="100%" data-modal-height="400px" data-input=".field-media-input" data-button-select=".button-select" data-button-clear=".button-clear" data-button-save-selected=".button-save-selected" data-preview="<?php echo $showPreview ? 'true' : 'false'; ?>" data-preview-as-tooltip="<?php echo $showAsTooltip ? 'true' : 'false'; ?>" data-preview-container=".field-media-preview" data-preview-width="<?php echo $previewWidth; ?>" data-preview-height="<?php echo $previewHeight; ?>" > <?php // Render the modal echo JHtml::_('bootstrap.renderModal', 'imageModal_'. $id, array( 'title' => JText::_('JLIB_FORM_CHANGE_IMAGE'), 'closeButton' => true, 'footer' => '<button type="button" class="btn" data-dismiss="modal">' . JText::_('JCANCEL') . '</button>' ) ); JHtml::_('script', 'media/mediafield.min.js', array('version' => 'auto', 'relative' => true)); ?> <?php if ($showPreview && $showAsTooltip) : ?> <div class="input-prepend input-append"> <span rel="popover" class="add-on pop-helper field-media-preview" title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-content="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY'); ?>" data-original-title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-trigger="hover"> <span class="icon-eye" aria-hidden="true"></span> </span> <?php else: ?> <div class="input-append"> <?php endif; ?> <input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" readonly="readonly"<?php echo $attr; ?>/> <?php if ($disabled != true) : ?> <button type="button" class="btn button-select"><?php echo JText::_("JLIB_FORM_BUTTON_SELECT"); ?></button> <button type="button" class="btn hasTooltip button-clear" title="<?php echo JText::_("JLIB_FORM_BUTTON_CLEAR"); ?>" aria-label="<?php echo JText::_("JLIB_FORM_BUTTON_CLEAR"); ?>" > <span class="icon-remove" aria-hidden="true"></span> </button> <?php endif; ?> </div> <?php if ($showPreview && !$showAsTooltip) : ?> <div class="field-media-preview" style="width: <?php echo $previewWidth; ?>px; max-height: <?php echo $previewHeight; ?>px;margin-top:10px;"></div> <?php endif; ?> </div> layouts/joomla/form/field/user.php 0000644 00000011100 14735734751 0013253 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * * @var string $userName The user name * @var mixed $groups The filtering groups (null means no filtering) * @var mixed $exclude The users to exclude from the list of users */ // Set the link for the user selection page $link = 'index.php?option=com_users&view=users&layout=modal&tmpl=component&required=' . ($required ? 1 : 0) . '&field={field-user-id}&ismoo=0' . (isset($groups) ? ('&groups=' . base64_encode(json_encode($groups))) : '') . (isset($excluded) ? ('&excluded=' . base64_encode(json_encode($excluded))) : ''); // Invalidate the input value if no user selected if (JText::_('JLIB_FORM_SELECT_USER') === htmlspecialchars($userName, ENT_COMPAT, 'UTF-8')) { $userName = ''; } if (!$readonly) { JHtml::_('script', 'jui/fielduser.min.js', array('version' => 'auto', 'relative' => true)); } ?> <?php // Create a dummy text field with the user name. ?> <div class="field-user-wrapper" data-url="<?php echo $link; ?>" data-modal=".modal" data-modal-width="100%" data-modal-height="400px" data-input=".field-user-input" data-input-name=".field-user-input-name" data-button-select=".button-select" > <div class="input-append"> <input type="text" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($userName, ENT_COMPAT, 'UTF-8'); ?>" placeholder="<?php echo JText::_('JLIB_FORM_SELECT_USER'); ?>" readonly class="field-user-input-name <?php echo $class ? (string) $class : ''?>" <?php echo $size ? ' size="' . (int) $size . '"' : ''; ?> <?php echo $required ? 'required' : ''; ?>/> <?php if (!$readonly) : ?> <button type="button" class="btn btn-primary button-select" title="<?php echo JText::_('JLIB_FORM_CHANGE_USER') ?>" aria-label="<?php echo JText::_('JLIB_FORM_CHANGE_USER') ?>" > <span class="icon-user" aria-hidden="true"></span> </button> <?php echo JHtml::_( 'bootstrap.renderModal', 'userModal_' . $id, array( 'title' => JText::_('JLIB_FORM_CHANGE_USER'), 'closeButton' => true, 'footer' => '<button type="button" class="btn" data-dismiss="modal">' . JText::_('JCANCEL') . '</button>', ) ); ?> <?php endif; ?> </div> <?php // Create the real field, hidden, that stored the user id. ?> <?php if (!$readonly) : ?> <input type="hidden" id="<?php echo $id; ?>_id" name="<?php echo $name; ?>" value="<?php echo (int) $value; ?>" class="field-user-input <?php echo $class ? (string) $class : ''?>" data-onchange="<?php echo $this->escape($onchange); ?>"/> <?php endif; ?> </div> layouts/joomla/system/message.php 0000644 00000002240 14735734751 0013224 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Template.protostar * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $msgList = $displayData['msgList']; $alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success'); ?> <div id="system-message-container"> <?php if (is_array($msgList) && !empty($msgList)) : ?> <div id="system-message"> <?php foreach ($msgList as $type => $msgs) : ?> <div class="alert <?php echo isset($alert[$type]) ? $alert[$type] : 'alert-' . $type; ?>"> <?php // This requires JS so we should add it through JS. Progressive enhancement and stuff. ?> <a class="close" data-dismiss="alert">×</a> <?php if (!empty($msgs)) : ?> <h4 class="alert-heading"><?php echo JText::_($type); ?></h4> <div> <?php foreach ($msgs as $msg) : ?> <div class="alert-message"><?php echo $msg; ?></div> <?php endforeach; ?> </div> <?php endif; ?> </div> <?php endforeach; ?> </div> <?php endif; ?> </div> modules.php 0000644 00000012006 14735734751 0006744 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Template.system * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /* * none (output raw module content) */ function modChrome_none($module, &$params, &$attribs) { echo $module->content; } /* * html5 (chosen html5 tag and font header tags) */ function modChrome_html5($module, &$params, &$attribs) { $moduleTag = htmlspecialchars($params->get('module_tag', 'div'), ENT_QUOTES, 'UTF-8'); $headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8'); $bootstrapSize = (int) $params->get('bootstrap_size', 0); $moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize : ''; // Temporarily store header class in variable $headerClass = $params->get('header_class'); $headerClass = !empty($headerClass) ? ' class="' . htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') . '"' : ''; if (!empty ($module->content)) : ?> <<?php echo $moduleTag; ?> class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8') . $moduleClass; ?>"> <?php if ((bool) $module->showtitle) :?> <<?php echo $headerTag . $headerClass . '>' . $module->title; ?></<?php echo $headerTag; ?>> <?php endif; ?> <?php echo $module->content; ?> </<?php echo $moduleTag; ?>> <?php endif; } /* * Module chrome that wraps the module in a table */ function modChrome_table($module, &$params, &$attribs) { ?> <table cellpadding="0" cellspacing="0" class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); ?>"> <?php if ((bool) $module->showtitle) : ?> <tr> <th> <?php echo $module->title; ?> </th> </tr> <?php endif; ?> <tr> <td> <?php echo $module->content; ?> </td> </tr> </table> <?php } /* * Module chrome that wraps the tabled module output in a <td> tag of another table */ function modChrome_horz($module, &$params, &$attribs) { ?> <table cellspacing="1" cellpadding="0" width="100%"> <tr> <td> <?php modChrome_table($module, $params, $attribs); ?> </td> </tr> </table> <?php } /* * xhtml (divs and font header tags) * With the new advanced parameter it does the same as the html5 chrome */ function modChrome_xhtml($module, &$params, &$attribs) { $moduleTag = htmlspecialchars($params->get('module_tag', 'div'), ENT_QUOTES, 'UTF-8'); $headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8'); $bootstrapSize = (int) $params->get('bootstrap_size', 0); $moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize : ''; // Temporarily store header class in variable $headerClass = $params->get('header_class'); $headerClass = $headerClass ? ' class="' . htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') . '"' : ''; if (!empty ($module->content)) : ?> <<?php echo $moduleTag; ?> class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8') . $moduleClass; ?>"> <?php if ((bool) $module->showtitle) : ?> <<?php echo $headerTag . $headerClass . '>' . $module->title; ?></<?php echo $headerTag; ?>> <?php endif; ?> <?php echo $module->content; ?> </<?php echo $moduleTag; ?>> <?php endif; } /* * Module chrome that allows for rounded corners by wrapping in nested div tags */ function modChrome_rounded($module, &$params, &$attribs) { ?> <div class="module<?php echo htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); ?>"> <div> <div> <div> <?php if ((bool) $module->showtitle) : ?> <h3><?php echo $module->title; ?></h3> <?php endif; ?> <?php echo $module->content; ?> </div> </div> </div> </div> <?php } /* * Module chrome that add preview information to the module */ function modChrome_outline($module, &$params, &$attribs) { static $css = false; if (!$css) { $css = true; $doc = JFactory::getDocument(); $doc->addStyleDeclaration(' .mod-preview { background: rgba(100,100,100,.08); box-shadow: 0 0 0 4px #f4f4f4, 0 0 0 5px rgba(100,100,100,.2); border-radius: 1px; margin: 8px 0; } .mod-preview-info { padding: 4px 6px; margin-bottom: 5px; font-family: Arial, sans-serif; font-size: .75rem; line-height: 1rem; color: white; background-color: #33373f; border-radius: 3px; box-shadow: 0 -10px 20px rgba(0,0,0,.2) inset; } .mod-preview-info span { font-weight: bold; color: #ccc; } .mod-preview-wrapper { margin-bottom: .5rem; } '); } ?> <div class="mod-preview"> <div class="mod-preview-info"> <div class="mod-preview-position"> <?php echo JText::sprintf('JGLOBAL_PREVIEW_POSITION', $module->position); ?> </div> <div class="mod-preview-style"> <?php echo JText::sprintf('JGLOBAL_PREVIEW_STYLE', $module->style); ?> </div> </div> <div class="mod-preview-wrapper"> <?php echo $module->content; ?> </div> </div> <?php } pagination.php 0000644 00000014260 14735734751 0007431 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Templates.protostar * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * This is a file to add template specific chrome to pagination rendering. * * pagination_list_footer * Input variable $list is an array with offsets: * $list[limit] : int * $list[limitstart] : int * $list[total] : int * $list[limitfield] : string * $list[pagescounter] : string * $list[pageslinks] : string * * pagination_list_render * Input variable $list is an array with offsets: * $list[all] * [data] : string * [active] : boolean * $list[start] * [data] : string * [active] : boolean * $list[previous] * [data] : string * [active] : boolean * $list[next] * [data] : string * [active] : boolean * $list[end] * [data] : string * [active] : boolean * $list[pages] * [{PAGE}][data] : string * [{PAGE}][active] : boolean * * pagination_item_active * Input variable $item is an object with fields: * $item->base : integer * $item->link : string * $item->text : string * * pagination_item_inactive * Input variable $item is an object with fields: * $item->base : integer * $item->link : string * $item->text : string * * This gives template designers ultimate control over how pagination is rendered. * * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both */ /** * Renders the pagination footer * * @param array $list Array containing pagination footer * * @return string HTML markup for the full pagination footer * * @since 3.0 */ function pagination_list_footer($list) { $html = "<div class=\"pagination\">\n"; $html .= $list['pageslinks']; $html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"" . $list['limitstart'] . "\" />"; $html .= "\n</div>"; return $html; } /** * Renders the pagination list * * @param array $list Array containing pagination information * * @return string HTML markup for the full pagination object * * @since 3.0 */ function pagination_list_render($list) { // Calculate to display range of pages $currentPage = 1; $range = 1; $step = 5; foreach ($list['pages'] as $k => $page) { if (!$page['active']) { $currentPage = $k; } } if ($currentPage >= $step) { if ($currentPage % $step === 0) { $range = ceil($currentPage / $step) + 1; } else { $range = ceil($currentPage / $step); } } $html = '<nav role="navigation" aria-label="' . JText::_('JLIB_HTML_PAGINATION') . '">'; $html .= '<ul class="pagination-list">'; $html .= $list['start']['data']; $html .= $list['previous']['data']; foreach ($list['pages'] as $k => $page) { if ($k !== $currentPage && $k !== $range * $step - $step && ($k % $step === 0 || $k === $range * $step - ($step + 1)) && in_array($k, range($range * $step - ($step + 1), $range * $step))) { $page['data'] = preg_replace('#(<a.*?>).*?(</a>)#', '$1...$2', $page['data']); } $html .= $page['data']; } $html .= $list['next']['data']; $html .= $list['end']['data']; $html .= '</ul>'; $html .= '</nav>'; return $html; } /** * Renders an active item in the pagination block * * @param JPaginationObject $item The current pagination object * * @return string HTML markup for active item * * @since 3.0 */ function pagination_item_active(&$item) { $class = ''; // Check for "Start" item if ($item->text === JText::_('JLIB_HTML_START')) { $display = '<span class="icon-first" aria-hidden="true"></span>'; $aria = JText::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); } // Check for "Prev" item if ($item->text === JText::_('JPREV')) { $display = '<span class="icon-previous" aria-hidden="true"></span>'; $aria = JText::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); } // Check for "Next" item if ($item->text === JText::_('JNEXT')) { $display = '<span class="icon-next" aria-hidden="true"></span>'; $aria = JText::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); } // Check for "End" item if ($item->text === JText::_('JLIB_HTML_END')) { $display = '<span class="icon-last" aria-hidden="true"></span>'; $aria = JText::sprintf('JLIB_HTML_GOTO_POSITION', strtolower($item->text)); } // If the display object isn't set already, just render the item with its text if (!isset($display)) { $display = $item->text; $aria = JText::sprintf('JLIB_HTML_GOTO_PAGE', $item->text); $class = ' class="hidden-phone"'; } return '<li' . $class . '><a title="' . $item->text . '" href="' . $item->link . '" class="pagenav" aria-label="' . $aria . '">' . $display . '</a></li>'; } /** * Renders an inactive item in the pagination block * * @param JPaginationObject $item The current pagination object * * @return string HTML markup for inactive item * * @since 3.0 */ function pagination_item_inactive(&$item) { // Check for "Start" item if ($item->text === JText::_('JLIB_HTML_START')) { return '<li class="disabled"><a><span class="icon-first" aria-hidden="true"></span></a></li>'; } // Check for "Prev" item if ($item->text === JText::_('JPREV')) { return '<li class="disabled"><a><span class="icon-previous" aria-hidden="true"></span></a></li>'; } // Check for "Next" item if ($item->text === JText::_('JNEXT')) { return '<li class="disabled"><a><span class="icon-next" aria-hidden="true"></span></a></li>'; } // Check for "End" item if ($item->text === JText::_('JLIB_HTML_END')) { return '<li class="disabled"><a><span class="icon-last" aria-hidden="true"></span></a></li>'; } // Check if the item is the active page if (isset($item->active) && $item->active) { $aria = JText::sprintf('JLIB_HTML_PAGE_CURRENT', $item->text); return '<li class="active hidden-phone"><a aria-current="true" aria-label="' . $aria . '">' . $item->text . '</a></li>'; } // Doesn't match any other condition, render a normal item return '<li class="disabled hidden-phone"><a>' . $item->text . '</a></li>'; }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка