Changeset 508 for branches

Show
Ignore:
Timestamp:
07/21/07 14:14:35 (16 months ago)
Author:
michiel
Message:

make this work with php installs that dont allow the short_open tag.
Make the site xhtml valid so it renders in Standards Compliance Mode.

Location:
branches/website/site
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/website/site/index.php

    r349 r508  
    1 <? 
    2      
     1<?php 
     2 
    33include("tlib.php"); 
    44 
     
    3232        $title = $pageInfo["title"]; 
    3333        $desc = $pageInfo["desc"]; 
    34          
     34 
    3535        // Prepare information for the template 
    3636        $this->page = $page; 
  • branches/website/site/template.php

    r451 r508  
    1 <html> 
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    23        <head> 
    3                 <title><?=$this->appName?>: <?=$this->title?></title> 
     4                <title><?php echo $this->appName; ?>: <?php echo $this->title; ?></title> 
    45                <link rel="stylesheet" href="index.css" type="text/css" /> 
    56        </head> 
     
    910                        <div id="menubar"> 
    1011                                <div id="menubar_contents"> 
    11                                         <?=$this->menu()?> 
     12                                        <?php $this->menu(); ?> 
    1213                                </div> 
    1314                        </div> 
     
    1718                                                <div id="contents_top">&nbsp;</div> 
    1819                                                <div id="contents_text"> 
    19                                                         <h1><?=$this->title?></h1> 
    20                                                         <h2 class="description"><?=$this->desc?></h2> 
    21                                                         <?=$this->_getOutputBuffer()?> 
     20                                                        <h1><?php echo $this->title; ?></h1> 
     21                                                        <h2 class="description"><?php echo $this->desc; ?></h2> 
     22                                                        <?php echo $this->_getOutputBuffer(); ?> 
    2223                                                </div> 
    2324                                                <div id="contents_footer">&nbsp;</div>