Template mappings from version 1

No direct mapping or conversion from the original web templates (what we call version 1 style, the old nested tables style) to the new templates is possible, due to the variations in adoption in local areas. However, the following table can be used as a guide to where elements from the original templates appear in the new PHP templates.

Use of this table is at your own risk – please ensure that you understand your files and the code within them before attempting to make any changes, and make all changes in a development version of your site.

PHP 4 & 5 templates for version 1 (original) web style

Old code or file New code or file
branchConfig.inc config.php and settings_site.php
globalFooter.inc, globalHeader.inc, searchBar.inc, webFooter.inc, webHeader.inc config.php and settings_site.php
siteNav.inc menu.php (note - the new menu template is NOT dynamic and does not automatically create the menu based on a folder structure. This functionality is yet to be developed in the new templates - if you develop it, please share!)
index.php (and all other .php files) page.php

Header code in index.php

           
<?php
$level_path = "";
$f='_includes/webHeader.inc';
while(!(file_exists($f))){
    $f='../'.$f;$level_path.='../';
    }
include $f;
?>
<!-- BEGIN DOCUMENT CONTENT ===============================-->

in page.php


<?php // Page Template version: 0.01
//PLEASE UPDATE THESE VALUES FOR EVERY PAGE//
$title='***';
$description='***';
$subject='***';

//CONFIG FILE REFERENCE//
include ('config.php');

//static elements which can be edited in the config file//
echo $DocType;
echo $Head;
echo $Body;
echo $Banner;
include $Menu;
?>

<!-- START MAIN PAGE CONTENT -->

Footer code in index.php


<!-- END DOCUMENT CONTENT =================================-->
<?php include $level_path."_includes/webFooter.inc"; ?>

in page.php


<!-- END MAIN PAGE CONTENT -->
<?php
//static elements which can be edited in the config file//
echo $Update;
echo $Footer;
?>

ASP templates

Please note that ASP and PHP are two different languages - if your site currently runs on ASP it may not be able to use PHP. Check with your server administrator.

Old code or file New code or file
branchConfig.inc config.php and settings_site.php
siteNav.inc menu.php
globalFooter.inc, globalHeader.inc, searchBar.inc, drawMenu.inc config.php and settings_site.php
index.asp menu.php

Header code in index.asp


<% @Language="VBScript" %>
<%
Option Explicit
Response.ContentType = "text/html; charset=ISO-8859-1"

On Error Resume Next
Const DATE_MODIFIED = "31 March 2003"
blnShowSearchBar = true
%>

<!--#include file="_includes/branchConfig.inc"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en" dir="ltr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>ANU - <%=BranchTitle%><%If BranchSubTitle <> "" Then Response.Write(" - " & BranchSubTitle) End If%></title>
    <link href="http://styles.anu.edu.au/_images/anu.ico" rel="shortcut icon" type="image/x-icon">
    <link href="http://styles.anu.edu.au/anu_global_styles.css" rel="stylesheet" type="text/css">
    <!-- BEGIN DOCUMENT META DATA -->

    <!-- END DOCUMENT META DATA -->
  </head>
 
  <body marginheight="0" marginwidth="0" topmargin="0">
    <!--#include file="_includes/globalHeader.inc"-->
    <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Page content layout table">
     <tr>
     <!--#include file="_includes/siteNav.inc"-->
        <td width="99%" align="left" height="300" valign="top"><a name="content"></a>
        <div style="padding-left: 15px; padding-right: 10px;">
        <!-- BEGIN DOCUMENT CONTENT ==========================================-->            
 

in page.php


<?php // Page Template version: 0.01
//PLEASE UPDATE THESE VALUES FOR EVERY PAGE//
$title='***';
$description='***';
$subject='***';

//CONFIG FILE REFERENCE//
include ('config.php');

//static elements which can be edited in the config file//
echo $DocType;
echo $Head;
echo $Body;
echo $Banner;
include $Menu;
?>

<!-- START MAIN PAGE CONTENT -->

Footer code in index.asp


<!-- END DOCUMENT CONTENT ============================================-->
</div>
</td>
</tr>
</table>
<!--#include file="_includes/globalFooter.inc"-->
</body>
</html>
 

in page.php


<!-- END MAIN PAGE CONTENT -->
<?php
//static elements which can be edited in the config file//
echo $Update;
echo $Footer;
?>      
 

HTML templates

If your website currently runs on plain HTML, you will benefit from moving to a scripting language such as PHP. This will allow you to specify repeated blocks of content once (such as the site menu) instead of on every page. Check with your server administrator to see if a language such as PHP is available on your server.

Old code or file New code or file
index_nonav.html no equivalent option, use page.php
index_standard_print.html no longer needed, print styles are covered within the stylesheet that all new pages link to
index_standard.html page.php (for page content), config.php and site_settings.php (for site configuration) and menu.php (for site menus)

Header within index_standard.html, from this line:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 

until this line:


<!-- BEGIN DOCUMENT CONTENT =========================-->

in page.php


<?php // Page Template version: 0.01
//PLEASE UPDATE THESE VALUES FOR EVERY PAGE//
$title='***';
$description='***';
$subject='***';

//CONFIG FILE REFERENCE//
include ('config.php');

//static elements which can be edited in the config file//
echo $DocType;
echo $Head;
echo $Body;
echo $Banner;
include $Menu;
?>

<!-- START MAIN PAGE CONTENT -->

Footer within index_standard.html from this line:


<!-- END DOCUMENT CONTENT ===========================-->
 

until this line:


</HTML>
           

in page.php


<!-- END MAIN PAGE CONTENT -->
<?php
//static elements which can be edited in the config file//
echo $Update;
echo $Footer;
?>

Updated:  18 August 2017/ Responsible Officer:  Director Marketing/ Page Contact:  Webstyle