primo commit
This commit is contained in:
125
plugins/system/conditionalcontent/conditionalcontent.php
Normal file
125
plugins/system/conditionalcontent/conditionalcontent.php
Normal file
@ -0,0 +1,125 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 5.2.2
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory as JFactory;
|
||||
use Joomla\CMS\Language\Text as JText;
|
||||
use RegularLabs\Library\Document as RL_Document;
|
||||
use RegularLabs\Library\Extension as RL_Extension;
|
||||
use RegularLabs\Library\Html as RL_Html;
|
||||
use RegularLabs\Library\SystemPlugin as RL_SystemPlugin;
|
||||
use RegularLabs\Plugin\System\ConditionalContent\Params;
|
||||
use RegularLabs\Plugin\System\ConditionalContent\Protect;
|
||||
use RegularLabs\Plugin\System\ConditionalContent\Replace;
|
||||
|
||||
// Do not instantiate plugin on install pages
|
||||
// to prevent installation/update breaking because of potential breaking changes
|
||||
if (
|
||||
in_array(JFactory::getApplication()->input->getCmd('option'), ['com_installer', 'com_regularlabsmanager'])
|
||||
&& JFactory::getApplication()->input->getCmd('action') != ''
|
||||
)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/regularlabs.xml')
|
||||
|| ! class_exists('RegularLabs\Library\Parameters')
|
||||
|| ! class_exists('RegularLabs\Library\DownloadKey')
|
||||
|| ! class_exists('RegularLabs\Library\SystemPlugin')
|
||||
)
|
||||
{
|
||||
JFactory::getApplication()->getLanguage()->load('plg_system_conditionalcontent', __DIR__);
|
||||
JFactory::getApplication()->enqueueMessage(
|
||||
JText::sprintf('AA_EXTENSION_CAN_NOT_FUNCTION', JText::_('CONDITIONALCONTENT'))
|
||||
. ' ' . JText::_('AA_REGULAR_LABS_LIBRARY_NOT_INSTALLED'),
|
||||
'error'
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! RL_Document::isJoomlaVersion(4, 'CONDITIONALCONTENT'))
|
||||
{
|
||||
RL_Extension::disable('conditionalcontent', 'plugin');
|
||||
|
||||
RL_Document::adminError(
|
||||
JText::sprintf('RL_PLUGIN_HAS_BEEN_DISABLED', JText::_('CONDITIONALCONTENT'))
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (true)
|
||||
{
|
||||
class PlgSystemConditionalContent extends RL_SystemPlugin
|
||||
{
|
||||
public $_lang_prefix = 'COC';
|
||||
public $_can_disable_by_url = false;
|
||||
public $_jversion = 4;
|
||||
public $_enable_in_admin = true;
|
||||
|
||||
public function __construct(&$subject, $config = [])
|
||||
{
|
||||
parent::__construct($subject, $config);
|
||||
|
||||
$params = Params::get();
|
||||
|
||||
$this->_enable_in_admin = $params->enable_admin;
|
||||
}
|
||||
|
||||
public function processArticle(
|
||||
&$string,
|
||||
$area = 'article',
|
||||
$context = '',
|
||||
$article = null,
|
||||
$page = 0
|
||||
)
|
||||
{
|
||||
Replace::replaceTags($string, $area, $context, $article);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $module
|
||||
* @param array $params
|
||||
*/
|
||||
protected function handleOnAfterRenderModule(&$module, &$params): void
|
||||
{
|
||||
if ( ! isset($module->content))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Replace::replaceTags($module->content, 'module');
|
||||
}
|
||||
|
||||
protected function changeDocumentBuffer(&$buffer)
|
||||
{
|
||||
return Replace::replaceTags($buffer, 'component');
|
||||
}
|
||||
|
||||
protected function changeFinalHtmlOutput(&$html)
|
||||
{
|
||||
// only do stuff in body
|
||||
[$pre, $body, $post] = RL_Html::getBody($html);
|
||||
Replace::replaceTags($body, 'body');
|
||||
$html = $pre . $body . $post;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function cleanFinalHtmlOutput(&$html)
|
||||
{
|
||||
Protect::unprotectTags($html);
|
||||
//RL_Protect::removeInlineComments($html, 'ConditionalContent');
|
||||
}
|
||||
}
|
||||
}
|
||||
72
plugins/system/conditionalcontent/conditionalcontent.xml
Normal file
72
plugins/system/conditionalcontent/conditionalcontent.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension version="4" type="plugin" group="system" method="upgrade">
|
||||
<name>PLG_SYSTEM_CONDITIONALCONTENT</name>
|
||||
<description>PLG_SYSTEM_CONDITIONALCONTENT_DESC</description>
|
||||
<version>5.2.2</version>
|
||||
<creationDate>November 2024</creationDate>
|
||||
<author>Regular Labs (Peter van Westen)</author>
|
||||
<authorEmail>info@regularlabs.com</authorEmail>
|
||||
<authorUrl>https://regularlabs.com</authorUrl>
|
||||
<copyright>Copyright © 2024 Regular Labs - All Rights Reserved</copyright>
|
||||
<license>GNU General Public License version 2 or later</license>
|
||||
<namespace path="src">RegularLabs\Plugin\System\ConditionalContent</namespace>
|
||||
<files>
|
||||
<file plugin="conditionalcontent">conditionalcontent.php</file>
|
||||
<folder>language</folder>
|
||||
<folder>src</folder>
|
||||
</files>
|
||||
<media folder="media" destination="conditionalcontent">
|
||||
<folder>js</folder>
|
||||
</media>
|
||||
<config>
|
||||
<fields name="params" addfieldprefix="RegularLabs\Library\Form\Field">
|
||||
<fieldset name="basic">
|
||||
<field name="@load_script_descriptions" type="LoadMedia" filetype="script" file="regularlabs.admin-form-descriptions"/>
|
||||
<field name="@load_language_regularlabs" type="LoadLanguage" extension="plg_system_regularlabs"/>
|
||||
<field name="@jcompatibility" type="JCompatibility" extension="CONDITIONALCONTENT"/>
|
||||
<field name="@license" type="License" extension="CONDITIONALCONTENT"/>
|
||||
<field name="@version" type="Version" extension="CONDITIONALCONTENT"/>
|
||||
<field name="@header" type="Header" label="CONDITIONALCONTENT" description="CONDITIONALCONTENT_DESC" url="https://regularlabs.com/conditionalcontent"/>
|
||||
</fieldset>
|
||||
<fieldset name="RL_SETTINGS_EDITOR_BUTTON">
|
||||
<field name="button_text" type="Text" class="font-monospace rl-w-20em" default="Conditional Content" label="RL_BUTTON_TEXT" description="RL_BUTTON_TEXT_DESC"/>
|
||||
<field name="enable_frontend" type="Radio" class="btn-group rl-btn-group btn-group-md btn-group-yesno" default="1" label="RL_ENABLE_IN_FRONTEND" description="RL_ENABLE_IN_FRONTEND_DESC">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="use_editors" type="Radio" class="btn-group rl-btn-group btn-group-md btn-group-yesno" default="0" label="COC_USE_EDITORS" description="COC_USE_EDITORS_DESC">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="RL_TAG_SYNTAX">
|
||||
<field name="tag_show" type="Text" class="font-monospace rl-w-20em" default="show" label="COC_SHOW_TAG" description="COC_TAG_DESC"/>
|
||||
<field name="tag_hide" type="Text" class="font-monospace rl-w-20em" default="hide" label="COC_HIDE_TAG" description="COC_TAG_DESC"/>
|
||||
<field name="tag_characters" type="List" class="font-monospace w-auto" default="{.}" label="RL_TAG_CHARACTERS" description="RL_TAG_CHARACTERS_DESC">
|
||||
<option value="{.}">{...}</option>
|
||||
<option value="[.]">[...]</option>
|
||||
<option value="«.»">«...»</option>
|
||||
<option value="{{.}}">{{...}}</option>
|
||||
<option value="[[.]]">[[...]]</option>
|
||||
<option value="[:.:]">[:...:]</option>
|
||||
<option value="[%.%]">[%...%]</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
<fieldset name="advanced">
|
||||
<field name="trim" type="Radio" class="btn-group rl-btn-group btn-group-md btn-group-yesno" default="0" label="RL_STRIP_SURROUNDING_TAGS" description="RL_STRIP_SURROUNDING_TAGS_DESC">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="@note__disabled_components" type="OnlyPro" label="RL_DISABLE_ON_COMPONENTS" description="RL_DISABLE_ON_COMPONENTS_DESC"/>
|
||||
<field name="enable_admin" type="Radio" class="btn-group rl-btn-group btn-group-md btn-group-yesno" default="0" label="RL_ENABLE_IN_ADMIN" description="RL_ENABLE_IN_ADMIN_DESC">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
<field name="place_comments" type="Radio" class="btn-group rl-btn-group btn-group-md btn-group-yesno" default="1" label="RL_PLACE_HTML_COMMENTS" description="RL_PLACE_HTML_COMMENTS_DESC">
|
||||
<option value="0">JNO</option>
|
||||
<option value="1">JYES</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</config>
|
||||
</extension>
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] لا يمكن تشغيله."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="مُنتج Regular Labs Library غير مُمكن."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="مُنتج Regular Labs Library غير مُثبت."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="المحتوى"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="الكلمة التي ستستخدم في العلامات.<br><br><strong>ملاحظة:</strong> إذا قمت بتغيير هذه الكلمة, فإن جميع العلامات الموجودة لن تعمل بعد الآن."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] لا يمكن تشغيله."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="مُنتج Regular Labs Library غير مُمكن."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="مُنتج Regular Labs Library غير مُثبت."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Content"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="الكلمة التي ستستخدم في العلامات.<br><br><strong>ملاحظة:</strong> إذا قمت بتغيير هذه الكلمة, فإن جميع العلامات الموجودة لن تعمل بعد الآن."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - ограничете съдържание на база Вашите условия в Джумла!"
|
||||
CONDITIONALCONTENT="условно съдържание"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] не може да функционира."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Добавката Regular Labs Library не е включена."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Добавката Regular Labs Library не е инсталирана."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Content"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
; COC_TAG_DESC="The word to be used in the tags.<br><br><strong>Note:</strong> If you change this, all existing tags will not work anymore."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - ограничете съдържание на база Вашите условия в Джумла!"
|
||||
CONDITIONALCONTENT="условно съдържание"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] no pot funcionar."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="El plugin Regular Labs Library no está activat."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="El plugin Regular Labs Library no està instal·lat."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Contingut"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
COC_CONTENTS="Continguts"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="La paraula a emprar als tags.<br><br><strong>Nota:</strong> Si la canvieu, tots els tags existents deixaràn de funcionar."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] δεν ήταν δυνατόν να λειτουργήσει."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Το πρόσθετο Regular Labs Library δεν είναι ενεργό."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Η βιβλιοθήκη Regular Labs δεν είναι εγκατεστημένη."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Προσαρμοσμένο Περιεχόμενο"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Η λέξη που θα χρησιμοποιείται στις ετικέτες.<br><br><strong>Σημείωση:</strong> Εάν αλλάξετε αυτό, όλες οι υπάρχοντες ετικέτες δεν θα δουλεύουν."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,44 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 5.2.2
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link https://regularlabs.com
|
||||
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
;; @license GNU General Public License version 2 or later
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered" something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered" something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] cannot function."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library plugin is not enabled."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library plugin is not installed."
|
||||
|
||||
COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when the conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_BUTTON_INLINE="Use Inline Rules"
|
||||
COC_CONDITION_TYPE="Use Condition"
|
||||
COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Content"
|
||||
COC_CONTENT_DESC="Enter the content you want to show/hide when the conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
COC_CONTENTS="Contents"
|
||||
COC_HIDE_TAG="Hide Tag"
|
||||
COC_INLINE_RULES="Inline Rules"
|
||||
COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="The word to be used in the tags.<br><br><strong>Note:</strong> If you change this, all existing tags will not work anymore."
|
||||
COC_TAG_TYPE="Show or Hide"
|
||||
COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
COC_USE_EDITORS="Use Editors"
|
||||
COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
CON_CONSIDER_CONDITION_SET="You are using multiple inline Condition Rules. Consider creating a Condition Set instead.<br><br>Condition Sets allow you to group multiple Condition Rules into one and are reusable."
|
||||
CON_MORE_IN_CONDITION_SET="There are more Condition Rules and settings available when you create a Condition Set instead."
|
||||
CON_MORE_IN_PRO="There are a lot more Condition Rules available in [[%1:start link%]]the Pro version of Conditional Content[[%2:end link%]]."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 5.2.2
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link https://regularlabs.com
|
||||
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
;; @license GNU General Public License version 2 or later
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] تابغ نمی تواند عمل کند"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="پلاگین Regular Labs Library فعال نمی باشد"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="پلاگین Regular Labs Library نصب نمی باشد"
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="شرایط"
|
||||
COC_CONTENT="محتواي"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="کلمه ای که از آن در تگ ها استفاده شود .<br><br><strong>توجه :</strong> اگر این متن را تغییر دهید تمامی برچسب ها کار نخواهند کرد .."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] nem működik."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="A Regular Labs keretrendszer beépülőmodul nincs engedélyezve."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Nincs telepítve a Regular Labs Library beépülőmodul."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="feltételek"
|
||||
COC_CONTENT="Tartalom"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
; COC_TAG_DESC="The word to be used in the tags.<br><br><strong>Note:</strong> If you change this, all existing tags will not work anymore."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,44 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 5.2.2
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link https://regularlabs.com
|
||||
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
;; @license GNU General Public License version 2 or later
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - Limita il contenuto Joomla! in base alle tue condizioni."
|
||||
CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
CONDITIONALCONTENT_DESC="Con Conditional Content puoi limitare il tuo contenuto (una parte) in base alle tue condizioni.<br><br>Inserendo i tag attorno ai contenuti, puoi limitare il contenuto a/per chiunque o qualunque cosa desideri. La sintassi è semplice:<br><span class="rl-code rl-code-block">{show usergroup="Registered" something="else"}Il Tuo Contenuto...{/show}</span><br>O:<br><span class="rl-code rl-code-block">{hide usergroup="Registered" something="else"}Il Tuo Contenuto...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] non può funzionare."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Il plugin Regular Labs Library non è abilitato."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Il plugin Regular Labs Library non è installato."
|
||||
|
||||
COC_ALL_DESC="Il contenuto verrà visualizzato/nascosto se <strong>TUTTE</strong> le condizioni seguenti sono soddisfatte."
|
||||
COC_ALTERNATIVE_CONTENT="Contenuto Alternativo"
|
||||
COC_ALTERNATIVE_CONTENT_DESC="Inserisci il contenuto che desideri mostrare/nascondere quando le condizioni NON sono soddisfatte.<br><br>Non ti preoccupare, puoi cambiarlo anche in seguito."
|
||||
COC_ANY_DESC="Il contenuto verrà visualizzato/nascosto se viene soddisfatta <strong>QUALSIASI</strong>(una o più) condizioni di seguito.<br>I gruppi di condizione in cui è selezionato 'Ignora' verranno ignorati."
|
||||
; COC_BUTTON_INLINE="Use Inline Rules"
|
||||
; COC_CONDITION_TYPE="Use Condition"
|
||||
COC_CONDITIONS="Condizioni"
|
||||
COC_CONTENT="Contenuto"
|
||||
COC_CONTENT_DESC="Inserisci il contenuto che vuoi mostrare/nascondere quando le condizioni sono soddisfatte.<br><br>Non ti preoccupare, puoi cambiarlo anche in seguito."
|
||||
COC_CONTENTS="Contenuti"
|
||||
COC_HIDE_TAG="Nascondi Tag"
|
||||
; COC_INLINE_RULES="Inline Rules"
|
||||
COC_MATCHING_METHOD_DESC="Dovrebbero essere soddisfatte tutte o eventuali condizioni?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
COC_SHOW_TAG="Mostra Tag"
|
||||
COC_TAG_DESC="La parola utilizzata nei tags.<br><br><strong>Nota:</strong>Se modifichi questo parametro, tutti i tags esistenti non funzioneranno più."
|
||||
COC_TAG_TYPE="Mostra o Nascondi"
|
||||
COC_TAG_TYPE_DESC="Seleziona se desideri che il contenuto venga visualizzato o nascosto in base alle condizioni specificate."
|
||||
COC_USE_ALTERNATIVE_CONTENT="Usa Contenuto Alternativo"
|
||||
COC_USE_ALTERNATIVE_CONTENT_DESC="Selezionare per utilizzare un contenuto alternativo che si desidera mostrare/nascondere quando le condizioni sottostanti NON sono soddisfatte."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
; CON_CONSIDER_CONDITION_SET="You are using multiple inline Condition Rules. Consider creating a Condition Set instead.<br><br>Condition Sets allow you to group multiple Condition Rules into one and are reusable."
|
||||
; CON_MORE_IN_CONDITION_SET="There are more Condition Rules and settings available when you create a Condition Set instead."
|
||||
; CON_MORE_IN_PRO="There are a lot more Condition Rules available in [[%1:start link%]]the Pro version of Conditional Content[[%2:end link%]]."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 5.2.2
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link https://regularlabs.com
|
||||
;; @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
;; @license GNU General Public License version 2 or later
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - Limita il contenuto Joomla! in base alle tue condizioni."
|
||||
CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] は機能しません。"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library プラグインが有効になっていません。"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs フレームワークプラグインがインストールされていません。"
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="条件"
|
||||
COC_CONTENT="コンテンツ"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="タグに使用される単語です。<br><br><strong>注意:</strong> これを変更すると、全ての既存タグが動作しなくなります。"
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] negali funkcionuoti."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library įskiepis nėra įgalintas."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library įskiepis nėra įdiegtas."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Turinys"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Žodis, naudojamas žymei.<br><br><strong>Pastaba:</strong> Jei pakeisite šį žodį, visas esamos žymės daugiau nebeveiks."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] vil ikke fungere."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Rammeverk programtillegg er ikke aktivert."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Plugin er ikke installert."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="Betingelse"
|
||||
COC_CONTENT="Innhold"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Ord som skal anvendes i kodene.<br><br><strong>OBS!:</strong> Hvis du endrer dette, vil ingen nåværende koder virke."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] kan niet functioneren."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs bibliotheek plugin is niet geactiveerd"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs bibliotheek plugin is niet geïnstalleerd"
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Inhoud"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Het woord om te gebruiken in de tags.<br><br><strong>Let op:</strong> Als u dit wijzigt, zullen alle bestaande tags niet meer werken."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] nu poate functiona."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library plugin neactivat."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library plugin neinstalat."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="Conditii"
|
||||
COC_CONTENT="Continut"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Cuvantul utilizat in tag.<br><br><strong>Nota:</strong> Daca-l schimbati, toate tagurile existente nu vor mai functiona."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] nemôže fungovať."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library doplnok nie je aktivovaný/povolený."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library doplnok nie je nainštalovaný."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Polia obsahu"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Slovo použité v Značkách.<br><br><strong>Poznámka:</strong> Ak toto zmeníte, všetky existujúce značky už viac nebudú fungovať."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] ne more delovati."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library vtičnik ni omogočen."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library vtičnik ni nameščen."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="Vsebina"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="Beseda, ki se uporabljajo v oznake.<br><br><strong>Opomba:</strong> Če spremenite to, vse obstoječe oznake ne bodo več delovale."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="ไม่สามารถใช้งาน [[%1:extension name%]] ได้."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library plugin ยังไม่ได้เปิดใช้งาน."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library plugin ยังไม่ได้ถูกติดตั้ง."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="เงื่อนไข"
|
||||
COC_CONTENT="เนื้อหา"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="ข้อความสำหรับใช้ในแท็กป้ายกำกับ.<br><br><strong>หมายเหตุ:</strong> หากคุณเปลี่ยนแปลงแก้ไขส่วนนี้, แท็กป้ายกำกับทั้งหมดที่เคยมีอยู่จะไม่สามารถใช้งานได้อีกต่อไป."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] không thể hoạt động."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Plugin Regular Labs Library không được bật."
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Plugin Regular Labs Library không được cài đặt."
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
COC_CONDITIONS="Điều kiện"
|
||||
COC_CONTENT="Nội dung"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
; COC_TAG_DESC="The word to be used in the tags.<br><br><strong>Note:</strong> If you change this, all existing tags will not work anymore."
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
@ -0,0 +1,38 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
|
||||
; CONDITIONALCONTENT_DESC="With Conditional Content you can restrict (parts of) your content based on your conditions.<br><br>By placing tags around your content, you can restrict the content to/from whoever or whenever you want. The syntax simply looks like:<br><span class="rl-code rl-code-block">{show usergroup="Registered"something="else"}Your content...{/show}</span><br>Or:<br><span class="rl-code rl-code-block">{hide usergroup="Registered"something="else"}Your content...{/hide}</span>"
|
||||
|
||||
COC_EXTENSION_CAN_NOT_FUNCTION="[[%1:extension name%]] 無法動作。"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_ENABLED="Regular Labs Library 外掛未啟用。"
|
||||
COC_REGULAR_LABS_LIBRARY_NOT_INSTALLED="Regular Labs Library 外掛未安裝。"
|
||||
|
||||
; COC_ALL_DESC="The content will be shown/hidden if <strong>ALL</strong> of below conditions are met."
|
||||
; COC_ALTERNATIVE_CONTENT="Alternative Content"
|
||||
; COC_ALTERNATIVE_CONTENT_DESC="Enter the content you want to show/hide when below conditions are NOT met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_ANY_DESC="The content will be shown/hidden if <strong>ANY</strong> (one or more) of below conditions are met.<br>Condition groups where 'Ignore' is selected will be ignored."
|
||||
; COC_CONDITIONS="Conditions"
|
||||
COC_CONTENT="內容"
|
||||
; COC_CONTENT_DESC="Enter the content you want to show/hide when below conditions are met.<br><br>Don't worry, you can change this later too."
|
||||
; COC_CONTENTS="Contents"
|
||||
; COC_HIDE_TAG="Hide Tag"
|
||||
; COC_MATCHING_METHOD_DESC="Should all or any conditions be met?<br><br><strong>[[%1:all%]]</strong><br>[[%2:all description%]]<br><br><strong>[[%3:any%]]</strong><br>[[%4:any description%]]"
|
||||
; COC_SHOW_TAG="Show Tag"
|
||||
COC_TAG_DESC="標籤中所用的單字。<br><br><strong>請注意:</strong> 如果您變更此,所有現有標籤將不再動作。"
|
||||
; COC_TAG_TYPE="Show or Hide"
|
||||
; COC_TAG_TYPE_DESC="Select whether you want the content to be shown or hidden according to the specified conditions."
|
||||
; COC_USE_ALTERNATIVE_CONTENT="Use Alternative Content"
|
||||
; COC_USE_ALTERNATIVE_CONTENT_DESC="Select to use an alternative content that you want to show/hide when below conditions are NOT met."
|
||||
; COC_USE_EDITORS="Use Editors"
|
||||
; COC_USE_EDITORS_DESC="Enable to use the Joomla editor for the content and alternative content fields in the editor button popup."
|
||||
@ -0,0 +1,13 @@
|
||||
;; @package Conditional Content
|
||||
;; @version 3.1.0
|
||||
;;
|
||||
;; @author Peter van Westen <info@regularlabs.com>
|
||||
;; @link http://regularlabs.com
|
||||
;; @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
;; @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
;;
|
||||
;; @translate Want to help with translations? See: https://regularlabs.com/translate
|
||||
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT="System - Regular Labs - Conditional Content"
|
||||
; PLG_SYSTEM_CONDITIONALCONTENT_DESC="Conditional Content - restrict content based on your conditions in Joomla!"
|
||||
; CONDITIONALCONTENT="Conditional Content"
|
||||
26
plugins/system/conditionalcontent/script.install.php
Normal file
26
plugins/system/conditionalcontent/script.install.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 4.0.0
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link http://regularlabs.com
|
||||
* @copyright Copyright © 2022 Regular Labs All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once __DIR__ . '/script.install.helper.php';
|
||||
|
||||
class PlgSystemConditionalContentInstallerScript extends PlgSystemConditionalContentInstallerScriptHelper
|
||||
{
|
||||
public $alias = 'conditionalcontent';
|
||||
public $extension_type = 'plugin';
|
||||
public $name = 'CONDITIONALCONTENT';
|
||||
|
||||
public function uninstall($adapter)
|
||||
{
|
||||
$this->uninstallPlugin($this->extname, 'editors-xtd');
|
||||
}
|
||||
}
|
||||
26
plugins/system/conditionalcontent/src/Clean.php
Normal file
26
plugins/system/conditionalcontent/src/Clean.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 2.7.1
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link http://www.regularlabs.com
|
||||
* @copyright Copyright © 2020 Regular Labs All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
class Clean
|
||||
{
|
||||
/**
|
||||
* Just in case you can't figure the method name out: this cleans the left-over junk
|
||||
*/
|
||||
public static function cleanLeftoverJunk(&$string)
|
||||
{
|
||||
Protect::unprotectTags($string);
|
||||
//RL_Protect::removeInlineComments($string, 'ConditionalContent');
|
||||
}
|
||||
}
|
||||
72
plugins/system/conditionalcontent/src/Helper.php
Normal file
72
plugins/system/conditionalcontent/src/Helper.php
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 2.7.1
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link http://www.regularlabs.com
|
||||
* @copyright Copyright © 2020 Regular Labs All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory as JFactory;
|
||||
use RegularLabs\Library\Article as RL_Article;
|
||||
use RegularLabs\Library\Document as RL_Document;
|
||||
use RegularLabs\Library\Html as RL_Html;
|
||||
|
||||
/**
|
||||
* Plugin that replaces stuff
|
||||
*/
|
||||
class Helper
|
||||
{
|
||||
public function onContentPrepare($context, &$article, &$params)
|
||||
{
|
||||
$area = isset($article->created_by) ? 'article' : 'other';
|
||||
$context = (($params instanceof \JRegistry) && $params->get('rl_search')) ? 'com_search.' . $params->get('readmore_limit') : $context;
|
||||
|
||||
RL_Article::process($article, $context, $this, 'replaceTags', [$area, $context]);
|
||||
}
|
||||
|
||||
public function onAfterDispatch()
|
||||
{
|
||||
if ( ! $buffer = RL_Document::getBuffer())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! Replace::replaceTags($buffer, 'component'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
RL_Document::setBuffer($buffer);
|
||||
}
|
||||
|
||||
public function onAfterRender()
|
||||
{
|
||||
$html = JFactory::getApplication()->getBody();
|
||||
|
||||
if ($html == '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// only do stuff in body
|
||||
list($pre, $body, $post) = RL_Html::getBody($html);
|
||||
Replace::replaceTags($body, 'body');
|
||||
$html = $pre . $body . $post;
|
||||
|
||||
Clean::cleanLeftoverJunk($html);
|
||||
|
||||
JFactory::getApplication()->setBody($html);
|
||||
}
|
||||
|
||||
public function replaceTags(&$string, $area = 'article', $context = '')
|
||||
{
|
||||
Replace::replaceTags($string, $area, $context);
|
||||
}
|
||||
}
|
||||
146
plugins/system/conditionalcontent/src/Params.php
Normal file
146
plugins/system/conditionalcontent/src/Params.php
Normal file
@ -0,0 +1,146 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 5.2.2
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use RegularLabs\Library\Parameters as RL_Parameters;
|
||||
use RegularLabs\Library\PluginTag as RL_PluginTag;
|
||||
use RegularLabs\Library\RegEx as RL_RegEx;
|
||||
|
||||
class Params
|
||||
{
|
||||
protected static $params = null;
|
||||
protected static $regexes = [];
|
||||
|
||||
public static function get()
|
||||
{
|
||||
if ( ! is_null(self::$params))
|
||||
{
|
||||
return self::$params;
|
||||
}
|
||||
|
||||
$params = RL_Parameters::getPlugin('conditionalcontent');
|
||||
|
||||
$params->tag_show = RL_PluginTag::clean($params->tag_show);
|
||||
$params->tag_hide = RL_PluginTag::clean($params->tag_hide);
|
||||
|
||||
self::$params = $params;
|
||||
|
||||
return self::$params;
|
||||
}
|
||||
|
||||
public static function getRegex()
|
||||
{
|
||||
if (isset(self::$regexes['main']))
|
||||
{
|
||||
return self::$regexes['main'];
|
||||
}
|
||||
|
||||
$params = self::get();
|
||||
|
||||
// Tag character start and end
|
||||
[$tag_start, $tag_end] = Params::getTagCharacters();
|
||||
|
||||
$pre = RL_PluginTag::getRegexSurroundingTagsPre();
|
||||
$post = RL_PluginTag::getRegexSurroundingTagsPost();
|
||||
$inside_tag = RL_PluginTag::getRegexInsideTag($tag_start, $tag_end);
|
||||
$spaces = RL_PluginTag::getRegexSpaces();
|
||||
|
||||
$tag_start = RL_RegEx::quote($tag_start);
|
||||
$tag_end = RL_RegEx::quote($tag_end);
|
||||
|
||||
self::$regexes['main'] =
|
||||
'(?<start_pre>' . $pre . ')'
|
||||
. $tag_start . '(?<tag>' . RL_RegEx::quote($params->tag_show) . '|' . RL_RegEx::quote($params->tag_hide) . ')'
|
||||
. '(?<data>(?:(?:' . $spaces . '|<)' . $inside_tag . ')?)' . $tag_end
|
||||
. '(?<start_post>' . $post . ')'
|
||||
|
||||
. '(?<content>.*?)'
|
||||
|
||||
. '(?<end_pre>' . $pre . ')'
|
||||
. $tag_start . '/\2' . $tag_end
|
||||
. '(?<end_post>' . $post . ')';
|
||||
|
||||
return self::$regexes['main'];
|
||||
}
|
||||
|
||||
public static function getRegexElse($type = 'show')
|
||||
{
|
||||
if (isset(self::$regexes[$type]))
|
||||
{
|
||||
return self::$regexes[$type];
|
||||
}
|
||||
|
||||
$params = self::get();
|
||||
|
||||
// Tag character start and end
|
||||
[$tag_start, $tag_end] = Params::getTagCharacters();
|
||||
|
||||
$pre = RL_PluginTag::getRegexSurroundingTagsPre();
|
||||
$post = RL_PluginTag::getRegexSurroundingTagsPost();
|
||||
$inside_tag = RL_PluginTag::getRegexInsideTag($tag_start, $tag_end);
|
||||
$spaces = RL_PluginTag::getRegexSpaces();
|
||||
|
||||
$tag_start = RL_RegEx::quote($tag_start);
|
||||
$tag_end = RL_RegEx::quote($tag_end);
|
||||
|
||||
$type = $type === 'hide' ? $params->tag_hide : $params->tag_show;
|
||||
|
||||
self::$regexes[$type] =
|
||||
'(?<else_pre>' . $pre . ')'
|
||||
. $tag_start . RL_RegEx::quote($type) . '-else'
|
||||
. '(?<data>(?:(?:' . $spaces . '|<)' . $inside_tag . ')?)' . $tag_end
|
||||
. '(?<else_post>' . $post . ')';
|
||||
|
||||
return self::$regexes[$type];
|
||||
}
|
||||
|
||||
public static function getTagCharacters()
|
||||
{
|
||||
$params = self::get();
|
||||
|
||||
if ( ! isset($params->tag_character_start))
|
||||
{
|
||||
self::setTagCharacters();
|
||||
}
|
||||
|
||||
return [$params->tag_character_start, $params->tag_character_end];
|
||||
}
|
||||
|
||||
public static function getTags($only_start_tags = false)
|
||||
{
|
||||
$params = self::get();
|
||||
|
||||
[$tag_start, $tag_end] = self::getTagCharacters();
|
||||
|
||||
$tags = [
|
||||
[
|
||||
$tag_start . $params->tag_show,
|
||||
$tag_start . $params->tag_hide,
|
||||
],
|
||||
[
|
||||
$tag_start . '/' . $params->tag_show . $tag_end,
|
||||
$tag_start . '/' . $params->tag_hide . $tag_end,
|
||||
],
|
||||
];
|
||||
|
||||
return $only_start_tags ? $tags[0] : $tags;
|
||||
}
|
||||
|
||||
public static function setTagCharacters()
|
||||
{
|
||||
$params = self::get();
|
||||
|
||||
[self::$params->tag_character_start, self::$params->tag_character_end] = explode('.', $params->tag_characters);
|
||||
}
|
||||
}
|
||||
402
plugins/system/conditionalcontent/src/Plugin.php
Normal file
402
plugins/system/conditionalcontent/src/Plugin.php
Normal file
@ -0,0 +1,402 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 2.7.1
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link http://www.regularlabs.com
|
||||
* @copyright Copyright © 2020 Regular Labs All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
|
||||
/*
|
||||
* This class is used as template (extend) for most Regular Labs plugins
|
||||
* This class is not placed in the Regular Labs Library as a re-usable class because
|
||||
* it also needs to be working when the Regular Labs Library is not installed
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
if (is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php'))
|
||||
{
|
||||
require_once JPATH_LIBRARIES . '/regularlabs/autoload.php';
|
||||
}
|
||||
|
||||
use Joomla\CMS\Factory as JFactory;
|
||||
use Joomla\CMS\Installer\Installer as JInstaller;
|
||||
use Joomla\CMS\Language\Text as JText;
|
||||
use Joomla\CMS\Plugin\CMSPlugin as JPlugin;
|
||||
use Joomla\CMS\Plugin\PluginHelper as JPluginHelper;
|
||||
use ReflectionMethod;
|
||||
use RegularLabs\Library\Document as RL_Document;
|
||||
use RegularLabs\Library\Language as RL_Language;
|
||||
use RegularLabs\Library\Protect as RL_Protect;
|
||||
|
||||
class Plugin extends JPlugin
|
||||
{
|
||||
public $_alias = '';
|
||||
public $_title = '';
|
||||
public $_lang_prefix = '';
|
||||
|
||||
public $_has_tags = false;
|
||||
public $_enable_in_frontend = true;
|
||||
public $_enable_in_admin = false;
|
||||
public $_can_disable_by_url = true;
|
||||
public $_disable_on_components = false;
|
||||
public $_protected_formats = [];
|
||||
public $_page_types = [];
|
||||
|
||||
private $_init = false;
|
||||
private $_pass = null;
|
||||
private $_helper = null;
|
||||
|
||||
protected function run()
|
||||
{
|
||||
if ( ! $this->passChecks())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $this->getHelper())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$caller = debug_backtrace()[1];
|
||||
|
||||
if (empty($caller))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$event = $caller['function'];
|
||||
|
||||
if ( ! method_exists($this->_helper, $event))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$reflect = new ReflectionMethod($this->_helper, $event);
|
||||
$parameters = $reflect->getParameters();
|
||||
|
||||
$arguments = [];
|
||||
|
||||
// Check if arguments should be passed as reference or not
|
||||
foreach ($parameters as $count => $parameter)
|
||||
{
|
||||
if ($parameter->isPassedByReference())
|
||||
{
|
||||
$arguments[] = &$caller['args'][$count];
|
||||
continue;
|
||||
}
|
||||
$arguments[] = $caller['args'][$count];
|
||||
}
|
||||
|
||||
// Work-around for K2 stuff :(
|
||||
if ($event == 'onContentPrepare'
|
||||
&& empty($arguments[1]->id)
|
||||
&& strpos($arguments[0], 'com_k2') === 0
|
||||
)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return call_user_func_array([$this->_helper, $event], $arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the helper object
|
||||
*
|
||||
* @return object|null The plugins helper object
|
||||
*/
|
||||
private function getHelper()
|
||||
{
|
||||
// Already initialized, so return
|
||||
if ($this->_init)
|
||||
{
|
||||
return $this->_helper;
|
||||
}
|
||||
|
||||
$this->_init = true;
|
||||
|
||||
RL_Language::load('plg_' . $this->_type . '_' . $this->_name);
|
||||
|
||||
$this->init();
|
||||
|
||||
$this->_helper = new Helper;
|
||||
|
||||
return $this->_helper;
|
||||
}
|
||||
|
||||
private function passChecks()
|
||||
{
|
||||
if ( ! is_null($this->_pass))
|
||||
{
|
||||
return $this->_pass;
|
||||
}
|
||||
|
||||
$this->_pass = false;
|
||||
|
||||
if ( ! $this->isFrameworkEnabled())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! self::passPageTypes())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// allow in frontend?
|
||||
if ( ! $this->_enable_in_frontend
|
||||
&& ! RL_Document::isAdmin())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// allow in admin?
|
||||
if ( ! $this->_enable_in_admin
|
||||
&& RL_Document::isAdmin()
|
||||
&& ( ! isset(Params::get()->enable_admin) || ! Params::get()->enable_admin))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// disabled by url?
|
||||
if ($this->_can_disable_by_url
|
||||
&& RL_Protect::isDisabledByUrl($this->_alias))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// disabled by component?
|
||||
if ($this->_disable_on_components
|
||||
&& RL_Protect::isRestrictedComponent(isset(Params::get()->disabled_components) ? Params::get()->disabled_components : [], 'component'))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// restricted page?
|
||||
if (RL_Protect::isRestrictedPage($this->_has_tags, $this->_protected_formats))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $this->extraChecks())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->_pass = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function passPageTypes()
|
||||
{
|
||||
if (empty($this->_page_types))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (in_array('*', $this->_page_types))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (empty(JFactory::$document))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (RL_Document::isFeed())
|
||||
{
|
||||
return in_array('feed', $this->_page_types);
|
||||
}
|
||||
|
||||
if (RL_Document::isPDF())
|
||||
{
|
||||
return in_array('pdf', $this->_page_types);
|
||||
}
|
||||
|
||||
$page_type = JFactory::getDocument()->getType();
|
||||
|
||||
if (in_array($page_type, $this->_page_types))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function extraChecks()
|
||||
{
|
||||
$input = JFactory::getApplication()->input;
|
||||
|
||||
// Disable on Gridbox edit form: option=com_gridbox&view=gridbox
|
||||
if ($input->get('option') == 'com_gridbox' && $input->get('view') == 'gridbox')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Disable on SP PageBuilder edit form: option=com_sppagebuilder&view=form
|
||||
if ($input->get('option') == 'com_sppagebuilder' && $input->get('view') == 'form')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the Regular Labs Library is enabled
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function isFrameworkEnabled()
|
||||
{
|
||||
if ( ! defined('REGULAR_LABS_LIBRARY_ENABLED'))
|
||||
{
|
||||
$this->setIsFrameworkEnabled();
|
||||
}
|
||||
|
||||
if ( ! REGULAR_LABS_LIBRARY_ENABLED)
|
||||
{
|
||||
$this->throwError('REGULAR_LABS_LIBRARY_NOT_ENABLED');
|
||||
}
|
||||
|
||||
return REGULAR_LABS_LIBRARY_ENABLED;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the define with whether the Regular Labs Library is enabled
|
||||
*/
|
||||
private function setIsFrameworkEnabled()
|
||||
{
|
||||
// Return false if Regular Labs Library is not installed
|
||||
if ( ! $this->isFrameworkInstalled())
|
||||
{
|
||||
define('REGULAR_LABS_LIBRARY_ENABLED', false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! JPluginHelper::isEnabled('system', 'regularlabs'))
|
||||
{
|
||||
$this->throwError('REGULAR_LABS_LIBRARY_NOT_ENABLED');
|
||||
|
||||
define('REGULAR_LABS_LIBRARY_ENABLED', false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
define('REGULAR_LABS_LIBRARY_ENABLED', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the Regular Labs Library is installed
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function isFrameworkInstalled()
|
||||
{
|
||||
if ( ! defined('REGULAR_LABS_LIBRARY_INSTALLED'))
|
||||
{
|
||||
$this->setIsFrameworkInstalled();
|
||||
}
|
||||
|
||||
switch (REGULAR_LABS_LIBRARY_INSTALLED)
|
||||
{
|
||||
case 'outdated':
|
||||
$this->throwError('REGULAR_LABS_LIBRARY_OUTDATED');
|
||||
|
||||
return false;
|
||||
|
||||
case 'no':
|
||||
$this->throwError('REGULAR_LABS_LIBRARY_NOT_INSTALLED');
|
||||
|
||||
return false;
|
||||
|
||||
case 'yes':
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* set the define with whether the Regular Labs Library is installed
|
||||
*/
|
||||
private function setIsFrameworkInstalled()
|
||||
{
|
||||
if (
|
||||
! is_file(JPATH_PLUGINS . '/system/regularlabs/regularlabs.xml')
|
||||
|| ! is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php')
|
||||
)
|
||||
{
|
||||
define('REGULAR_LABS_LIBRARY_INSTALLED', 'no');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$plugin = JInstaller::parseXMLInstallFile(JPATH_PLUGINS . '/system/regularlabs/regularlabs.xml');
|
||||
$library = JInstaller::parseXMLInstallFile(JPATH_LIBRARIES . '/regularlabs/regularlabs.xml');
|
||||
|
||||
if (empty($plugin) || empty($library))
|
||||
{
|
||||
define('REGULAR_LABS_LIBRARY_INSTALLED', 'no');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (version_compare($plugin['version'], '20.7.20564', '<')
|
||||
|| version_compare($library['version'], '20.7.20564', '<'))
|
||||
{
|
||||
define('REGULAR_LABS_LIBRARY_INSTALLED', 'outdated');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
define('REGULAR_LABS_LIBRARY_INSTALLED', 'yes');
|
||||
}
|
||||
|
||||
/**
|
||||
* Place an error in the message queue
|
||||
*/
|
||||
private function throwError($error)
|
||||
{
|
||||
// Return if page is not an admin page or the admin login page
|
||||
if (
|
||||
! JFactory::getApplication()->isClient('administrator')
|
||||
|| JFactory::getUser()->get('guest')
|
||||
)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// load the admin language file
|
||||
JFactory::getLanguage()->load('plg_' . $this->_type . '_' . $this->_name, JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name);
|
||||
|
||||
$text = JText::sprintf($this->_lang_prefix . '_' . $error, JText::_($this->_title));
|
||||
$text = JText::_($text) . ' ' . JText::sprintf($this->_lang_prefix . '_EXTENSION_CAN_NOT_FUNCTION', JText::_($this->_title));
|
||||
|
||||
// Check if message is not already in queue
|
||||
$messagequeue = JFactory::getApplication()->getMessageQueue();
|
||||
foreach ($messagequeue as $message)
|
||||
{
|
||||
if ($message['message'] == $text)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
JFactory::getApplication()->enqueueMessage($text, 'error');
|
||||
}
|
||||
}
|
||||
|
||||
50
plugins/system/conditionalcontent/src/Protect.php
Normal file
50
plugins/system/conditionalcontent/src/Protect.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 5.2.2
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use RegularLabs\Library\Protect as RL_Protect;
|
||||
|
||||
class Protect
|
||||
{
|
||||
static $name = 'ConditionalContent';
|
||||
|
||||
public static function _(&$string)
|
||||
{
|
||||
RL_Protect::protectHtmlCommentTags($string);
|
||||
RL_Protect::protectFields($string, Params::getTags(true));
|
||||
RL_Protect::protectSourcerer($string);
|
||||
}
|
||||
|
||||
public static function protectTags(&$string)
|
||||
{
|
||||
RL_Protect::protectTags($string, Params::getTags(true));
|
||||
}
|
||||
|
||||
public static function unprotectTags(&$string)
|
||||
{
|
||||
RL_Protect::unprotectTags($string, Params::getTags(true));
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap the comment in comment tags
|
||||
*
|
||||
* @param string $comment
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function wrapInCommentTags($comment)
|
||||
{
|
||||
return RL_Protect::wrapInCommentTags(self::$name, $comment);
|
||||
}
|
||||
}
|
||||
230
plugins/system/conditionalcontent/src/Replace.php
Normal file
230
plugins/system/conditionalcontent/src/Replace.php
Normal file
@ -0,0 +1,230 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 5.2.2
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
namespace RegularLabs\Plugin\System\ConditionalContent;
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use RegularLabs\Component\Conditions\Administrator\Api\Conditions as Api_Conditions;
|
||||
use RegularLabs\Library\Html as RL_Html;
|
||||
use RegularLabs\Library\PluginTag as RL_PluginTag;
|
||||
use RegularLabs\Library\Protect as RL_Protect;
|
||||
use RegularLabs\Library\RegEx as RL_RegEx;
|
||||
use RegularLabs\Library\StringHelper as RL_String;
|
||||
|
||||
class Replace
|
||||
{
|
||||
static $article;
|
||||
|
||||
public static function replaceTags(&$string, $area = 'article', $context = '', $article = null)
|
||||
{
|
||||
self::$article = $article;
|
||||
|
||||
if ( ! is_string($string) || $string == '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! RL_String::contains($string, Params::getTags(true)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if tags are in the text snippet used for the search component
|
||||
if (str_starts_with($context, 'com_search.'))
|
||||
{
|
||||
$limit = explode('.', $context, 2);
|
||||
$limit = (int) array_pop($limit);
|
||||
|
||||
$string_check = substr($string, 0, $limit);
|
||||
|
||||
if ( ! RL_String::contains($string_check, Params::getTags(true)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$params = Params::get();
|
||||
$regex = Params::getRegex();
|
||||
|
||||
// allow in component?
|
||||
if (RL_Protect::isRestrictedComponent($params->disabled_components ?? [], $area))
|
||||
{
|
||||
|
||||
Protect::_($string);
|
||||
|
||||
$string = RL_RegEx::replace($regex, '\2', $string);
|
||||
|
||||
RL_Protect::unprotect($string);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Protect::_($string);
|
||||
|
||||
[$start_tags, $end_tags] = Params::getTags();
|
||||
|
||||
[$pre_string, $string, $post_string] = RL_Html::getContentContainingSearches(
|
||||
$string,
|
||||
$start_tags,
|
||||
$end_tags
|
||||
);
|
||||
|
||||
RL_RegEx::matchAll($regex, $string, $matches);
|
||||
|
||||
foreach ($matches as $match)
|
||||
{
|
||||
self::replaceTag($string, $match);
|
||||
}
|
||||
|
||||
$string = $pre_string . $string . $post_string;
|
||||
|
||||
RL_Protect::unprotect($string);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function getContent($match)
|
||||
{
|
||||
$params = Params::get();
|
||||
$parts = self::getParts($match);
|
||||
|
||||
foreach ($parts as $part)
|
||||
{
|
||||
$attributes = self::getTagValues($part->data);
|
||||
unset($attributes->trim);
|
||||
|
||||
$has_access = self::hasAccess($attributes);
|
||||
$has_access = $match['tag'] == $params->tag_hide ? ! $has_access : $has_access;
|
||||
|
||||
if ($has_access)
|
||||
{
|
||||
return $part->content;
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
private static function getParts($data)
|
||||
{
|
||||
$params = Params::get();
|
||||
$regex = Params::getRegexElse($data['tag'] == $params->tag_hide ? 'hide' : 'show');
|
||||
|
||||
RL_RegEx::matchAll($regex, $data['content'], $matches, null, PREG_OFFSET_CAPTURE);
|
||||
|
||||
if (empty($matches) || empty($matches[0]))
|
||||
{
|
||||
return [
|
||||
(object) [
|
||||
'data' => $data['data'],
|
||||
'content' => $data['content'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
$parts = [
|
||||
(object) [
|
||||
'data' => $data['data'],
|
||||
'content' => substr($data['content'], 0, $matches[0][0][1]),
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($matches[0] as $i => $match)
|
||||
{
|
||||
$offset = $match[1] + strlen($match[0]);
|
||||
$next_pos = isset($matches[0][$i + 1])
|
||||
? $matches[0][$i + 1][1]
|
||||
: strlen($data['content']);
|
||||
$length = $next_pos - $offset;
|
||||
|
||||
$parts[] = (object) [
|
||||
'data' => $matches['data'][$i][0],
|
||||
'content' => substr($data['content'], $offset, $length),
|
||||
];
|
||||
}
|
||||
|
||||
return $parts;
|
||||
}
|
||||
|
||||
private static function getTagValues($string)
|
||||
{
|
||||
$string = html_entity_decode($string);
|
||||
|
||||
return RL_PluginTag::getAttributesFromString($string, null, [], false);
|
||||
}
|
||||
|
||||
private static function hasAccess($attributes)
|
||||
{
|
||||
if (empty($attributes))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$conditions = [
|
||||
'menu__menu_item',
|
||||
'menu__home_page',
|
||||
'date__date',
|
||||
'visitor__access_level',
|
||||
'visitor__user_group',
|
||||
'visitor__language',
|
||||
'agent__device',
|
||||
'other__condition',
|
||||
];
|
||||
|
||||
return (new Api_Conditions(self::$article))
|
||||
->setConditionByAttributes($attributes)
|
||||
->pass($conditions);
|
||||
}
|
||||
|
||||
private static function replaceTag(&$string, $match)
|
||||
{
|
||||
$params = Params::get();
|
||||
|
||||
$content = self::getContent($match);
|
||||
|
||||
$attributes = self::getTagValues($match['data']);
|
||||
$trim = $attributes->trim ?? $params->trim;
|
||||
|
||||
if ($trim)
|
||||
{
|
||||
$tags = RL_Html::cleanSurroundingTags([
|
||||
'start_pre' => $match['start_pre'],
|
||||
'start_post' => $match['start_post'],
|
||||
], ['p', 'span', 'div']);
|
||||
|
||||
$match = [...$match, ...$tags];
|
||||
|
||||
$tags = RL_Html::cleanSurroundingTags([
|
||||
'end_pre' => $match['end_pre'],
|
||||
'end_post' => $match['end_post'],
|
||||
], ['p', 'span', 'div']);
|
||||
|
||||
$match = [...$match, ...$tags];
|
||||
|
||||
$tags = RL_Html::cleanSurroundingTags([
|
||||
'start_pre' => $match['start_pre'],
|
||||
'end_post' => $match['end_post'],
|
||||
], ['p', 'span', 'div']);
|
||||
|
||||
$match = [...$match, ...$tags];
|
||||
}
|
||||
|
||||
if ($params->place_comments)
|
||||
{
|
||||
$content = Protect::wrapInCommentTags($content);
|
||||
}
|
||||
|
||||
$replace = $match['start_pre'] . $match['start_post'] . $content . $match['end_pre'] . $match['end_post'];
|
||||
|
||||
$string = str_replace($match[0], $replace, $string);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user