From a732baeaf834d5ce23ac542b1e00b3d5c01a59ba Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Wed, 2 May 2012 21:09:17 +0000 Subject: [PATCH] JS Framework options added - for testing purposes only at this stage. --- e107_admin/prefs.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index afdfca3bb..4fc6ac3ae 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -1101,6 +1101,43 @@ $text .= " ".pref_submit('comments')." "; + +// Javascripts +//TODO LANS +$text .= " +
+ Javascript Frameworks (for testing purposes only) + + + + + + "; + + $js_options = array('admin'=>'Admin Area','front'=>'Front-End','all'=>"Both"); + + + $js_types = array( + 'prototype/prototype.js' , + 'scriptaculous/scriptaculous.js', + 'scriptaculous/effects.js', + 'e107.js.php' + ); + + foreach($js_types as $k) + { + $text .= " + + + "; + } + + $text .= " +
".$k."".$frm->radio_multi("e_jslib_core[{$k}]",$js_options,$pref['e_jslib_core'][$k])."
+ ".pref_submit('javascript')." +
"; + + //Advanced Features $text .= " @@ -1218,6 +1255,7 @@ function prefs_adminmenu() $var['core-prefs-textpost']['text'] = PRFLAN_101; $var['core-prefs-security']['text'] = PRFLAN_47; $var['core-prefs-comments']['text'] = PRFLAN_210; + $var['core-prefs-javascript']['text'] = "Javascript Framework"; // TODO LAN $var['core-prefs-advanced']['text'] = PRFLAN_149; e_admin_menu(LAN_OPTIONS.'--id--prev_nav', 'core-prefs-main', $var); }