Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3973/functions
Modified Files:
template.php
Log Message:
Added RSS check, updated month for XHTML validation.
Index: template.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** template.php 16 May 2004 04:13:28 -0000 1.38
--- template.php 16 May 2004 05:39:26 -0000 1.39
***************
*** 868,872 ****
function output() {
! global $template, $php_started, $lang;
// Looks for {MONTH} before sending page out
--- 868,872 ----
function output() {
! global $template, $php_started, $lang, $enable_rss;
// Looks for {MONTH} before sending page out
***************
*** 902,905 ****
--- 902,910 ----
$generated = number_format(($php_ended-$php_started),3);
$this->page = str_replace('{GENERATED}', $generated, $this->page);
+ if ($enable_rss != 'yes') {
+ $this->page = preg_replace('!<\!-- switch rss_powered on -->(.*)<\!-- switch rss_powered off -->!is', '', $this->page);
+ } else {
+ $this->page = str_replace('{BASE}', BASE, $this->page);
+ }
print($this->page);
}
|