diff --git a/e107_admin/footer.php b/e107_admin/footer.php
index dfa3029e4..c473f1fd7 100644
--- a/e107_admin/footer.php
+++ b/e107_admin/footer.php
@@ -280,7 +280,7 @@ if (isset($footer_js) && is_array($footer_js))
e107::getJs()->renderJs('footer', true);
// [JSManager] Load JS Footer inline code by priority
-e107::getJs()->renderJs('footer_inline', true);
+
//
// G final JS script keeps user and server time in sync.
@@ -298,11 +298,16 @@ if (abs($_serverTime - $lastSet) > 120)
* Benefit: account for user time corrections and changes in internet delays
* Drawback: each update may cause all server times to display a bit different
*/
- echo "\n";
+ // echo "\n";
}
+e107::getJs()->renderJs('footer_inline', true);
+
//
// H Final HTML
//
diff --git a/e107_admin/header.php b/e107_admin/header.php
index ea699e5af..3d8b6b19c 100644
--- a/e107_admin/header.php
+++ b/e107_admin/header.php
@@ -103,8 +103,9 @@ if(!defined('XHTML_FORCE'))
echo "\n";
echo "\n";
echo "
\n";
+ echo " \n";
}
-else
+else // XHTML
{
echo(defined("STANDARDS_MODE") ? "" : "\n")."\n";
echo "\n";
@@ -112,8 +113,9 @@ else
\n";
echo(defined("CORE_LC")) ? " \n" : "";
+ echo " \n";
}
-echo " \n";
+
echo "".(defined("e_PAGETITLE") ? e_PAGETITLE." - " : (defined("PAGE_NAME") ? PAGE_NAME." - " : "")).LAN_head_4." :: ".SITENAME." \n";
@@ -369,14 +371,19 @@ $body_onload = "";
* TODO - remove it from here
*/
require_once (e_HANDLER.'js_helper.php');
-
+/*
echo "
";
+*/
+e107::js('inline',"
+ (".e_jshelper::toString(LAN_JSCONFIRM).").addModLan('core', 'delete_confirm');
+ (".e_jshelper::toString(LAN_DELETE).").addModLan('core', 'delete');
+",'prototype',5);
// [JSManager] Load JS Includes - Zone 5 - After theme_head, before e107:loaded trigger
diff --git a/e107_admin/image.php b/e107_admin/image.php
index 2a2f432a1..8b22ccddd 100644
--- a/e107_admin/image.php
+++ b/e107_admin/image.php
@@ -418,9 +418,12 @@ class media_admin_ui extends e_admin_ui
$frm = e107::getForm();
$bbcodeMode = ($this->getQuery('bbcode')==1) ? 'bbcode=1' : FALSE;
+
+
+
$text = "
-
+
Choose from Library
Upload a File ";
@@ -862,7 +865,7 @@ class media_admin_ui extends e_admin_ui
".DBLAN_20."
-
+
diff --git a/e107_admin/includes/tabbed.php b/e107_admin/includes/tabbed.php
index c9e57d327..ea0625d9c 100644
--- a/e107_admin/includes/tabbed.php
+++ b/e107_admin/includes/tabbed.php
@@ -21,7 +21,7 @@ $emessage = &eMessage::getInstance();
$text = "
-
";
+ ";
foreach ($admin_cat['id'] as $cat_key => $cat_id)
{
diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php
index 65c49ebf5..95accca21 100644
--- a/e107_admin/newspost.php
+++ b/e107_admin/newspost.php
@@ -1377,7 +1377,7 @@ class admin_newspost
$text .= "
-
+
".LAN_NEWS_52."
SEO
".LAN_NEWS_53."
diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php
index b6f616ee3..ba7670b99 100644
--- a/e107_admin/prefs.php
+++ b/e107_admin/prefs.php
@@ -1114,7 +1114,13 @@ $text .= "
";
- $js_options = array('admin'=>'Admin Area','front'=>'Front-End','all'=>"Both", 'none'=> 'Disabled');
+ $js_options = array(
+ 'auto' => 'Auto (on-demand)', // load based on dependency
+ 'admin' => 'Admin Area', // Always load in admin
+ 'front' => 'Front-End', // Always load in front-end
+ 'all' => "Both", // Always load in admin and front-end
+ 'none' => 'Disabled' // disabled
+ );
//TODO FIXME - remove JS framework dependency from front-end and backend.
@@ -1125,7 +1131,7 @@ $text .= "
// with basic functions like SyncWithServerTime() and expandit(), externalLinks() etc.
//TODO Move paths into js_manager and store only keys like 'prototype-local', 'core-minimum' in prefs.
-
+ /*
$js_types = array(
array('name'=> 'Prototype (local)', 'path'=> 'prototype/prototype.js') ,
array('name'=> 'Scriptaculous (local)', 'path'=> 'scriptaculous/scriptaculous.js'),
@@ -1137,12 +1143,25 @@ $text .= "
array('name'=> 'e107 Core Minimum', 'path'=> 'e107.js'),
array('name'=> 'e107 Plugin Scripts (TO-DO)', 'path'=> ''), // all js that has been added by Plugins.
array('name'=> 'e107 Theme Scripts (TO-DO)', 'path'=> ''), // all js that has been added by Themes.
- );
+ );
+ */
+
+ // e107 minimum loaded by default once dependency is removed.
+
+ $js_types = array(
+ array('id' => 'prototype', 'name'=> 'Prototype (local)'),
+ array('id' => 'prototype-cdn', 'name'=> 'Prototype (CDN)'),
+ array('id' => 'jquery', 'name'=> 'jQuery (CDN)')
+ );
+
+
+
foreach($js_types as $arr)
{
- $k = $arr['path'];
+ // $k = $arr['path'];
+ $k = $arr['id'];
$name = $arr['name'];
$text .= "
".$name."
@@ -1154,7 +1173,7 @@ $text .= "