Your IP : 216.73.216.240
<?php
/**
* @version 7.0
* @package AllVideos (plugin)
* @author JoomlaWorks - https://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2025 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__).'/base.php';
class JWElementHeader extends JWElement
{
public function fetchElement($name, $value, &$node, $control_name)
{
$plg_name = "jw_allvideos";
if (version_compare(JVERSION, '2.5.0', 'ge')) {
$pluginLivePath = JUri::root(true).'/plugins/content/'.$plg_name.'/'.$plg_name;
} else {
$pluginLivePath = JUri::root(true).'/plugins/content/'.$plg_name;
}
$document = JFactory::getDocument();
$document->addStyleSheet($pluginLivePath.'/includes/elements/header.css?v=7.0');
$cssClass = '';
if (version_compare(JVERSION, '3.0.0', 'ge')) {
$cssClass = '';
} elseif (version_compare(JVERSION, '2.5.0', 'ge')) {
$cssClass = '25';
} elseif (version_compare(JVERSION, '1.6.0', 'lt')) {
$cssClass = '15';
}
return '<div class="jwHeaderContainer'.$cssClass.'"><div class="jwHeaderContent">'.JText::_($value).'</div><div class="jwHeaderClr"></div></div>';
}
public function fetchTooltip($label, $description, &$node, $control_name, $name)
{
return null;
}
}
class JFormFieldHeader extends JWElementHeader
{
public $type = 'header';
}
class JElementHeader extends JWElementHeader
{
public $_name = 'header';
}