-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathaddon-TMS.xml
More file actions
251 lines (242 loc) · 20 KB
/
Copy pathaddon-TMS.xml
File metadata and controls
251 lines (242 loc) · 20 KB
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
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="TMS" title="Template Modification System" version_string="1.3.1" version_id="5" url="http://xenforo.com/community/resources/template-modification-system-tms.293/" install_callback_class="TMS_Install" install_callback_method="build" uninstall_callback_class="TMS_Install" uninstall_callback_method="destroy">
<admin_navigation/>
<admin_permissions/>
<admin_style_properties/>
<admin_templates>
<template title="tms_customized_modifications"><![CDATA[<xen:if is="{$modifications}">
<li>
<h3 class="textHeading"><a href="{xen:adminlink styles/template-modifications, $style}" class="concealed">{xen:phrase template_modifications}</a>
<label class="Tooltip checkAllColumn" title="{xen:phrase select_all_items_in_this_group}"><input type="checkbox" class="CheckAll" data-target="#CustomModifications" /></label></h3>
<ol id="CustomModifications">
<xen:foreach loop="$modifications" value="$modification">
<xen:listitem
id="modification{$modification.modification_id}"
label="{$modification.template_title} — {$modification.title}"
snippet="{xen:phrase customized_in_version, 'version={$modification.version_string}'}"
href="{xen:adminlink template-modifications/edit, $modification}"
delete="{xen:adminlink template-modifications/delete, $modification}"
deletehint="{xen:phrase delete_template_modification}...">
<xen:html><label class="secondaryContent"><input type="checkbox" name="modifications[]" value="{$modification.modification_id}" /></label></xen:html>
</xen:listitem>
</xen:foreach>
</ol>
</li>
</xen:if>]]></template>
<template title="tms_need_rebuild_notice"><![CDATA[<p class="importantMessage">
<a href="{xen:adminlink tms-mods}">{xen:phrase tms_there_modifications_that_may_be_not_applied_rebuild_templates_to_apply}</a>
</p>
]]></template>
<template title="tms_template_search_results"><![CDATA[<xen:form action="{xen:adminlink template-modifications/search}" class="section">
<h2 class="subHeading">
<xen:include template="filter_list_controls" />
{xen:phrase template_modifications}
</h2>
<ol class="FilterList Scrollable">
<xen:foreach loop="$modifications" value="$modification">
<li class="listItem primaryContent item_{$modification.template_state}" id="listItem_{$modification.modification_id}">
<xen:if is="{$modification.canDelete}">
<a href="{xen:adminlink 'template-modifications/delete', $modification, 'style_id={$style.style_id}'}" target="_blank" class="delete secondaryContent"><span>{xen:phrase delete_template_modification}...</span></a>
</xen:if>
<h4><a href="{xen:adminlink 'template-modifications/edit', $modification, 'style_id={$style.style_id}'}" target="_blank">
<em>{$modification.title}</em> <dfn>{$modification.addonTitle}</dfn>
</a></h4>
</li>
</xen:foreach>
</ol>
<p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $templates}</span>', 'total={xen:count $modifications}'}</p>
</xen:form>]]></template>
</admin_templates>
<admin_template_modifications>
<modification template="base_template_modification_list" modification_key="rebuild_link" description="rebuild link" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[</xen:topctrl>]]></find>
<replace><![CDATA[<xen:if is="{$prefix}=='template-modifications'">
<xen:form action="{xen:adminlink 'tools/trigger-deferred'}" style="display: inline;">
<input class="button primary" type="submit" accesskey="s" value="{xen:phrase tms_rebuild_templates}">
<input type="hidden" name="options[simple][1]" value="TemplateReparse" />
<input type="hidden" name="options[simple][2]" value="Template" />
<input type="hidden" name="cache" value="Atomic" />
</xen:form>
</xen:if>
</xen:topctrl>]]></replace>
</modification>
<modification template="base_template_modification_list" modification_key="tms_add_link" description="add link" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA['{$prefix}/add']]></find>
<replace><![CDATA['{$prefix}/add', '', 'style_id={$style.style_id}']]></replace>
</modification>
<modification template="style_customized_components" modification_key="tms_customized_mods" description="customized mods" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<xen:if is="{$properties}">]]></find>
<replace><![CDATA[<xen:include template="tms_customized_modifications"/>
<xen:if is="{$properties}">]]></replace>
</modification>
<modification template="template_modification_edit" modification_key="tms_edit_modification" description="breadcrumb" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[</xen:include>]]></find>
<replace><![CDATA[</xen:include>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink styles/template-modifications, $style}#{xen:helper listitemid, $modification.modification_id}">{$modification.template}</xen:breadcrumb>
</xen:navigation>]]></replace>
</modification>
<modification template="base_template_modification_edit" modification_key="tms_edit_style" description="style id" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<xen:submitunit save="{xen:phrase save_template_modification}">]]></find>
<replace><![CDATA[<input type="hidden" name="style_id" value="{$modification.style_id}" />
<xen:submitunit save="{xen:phrase save_template_modification}">]]></replace>
</modification>
<modification template="style_mass_revert" modification_key="tms_mass_revert" description="mods revert phrase" execution_order="10" enabled="1" action="preg_replace">
<find><![CDATA[#<p>.*</p>#su]]></find>
<replace><![CDATA[<p>{xen:phrase please_confirm_reversion_of_customized_components_from_style,
'numTemplates={xen:count $templates}',
'numModifications={xen:count $modifications}',
'numProperties={xen:count $properties}',
'style={$style.title}'}</p>
<xen:foreach loop="$modifications" value="$modificationId"><input type="hidden" name="modifications[]" value="{$modificationId}" /></xen:foreach>]]></replace>
</modification>
<modification template="style_list" modification_key="tms_master_style_mods_link" description="master style mods link" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<a href="{xen:adminlink 'styles/templates', $masterStyle}" class="secondaryContent">{xen:phrase templates}</a>]]></find>
<replace><![CDATA[<a href="{xen:adminlink 'styles/templates', $masterStyle}" class="secondaryContent">{xen:phrase templates}</a>
<a href="{xen:adminlink 'styles/template-modifications', $masterStyle}" class="secondaryContent">{xen:phrase template_modifications}</a>]]></replace>
</modification>
<modification template="base_template_modification_log" modification_key="tms_skip_status" description="skip status" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[{xen:phrase callback_failed}]]></find>
<replace><![CDATA[{xen:phrase callback_failed}
<xen:elseif is="{$log.status} == 'skipped_wrong_style'" />{xen:phrase tms_not_for_this_style}]]></replace>
</modification>
<modification template="template_modification_list" modification_key="tms_style_chooser" description="style chooser" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[</xen:title>]]></find>
<replace><![CDATA[</xen:title>
<div class="topChoosers">
<div class="Popup">
<span class="muted">{xen:phrase style}:</span> <a rel="Menu">{$style.title}</a>
<div class="Menu">
<div class="primaryContent menuHeader"><h3>{xen:phrase styles}</h3></div>
<ul class="secondaryContent blockLinksList">
<xen:if is="{$masterStyle}">
<li><a href="{xen:adminlink 'styles/template-modifications', $masterStyle}"><span class="_depth0">{$masterStyle.title}</span></a></li>
</xen:if>
<xen:foreach loop="$styles" value="$styleOption">
<li><a href="{xen:adminlink 'styles/template-modifications', $styleOption}"><span class="_depth{$styleOption.depth}">{$styleOption.title}</span></a></li>
</xen:foreach>
</ul>
</div>
</div>
</div>]]></replace>
</modification>
<modification template="style_list" modification_key="tms_style_mods_link" description="style mods link" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<a href="{xen:adminlink 'styles/templates', $style}" class="secondaryContent">{xen:phrase templates}</a>]]></find>
<replace><![CDATA[<a href="{xen:adminlink 'styles/templates', $style}" class="secondaryContent">{xen:phrase templates}</a>
<a href="{xen:adminlink 'styles/template-modifications', $style}" class="secondaryContent">{xen:phrase template_modifications}</a>]]></replace>
</modification>
<modification template="template_search_results" modification_key="tms_template_search_results_mods" description="search mods" execution_order="10" enabled="0" action="preg_replace">
<find><![CDATA[</xen:form>]]></find>
<replace><![CDATA[</xen:form>
<xen:include template="tms_template_search_results"/>]]></replace>
</modification>
</admin_template_modifications>
<code_events/>
<code_event_listeners>
<listener event_id="load_class_controller" execute_order="10" callback_class="TMS_Listener" callback_method="loadClassController" active="1" hint="" description=""/>
<listener event_id="load_class_datawriter" execute_order="10" callback_class="TMS_Listener" callback_method="loadClassDataWriter" active="1" hint="" description=""/>
<listener event_id="load_class_model" execute_order="10" callback_class="TMS_Listener" callback_method="loadClassModel" active="1" hint="" description=""/>
</code_event_listeners>
<cron/>
<email_templates/>
<email_template_modifications/>
<optiongroups>
<group group_id="TMS" display_order="1" debug_only="0"/>
<option option_id="tmsFullCompile" edit_format="onoff" data_type="boolean" can_backup="1">
<default_value>1</default_value>
<edit_format_params></edit_format_params>
<sub_options></sub_options>
<relation group_id="TMS" display_order="1"/>
</option>
<option option_id="tmsSafeRebuild" edit_format="onoff" data_type="boolean" can_backup="1">
<default_value>0</default_value>
<edit_format_params></edit_format_params>
<sub_options></sub_options>
<relation group_id="TMS" display_order="5"/>
</option>
</optiongroups>
<permissions>
<permission_groups/>
<permissions/>
<interface_groups/>
</permissions>
<phrases>
<phrase title="option_group_TMS" version_id="2" version_string="Beta 2"><![CDATA[Template Modification System]]></phrase>
<phrase title="option_group_TMS_description" version_id="2" version_string="Beta 2"><![CDATA[]]></phrase>
<phrase title="option_tmsFullCompile" version_id="2" version_string="Beta 2"><![CDATA[Compile templates on modification save and switch]]></phrase>
<phrase title="option_tmsFullCompile_explain" version_id="2" version_string="Beta 2"><![CDATA[This allows to see changes instantly but slows down saving modifications and switching addons.<br/>
Don't use it if you have timeouts when you save modifications.<br/>
If the option is disabled you need to rebuild templates to see changes.]]></phrase>
<phrase title="option_tmsSafeRebuild" version_id="2" version_string="Beta 2"><![CDATA[Careful Rebuild]]></phrase>
<phrase title="option_tmsSafeRebuild_explain" version_id="2" version_string="Beta 2"><![CDATA[Use it only if you have errors while rebuilding.<br/>
This will decrease amount of operations in one step of rebuilding.]]></phrase>
<phrase title="template_with_applied_modifications_not_editable" version_id="3" version_string="1.1.1"><![CDATA[Template with applied modifications (not editable)]]></phrase>
<phrase title="tms_applied_x_times" version_id="2" version_string="Beta 2"><![CDATA[Applied {count} times]]></phrase>
<phrase title="tms_compare_original_and_final_versions" version_id="0" version_string=""><![CDATA[Compare Original and Final Versions]]></phrase>
<phrase title="tms_complete" version_id="3" version_string="1.1.0"><![CDATA[Complete]]></phrase>
<phrase title="tms_confirm_deletion_of_modification" version_id="0" version_string=""><![CDATA[Confirm Deletion of Modification]]></phrase>
<phrase title="tms_confirm_reversion_of_modification" version_id="0" version_string=""><![CDATA[Confirm Reversion of Modification]]></phrase>
<phrase title="tms_create_modification" version_id="1" version_string="Beta 1"><![CDATA[Create new Template Modification]]></phrase>
<phrase title="tms_custom_modifications" version_id="1" version_string="Beta 1"><![CDATA[Custom Modifications]]></phrase>
<phrase title="tms_delete_modification" version_id="0" version_string=""><![CDATA[Delete Modification]]></phrase>
<phrase title="tms_diff" version_id="0" version_string=""><![CDATA[Diff]]></phrase>
<phrase title="tms_execution_order" version_id="0" version_string=""><![CDATA[Execution Order]]></phrase>
<phrase title="tms_exporting_style" version_id="3" version_string="1.1.0"><![CDATA[Exporting Style]]></phrase>
<phrase title="tms_export_final_modified_templates" version_id="3" version_string="1.1.0"><![CDATA[Export final (modified) templates. This loses info about modifications but works without TMS installed.]]></phrase>
<phrase title="tms_export_original_templates_and_all_modifications" version_id="3" version_string="1.1.0"><![CDATA[Export original templates and modifications. This keeps info about modifications but works only if TMS is installed.]]></phrase>
<phrase title="tms_export_style" version_id="3" version_string="1.1.0"><![CDATA[Export Style]]></phrase>
<phrase title="tms_export_type" version_id="3" version_string="1.1.0"><![CDATA[Export Type]]></phrase>
<phrase title="tms_final_template" version_id="3" version_string="1.1.1"><![CDATA[Final Template]]></phrase>
<phrase title="tms_if_final_template_not_valid_all_mods_ignored" version_id="3" version_string="1.0.2"><![CDATA[If final template is not valid all it's modifications are ignored. Check <a href="{link}">Server Error Log</a>.]]></phrase>
<phrase title="tms_independent" version_id="3" version_string="1.1.0"><![CDATA[TMS-independent]]></phrase>
<phrase title="tms_modification" version_id="0" version_string=""><![CDATA[Modification]]></phrase>
<phrase title="tms_modifications" version_id="1" version_string="Beta 1"><![CDATA[Template Modifications]]></phrase>
<phrase title="tms_modification_callback_explanation_html" version_id="3" version_string="1.1.1"><![CDATA[You may optionally specify a PHP callback here in order to make complicated modifications.<br /><br />
Callback signature:
<blockquote><code>&$templateText, &$applyCount, $styleId</code></blockquote>
Callback arguments:
<ol>
<li><code>string &$templateText</code><br />The template text. Designed to be modified.</li>
<li><code>integer &$applyCount</code><br />The number of applied changes. Using it you can ensure that modification applied correctly.</li>
<li><code>integer $styleId</code><br />ID of the style for which template is being compiled.</li>
</ol>
]]></phrase>
<phrase title="tms_modification_editor" version_id="0" version_string=""><![CDATA[Edit Modification]]></phrase>
<phrase title="tms_modification_title" version_id="0" version_string=""><![CDATA[Modification Title]]></phrase>
<phrase title="tms_modification_titles_must_be_unique" version_id="1" version_string="Beta 1"><![CDATA[Modification titles must be unique. The specified title is already in use.]]></phrase>
<phrase title="tms_modification_type" version_id="2" version_string="Beta 2"><![CDATA[Modification Type]]></phrase>
<phrase title="tms_not_for_this_style" version_id="3" version_string="1.2.2"><![CDATA[Not for this style]]></phrase>
<phrase title="tms_no_differences_found" version_id="0" version_string=""><![CDATA[No differences found.]]></phrase>
<phrase title="tms_original_template" version_id="3" version_string="1.1.1"><![CDATA[Original Template]]></phrase>
<phrase title="tms_please_confirm_reversion_of_customized_components_from_style" version_id="3" version_string="Release Candidate 1.0.1"><![CDATA[Please confirm that you want to revert {numTemplates} templates, {numModifications} template modifications and {numProperties} style properties from the style <em>{style}</em> to their default values.]]></phrase>
<phrase title="tms_please_confirm_that_you_want_to_delete_following_modification" version_id="0" version_string=""><![CDATA[Please confirm that you want to delete the following modification]]></phrase>
<phrase title="tms_please_confirm_that_you_want_to_revert_the_following_modification" version_id="0" version_string=""><![CDATA[Please confirm that you want to revert the customizations made in the style <em>{style}</em> to the following modification]]></phrase>
<phrase title="tms_please_enter_title_using_only_alphanumeric_dot_space" version_id="2" version_string="Beta 2"><![CDATA[Please enter a title using only a-z, A-Z, 0-9, _ and . characters and spaces.]]></phrase>
<phrase title="tms_please_enter_valid_search_pattern" version_id="2" version_string="Beta 2"><![CDATA[Please enter valid search pattern]]></phrase>
<phrase title="tms_please_enter_valid_search_string" version_id="1" version_string="Beta 1"><![CDATA[Please enter valid search string.]]></phrase>
<phrase title="tms_preg_replace" version_id="2" version_string="Beta 2"><![CDATA[Preg Replace]]></phrase>
<phrase title="tms_rebuild_needed" version_id="2" version_string="Beta 2"><![CDATA[Rebuild Needed]]></phrase>
<phrase title="tms_rebuild_templates" version_id="3" version_string="1.0.2"><![CDATA[Rebuild Templates]]></phrase>
<phrase title="tms_replace_value" version_id="1" version_string="Beta 1"><![CDATA[Replace]]></phrase>
<phrase title="tms_requested_modification_not_found" version_id="1" version_string="Beta 1"><![CDATA[The requested template modification could not be found.]]></phrase>
<phrase title="tms_requires_minimum_xenforo_version" version_id="1" version_string="Beta 1"><![CDATA[Minimum XenForo version required: {version}]]></phrase>
<phrase title="tms_revert_customizations_to_this_modification" version_id="1" version_string="Beta 1"><![CDATA[Revert the customizations to this template modification]]></phrase>
<phrase title="tms_revert_modification" version_id="0" version_string=""><![CDATA[Revert Modification]]></phrase>
<phrase title="tms_save_and_check" version_id="3" version_string="1.0.2"><![CDATA[Save and Check]]></phrase>
<phrase title="tms_search_value" version_id="1" version_string="Beta 1"><![CDATA[Search]]></phrase>
<phrase title="tms_str_replace" version_id="2" version_string="Beta 2"><![CDATA[String Replace]]></phrase>
<phrase title="tms_style_contains_no_customized_templates_or_modifications_or_properties" version_id="3" version_string="Release Candidate 1.0.1"><![CDATA[This style contains no customized templates or template modifications or style properties.]]></phrase>
<phrase title="tms_template_final" version_id="3" version_string="1.1.1"><![CDATA[Final Template]]></phrase>
<phrase title="tms_test_compilation" version_id="0" version_string=""><![CDATA[Test Compilation]]></phrase>
<phrase title="tms_there_modifications_that_may_be_not_applied_rebuild_templates_to_apply" version_id="2" version_string="Beta 2"><![CDATA[There are modifications that may be not applied. Rebuild templates to apply them.]]></phrase>
<phrase title="tms_this_modification_can_not_be_modified" version_id="1" version_string="Beta 1"><![CDATA[This template modification can not be modified.]]></phrase>
<phrase title="tms_this_preview_all_changes_will_be_applied_after_rebuilding_templates" version_id="2" version_string="Beta 2"><![CDATA[This is preview. All changes will be applied after rebuilding templates.]]></phrase>
<phrase title="tms_tools" version_id="0" version_string=""><![CDATA[Template Modification System]]></phrase>
</phrases>
<route_prefixes/>
<style_properties/>
<templates/>
<public_template_modifications/>
<bb_code_media_sites/>
<bb_codes/>
</addon>