HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/epubdjye/www17/old/templates/epub1/classes/ArtxContent.php
<?php
defined('_JEXEC') or die;

/**
 * Contains content component rendering helpers and article factory method.
 */
class ArtxContent
{
    /**
     * @access protected
     */
    var $_component;

    /**
     * Component page class suffix.
     *
     * @var string
     * @access public
     */
    var $pageClassSfx;

    /**
     * @var string
     * @access public
     */
    var $pageHeading;

    /**
     * @var string
     * @access public
     */
    var $showPageHeading;

    /**
     * @access public
     */
    function ArtxContent(&$component)
    {
        $this->_component = & $component;

        $this->pageClassSfx = $this->_component->params->get('pageclass_sfx');
        $this->showPageHeading = $this->_component->params->get('show_page_title', 1);
        $this->pageHeading = $this->showPageHeading ? $this->_component->params->get('page_title') : '';
    }

    /**
     * @access public
     */
    function pageHeading($heading = null)
    {
        return artxPost(array('header-text' => null == $heading ? $this->pageHeading : $heading));
    }

    /**
     * @access public
     */
    function article($view)
    {
        switch ($view) {
            case 'article':
                return new ArtxContentArticle($this->_component, $this->_component->params,
                                              $this->_component->article, $this->_component->params);
            case 'section':
                return new ArtxContentSectionItem($this->_component, $this->_component->params,
                                                  $this->_component->item, $this->_component->item->params);
            default:
                return new ArtxContentItem($this->_component, $this->_component->params,
                                           $this->_component->item, $this->_component->item->params);
        }
    }

    /**
     * @access public
     */
    function beginPageContainer($class)
    {
        return '<div class="' . $class . $this->pageClassSfx .'">';
    }

    /**
     * @access public
     */
    function endPageContainer()
    {
        return '</div>';
    }
}