joomla_test/administrator/components/com_k2/elements/header.php

48 lines
1.3 KiB
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @version $Id: header.php 1978 2013-05-15 19:34:16Z joomlaworks $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
defined('_JEXEC') or die ;
require_once (JPATH_ADMINISTRATOR.'/components/com_k2/elements/base.php');
class K2ElementHeader extends K2Element
{
public function fetchElement($name, $value, &$node, $control_name)
{
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root(true).'/media/k2/assets/css/k2.modules.css?v=2.6.7');
if (K2_JVERSION == '15')
{
return '<div class="paramHeaderContainer15"><div class="paramHeaderContent">'.JText::_($value).'</div><div class="k2clr"></div></div>';
}
else
{
return '<div class="paramHeaderContainer"><div class="paramHeaderContent">'.JText::_($value).'</div><div class="k2clr"></div></div>';
}
}
public function fetchTooltip($label, $description, &$node, $control_name, $name)
{
return NULL;
}
}
class JFormFieldHeader extends K2ElementHeader
{
var $type = 'header';
}
class JElementHeader extends K2ElementHeader
{
var $_name = 'header';
}