| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/annonces/templates/yootheme/html/com_content/article/ |
Upload File : |
<?php
namespace YOOtheme;
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\User\User;
HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers');
[$user, $view, $config] = app(User::class, View::class, Config::class);
// Parameter shortcuts
$item = $this->item;
$params = $item->params;
$uncategorized = $item->catid == $config('~theme.page_category');
// Heading
if ($params->get('show_page_heading')) {
echo "<h1>{$this->escape($this->params->get('page_heading'))}</h1>";
}
// Article
$article = [
'layout' => $uncategorized ? '' : 'blog',
'article' => $item,
'params' => $params,
'content' => '',
'single' => true,
];
// Title
$params->set('link_titles', false);
// Content
if ($params->get('access-view')) {
if ($params->get('urls_position') == '0') {
$article['content'] .= $this->loadTemplate('links');
}
$article['content'] .= $item->text;
if ($params->get('urls_position') == '1') {
$article['content'] .= $this->loadTemplate('links');
}
$article['image'] = 'fulltext';
// Optional teaser intro text for guests
} elseif ($params->get('show_noauth') && $user->get('guest')) {
$article['content'] .= $item->introtext;
// Optional link to let them register to see the whole article
$item->readmore = $params->get('show_readmore') && $item->fulltext;
}
// Icons
if ($this->print) {
$article['icons'] = ['print' => HTMLHelper::_('icon.print_screen', $item, $params)];
}
echo $view('~theme/templates/article' . ($uncategorized ? '{-page,}' : '{-blog,}'), $article);