"Data.TemplateFile" changed to "Settings.TemplateFile"

redirection header fixed
"Settings.DocLang" replaced by "Settings.Language"
"Lang.Plugins" moved to "Settings.PluginList"
This commit is contained in:
lars 2006-09-25 12:19:12 +00:00
parent b061bb4793
commit e238cbd17e
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<?cs # sort the Plugins - using the most stupid way :) ?> <?cs # sort the Plugins - using the most stupid way :) ?>
<?cs loop: order = #0, #100, #1 <?cs loop: order = #0, #100, #1
?><?cs # plugins ?><?cs each:x = Lang.Plugins ?><?cs # plugins ?><?cs each:x = Settings.PluginList
?><?cs if:x.Rank == order ?> ?><?cs if:x.Rank == order ?>
<li><a href="<?cs call:link('plugins/' + name(x),'','','','') ?>" title="<?cs <li><a href="<?cs call:link('plugins/' + name(x),'','','','') ?>" title="<?cs
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
@ -15,7 +15,7 @@
/loop ?> /loop ?>
<?cs # maybe someone forgot to set the rank of a plugin: we try to catch them ?> <?cs # maybe someone forgot to set the rank of a plugin: we try to catch them ?>
<?cs # plugins ?><?cs each:x = Lang.Plugins ?><?cs <?cs # plugins ?><?cs each:x = Settings.PluginList ?><?cs
if:!x.Rank || !(x.Rank >= 0 && x.Rank <= 100) ?> if:!x.Rank || !(x.Rank >= 0 && x.Rank <= 100) ?>
<li><a href="<?cs call:link('plugins/' + name(x),'','','','') ?>" title="<?cs <li><a href="<?cs call:link('plugins/' + name(x),'','','','') ?>" title="<?cs
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs

View File

@ -11,7 +11,7 @@
<meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="0" />
<link rel="shortcut icon" href="/favicon.ico" /> <link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" media="screen" href="<?cs var:Settings.Stylesheet ?>" type="text/css" /> <link rel="stylesheet" media="screen" href="<?cs var:Settings.Stylesheet ?>" type="text/css" />
<?cs if:Data.Redirect.URL ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs var:Data.Redirect.URL ?>" /><?cs <?cs if:?Data.Redirect.URL ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs var:Data.Redirect.URL ?>" /><?cs
elif:Data.Redirect.Action ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs call:link(Data.Redirect.Action,'','','','') ?>" /><?cs /if ?> elif:Data.Redirect.Action ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs call:link(Data.Redirect.Action,'','','','') ?>" /><?cs /if ?>
</head> </head>
<body> <body>

View File

@ -3,14 +3,14 @@
<?cs include:Settings.TemplateDir + '/macros.cs' ?> <?cs include:Settings.TemplateDir + '/macros.cs' ?>
<?cs include:Settings.TemplateDir + '/header.cs' ?> <?cs include:Settings.TemplateDir + '/header.cs' ?>
<!-- chosen cryptobox template: <?cs var:Data.TemplateFile ?> --> <!-- chosen cryptobox template: <?cs var:Settings.TemplateFile ?> -->
<?cs if:Data.Error ?> <?cs if:Data.Error ?>
<?cs include:Settings.TemplateDir + '/error.cs' ?> <?cs include:Settings.TemplateDir + '/error.cs' ?>
<?cs else ?> <?cs else ?>
<?cs if:Data.Warning ?><?cs call:warning(Data.Warning) ?><?cs /if ?> <?cs if:Data.Warning ?><?cs call:warning(Data.Warning) ?><?cs /if ?>
<?cs if:Data.Success ?><?cs call:success(Data.Success) ?><?cs /if ?> <?cs if:Data.Success ?><?cs call:success(Data.Success) ?><?cs /if ?>
<?cs include:Data.TemplateFile ?> <?cs include:Settings.TemplateFile ?>
<?cs /if ?> <?cs /if ?>
<?cs include:Settings.TemplateDir + '/footer.cs' ?> <?cs include:Settings.TemplateDir + '/footer.cs' ?>

View File

@ -2,6 +2,6 @@
<div id="doc"> <div id="doc">
<?cs include:Settings.DocDir + '/' + Settings.DocLang + '/' + Data.Doc.Page + '.html' ?> <?cs include:Settings.DocDir + '/' + Settings.Language + '/' + Data.Doc.Page + '.html' ?>
</div> </div>