[ 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) 2013 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\Language\Text; 15 use Joomla\CMS\Router\Route; 16 use Joomla\Component\Content\Site\Helper\RouteHelper; 17 18 // Create a shortcut for params. 19 $params = $displayData->params; 20 $canEdit = $displayData->params->get('access-edit'); 21 22 $currentDate = Factory::getDate()->format('Y-m-d H:i:s'); 23 $link = RouteHelper::getArticleRoute($displayData->slug, $displayData->catid, $displayData->language); 24 ?> 25 <?php if ($displayData->state == 0 || $params->get('show_title') || ($params->get('show_author') && !empty($displayData->author))) : ?> 26 <div class="page-header"> 27 <?php if ($params->get('show_title')) : ?> 28 <h2 itemprop="name"> 29 <?php if ($params->get('link_titles') && ($params->get('access-view') || $params->get('show_noauth', '0') == '1')) : ?> 30 <a href="<?php echo Route::_($link); ?>" itemprop="url"> 31 <?php echo $this->escape($displayData->title); ?> 32 </a> 33 <?php else : ?> 34 <?php echo $this->escape($displayData->title); ?> 35 <?php endif; ?> 36 </h2> 37 <?php endif; ?> 38 39 <?php if ($displayData->state == 0) : ?> 40 <span class="badge bg-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span> 41 <?php endif; ?> 42 43 <?php if ($displayData->publish_up > $currentDate) : ?> 44 <span class="badge bg-warning"><?php echo Text::_('JNOTPUBLISHEDYET'); ?></span> 45 <?php endif; ?> 46 47 <?php if ($displayData->publish_down !== null && $displayData->publish_down < $currentDate) : ?> 48 <span class="badge bg-warning"><?php echo Text::_('JEXPIRED'); ?></span> 49 <?php endif; ?> 50 </div> 51 <?php endif; ?>
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 |