Modified: web/php/trunk/include/layout.inc =================================================================== --- web/php/trunk/include/layout.inc 2009-10-31 18:18:06 UTC (rev 290110) +++ web/php/trunk/include/layout.inc 2009-10-31 18:19:21 UTC (rev 290111) @@ -25,10 +25,10 @@ $highlighted = ob_get_contents(); ob_end_clean(); - // This should eventually be a php_syntax_check() call when we move to PHP5 - // But use this ugly hack for now to avoid code snippets with bad syntax screwing up the highlighter - if(strstr($highlighted,"include/layout.inc")) $highlighted = ''.nl2br(htmlentities($code)).""; - + // This should eventually be a php_syntax_check() call when we move to PHP5 + // But use this ugly hack for now to avoid code snippets with bad syntax screwing up the highlighter + if(strstr($highlighted,"include/layout.inc")) $highlighted = ''.nl2br(htmlentities($code)).""; + // Fix output to use CSS classes and wrap well $highlighted = '
| ", date("F j, Y", $sday), "\n"; } - + // Print link in case we have one if ($event['url']) { echo ''; } // Print event description echo "", stripslashes(htmlentities($event['sdesc'])), ""; // End link if ($event['url']) { echo ""; } - + // Print extra date info for recurring and multiday events switch ($event['type']) { case 2: @@ -623,13 +623,13 @@ echo ' (Every ', $days, " of the month)"; break; } - + // Event category - if(isset($event['category']) && $event['category']) { - $cat = array("unknown", "User Group Event", "Conference", "Training"); - echo ' [' . $cat[$event['category']] . '] '; - } - + if(isset($event['category']) && $event['category']) { + $cat = array("unknown", "User Group Event", "Conference", "Training"); + echo ' [' . $cat[$event['category']] . '] '; + } + // Print out country information echo ' (' , $COUNTRIES[$event['country']] , ')'; ?> |