149 lines
11 KiB
XML
149 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<extension version="4" type="plugin" group="system" method="upgrade">
|
|
<name>PLG_SYSTEM_SOURCERER</name>
|
|
<description>PLG_SYSTEM_SOURCERER_DESC</description>
|
|
<version>9.4.1</version>
|
|
<creationDate>February 2023</creationDate>
|
|
<author>Regular Labs (Peter van Westen)</author>
|
|
<authorEmail>info@regularlabs.com</authorEmail>
|
|
<authorUrl>https://regularlabs.com</authorUrl>
|
|
<copyright>Copyright © 2023 Regular Labs - All Rights Reserved</copyright>
|
|
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
|
|
<namespace path="src">RegularLabs\Plugin\System\Sourcerer</namespace>
|
|
<scriptfile>script.install.php</scriptfile>
|
|
<files>
|
|
<file plugin="sourcerer">sourcerer.php</file>
|
|
<folder>language</folder>
|
|
<folder>src</folder>
|
|
</files>
|
|
<media folder="media" destination="sourcerer">
|
|
<folder>images</folder>
|
|
<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="SOURCERER"/>
|
|
<field name="@license" type="License" extension="SOURCERER"/>
|
|
<field name="@version" type="Version" extension="SOURCERER"/>
|
|
<field name="@header" type="Header" label="SOURCERER" description="SOURCERER_DESC" url="https://regularlabs.com/sourcerer"/>
|
|
</fieldset>
|
|
<fieldset name="SRC_SECURITY_SETTINGS_DEFAULT">
|
|
<field name="@block__default" type="Note" class="rl-alert alert alert-info rl-alert-light" text="SRC_SECURITY_SETTINGS_DEFAULT_DESC"/>
|
|
<field name="@block__default_css__a" type="Block" start="1" label="SRC_CSS"/>
|
|
<field name="enable_css" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="@block__default_css__b" type="Block" end="1"/>
|
|
<field name="@block__default_js__a" type="Block" start="1" label="SRC_JAVASCRIPT"/>
|
|
<field name="enable_js" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="@block__default_js__b" type="Block" end="1"/>
|
|
<field name="@block__default_php__a" type="Block" start="1" label="SRC_PHP"/>
|
|
<field name="enable_php" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="@showon__default_php__a" type="ShowOn" value="enable_php:1"/>
|
|
<field name="forbidden_php" type="Textarea" rows="3" cols="40" default="dl, escapeshellarg, escapeshellcmd, exec, passthru, popen, proc_close, proc_open, shell_exec, symlink, system" label="SRC_FORBIDDEN_PHP_FUNCTIONS" description="SRC_FORBIDDEN_PHP_FUNCTIONS_DESC"/>
|
|
<field name="forbidden_tags" type="Textareaplus" width="400" height="80" default="" label="SRC_FORBIDDEN_HTML_TAGS" description="SRC_FORBIDDEN_HTML_TAGS_DESC"/>
|
|
<field name="@showon__default_php__b" type="ShowOn"/>
|
|
<field name="@block__default_php__b" type="Block" end="1"/>
|
|
</fieldset>
|
|
<fieldset name="SRC_SECURITY_SETTINGS_ARTICLES">
|
|
<field name="@block__articles" type="Note" class="rl-alert alert alert-info rl-alert-light" text="SRC_SECURITY_SETTINGS_ARTICLES_DESC"/>
|
|
<field name="@note__articles_security_level" type="OnlyPro" label="SRC_SECURITY_LEVEL" description="SRC_SECURITY_LEVEL_DESC"/>
|
|
<field name="@block__articles_css__a" type="Block" start="1" label="SRC_CSS"/>
|
|
<field name="@note__articles_enable_css" type="OnlyPro" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC"/>
|
|
<field name="@block__articles_css__b" type="Block" end="1"/>
|
|
<field name="@block__articles_js__a" type="Block" start="1" label="SRC_JAVASCRIPT"/>
|
|
<field name="@note__articles_enable_js" type="OnlyPro" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC"/>
|
|
<field name="@block__articles_js__b" type="Block" end="1"/>
|
|
<field name="@block__articles_php__a" type="Block" start="1" label="SRC_PHP"/>
|
|
<field name="@note__articles_enable_php" type="OnlyPro" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC"/>
|
|
<field name="@block__articles_php__b" type="Block" end="1"/>
|
|
</fieldset>
|
|
<fieldset name="SRC_SECURITY_SETTINGS_COMPONENTS">
|
|
<field name="@block__components" type="Note" class="rl-alert alert alert-info rl-alert-light" text="SRC_SECURITY_SETTINGS_COMPONENTS_DESC"/>
|
|
<field name="@note__articles_security_level" type="OnlyPro" label="RL_DISABLE_ON_COMPONENTS" description="SRC_DISABLE_ON_COMPONENTS_DESC"/>
|
|
<field name="@block__components_css__a" type="Block" start="1" label="SRC_CSS"/>
|
|
<field name="@note__components_enable_css" type="OnlyPro" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC"/>
|
|
<field name="@block__components_css__b" type="Block" end="1"/>
|
|
<field name="@block__components_js__a" type="Block" start="1" label="SRC_JAVASCRIPT"/>
|
|
<field name="@note__components_enable_js" type="OnlyPro" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC"/>
|
|
<field name="@block__components_js__b" type="Block" end="1"/>
|
|
<field name="@block__components_php__a" type="Block" start="1" label="SRC_PHP"/>
|
|
<field name="@note__components_enable_php" type="OnlyPro" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC"/>
|
|
<field name="@wizard" type="Radio" default="0" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_SHOW_WIZARD">
|
|
<option value="0">JNO</option>
|
|
<option value="" class="btn btn-outline-success">JYES</option>
|
|
</field>
|
|
<field name="@block__wizard" type="Note" class="text-center" text="<img src="../media/sourcerer/images/wizard.gif" alt="" width="160" height="160" /><h4>The Day of the Sourcerer</h4><p>He stands up and he wakes,<br />He adds and he takes,<br />He mixes and he shakes,<br />He explodes and he bakes,<br />But he makes no mistakes!</p>" showon="@wizard:"/>
|
|
<field name="@block__components_php__b" type="Block" end="1"/>
|
|
</fieldset>
|
|
<fieldset name="SRC_SECURITY_SETTINGS_OTHER_AREAS">
|
|
<field name="@block__otherareas" type="Note" class="rl-alert alert alert-info rl-alert-light" text="SRC_SECURITY_SETTINGS_OTHER_AREAS_DESC"/>
|
|
<field name="@note__articles_security_level" type="OnlyPro" label="RL_ENABLE_OTHER_AREAS" description="SRC_ENABLE_OTHER_AREAS_DESC"/>
|
|
<field name="@block__otherareas_css__a" type="Block" start="1" label="SRC_CSS"/>
|
|
<field name="@noticeother_enable_css" type="OnlyPro" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC"/>
|
|
<field name="@block__otherareas_css__b" type="Block" end="1"/>
|
|
<field name="@block__otherareas_js__a" type="Block" start="1" label="SRC_JAVASCRIPT"/>
|
|
<field name="@note__other_enable_js" type="OnlyPro" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC"/>
|
|
<field name="@block__otherareas_js__b" type="Block" end="1"/>
|
|
<field name="@block__otherareas_php__a" type="Block" start="1" label="SRC_PHP"/>
|
|
<field name="@note__other_enable_php" type="OnlyPro" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC"/>
|
|
<field name="@block__otherareas_php__b" type="Block" end="1"/>
|
|
</fieldset>
|
|
<fieldset name="RL_SETTINGS_EDITOR_BUTTON">
|
|
<field name="button_text" type="Text" default="Code" label="RL_BUTTON_TEXT" description="RL_BUTTON_TEXT_DESC"/>
|
|
<field name="enable_frontend" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="RL_ENABLE_IN_FRONTEND" description="RL_ENABLE_IN_FRONTEND_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="color_code" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_COLOR_CODE" description="SRC_COLOR_CODE_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
</fieldset>
|
|
<fieldset name="RL_TAG_SYNTAX">
|
|
<field name="syntax_word" type="Text" size="20" default="source" label="SRC_SYNTAX_WORD" description="SRC_SYNTAX_WORD_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="@load_language_config" type="LoadLanguage" extension="com_config"/>
|
|
<field name="trim" type="Radio" default="0" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="RL_STRIP_SURROUNDING_TAGS" description="RL_STRIP_SURROUNDING_TAGS_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="enable_in_head" type="Radio" default="0" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_ENABLE_IN_HEAD" description="SRC_ENABLE_IN_HEAD_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="remove_from_search" type="Radio" default="0" class="btn-group rl-btn-group btn-group-md btn-group-yesno" label="SRC_REMOVE_FROM_SEARCH" description="SRC_REMOVE_FROM_SEARCH_DESC">
|
|
<option value="0">JNO</option>
|
|
<option value="1">JYES</option>
|
|
</field>
|
|
<field name="include_path" type="Text" default="/" label="SRC_INCLUDE_PATH" description="SRC_INCLUDE_PATH_DESC"/>
|
|
<field name="tmp_path" type="Text" default="" label="SRC_TEMP_PATH" description="SRC_TEMP_PATH_DESC" hint="JDEFAULT"/>
|
|
<field name="place_comments" type="Radio" default="1" class="btn-group rl-btn-group btn-group-md btn-group-yesno" 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>
|