Commit 85a1dbdf authored by pkdille's avatar pkdille

[MOD] lesser magic deployment to wysiwyg admin template

parent 699e2509
......@@ -2107,6 +2107,7 @@ lib/prefs/webmail.php -text
lib/prefs/wiki.php -text
lib/prefs/wikiplugin.php -text
lib/prefs/wikiplugininline.php -text
lib/prefs/wysiwyg.php -text
lib/prefslib.php -text
lib/profilelib/channellib.php -text
lib/profilelib/installlib.php -text
......
<?php
function prefs_wysiwyg_list() {
return array(
'wysiwyg_optional' => array(
'name' => tra('Wysiwyg Editor is optional'),
'type' => 'flag',
'dependencies' => array(
'feature_wysiwyg',
),
),
'wysiwyg_default' => array(
'name' => tra('... and is displayed by default'),
'type' => 'flag',
'dependencies' => array(
'feature_optional',
),
),
'wysiwyg_memo' => array(
'name' => tra('Reopen with the same editor'),
'type' => 'flag',
),
'wysiwyg_wiki_parsed' => array(
'name' => tra('Content is parsed like wiki page'),
'type' => 'flag',
),
'wysiwyg_wiki_semi_parsed' => array(
'name' => tra('Content is partially parsed'),
'type' => 'flag',
),
'wysiwyg_toolbar_skin' => array(
'name' => tra('Toolbar skin'),
'type' => 'list',
'options' => array(
'default' => tra('Default'),
'office2003' => tra('Office 2003'),
'silver' => tra('Silver'),
),
),
);
}
......@@ -5,50 +5,22 @@
<form action="tiki-admin.php?page=wysiwyg" method="post">
<div class="heading input_submit_container" style="text-align: right">
<input type="submit" name="wysiwygfeatures" value="{tr}Change preferences{/tr}" />
</div>
<fieldset class="admin">
<legend>{tr}Wysiwyg Editor Features{/tr}</legend>
{preference name=wysiwyg_optional}
<div class="adminoptionboxchild" id="wysiwyg_optional_childcontainer">
{preference name=wysiwyg_default}
</div>
<fieldset class="admin">
<legend>{tr}Wysiwyg Editor Features{/tr}</legend>
<table class="admin">
<tr>
<td class="form"><label for="wysiwyg_optional">{tr}Wysiwyg Editor is optional{/tr}:</label></td>
<td><input type="checkbox" name="wysiwyg_optional" id="wysiwyg_optional" {if $prefs.wysiwyg_optional eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td class="form"><label for="wysiwyg_default">{tr}... and is displayed by default{/tr}:</label></td>
<td><input type="checkbox" name="wysiwyg_default" id="wysiwyg_default" {if $prefs.wysiwyg_default eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td class="form"><label for="wysiwyg_memo">{tr}Reopen with the same editor{/tr}:</label></td>
<td><input type="checkbox" name="wysiwyg_memo" id="wysiwyg_memo" {if $prefs.wysiwyg_memo eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td class="form"><label for="wysiwyg_wiki_parsed">{tr}Content is parsed like wiki page{/tr}:</label></td>
<td><input type="checkbox" name="wysiwyg_wiki_parsed" id="wysiwyg_wiki_parsed" {if $prefs.wysiwyg_wiki_parsed eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td class="form"><label for="wysiwyg_wiki_semi_parsed">{tr}Content is partially parsed{/tr}:</label></td>
<td><input type="checkbox" name="wysiwyg_wiki_semi_parsed" id="wysiwyg_wiki_semi_parsed" {if $prefs.wysiwyg_wiki_semi_parsed eq 'y'}checked="checked"{/if} /></td>
</tr>
<tr>
<td class="form"><label for="wysiwyg_toolbar_skin">{tr}Toolbar skin{/tr}:</label></td>
<td>
<select name="wysiwyg_toolbar_skin" id="wysiwyg_toolbar_skin">
<option value="default" {if $prefs.wysiwyg_toolbar_skin eq 'default'}selected="selected"{/if}> default</option>
<option value="office2003" {if $prefs.wysiwyg_toolbar_skin eq 'office2003'}selected="selected"{/if}> office2003</option>
<option value="silver" {if $prefs.wysiwyg_toolbar_skin eq 'silver'}selected="selected"{/if}> silver</option>
</select>
</td>
</tr>
</table>
</fieldset>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="wysiwygfeatures" value="{tr}Change preferences{/tr}" />
</div>
</form>
{preference name=wysiwyg_memo}
{preference name=wysiwyg_wiki_parsed}
{preference name=wysiwyg_wiki_semi_parsed}
{preference name=wysiwyg_toolbar_skin}
</fieldset>
<div class="heading input_submit_container" style="text-align: center">
<input type="submit" name="wysiwygfeatures" value="{tr}Change preferences{/tr}" />
</div>
</form>
......@@ -3,7 +3,7 @@
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: /cvsroot/tikiwiki/tiki/tiki-admin_include_wysiwyg.php,v 1.1.2.3 2008-03-19 14:00:42 sylvieg Exp $
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
......@@ -11,16 +11,5 @@ if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
}
if (isset($_REQUEST["wysiwygfeatures"])) {
check_ticket('admin-inc-wysiwyg');
$pref_toggles = array(
"wysiwyg_optional",
"wysiwyg_default",
'wysiwyg_memo',
"wysiwyg_wiki_parsed",
"wysiwyg_wiki_semi_parsed",
);
foreach($pref_toggles as $toggle) {
simple_set_toggle($toggle);
}
simple_set_value('wysiwyg_toolbar_skin');
}
ask_ticket('admin-inc-wysiwyg');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment