%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/old/administrator/components/com_jce/classes/ |
Upload File : |
<?php
jimport('joomla.application.component.view');
if (!class_exists('WFViewBase')) {
if (interface_exists('JView')) {
abstract class WFViewBase extends JViewLegacy {
}
} else {
abstract class WFViewBase extends JView {
}
}
}
class WFView extends WFViewBase {
/**
* Array of linked scripts
*
* @var array
*/
protected $scripts = array();
/**
* Array of linked style sheets
*
* @var array
*/
protected $stylesheets = array();
/**
* Array of included style declarations
*
* @var array
*/
protected $styles = array();
/**
* Array of scripts placed in the header
*
* @var array
*/
protected $javascript = array();
public function display($tpl = null) {
$document = JFactory::getDocument();
$tab = $document->_getTab();
$end = $document->_getLineEnd();
$model = new WFModel();
foreach ($this->stylesheets as $style) {
if (strpos($style, '?version=') === false || strpos($style, '?etag=') === false) {
$style .= '?' . md5(basename($style) . $model->getVersion());
}
$document->addCustomTag($tab . '<link rel="stylesheet" href="' . $style . '" type="text/css" />' . $end);
}
foreach ($this->scripts as $script) {
if (strpos($script, '?version=') === false || strpos($script, '?etag=') === false) {
$script .= '?' . md5(basename($script) . $model->getVersion());
}
$document->addCustomTag($tab . '<script src="' . $script . '" type="text/javascript"></script>' . $end);
}
$head = array();
foreach ($this->javascript as $script) {
$head[] = $tab . '<script type="text/javascript">' . $script . '</script>' . $end;
}
foreach ($this->styles as $style) {
$head[] = $tab . '<style type="text/css">' . $style . '></style>' . $end;
}
if (!empty($head)) {
$document->addCustomTag(implode('', $head));
}
parent::display($tpl);
}
public function addScript($url) {
$this->scripts[] = $url;
}
public function addStyleSheet($url) {
$this->stylesheets[] = $url;
}
public function addScriptDeclaration($text) {
$this->javascript[] = $text;
}
public function addStyleDeclaration($text) {
$this->styles[] = $text;
}
}
?>