You've already forked joomla_test
first commit
This commit is contained in:
47
administrator/components/com_k2/elements/header.php
Normal file
47
administrator/components/com_k2/elements/header.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?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';
|
||||
}
|
Reference in New Issue
Block a user