blob: 3e78b3c67a1540cbb479313d1d3598dbd32bd3d2 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
{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}
{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 'storage'}
{formfeedback warning="These plugins have been replaced by the mime plugins. We are working on removing these."}
{elseif $plugin_type eq 'data'}
{formfeedback warning="Disabling plugins will also disable them in content pages, even if they are already in use."}
{/if}
<dl class="container-fluid">
{foreach from=$gLibertySystem->mPlugins item=plugin key=guid}
{if $plugin.plugin_type eq $plugin_type}
<dt>
<div class="pull-right actionicon">
{if !empty( $plugin.help_page )}
{jspopup href="https://www.bitweaver.org/wiki/`$plugin.help_page`" ibiticon="icons/dialog-information" title=$plugin.help_page class="external"}
{/if}
{if !empty( $plugin.plugin_settings_url )}
<a href="{$plugin.plugin_settings_url}">{biticon ipackage="icons" iname="edit" iexplain="Plugin Settings"}</a>
{/if}
</div>
<div class="checkbox" for="{$guid}"><label><strong>
{if $plugin.is_active == 'x'}
[Missing]
{elseif $plugin.plugin_type == 'mime' && $guid == $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER}
<input type="checkbox" checked value="y" disabled>
<input type="hidden" name="PLUGINS[{$guid}][]" checked id="{$guid}" value="y">
{else}
<input type="checkbox" name="PLUGINS[{$guid}][]" value="y" {if $plugin.is_active=='y'}checked{/if} id="{$guid}">
{/if}
{if !empty($plugin.edit_label)}{$plugin.edit_label}{else}{$plugin.title|escape}{/if} <small>[{$guid}]</small>
</strong><label></div>
</dt>
<dd>
{if $plugin_type eq 'format'}
<div class="inline-block radio">
{if $plugin.is_active == 'y'}<label><input type="radio" value="{$guid}" name="default_format" {if $gBitSystem->getConfig('default_format')==$guid}checked{/if}> <em class="small">{tr}Default{/tr}</em></label>{/if}
</div>
{/if}
{if $plugin.plugin_type == 'mime' && $guid == $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER}<strong>{tr}DEFAULT{/tr}</strong>{/if} {$plugin.description}
{if !empty($plugin.requirements.output)}
{formfeedback hash=$plugin.requirements.output}
{/if}
</dd>
{/if}
{/foreach}
{if $plugin_type eq 'format'}
{formfeedback warning="{tr}This will change the way any wiki page that contains HTML will be displayed. We recommend turning on HTMLPurifier if either of these is on.{/tr}"}
<div class="form-group">
{formlabel label="Allow HTML" for="allow_html"}
{forminput}
<input type="checkbox" name="content_allow_html" id="allow_html" value="y" {if $gBitSystem->isFeatureActive('content_allow_html')}checked="checked"{/if} />
This will render HTML in all content pages if it is present. This is a security risk to allow HTML entry by untrusted users, but is usually required for existing installations. For a more controlled environment, assign the <a href="{$smarty.const.USERS_PKG_URL}admin/edit_role.php">p_liberty_enter_html permission</a>.
{formhelp note="Allow the use of HTML in tikiwiki format content."}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Force Allow HTML" for="force_allow_html"}
{forminput}
<input type="checkbox" name="content_force_allow_html" id="force_allow_html" value="y" {if $gBitSystem->isFeatureActive('content_force_allow_html')}checked="checked"{/if} />
This will force HTML to be allowed for all users in tikiwiki format content. We require this on if you are using CKEditor and recommended it with any other WYSIWYG editor.
{formhelp note="This will force the allowance of HTML in tikiwiki format content for all users."}
{/forminput}
</div>
{/if}
{/jstab}
{/foreach}
{/jstabs}
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="pluginsave" value="{tr}Save Plugin Settings{/tr}" />
</div>
<div class="form-group">
{formlabel label="Reset all plugin settings" for=""}
{forminput}
<input type="submit" class="btn btn-default" name="reset_all_plugins" value="{tr}Reset Plugins{/tr}" />
{formhelp note="This will remove all plugin settings from the database and reset them to the default values. This can be useful if some plugins don't seem to work or you simply want to reset all values on this page."}
{/forminput}
</div>
{/form}
</div><!-- end .body -->
</div><!-- end .liberty -->
{/strip}
|