| Current Path : /home/megadansyp/www/plugins/system/articlesanywhere/src/Components/K2/Output/Data/ |
| Current File : /home/megadansyp/www/plugins/system/articlesanywhere/src/Components/K2/Output/Data/Layout.php |
<?php
/**
* @package Articles Anywhere
* @version 12.4.1
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://regularlabs.com
* @copyright Copyright © 2022 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
namespace RegularLabs\Plugin\System\ArticlesAnywhere\Components\K2\Output\Data;
defined('_JEXEC') or die;
use RegularLabs\Plugin\System\ArticlesAnywhere\Factory;
use RegularLabs\Plugin\System\ArticlesAnywhere\Output\Data\Data;
class Layout extends Data
{
public function get($key, $attributes)
{
// K2 layouts are too complicated and spaghetti-code. So just output a simple title and text
$text = Factory::getOutput('Text', $this->config, $this->item);
return
'<h2 class="itemTitle">'
. $this->item->get('title')
. '</h2>'
. '<div class="itemBody">'
. $text->get('text', $attributes)
. '</div>';
}
}