| Current Path : /home/helpink/www/libraries/astroid/framework/elements/article_full_image/ |
| Current File : /home/helpink/www/libraries/astroid/framework/elements/article_full_image/article_full_image.php |
<?php
/**
* @package Astroid Framework
* @author Astroid Framework Team https://astroidframe.work
* @copyright Copyright (C) 2023 AstroidFrame.work.
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
* DO NOT MODIFY THIS FILE DIRECTLY AS IT WILL BE OVERWRITTEN IN THE NEXT UPDATE
* You can easily override all files under /astroid/ folder.
* Just copy the file to JROOT/media/templates/site/YOUR_ASTROID_TEMPLATE/astroid/elements/module_position/module_position.php folder to create and override
*/
// No direct access.
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;
extract($displayData);
$item = $options['article'];
$article_params = $item->article->params;
$user = Factory::getApplication()->getIdentity();
if ($article_params->get('access-view')) {
echo LayoutHelper::render('joomla.content.full_image', $item->article);
} elseif ($item->article->params->get('show_noauth') && $user->get('guest')) {
echo LayoutHelper::render('joomla.content.intro_image', $item->article);
}