%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/lightco1/www/lightingrepublic.com.au/plugins/editors-xtd/doclink/
Upload File :
Create Path :
Current File : /home/lightco1/www/lightingrepublic.com.au/plugins/editors-xtd/doclink/doclink.php

<?php
/**
 * @package     DOCman
 * @copyright   Copyright (C) 2011 - 2013 Timble CVBA. (http://www.timble.net)
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.joomlatools.com
 */

class plgButtonDoclink extends JPlugin
{
    public function __construct(&$subject, $config)
    {
        parent::__construct($subject, $config);
        $this->loadLanguage();
    }

    public function onDisplay($name)
    {
        if (JFactory::getApplication()->isAdmin() && version_compare(JVERSION, '3.0', '<')) {
            $style = ".button2-left .download {
            background:transparent url(".JURI::root()."/media/com_docman/images/j_button2_doclink.png) no-repeat scroll 100% 0pt;
            }";
            JFactory::getDocument()->addStyleDeclaration($style);
        }

        $button = new JObject();
        $button->set('modal', true);
        $button->set('link', 'index.php?option=com_docman&amp;view=doclink&amp;e_name='.$name.'&amp;tmpl=component');
        $button->set('text', JText::_('PLG_DOCLINK_BUTTON_DOCUMENT'));
        $button->set('name', 'download');
        $button->set('options', "{handler: 'iframe', size: {x: 730, y: 510}}");

        return $button;
    }
}

Zerion Mini Shell 1.0