From f13e67adb05fc760b6d7cf2256d32f2c8cb078c7 Mon Sep 17 00:00:00 2001 From: Wouter van Oijen Date: Wed, 21 Sep 2005 22:45:33 +0000 Subject: [PATCH] Fixed some templates for XHTML compliance. --- docs/upgrades/upgrade_6.7.4-6.7.5.pl | 921 ++++++++++++++++++++++++++- 1 file changed, 919 insertions(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_6.7.4-6.7.5.pl b/docs/upgrades/upgrade_6.7.4-6.7.5.pl index 7243dcfd6..973a14bc0 100644 --- a/docs/upgrades/upgrade_6.7.4-6.7.5.pl +++ b/docs/upgrades/upgrade_6.7.4-6.7.5.pl @@ -13,6 +13,8 @@ my $quiet; start(); fixSurveyAnswerDefinition(); +#fixTemplates(); +#fixArticles(); fixTemplatesExtras(); finish(); @@ -24,6 +26,923 @@ sub fixSurveyAnswerDefinition { WebGUI::SQL->write("alter table Survey_answer change gotoQuestion gotoQuestion varchar(22) binary"); } +#------------------------------------------------- +sub fixTemplates { + print "\tFixing templates...\n" unless ($quiet); + + # AdminConsole > Admin Console + my $template = < + + +
+ +
+
+
+   +
+ + +
+ <tmpl_var title>
+ +
+
+
+
+   +
+
+
+
+
+
+
+
+
+
+
+
+ + >
+
+
+
+
+ ^AdminToggle;
+ ^LoginToggle;
+
+
+
+ +
+
+ + ? + +
+
+ <tmpl_var application.title> +
+
+* +
+
+ <tmpl_var console.title> +
+ +END + WebGUI::Asset->new("PBtmpl0000000000000001","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # Article > Default Article + my $template = < + +

+
+ +

+
+ + + +
+ <tmpl_var image.url> + + + + + + + + + + +

+ + + + + + + + +· + +· + + + + + +

+
+
+ + + +

+ + + + + +
()
+ + +END + WebGUI::Asset->new("PBtmpl0000000000000002","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # Layout > Default Page + my $template = < + + +

+
+ + +

+
+ + +

+
+ +
+ + + + + + + + + + + +
+ + +
+ + +
+
+
+ + +
+ +
+END + WebGUI::Asset->new("PBtmpl0000000000000054","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # Macro/AdminBar > DHTML Admin Bar + $template = < +// + panel.addLink("","",""); + + slider.addPanel(panel); + + panel = new createPanel("clipboard","Clipboard"); + + panel.addLink("","",""); + + slider.addPanel(panel); + + panel = new createPanel("packages","Packages"); + + panel.addLink("","",""); + + slider.addPanel(panel); + + panel = new createPanel("assets","New Content"); + + panel.addLink("","",""); + + panel.addLink("^Extras;/spacer.gif","
",""); + + + panel.addLink("","",""); + + slider.addPanel(panel); + slider.draw(); + +//]]> + +END + WebGUI::Asset->new("PBtmpl0000000000000090","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # Navigation > verticalMenu + my $template = < +

+
+ +

+
+ +
+
+ + +target="_blank" href=""> + + +
+
+
+END + WebGUI::Asset->new("PBtmpl0000000000000048","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # style > Admin Console + my $template = < + + + WebGUI <tmpl_var session.webgui.version>-<tmpl_var session.webgui.status> Admin Console + + + + + + + + +END + WebGUI::Asset->new("PBtmpl0000000000000137","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # style > Fail Safe + my $template = < + + + ^Page("title"); - WebGUI + + + + + + ^AdminBar; + + + +
+ +
+
+
+ ^LoginToggle;   ^a(^@;);   ^H;   ^AdminToggle; +
+ + + +END + WebGUI::Asset->new("PBtmpl0000000000000060","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # style > Make Page Printable + my $template = < + + + ^Page(title); - <tmpl_var session.setting.companyName> + + + + + + + + ^AdminBar(""); + +
+ + + +
© 2001-2005 Plain Black Corporation
+ + + +END + WebGUI::Asset->new("PBtmpl0000000000000111","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # style > WebGUI 6 + my $template = < + + + ^Page(title); - <tmpl_var session.setting.companyName> + + + + + + + +^AdminBar("PBtmpl0000000000000090"); + + + + + + + + +
+ + + + + + + + + +
+        +home +Email +Print +Site Map Plain Black Icon +^Spacer(56,1);the LAST web solution you'll ever NEED^Spacer(26,1);
+ + + + + + + + + + +
^Spacer(53,59);^D("%c %D, %y");
^PageTitle;
^Spacer(53,59);
+ + + + + + + + + + + + + + + + + +
^Spacer(53,1); +


+Powered by WebGUI +
+ + ^Spacer(53,1);
+ + + + + + + + + + +
plainblack
Design by Plain Black
+ + + +END + WebGUI::Asset->new("B1bNjWVtzSjsvGZh9lPz_A","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; + + # style > WebGUI 6 Admin Style + my $template = < + + + ^Page(title); - <tmpl_var session.setting.companyName> + + + + + + + + ^AdminBar("PBtmpl0000000000000090");

+ +
+ +
+ +
+ ^H; / ^PageTitle; / ^AdminToggle; / ^LoginToggle; / ^a; +
+ + + +END + WebGUI::Asset->new("9tBSOV44a9JPS8CcerOvYw","WebGUI::Asset::Template")->addRevision({template=>$template})->commit; +} + +#------------------------------------------------- +sub fixArticles { + print "\tFixing articles...\n" unless ($quiet); + + # home/key_benefits + my $description = < +
+
Easy to Use
+
If you can use a web browser, then you can manage a web site with +WebGUI. WebGUI's unique WYSIWYG inline content editing interface +ensures that you know where you are and what your content will look +like while you're editing. In addition, you don't need to install and +learn any complicated programs, you can edit everything with your +trusty web browser.
+ +
Flexible Designs
+
WebGUI's powerful templating system ensures that no two WebGUI +sites ever need to look the same. You're not restricted in how your +content is laid out or how your navigation functions.
+ +
Work Faster
+
Though there is some pretty cool technology behind the scenes that +makes WebGUI work, our first concern has always been usability and not +technology. After all if it's not useful, why use it? With that in mind +WebGUI has all kinds of wizards, short cuts, online help, and other +aids to help you work faster.
+ +
Localized Content
+
With WebGUI there's no need to limit yourself to one language or +timezone. It's a snap to build a multi-lingual site with WebGUI. In +fact, even WebGUI's built in functions and online help have been +translated to more than 15 languages. User's can also adjust their +local settings for dates, times, and other localized oddities.
+ +
Pluggable By Design
+
When Plain Black created +WebGUI we knew we wouldn't be able to think of everything you want to +use WebGUI for, so we made most of WebGUI's functions pluggable. This +allows you to add new features to WebGUI and still be able to upgrade +the core system without a fuss.
+
+END + WebGUI::Asset->new("sWVXMZGibxHe2Ekj1DCldA","WebGUI::Asset::Wobject::Article")->addRevision({description=>$description})->commit; +} #------------------------------------------------- sub fixTemplatesExtras { @@ -37,8 +956,6 @@ sub fixTemplatesExtras { } } - - #------------------------------------------------- sub start { $|=1; #disable output buffering