tutto cho che serve attachments
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="plugin" group="attachments" version="2.5" method="upgrade">
|
||||
<name>plg_attachments_for_content</name>
|
||||
<version>3.2.6</version>
|
||||
<creationDate>March 26, 2018</creationDate>
|
||||
<author>Jonathan M. Cameron</author>
|
||||
<authorEmail>jmcameron@jmcameron.net</authorEmail>
|
||||
<authorUrl>http://joomlacode.org/gf/project/attachments/</authorUrl>
|
||||
<copyright>(C) 2009-2018 Jonathan M. Cameron. All rights reserved.</copyright>
|
||||
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
|
||||
<description>ATTACH_ATTACHMENTS_FOR_CONTENT_PLUGIN_DESCRIPTION</description>
|
||||
|
||||
<scriptfile>install.php</scriptfile>
|
||||
|
||||
<files>
|
||||
<filename plugin="attachments_for_content">attachments_for_content.php</filename>
|
||||
<filename>index.html</filename>
|
||||
<folder>language</folder>
|
||||
</files>
|
||||
|
||||
</extension>
|
||||
1
plugins/attachments/attachments_for_content/index.html
Normal file
1
plugins/attachments/attachments_for_content/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
61
plugins/attachments/attachments_for_content/install.php
Normal file
61
plugins/attachments/attachments_for_content/install.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Attachments plugins for content installation script
|
||||
*
|
||||
* @package Attachments
|
||||
* @subpackage Attachments_Plugin_For_Content
|
||||
*
|
||||
* @author Jonathan M. Cameron
|
||||
* @copyright Copyright (C) 2014-2018 Jonathan M. Cameron
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
||||
* @link http://joomlacode.org/gf/project/attachments/frs/
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
/**
|
||||
* The attachments content plugin installation class
|
||||
*
|
||||
* @package Attachments
|
||||
*/
|
||||
class plgAttachmentsAttachments_for_contentInstallerScript
|
||||
{
|
||||
|
||||
/**
|
||||
* Attachments plugin uninstall function
|
||||
*
|
||||
* @param $parent : the installer parent
|
||||
*/
|
||||
public function uninstall($parent)
|
||||
{
|
||||
// List all the Attachments plugins
|
||||
$plugins = Array('plg_content_attachments',
|
||||
'plg_search_attachments',
|
||||
'plg_attachments_plugin_framework',
|
||||
'plg_attachments_for_content',
|
||||
'plg_editors-xtd_add_attachment_btn',
|
||||
'plg_editors-xtd_insert_attachments_token_btn',
|
||||
'plg_system_show_attachments_in_editor',
|
||||
'plg_quickicon_attachments'
|
||||
);
|
||||
|
||||
// To be safe, disable ALL attachments plugins first!
|
||||
foreach ($plugins as $plugin_name)
|
||||
{
|
||||
// Make the query to enable the plugin
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->update('#__extensions')
|
||||
->set("enabled = 0")
|
||||
->where('type=' . $db->quote('plugin') . ' AND name=' . $db->quote($plugin_name));
|
||||
$db->setQuery($query);
|
||||
$db->query();
|
||||
|
||||
// NOTE: Do NOT complain if there was an error
|
||||
// (in case any plugin is already uninstalled and this query fails)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
; en-GB.plg_attachments_for_content.ini
|
||||
; Attachments for Joomla! extension
|
||||
; Copyright (C) 2009-2018 Jonathan M. Cameron, All rights reserved.
|
||||
; License http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8 - No BOM
|
||||
|
||||
; English translation
|
||||
|
||||
ATTACH_ARTICLE="Article"
|
||||
ATTACH_ARTICLES="Articles"
|
||||
ATTACH_ATTACHMENTS_FOR_CONTENT_PLUGIN_DESCRIPTION="The Attachments for Content plugin enables adding attachments to content articles as well as category descriptions."
|
||||
ATTACH_CATEGORY="Category"
|
||||
ATTACH_CATEGORYS="Categories"
|
||||
ATTACH_ERROR_UNRECOGNIZED_PARENT_STATE_S="ERROR: Unrecognized parent state (%s)"
|
||||
@ -0,0 +1,10 @@
|
||||
; en-GB.plg_attachments_for_content.sys.ini
|
||||
; Attachments for Joomla! extension
|
||||
; Copyright (C) 2009-2018 Jonathan M. Cameron, All rights reserved.
|
||||
; License http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8 - No BOM
|
||||
|
||||
; English translation
|
||||
|
||||
ATTACH_ATTACHMENTS_FOR_CONTENT_PLUGIN_DESCRIPTION="The Attachments for Content plugin enables adding attachments to content articles as well as category descriptions."
|
||||
PLG_ATTACHMENTS_FOR_CONTENT="Attachments - For Content"
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,14 @@
|
||||
; it-IT.plg_attachments_for_content.ini
|
||||
; Attachments for Joomla! extension
|
||||
; Copyright (C) 2009-2013 Jonathan M. Cameron, All rights reserved.
|
||||
; License GNU GPL 3: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
; Note : All ini files need to be saved as UTF-8 - No BOM
|
||||
|
||||
; Italian translation by: Piero Mattirolo (2.0, 3.0), Lemminkainen (version 1.3.4)
|
||||
|
||||
ATTACH_ARTICLE="Articolo"
|
||||
ATTACH_ARTICLES="Articoli"
|
||||
ATTACH_ATTACHMENTS_FOR_CONTENT_PLUGIN_DESCRIPTION="Questo plugin permette di aggiungere allegati agli articoli, come pure alle descrizioni di categorie."
|
||||
ATTACH_CATEGORY="Categoria"
|
||||
ATTACH_CATEGORYS="Categorie"
|
||||
ATTACH_ERROR_UNRECOGNIZED_PARENT_STATE_S="ERROR: Stato del genitore non riconosciuto(%s)"
|
||||
@ -0,0 +1,10 @@
|
||||
; it-IT.plg_attachments_for_content.sys.ini
|
||||
; Attachments for Joomla! extension
|
||||
; Copyright (C) 2009-2013 Jonathan M. Cameron, All rights reserved.
|
||||
; License GNU GPL 3: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
; Note : All ini files need to be saved as UTF-8 - No BOM
|
||||
|
||||
; Italian translation by: Piero Mattirolo (2.0, 3.0), Lemminkainen (version 1.3.4)
|
||||
|
||||
ATTACH_ATTACHMENTS_FOR_CONTENT_PLUGIN_DESCRIPTION="Questo plugin permette di aggiungere allegati agli articoli, come pure alle descrizioni di categorie."
|
||||
PLG_ATTACHMENTS_FOR_CONTENT="Allegati - Per contenuti"
|
||||
Reference in New Issue
Block a user