%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 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 : /var/www/html/old/plugins/editors-xtd/rokbox/ |
Upload File : |
<?php /** * @version $Id: rokbox.php 17060 2013-12-18 02:06:16Z djamil $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2018 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ // no direct access defined('_JEXEC') or die('Restricted access'); jimport('joomla.plugin.plugin'); class plgButtonRokBox extends JPlugin{ public function __construct(&$subject, $config) { parent::__construct($subject, $config); } function onDisplay($name, $asset, $author) { global $app; JHtml::_('behavior.modal'); $doc = JFactory::getDocument(); $link = $app->isAdmin() ? '..' : ''; $link .= '/plugins/editors-xtd/rokbox/views/rokbox-picker.php?'; $link .= 'textarea=' . $name; $link .= '&asset='.$asset; $link .= '&author='.$author; $link .= '&bp=' . urlencode(JURI::root()); $version = new JVersion(); $image_path = JURI::root(true) . '/plugins/editors-xtd/rokbox/assets/images/'; if (version_compare($version->getShortVersion(), '3.0', '>=')){ $style = ".btn .icon-linkrokbox {background: url(".$image_path."rokbox_14x14.png) 100% 0 no-repeat;}"; } else { $style = ".button2-left .linkrokbox {background: url(".$image_path."rokbox-button.png) 100% 0 no-repeat;}"; } $doc->addStyleDeclaration($style); $button = new JObject(); $button->set('modal', true); $button->set('class', 'btn'); $button->set('link', $link); $button->set('text', JText::_('RokBox')); $button->set('name', 'linkrokbox'); $button->set('options', "{handler: 'iframe', size: {x: 520, y: 430}}"); return $button; } /** * @return mixed */ function onAfterRender() { $app = JFactory::getApplication(); if ($app->isAdmin()) return; } }