removed JavaScript, StyleSheet, and RawHeadTags macros
This commit is contained in:
parent
722a214f80
commit
11385d7957
14 changed files with 28 additions and 277 deletions
|
|
@ -65,6 +65,9 @@
|
|||
otherwise be slow or complex pages. More details in migration.txt. The
|
||||
amount of the increase depends upon the complexity of the page, but now
|
||||
complex pages should render almost as fast as simple pages.
|
||||
- Removed the JavaScript, RawHeadTags, and StyleSheet macros in favor of
|
||||
adding a Head Block parameter to templates. This was needed in order to
|
||||
implement content chunking.
|
||||
- The SMTP mail backend has been replaced with a new API that's capable of
|
||||
sending attachments, HTML messages, and more. This will introduce many new
|
||||
options for developers.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
#PBtmpl0000000000000001
|
||||
|
||||
^StyleSheet(^Extras;adminConsole/adminConsole.css);
|
||||
^JavaScript(^Extras;adminConsole/adminConsole.js);
|
||||
|
||||
<div id="application_title">
|
||||
<tmpl_var application.title>
|
||||
|
|
@ -65,3 +63,8 @@
|
|||
<script type="text/javascript" defer="defer">
|
||||
initAdminConsole(<tmpl_if application.title>true<tmpl_else>false</tmpl_if>,<tmpl_if submenu_loop>true<tmpl_else>false</tmpl_if>);
|
||||
</script>
|
||||
|
||||
~~~
|
||||
<link href="^Extras;adminConsole/adminConsole.css" type="text/css" />
|
||||
<script src="^Extras;adminConsole/adminConsole.js" type="text/javascript"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
</tmpl_if>
|
||||
|
||||
|
||||
^JavaScript("<tmpl_var session.config.extrasURL>/coolmenus/coolmenus4.js");
|
||||
<script type="text/javascript">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
|
|
@ -227,4 +226,6 @@ coolmenu.construct();
|
|||
layer-background-color: #006699;
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
<script src="^Extras;/coolmenus/coolmenus4.js" type="text/javascript"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
<p><tmpl_var description></p>
|
||||
</tmpl_if>
|
||||
|
||||
^StyleSheet("<tmpl_var session.config.extrasURL>/Navigation/dtree/dtree.css");
|
||||
^JavaScript("<tmpl_var session.config.extrasURL>/Navigation/dtree/dtree.js");
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<tmpl_var controls>
|
||||
|
|
@ -18,7 +16,7 @@
|
|||
<script type="text/javascript">
|
||||
<!--
|
||||
// Path to dtree directory
|
||||
_dtree_url = "<tmpl_var session.config.extrasURL>/Navigation/dtree/";
|
||||
_dtree_url = "^Extras;/Navigation/dtree/";
|
||||
|
||||
d = new dTree('d');
|
||||
<tmpl_loop page_loop>
|
||||
|
|
@ -35,3 +33,7 @@
|
|||
//-->
|
||||
</script>
|
||||
</div>
|
||||
~~~
|
||||
<link href="^Extras;/Navigation/dtree/dtree.css" type="text/css" />
|
||||
<script src="^Extras;/Navigation/dtree/dtree.js" type="text/javascript"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -592,6 +592,9 @@ sub updateDatabaseLinksAndSQLReport {
|
|||
#-------------------------------------------------
|
||||
sub updateTemplates {
|
||||
print "\tUpdating base templates for XHTML compliance, and a cleaner look.\n" unless ($quiet);
|
||||
$session->config->deleteFromHash("macros","JavaScript");
|
||||
$session->config->deleteFromHash("macros","RawHeadTags");
|
||||
$session->config->deleteFromHash("macros","StyleSheet");
|
||||
$session->db->write("alter table template add column headBlock text");
|
||||
my $template = WebGUI::Asset->new($session, "PBtmpl0000000000000003", "WebGUI::Asset::Template");
|
||||
if (defined $template) {
|
||||
|
|
@ -841,6 +844,15 @@ sub templateParsers {
|
|||
#-------------------------------------------------
|
||||
sub removeFiles {
|
||||
print "\tRemoving old unneeded files.\n" unless ($quiet);
|
||||
unlink '../../lib/WebGUI/Help/Macro_StyleSheet.pm';
|
||||
unlink '../../lib/WebGUI/Help/Macro_JavaScript.pm';
|
||||
unlink '../../lib/WebGUI/Help/Macro_RawHeadTags.pm';
|
||||
unlink '../../lib/WebGUI/i18n/English/Macro_StyleSheet.pm';
|
||||
unlink '../../lib/WebGUI/i18n/English/Macro_JavaScript.pm';
|
||||
unlink '../../lib/WebGUI/i18n/English/Macro_RawHeadTags.pm';
|
||||
unlink '../../lib/WebGUI/Macro/StyleSheet.pm';
|
||||
unlink '../../lib/WebGUI/Macro/JavaScript.pm';
|
||||
unlink '../../lib/WebGUI/Macro/RawHeadTags.pm';
|
||||
unlink '../../lib/WebGUI/MessageLog.pm';
|
||||
unlink '../../lib/WebGUI/Operation/MessageLog.pm';
|
||||
unlink '../../lib/WebGUI/ErrorHandler.pm';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue