diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-28 07:27:23 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-28 07:27:23 +0000 |
commit | c5e73fa883662edaeef6da6a308f6631b6f0eca5 (patch) | |
tree | 42d148f0935a961f8bcc02514c0f04f946dfc5ea /functions/template.php | |
parent | 603060dd7b43d47ac4637fee17b818cba6dff3c8 (diff) | |
download | phpicalendar-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.php | 8 |
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); } |