aboutsummaryrefslogtreecommitdiffstats
path: root/functions/template.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-28 07:27:23 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-28 07:27:23 +0000
commitc5e73fa883662edaeef6da6a308f6631b6f0eca5 (patch)
tree42d148f0935a961f8bcc02514c0f04f946dfc5ea /functions/template.php
parent603060dd7b43d47ac4637fee17b818cba6dff3c8 (diff)
downloadphpicalendar-c5e73fa883662edaeef6da6a308f6631b6f0eca5.tar.gz
phpicalendar-c5e73fa883662edaeef6da6a308f6631b6f0eca5.tar.bz2
phpicalendar-c5e73fa883662edaeef6da6a308f6631b6f0eca5.zip
Major checkin, modified english to new language style. Preferences now
template driven along with event and todo. Header and footer seem to work as well.
Diffstat (limited to 'functions/template.php')
-rw-r--r--functions/template.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/functions/template.php b/functions/template.php
index ebecf7a..68f4b81 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -35,7 +35,13 @@ class Page {
else
die('No tags designated for replacement.');
}
-
+
+ function replace_langs($langs = array()) {
+ foreach ($langs as $tag => $data) {
+ $this->page = eregi_replace('{' . $tag . '}', $data, $this->page);
+ }
+ }
+
function output() {
print($this->page);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy