PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
caribe
/
plugins
/
editors-xtd
/
sourcerer
<?php /** * @package Sourcerer * @version 6.1.3 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2016 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; /** * Plugin that places the Button */ class PlgButtonSourcererHelper { public function __construct(&$params) { $this->params = $params; } /** * Display the button * * @return array A two element array of ( imageName, textToInsert ) */ function render($name) { $button = new JObject; if (JFactory::getApplication()->isSite() && !$this->params->enable_frontend) { return $button; } $user = JFactory::getUser(); if ($user->get('guest') || ( !$user->authorise('core.edit', 'com_content') && !$user->authorise('core.create', 'com_content') ) ) { return $button; } require_once JPATH_LIBRARIES . '/regularlabs/helpers/functions.php'; RLFunctions::stylesheet('regularlabs/style.min.css'); $icon = 'reglab icon-sourcerer'; $link = 'index.php?rl_qp=1' . '&folder=plugins.editors-xtd.sourcerer' . '&file=popup.php' . '&name=' . $name; $text_ini = strtoupper(str_replace(' ', '_', $this->params->button_text)); $text = JText::_($text_ini); if ($text == $text_ini) { $text = JText::_($this->params->button_text); } $button->modal = true; $button->class = 'btn'; $button->link = $link; $button->text = trim($text); $button->name = $icon; $button->options = "{handler: 'iframe', size: {x:window.getSize().x-100, y: window.getSize().y-100}}"; return $button; } }
[+]
..
[-] helper.php
[edit]
[+]
language
[-] popup.php
[edit]
[-] script.install.helper.php
[edit]
[-] script.install.php
[edit]
[-] sourcerer.php
[edit]
[-] sourcerer.xml
[edit]
[-] .htaccess.disabled
[edit]