Provided by KU Information Technology

2012 Template - For non-CMS sites

2012 Template

The 2012 template is included by default in the KU CMS.  This page includes instructions for use of the template outside of the CMS (for theming approved applications).

Option 1 - cPanel Sites

For accounts on one of the cPanel servers (dept, res, faculty, deptsec), the template is available to use via PHP.  The php template files can be included on any file ending in .php by using the following syntax:

<?php
$KUTEMPLATE['pagetitle'] = ''; //The title for this page
$KUTEMPLATE['sitetitle'] = ''; //The title for the entire site
$KUTEMPLATE['siteurl'] = ''; //The URL to your site homepage
//The file path point to your top navigation
$KUTEMPLATE['topnav'] = dirname(__FILE__) . '/topnav.php'; 
//The file path point to your left navigation (change to null if you do not want it).
$KUTEMPLATE['leftnav'] = dirname(__FILE__) . '/leftnav.php'; 
$KUTEMPLATE['mycss1'] = ''; //File path pointing to a custom stylesheet
$KUTEMPLATE['mycss2'] = ''; //File path pointing to a custom stylesheet
$KUTEMPLATE['mycss3'] = ''; //File path pointing to a custom stylesheet
$KUTEMPLATE['mycss4'] = ''; //File path pointing to a custom stylesheet
$KUTEMPLATE['mycss5'] = ''; //File path pointing to a custom stylesheet
$KUTEMPLATE['backgroundimageurl'] = ''; //URL pointing to yyour background image
$KUTEMPLATE['contactaddress'] = ''; //Address that appears in the footer (middle column)
$KUTEMPLATE['contactemail'] = ''; //Email address used in the footer
$KUTEMPLATE['contactphone'] = ''; //Phone number displayed in the footer
$KUTEMPLATE['contacturl'] = ''; //URL linked to by the Contact $KUTEMPLATE['sitetitle'] text
$KUTEMPLATE['extrafootercontent'] = ''; //Any other HTML code you want in the footer, bottom right
//file path point to your right sidebar (change to null if you do not want it).
$KUTEMPLATE['unitsidebar'] = dirname(__FILE__) . '/sidebar.php'; 
?>
<?php include_once('/ssi/2012/header_ku_2012_3col.php'); ?>

Stuff goes here

<?php include_once('/ssi/2012/footer_ku_2012.php'); ?>

Option 2 - standalone/Bootstrap version

Simply do a view source on the following file and copy and paste the HTML to start:

http://webmedia.ku.edu/js/KU_Template_2012_Examples/all_in_one_bootstrappd_example.html


Troubleshooting tips

Having a problem with a website?  Try these tips:

  1. Clear your web browser cache
  2. Restart your web browser
  3. Try a different browser (we recommend Firefox or Chrome)