Upgrading from version 3
This guide is for ANU websites using the standard PHP templates – other websites in different content management systems (CMS) will have to wait until those systems have been updated.
If you are a developing a CMS within the University and wish to adapt the responsive design templates, please see these instructions for upgrading a CMS from version 3 and contact webstyle@anu.edu.au if you need assistance.
This guide for webmasters will assist developers to adapt their websites to better facilitate the new responsive design layouts.
There are only a few small edits to a couple of files, and then webmasters will be able to test layout changes in their own development or testing environments, before making the decision to permanently display the new version 4 design.
Get the PHP templates
- Download the latest PHP templates (ZIP, 30kB) file from the WPG Resources in Alliance onto your computer
- Extract the contents of the ZIP file into a temporary folder on your computer.
Replace config.php
- Make a backup copy of your site's current
config.phpfile (if it has one). - Replace
config.phpin your development environment with the file from the new PHP templates.
Edit & replace settings_site.php
- Make a backup copy of your site's current
settings_site.phpfile (orconfig_template.phpif you are on an older version of templates). - In your development environment, replace
settings_site.php(orconfig_template.php) with thesettings_site.phpfile from the new PHP templates. - Copy the values of the variables (
$id,$SiteShortName, etc) from your backup file into the new file. Only fill in values for the variables which are in the new file. Do not change the variable names in the new file or add or remove variables. For the$RespOfficerContactand$SiteContactvariables, ensure that you do not usemailto:in the values. - Change the
$qs_argvariable to version 4 temporarily (once you've finished testing, we will set the version to 4 centrally). That is, in the new file, change$qs_arg = '';to$qs_arg = '&ver=4;'
Edit & replace menu.php
- Make a backup copy of your site's current
menu.phpfile (ormenu_template.phpif you are using an older version of the templates) - In your development environment, replace
menu.php(ormenu_template.php) with themenu.phpfile from the new PHP templates. - Copy your site's menu list (from
<!-- Start of Menu 1-->to<!--End of Menu #n-->) from your backup file into the new file.
Replace features.php & check function calls
- Make a backup copy of your site's current
features.phpfile. - Replace
features.phpin your development environment with the file from the new PHP templates. - Check that the webpage on which the feature should appear uses the following code:
include ('features.php');
printFeaturesOrig();
or one of these alternative feature designs:
printFeaturesNoWindow();
printFeaturesVertical();
printFeaturesTicker();
See the features installation page for further details.
Carefully assess your site
Now that you have completed the upgrade to version 4 in your development environment, you should review your content on multiple devices to ensure that your website looks and works as expected.
To assist you with fixing any issues, please familiarise yourself with the how your layout will adapt to the screen size and classes for troubleshooting responsive layouts.
If you come across a layout problem that you cannot resolve, please contact webstyle@anu.edu.au so that we can help you.
Request the change
- When you are satisfied that your website is appearing correctly in the version 4 styles, email webstyle@anu.edu.au with the name or ID of your site and tell us that you are ready to make the change in your production environment (ie live site). If you do not want it to happen immediately, please indicate the date and time you would like the change to occur.
- Wait for your confirmation email, and keep an eye on your site. Once the site appears in the new style, you can update
settings_site.phpand change the$qs_argvariable back to$qs_arg = '';(reverting the temporary change you made in step 8 above).
We recommend a thorough review of the website after going live in the new style to make sure that it all still looks as you intended.


menu


