primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,68 @@
<?php
/**
* @version $Id: eventcalendar.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.plugin.plugin' );
/**
* Editor EventCalendar buton
*
* @package Editors-xtd
* @since 1.5
*/
class plgButtonEventCalendar extends JPlugin
{
/**
* Constructor
*
* @access protected
* @param object $subject The object to observe
* @param array $config An array that holds the plugin configuration
* @since 1.5
*/
public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
/**
* Display the button
*
* @return array A two element array of (imageName, textToInsert)
*/
public function onDisplay($name)
{
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$template = $app->getTemplate();
$link = 'index.php?option=com_cpeventcalendar&task=insert&view=insert&amp;e_name='.$name;
JHTML::_('behavior.modal');
$button = new JObject();
$button->class = 'btn';
$button->set('modal', true);
$button->set('link', $link);
$button->set('text', JText::_('EventCalendar'));
$button->set('name', 'blank');
$button->set('options', "{handler: 'iframe', size: {x: 400, y: 220}}");
return $button;
}
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="1.7" type="plugin" group="editors-xtd">
<name>Button - Event Calendar</name>
<author>Codepeople</author>
<creationDate>Julio 2011</creationDate>
<copyright>Copyright (C) 2011 Codepeople. All rights reserved.</copyright>
<license>GNU/GPL http://www.gnu.org/copyleft/gpl.html</license>
<authorEmail>info@joomlacalendars.com</authorEmail>
<authorUrl>www.joomlacalendars.org</authorUrl>
<version>1.0</version>
<description>Insert Event Calendar placeholders in article contents</description>
<files>
<filename plugin="eventcalendar">eventcalendar.php</filename>
</files>
<params />
</extension>