Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier components/com_content/tmpl/article/default.php

Espaces de nommage

 Joomla\Site
 

Variables

 $params = $this->item->params
 
 $canEdit = $params->get('access-edit')
 
 $user = Factory::getUser()
 
 $info = $params->get('info_block_position', 0)
 
 $htag = $this->params->get('show_page_heading') ? 'h2' : 'h1'
 
 $assocParam = (Associations::isEnabled() && $params->get('show_associations'))
 
 $currentDate = Factory::getDate()->format('Y-m-d H:i:s')
 
 $isNotPublishedYet = $this->item->publish_up > $currentDate
 
 $isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate
 
 endif
 
if(!empty($this->item->pagination) &&! $this->item->paginationposition && $this->item->paginationrelative) $useDefList
 
 if ( $params->get( 'show_title'))
 
 $active = $menu->getActive()
 
 $itemId = $active->id
 
 $link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false))
 

Documentation des variables

◆ $active

◆ $assocParam

$assocParam = (Associations::isEnabled() && $params->get('show_associations'))

◆ $canEdit

$canEdit = $params->get('access-edit')

◆ $currentDate

$currentDate = Factory::getDate()->format('Y-m-d H:i:s')

◆ $htag

$htag = $this->params->get('show_page_heading') ? 'h2' : 'h1'

◆ $info

◆ $isExpired

$isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate

◆ $isNotPublishedYet

$isNotPublishedYet = $this->item->publish_up > $currentDate

◆ $itemId

◆ $link

$link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false))

◆ $params

$params = $this->item->params

◆ $useDefList

if (!empty( $this->item->pagination) &&! $this->item->paginationposition &&$this->item->paginationrelative) $useDefList
Valeur initiale :
= $params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam
$assocParam
Definition: components/com_content/tmpl/article/default.php:32
$params
Definition: components/com_content/tmpl/article/default.php:25

◆ $user

$user = Factory::getUser()

◆ endif

if (!empty( $this->item->pagination) &&$this->item->paginationposition &&$this->item->paginationrelative) endif

◆ if

if($params->get('show_title'))