[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Text; 16 17 $params = $displayData['params']; 18 $item = $displayData['item']; 19 $direction = Factory::getLanguage()->isRtl() ? 'left' : 'right'; 20 ?> 21 22 <p class="readmore"> 23 <?php if (!$params->get('access-view')) : ?> 24 <a class="btn btn-secondary" href="<?php echo $displayData['link']; ?>" aria-label="<?php echo Text::_('JGLOBAL_REGISTER_TO_READ_MORE') . ' ' . $this->escape($item->title); ?>"> 25 <?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?> 26 <?php echo Text::_('JGLOBAL_REGISTER_TO_READ_MORE'); ?> 27 </a> 28 <?php elseif ($readmore = $item->alternative_readmore) : ?> 29 <a class="btn btn-secondary" href="<?php echo $displayData['link']; ?>" aria-label="<?php echo $this->escape($readmore . ' ' . $item->title); ?>"> 30 <?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?> 31 <?php echo $readmore; ?> 32 <?php if ($params->get('show_readmore_title', 0) != 0) : ?> 33 <?php echo HTMLHelper::_('string.truncate', $item->title, $params->get('readmore_limit')); ?> 34 <?php endif; ?> 35 </a> 36 <?php elseif ($params->get('show_readmore_title', 0) == 0) : ?> 37 <a class="btn btn-secondary" href="<?php echo $displayData['link']; ?>" aria-label="<?php echo Text::sprintf('JGLOBAL_READ_MORE_TITLE', $this->escape($item->title)); ?>"> 38 <?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?> 39 <?php echo Text::_('JGLOBAL_READ_MORE'); ?> 40 </a> 41 <?php else : ?> 42 <a class="btn btn-secondary" href="<?php echo $displayData['link']; ?>" aria-label="<?php echo Text::sprintf('JGLOBAL_READ_MORE_TITLE', $this->escape($item->title)); ?>"> 43 <?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?> 44 <?php echo Text::sprintf('JGLOBAL_READ_MORE_TITLE', HTMLHelper::_('string.truncate', $item->title, $params->get('readmore_limit'))); ?> 45 </a> 46 <?php endif; ?> 47 </p>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |