Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
des:sahana_theme [2009/11/25 19:14]
greg
des:sahana_theme [2009/11/25 20:27] (current)
greg
Line 67: Line 67:
 If these stylesheets exist in the theme, Sahana will add references to them in the <head> portion of the page as it is rendered. If these stylesheet files are not in the theme, these references will not appear in the rendered page: If these stylesheets exist in the theme, Sahana will add references to them in the <head> portion of the page as it is rendered. If these stylesheet files are not in the theme, these references will not appear in the rendered page:
  
-<!--[if IE 6]> +  <!--[if IE 6]> 
-<link rel="stylesheet" type="text/css" href="theme/lpf2/ie6.css" /> +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie6.css" /> 
-<![endif]-->  +  <![endif]-->  
-<!--[if IE 7]> +  <!--[if IE 7]> 
-<link rel="stylesheet" type="text/css" href="theme/lpf2/ie7.css" /> +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie7.css" /> 
-<![endif]-->  +  <![endif]-->  
-<!--[if IE 8]> +  <!--[if IE 8]> 
-<link rel="stylesheet" type="text/css" href="theme/lpf2/ie8.css" /> +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie8.css" /> 
-<![endif]-->  +  <![endif]-->  
-<!--[if IE 9]> +  <!--[if IE 9]> 
-<link rel="stylesheet" type="text/css" href="theme/lpf2/ie9.css" /> +  <link rel="stylesheet" type="text/css" href="theme/lpf2/ie9.css" /> 
-<![endif]--> +  <![endif]--> 
  
-To take advantage of this new feature, simple create a css file as in the example below:+To take advantage of this new feature, simply create a css file in your theme folder for the specific version of ie you wish to create a custom stylesheet for:
  
-/www/theme/lpf2/ie6.css +  /www/theme/lpf2/ie6.css 
-/www/theme/lpf2/ie7.css +  /www/theme/lpf2/ie7.css 
-/www/theme/lpf2/ie8.css +  /www/theme/lpf2/ie8.css 
-/www/theme/lpf2/ie9.css+  /www/theme/lpf2/ie9.css
  
 The important thing to remember is that the files MUST be named in this convention: (ie6.css, ie7.css, ie8.css, ie9.css) or else they will be skipped over and not referenced in the HTML <head> as the page is being rendered by Sahana. Inside the css files, all the standard CSS rules/syntax are applied as with any other compliant stylesheet. The important thing to remember is that the files MUST be named in this convention: (ie6.css, ie7.css, ie8.css, ie9.css) or else they will be skipped over and not referenced in the HTML <head> as the page is being rendered by Sahana. Inside the css files, all the standard CSS rules/syntax are applied as with any other compliant stylesheet.
 +
 +===== Custom Theme Footer =====
 +
 +As with the above new feature added to Sahana, this one involves handling more customization with themes. In certain instances, it may be preferable to have different content in the site's footer. However, before this patch was introduced, the user was left to hacking up the /inc/hander_footer.inc file to incorporate the changes into the site. Now, the footer itself can be created in the theme and customized for different installations of Sahana.
 +
 +Technically, the way this works, is Sahana looks in the current theme folder for the existence of a footer.php file. If this file is present, the content contained within it will replace what is in the default Sahana footer.
 +
 +  /www/theme/lpf2/footer.php
 +
 +Simply create the footer.php file in your theme and populate it with any php/html that is needed in your customized footer.
 +
  
 ===== Help Required - Right to Left Theme ===== ===== Help Required - Right to Left Theme =====

Navigation
QR Code
QR Code des:sahana_theme (generated for current page)