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,67 @@
<?php
/**
* @package JEM
* @subpackage JEM Comments Plugin
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\Plugin\CMSPlugin;
include_once(JPATH_SITE . '/components/com_jem/helpers/route.php');
class plgJEMComments extends CMSPlugin
{
/**
* Constructor
*
* @param object $subject The object to observe
* @param array $config An array that holds the plugin configuration
*
*/
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
}
/**
* This method handles the supported comment systems
*
* @access public
*
* @param int $event_id Integer Event identifier
* @param int $event_title String Event title
*
* @return boolean
*
*/
public function onEventEnd($event_id, $event_title = '')
{
//simple, skip if processing not needed
if (!$this->params->get('commentsystem', '0')) {
return '';
}
$res = '';
//jcomments integration
if ($this->params->get('commentsystem') == 2) {
if (file_exists(JPATH_SITE . '/components/com_jcomments/jcomments.php')) {
require_once(JPATH_SITE . '/components/com_jcomments/jcomments.php');
$res .= '<div class="jcomments">';
$res .= JComments::show($event_id, 'com_jem', $event_title);
$res .= '</div>';
}
}
return $res;
}
}
?>

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="jem" method="upgrade">
<name>plg_jem_comments</name>
<creationDate>October 2024</creationDate>
<author>JEM Community</author>
<authorEmail>info@joomlaeventmanager.net</authorEmail>
<authorUrl>https://www.joomlaeventmanager.net</authorUrl>
<copyright>copyright (C) 2013-2024 joomlaeventmanager.net</copyright>
<license>https://www.gnu.org/licenses/gpl-3.0 GNU/GPL</license>
<version>4.3.1</version>
<description>PLG_JEM_COMMENTS_XML_DESCRIPTION</description>
<files>
<filename plugin="comments">comments.php</filename>
<filename>index.html</filename>
<folder>language</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/plg_jem_comments.ini</language>
<language tag="en-GB">language/en-GB/plg_jem_comments.sys.ini</language>
</languages>
<config>
<fields name="params">
<fieldset name="basic">
<field type="list" name="commentsystem"
label="PLG_JEM_COMMENTS_COMMENTSYSTEM"
default="0"
description="PLG_JEM_COMMENTS_COMMENTSYSTEM_DESC"
>
<option value="0">PLG_JEM_COMMENTS_NONE</option>
<option value="2">PLG_JEM_COMMENTS_JCOMMENTS</option>
</field>
</fieldset>
</fields>
</config>
</extension>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,16 @@
; @package JEM
; @subpackage JEM Comments Plugin
; @copyright (C) 2013-2024 joomlaeventmanager.net
; @copyright (C) 2005-2009 Christoph Lukes
; @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
;
; All translations can be found at https://app.transifex.com/jemproject/
; Please join the translation team if you want to contribute your changes to the translations
;
; Note: All ini files need to be saved as UTF-8, no BOM
; PLG_JEM_COMMENTS_PLUGIN_DESC="Enable commenting on events with the help of JComments"
PLG_JEM_COMMENTS_COMMENTSYSTEM = "Select used Commentsystem"
PLG_JEM_COMMENTS_COMMENTSYSTEM_DESC = "Select the comment component you have installed."
PLG_JEM_COMMENTS_NONE = "None"
PLG_JEM_COMMENTS_JCOMMENTS = "JComments"

View File

@ -0,0 +1,13 @@
; @package JEM
; @subpackage JEM Comments Plugin
; @copyright (C) 2013-2024 joomlaeventmanager.net
; @copyright (C) 2005-2009 Christoph Lukes
; @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
;
; All translations can be found at https://app.transifex.com/jemproject/
; Please join the translation team if you want to contribute your changes to the translations
;
; Note: All ini files need to be saved as UTF-8, no BOM
PLG_JEM_COMMENTS = "JEM - Comments Plugin"
PLG_JEM_COMMENTS_XML_DESCRIPTION = "JEM Comments Plugin. This plugin is to integrate various Joomla comments systems with JEM"

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,17 @@
; @version 2.0.0
; @package JEM
; @subpackage JEM Comments Plugin
; @copyright (C) 2005-2009 Christoph Lukes
; @copyright (C) 2013-2014 joomlaeventmanager.net
; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;
; All translations can be found at https://www.transifex.com/projects/p/JEM/
; Please join the translation team if you want to contribute your changes to the translations
;
; Note : All ini files need to be saved as UTF-8 - No BOM
PLG_JEM_COMMENTS_PLUGIN_DESC="Abilita i commenti agli eventi sfruttando il componente JComments"
PLG_JEM_COMMENTS_COMMENTSYSTEM="Seleziona il sistema commenti da utilizzare"
PLG_JEM_COMMENTS_COMMENTSYSTEM_DESC="Seleziona il sistema commenti da utilizzare che si ha installato."
PLG_JEM_COMMENTS_NONE="Nessuno"
PLG_JEM_COMMENTS_JCOMMENTS="JComments"

View File

@ -0,0 +1,14 @@
; @version 2.0.0
; @package JEM
; @subpackage JEM Comments Plugin
; @copyright (C) 2005-2009 Christoph Lukes
; @copyright (C) 2013-2014 joomlaeventmanager.net
; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
;
; All translations can be found at https://www.transifex.com/projects/p/JEM/
; Please join the translation team if you want to contribute your changes to the translations
;
; Note : All ini files need to be saved as UTF-8 - No BOM
PLG_JEM_COMMENTS="JEM - Plugin commenti"
PLG_JEM_COMMENTS_XML_DESCRIPTION="JEM Plugin commenti. Questo plugin integra i vari sistemi di commenti di Joomla! con JEM"