Your IP : 216.73.216.240
<?php
/**
* Date : 06.11.2011
* Nom : ElioproAllVideos pour Joomla!1.6 & Joomla1.7
* Copyright : (C) 2011 - 2012 www.eliopro.fr - www.eliopro.com Tous droits r�serv�s.
* license : GNU/GPL
* Version 1.4
*/
// Code de s�ret�
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');
class PlgButtonElioproAllVideosButton extends JPlugin
{ public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
public function onDisplay($name)
{
$css = ".button2-left .elioproallvideosbutton {
background: transparent url(../plugins/editors-xtd/elioproallvideosbutton/icon-button.png) no-repeat 100% 0px;
}";
$js = "
function jelioproallvideos(video,lecteur) {
var tag = '{'+video+''+lecteur+'/'+video+'}';
jInsertEditorText(tag, '".$name."');
SqueezeBox.close();
}";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($js);
$doc->addStyleDeclaration($css);
$link ='index.php?option=com_elioallvideos2&layout=elioallvideos2';
JHtml::_('behavior.modal');
$button = new JObject;
$button->set('modal', true);
$button->set('link', $link);
$button->set('text', 'ElioproAllVideos');
$button->name = 'arrow-down';
$button->set('options', "{handler: 'iframe', size: {x: 400, y: 620}}");
return $button;
}
}