-
Notifications
You must be signed in to change notification settings - Fork 2
/
globalvariables.xml
271 lines (264 loc) · 17.9 KB
/
globalvariables.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.4" type="plugin" group="content" method="upgrade">
<name>Content - Global Variables</name>
<author>Lars Echterhoff</author>
<creationDate>May 2015</creationDate>
<copyright>Copyright (C) 2015 Lars Echterhoff</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.echterhoff.it</authorUrl>
<version>3.4.1.4</version>
<description>
<![CDATA[
<p><span style="color:red;font-weight:bold;">In order to properly configure this plugin it is absolutly mandatory to have it activated.</span><br>
If you just installed this plugin, it should have been activated automatically.<br>
Please check your installation at the plugin page if this plugin has been properly activated: <a href="/administrator/index.php?option=com_plugins&view=plugins&filter_search=Global%20Variables">Click here</a></p>
<p>This plugin gives you the possibility to define often reused text fragments and reuse it in every content as variable.<p/>
<p>Further information on: <a href="https://github.com/echterhoff/plg-globalvariables" target="_new"><span class="icon icon-out-2"></span> https://github.com/echterhoff/plg-globalvariables</a></p>
]]>
</description>
<scriptfile>globalvariables.scriptfile.php</scriptfile>
<!-- <p><a href="#attrib-sources" data-toggle="tab" class="btn btn-large btn-success"><span class="icon icon-puzzle large"></span> Configure Sources</a></p>
<p><a href="#attrib-settings" data-toggle="tab" class="btn btn-large"><span class="icon icon-options large"></span> Variable Settings</a></p>-->
<files>
<filename>index.html</filename>
<filename plugin="globalvariables">globalvariables.php</filename>
<folder>language</folder>
<folder>form</folder>
<folder>css</folder>
<folder>sample-sources</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/en-GB.plg_content_globalvariables.ini</language>
<language tag="en-GB">language/en-GB/en-GB.plg_content_globalvariables.sys.ini</language>
</languages>
<config>
<fields name="params"
class="controls controls-row"
>
<fieldset
addfieldpath="/plugin/content/globalvariables/form/fields"
name="sources"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_TAB"
>
<field
name="note_variable_source"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_NOTE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_NOTE_DESC"
/>
<!-- <field
name="variablesource2"
type="menuitem"
class="span5"
default="0"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_LABEL"/>-->
<!--field
name="variablesource"
type="sql"
class="span5"
default="0"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_LABEL"
query="SELECT id, title as variablesource FROM #__content WHERE state = 0 or state = 1 ORDER BY title"
key_field="id">
<option value="0">JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_DEFAULT_LABEL</option>
</field-->
<!-- <field
name="note_bug_in_repeatable"
type="note"
class="span6 alert alert-error"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_BUG_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_BUG_DESC"
/>-->
<field name="direct_variable_input"
type="Repeatable"
icon="pencil"
filter="raw"
maximum="999"
select="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_BUTTON_LABEL"
label="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_TITLE"
description="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_INFO"
>
<fields name="params">
<fieldset hidden="true"
name="direct_variable_input_modal"
repeat="true">
<field name="varname"
label="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_VARNAME_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_VARNAME_DESC"
size="30"
type="text" />
<field name="varvalue"
label="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_VARVALUE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_DIRECT_VARIABLE_INPUT_VARVALUE_DESC"
size="1024"
filter="raw"
type="textarea" />
</fieldset>
</fields>
</field>
<!--default='{"sourcedefault":"0","sourceactive":["0"],"sourcealias":["dropbox"],"sourceurl":["https://dl.dropboxusercontent.com/u/134085/globalvariables/testvariables.txt"]}'-->
<field name="sourceconfiguration"
type="Repeatable"
icon="pencil"
maximum="999"
select="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_BUTTON_LABEL"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_TITLE"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_INFO"
default='{"sourceactive":["1"],"sourcedefault":["1"],"sourcealias":[""],"variablesource":["0"],"sourceurl":[""],"sourcerevisit":["0"]}'>
<fields name="params">
<fieldset hidden="true"
name="sourceconfiguration_modal"
repeat="true">
<field name="sourceactive"
type="checkbox"
value="1"
class="enable-switch"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_DESC">
</field>
<field name="sourcedefault"
type="radio"
default="0"
class="selection-hides-sourcealias"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEDEFAULT_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEDEFAULT_DESC">
<option value="1"></option>
</field>
<!--field name="sourceactive" type="list"
default="1"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_DESC">
<option value="1">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_ENABLED_LABEL</option>
<option value="0">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEACTIVE_DISABLED_LABEL</option>
</field-->
<field name="sourcealias"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEALIAS_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEALIAS_DESC"
size="30"
type="text" />
<field
name="variablesource"
type="sql"
width="200"
default="0"
class="selection-hides-sourceurl selection-hides-sourcerevisit"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCETYPE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCETYPE_DESC"
query="SELECT id, title as variablesource FROM #__content WHERE state = 0 or state = 1 ORDER BY title"
key_field="id">
<option value="0">JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SOURCE_DEFAULT_LABEL</option>
</field>
<field name="sourceurl"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEURL_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEURL_DESC"
size="1024"
type="text" />
<field name="sourcerevisit"
label="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_DESC"
type="list">
<option value="0">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_TIME</option>
<option value="1">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_1_MINUTES</option>
<option value="5">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_5_MINUTES</option>
<option value="10">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_10_MINUTES</option>
<option value="15">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_15_MINUTES</option>
<option value="30">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_30_MINUTES</option>
<option value="60">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_60_MINUTES</option>
<option value="120">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_120_MINUTES</option>
<option value="240">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_240_MINUTES</option>
<option value="360">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_6_HOURS</option>
<option value="720">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_12_HOURS</option>
<option value="1440">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_24_HOURS</option>
<option value="4320">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_3_DAYS</option>
<option value="7200">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_5_DAYS</option>
<option value="10080">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_7_DAYS</option>
<option value="20160">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_14_DAYS</option>
<option value="43200">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_30_DAYS</option>
<option value="129600">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_3_MONTHS</option>
<option value="259200">JFIELD_PLG_GLOBALVARIABLES_SOURCECONFIGURATION_SOURCEREVISIT_EVERY_6_MONTHS</option>
</field>
</fieldset>
</fields>
</field>
</fieldset>
<fieldset name="variable_setting" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SETTINGS_TAB">
<field
name="note_variable_source"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SETTINGS_NOTE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_SETTINGS_NOTE_DESC"
/>
<field
name="note_variable_source_style"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_DESC"
/>
<!-- <field name="variable_style_legacy"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_LEGACY"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_LEGACY_DESC" value="legacy" />-->
<field name="variable_style_curly" default="1"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_CURLY"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_CURLY_DESC" value="curly" />
<!-- <field name="variable_style_varescaped" default="1"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_VARESCAPED"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_VARESCAPED_DESC" value="varescaped" />-->
<field name="variable_style_doublecurly" default="1"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_DOUBLECURLY"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_STYLE_OPTION_DOUBLECURLY_DESC" value="doublecurly" />
<field
name="note_variable_caching_behavior_headline"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_CACHING_BEHAVIOR_LABEL"
/>
<field name="variable_caching" default="0"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_CACHING_OVERRIDE_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_CACHING_OVERRIDE_DESC" value="1" />
<field
name="note_variable_replace_behavior_headline"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_BEHAVIOR_LABEL"
/>
<field name="replace_variables_iteration_limit" default="5000"
max="100000"
min="1000"
type="number" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_ITERATION_LIMIT_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_ITERATION_LIMIT_DESC" />
<field name="replace_same_variable_max" default="200"
max="2000"
min="10"
type="number" label="JFIELD_PLG_GLOBALVARIABLES_REPLACE_SAME_VARIABLE_MAX_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_REPLACE_SAME_VARIABLE_MAX_DESC" />
<field
name="note_variable_replace_behavior" class="span6 alert alert-error"
type="note"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_BEHAVIOR_DESC"
/>
<field name="replace_undefined_variables" default="0"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_UNDEFINED_VARIABLES_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_UNDEFINED_VARIABLES_DESC" value="1" />
<field
name="note_variable_replace_debug_headline"
type="note"
class="span6"
label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_DEBUG_HEADLINE"
/>
<field name="highlight_variables_debug" default="0"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_HIGHLIGHT_DEBUG_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_HIGHLIGHT_DEBUG_DESC" value="1" />
<field name="replace_variables_debug" default="0"
type="checkbox" label="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_DEBUG_LABEL"
description="JFIELD_PLG_GLOBALVARIABLES_VARIABLE_REPLACE_DEBUG_DESC" value="1" />
</fieldset>
</fields>
</config>
<updateservers>
<server type="extension" name="globalvariables" priority="1">https://raw.githubusercontent.com/echterhoff/plg-globalvariables/master/globalvariables_update.xml</server>
</updateservers>
</extension>