summaryrefslogtreecommitdiff
path: root/templates/admin_plugins.tpl
blob: b4007e13f446bf7f0f3c65cea225f0a4276b44bd (plain)
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
{strip}

<div class="floaticon">{bithelp}</div>

<div class="admin liberty">
	<div class="header">
		<h1>{tr}Admin Liberty Plugins{/tr}</h1>
	</div>

	<div class="body">
		{form legend="Liberty Plugins"}
			{formfeedback error=$errorMsg}
			{jstabs}
				{foreach from=$pluginTypes item=plugin_type key=plugin_type_label}
					{jstab title="$plugin_type_label"}
						{if $plugin_type eq 'format'}
							{formfeedback warning="If you disable a format, content pages using that format can no longer be edited."}
						{elseif $plugin_type eq 'data'}
							{formfeedback warning="Disabling plugins will also disable them in content pages, even if they are already in use."}
						{/if}

						<table class="panel">
							<caption>{tr}Plugin Type: {$plugin_type_label}{/tr}</caption>
							<tr>
								<th style="width:70%;">{tr}Plugin{/tr}</th>
								<th style="width:20%;">{tr}GUID{/tr}</th>
								{if $plugin_type eq 'format'}
									<th style="width:5%;">{tr}Default{/tr}</th>
								{/if}
								<th style="width:5%;">{tr}Active{/tr}</th>
							</tr>

							{foreach from=$gLibertySystem->mPlugins item=plugin key=guid}
								{if $plugin.plugin_type eq $plugin_type}
									<tr class="{cycle values="odd,even"}">
										<td>
											{if $plugin_type eq 'data'}
												<h3>{$plugin.title|escape}</h3>
											{/if}
											<label for="{$guid}">
												{$plugin.plugin_description}
											</label>
										</td>
										<td>{$guid}</td>
										{if $plugin_type eq 'format'}
											<td align="center">{if $plugin.is_active == 'y'}{html_radios values=$guid name="default_format" checked=$gBitSystem->getConfig('default_format')}{/if}</td>
										{/if}
										<td align="center">
											{if $plugin.is_active=='x'}
												Missing
											{else}
												{html_checkboxes name="PLUGINS[`$guid`]" values="y" checked=`$plugin.is_active` labels=false id=$guid}
											{/if}
										</td>
									</tr>
								{/if}
							{/foreach}
						</table>

						<br />

						{if $plugin_type eq 'format'}
							{formfeedback warning="{tr}This will change the way any wiki page that contains HTML will be displayed{/tr}"}
							<div class="row">
								{formlabel label="Allow HTML" for="allow_html"}
								{forminput}
									To allow use of HTML in any format, assign the <a href="{$smarty.const.USERS_PKG_PATH}admin/edit_group.php">p_liberty_enter_html permission</a>.
									{formhelp note="Allow the use of HTML in tikiwiki format content."}
								{/forminput}
							</div>
						{/if}
					{/jstab}
				{/foreach}
			{/jstabs}

			<div class="row submit">
				<input type="submit" name="pluginsave" value="{tr}Save Plugin Settings{/tr}" />
			</div>
		{/form}
	</div><!-- end .body -->
</div><!-- end .liberty -->

{/strip}