Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Espaces de nommage | |
Joomla\Site | |
Variables | |
$params = &$this->item->params | |
$canEdit = $this->item->params->get('access-edit') | |
$info = $this->item->params->get('info_block_position', 0) | |
$assocParam = (Associations::isEnabled() && $params->get('show_associations')) | |
$currentDate = Factory::getDate()->format('Y-m-d H:i:s') | |
$isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate | |
$isNotPublishedYet = $this->item->publish_up > $currentDate | |
$isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $isNotPublishedYet || $isExpired | |
else | __pad11__ |
endif | |
$useDefList | |
else | __pad12__ |
$active = $menu->getActive() | |
$itemId = $active->id | |
$link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)) | |
if ( $isUnpublished) | |
$active = $menu->getActive() |
$assocParam = (Associations::isEnabled() && $params->get('show_associations')) |
$canEdit = $this->item->params->get('access-edit') |
$currentDate = Factory::getDate()->format('Y-m-d H:i:s') |
$info = $this->item->params->get('info_block_position', 0) |
$isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate |
$isNotPublishedYet = $this->item->publish_up > $currentDate |
$isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $isNotPublishedYet || $isExpired |
$itemId = $active->id |
$params = &$this->item->params |
$useDefList |
else __pad11__ |
else __pad12__ |
endif |
if($isUnpublished) |