update - v1.1.2
This commit is contained in:
parent
5a3fbc472e
commit
251c08b6b8
@ -17,6 +17,7 @@ use Joomla\CMS\Plugin\CMSPlugin;
|
|||||||
|
|
||||||
JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php');
|
JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php');
|
||||||
|
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
|||||||
* Extension - Componentbuilder Export Compiler plugin.
|
* Extension - Componentbuilder Export Compiler plugin.
|
||||||
*
|
*
|
||||||
* @package ComponentbuilderExportCompiler
|
* @package ComponentbuilderExportCompiler
|
||||||
* @since 1.1.0
|
* @since 1.1.2
|
||||||
*/
|
*/
|
||||||
class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin
|
class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin
|
||||||
{
|
{
|
||||||
@ -51,13 +52,6 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin
|
|||||||
*/
|
*/
|
||||||
protected $languageArray = array();
|
protected $languageArray = array();
|
||||||
|
|
||||||
/*
|
|
||||||
* The lang prefix
|
|
||||||
*
|
|
||||||
* @var boolean
|
|
||||||
*/
|
|
||||||
protected $langPrefix;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The Export Text Only switch
|
* The Export Text Only switch
|
||||||
*
|
*
|
||||||
@ -131,7 +125,7 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin
|
|||||||
{
|
{
|
||||||
foreach($this->languageArray as $key => $string)
|
foreach($this->languageArray as $key => $string)
|
||||||
{
|
{
|
||||||
$compiler->setLangContent('adminsys', $key, $string);
|
CFactory::_('Language')->set('adminsys', $key, $string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -149,7 +143,7 @@ class PlgExtensionComponentbuilderExportCompiler extends CMSPlugin
|
|||||||
if ($this->exportTextOnly && $this->componentActive($context) && $timer == 2)
|
if ($this->exportTextOnly && $this->componentActive($context) && $timer == 2)
|
||||||
{
|
{
|
||||||
// main lang prefix
|
// main lang prefix
|
||||||
$lang = $this->langPrefix . '_CONFIG';
|
$lang = CFactory::_('Config')->lang_prefix . '_CONFIG';
|
||||||
// start building field set for config
|
// start building field set for config
|
||||||
$configFieldSets[] = Indent::_(1) . "<fieldset";
|
$configFieldSets[] = Indent::_(1) . "<fieldset";
|
||||||
$configFieldSets[] = Indent::_(2) . 'name="export_text_only_config"';
|
$configFieldSets[] = Indent::_(2) . 'name="export_text_only_config"';
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="plugin" version="4" group="extension" method="upgrade">
|
<extension type="plugin" version="4" group="extension" method="upgrade">
|
||||||
<name>PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER</name>
|
<name>PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER</name>
|
||||||
<creationDate>14th February, 2023</creationDate>
|
<creationDate>15th February, 2023</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>1.1.0</version>
|
<version>1.1.2</version>
|
||||||
<description>PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION</description>
|
<description>PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION</description>
|
||||||
|
|
||||||
<!-- Scripts to run on installation -->
|
<!-- Scripts to run on installation -->
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
||||||
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab."
|
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab."
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Export Compiler (v.1.1.0)</h1> <div style='clear: both;'></div><p>This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Export Compiler (v.1.1.2)</h1> <div style='clear: both;'></div><p>This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
||||||
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 21st August, 2019</small></p>"
|
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 21st August, 2019</small></p>"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER="Extension - Componentbuilder Export Compiler"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_DESCRIPTION="This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
||||||
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab."
|
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab."
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Export Compiler (v.1.1.0)</h1> <div style='clear: both;'></div><p>This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Export Compiler (v.1.1.2)</h1> <div style='clear: both;'></div><p>This plugin is used to tweak the export options for your components during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.
|
||||||
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 21st August, 2019</small></p>"
|
Also be sure to activate the component/s that should be targeted with this added export feature under the Component Activation tab.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 21st August, 2019</small></p>"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_SETTINGS="Settings"
|
||||||
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
|
PLG_EXTENSION_COMPONENTBUILDEREXPORTCOMPILER_ACTIVATE_OPTION_LABEL="Activate Options"
|
||||||
|
Loading…
Reference in New Issue
Block a user