Remove Advanced-JS option

This commit is contained in:
onli 2013-06-23 20:10:55 +02:00
parent ae2ff8a3b2
commit 9a989dddb3
6 changed files with 8 additions and 33 deletions

View File

@ -18,12 +18,6 @@ switch ($serendipity['GET']['adminAction']) {
case 'imgedit':
$data['case_imgedit'] = true;
if (!isset($serendipity['eyecandy']) || serendipity_db_bool($serendipity['eyecandy'])) {
// what??
} else {
return true;
}
include_once(S9Y_INCLUDE_PATH . "include/functions_images_crop.inc.php");
$media['is_imgedit'] = true;
$media['css_imgedit'] = serendipity_getTemplateFile('admin/imgedit.css');

View File

@ -381,12 +381,8 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
$data['save'] = true;
$data['timestamp'] = serendipity_strftime('%H:%M:%S');
}
if (!isset($serendipity['eyecandy']) || serendipity_db_bool($serendipity['eyecandy'])) {
$data['eyecandy'] = true;
}
serendipity_plugin_api::hook_event("backend_pluginlisting_header" ,$eyecandy);
serendipity_plugin_api::hook_event("backend_pluginlisting_header", $null);
ob_start();
serendipity_plugin_api::hook_event('backend_plugins_sidebar_header', $serendipity);

View File

@ -90,14 +90,11 @@ function show_plugins($event_only = false, $sidebars = null)
}
}
$eyecandy = !isset($serendipity['eyecandy']) || serendipity_db_bool($serendipity['eyecandy']);
$data['event_only'] = $event_only;
$data['eyecandy'] = $eyecandy;
if (!$eyecandy) {
$data['eyecandy'] = false;
} elseif (!$event_only) {
if (!$event_only) {
$data['event_only'] = false;
$data['is_first'] = $is_first = true;
$data['is_first'] = true;
}
$data['serendipity_setFormToken'] = serendipity_setFormToken();

View File

@ -77,14 +77,6 @@
'permission' => 'personalConfiguration',
'flags' => array('config')),
array('var' => 'eyecandy',
'title' => PREFERENCE_USE_JS,
'description' => PREFERENCE_USE_JS_DESC,
'type' => 'bool',
'default' => true,
'permission' => 'personalConfiguration',
'flags' => array('config')),
array('var' => 'mail_comments',
'title' => USERCONF_SENDCOMMENTS,
'description' => USERCONF_SENDCOMMENTS_DESC,

View File

@ -117,11 +117,9 @@
<span class="msg_success"><span class="icon-ok-circled"></span> {$CONST.DONE}:{$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"}</span>
{/if}
<h2>{$CONST.BELOW_IS_A_LIST_OF_INSTALLED_PLUGINS}</h2>
{if $eyecandy}
<script src="{serendipity_getFile file="admin/js/jquery.autoscroll.js"}"></script>
<script src="{serendipity_getFile file="admin/js/jquery.sortable.js"}"></script>
<script src="{serendipity_getFile file="admin/js/dragdrop.js"}"></script>
{/if}
<section id="pluginlist_sidebar">
<h3>{$CONST.SIDEBAR_PLUGINS}</h3>

View File

@ -1,9 +1,7 @@
{* functions_plugins_admin.inc.php::function_show_plugins() including output of functions_plugins_admin.inc.php::function ownership() *}
{if !$eyecandy}
<form action="?serendipity[adminModule]=plugins" method="post">
{elseif !$event_only}
{if !$event_only}
<form action="?serendipity[adminModule]=plugins" method="post">
<input id="order" name="serendipity[pluginorder]" type="hidden" value="">
{else}
@ -65,7 +63,7 @@
{/if}
</li>
{($eyecandy) ? '<noscript>' : ''}
<noscript>
<li class="pluginmanager_place">
<select name="serendipity[placement][{$plugin_data['name']}]">
{foreach $plugin_data.gopts as $k => $v}
@ -93,7 +91,7 @@
</a>
{/if}
</li>
{($eyecandy) ? '</noscript>' : ''}
</noscript>
</ul>
</li>
{/foreach}