Your IP : 216.73.216.84


Current Path : /home/helpink/www/libraries/astroid/framework/elements/article_events/
Upload File :
Current File : /home/helpink/www/libraries/astroid/framework/elements/article_events/article_events.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;

extract($displayData);
$item = $options['article'];
$event = $params->get('article_event', '');

if ($event == 'beforeDisplayContent' && $item->article->params->get('access-view')) {
    echo $item->article->event->beforeDisplayContent;
}

if ($event == 'afterDisplayContent' && $item->article->params->get('access-view')) {
    echo $item->article->event->afterDisplayContent;
}