[commits] [Wiki] changed: Doc/Dev/ThemesH5

Michael Slusarz slusarz at horde.org
Fri Aug 31 02:32:54 UTC 2012


slusarz  Thu, 30 Aug 2012 20:32:54 -0600

Modified page: http://wiki.horde.org/Doc/Dev/ThemesH5
New Revision:  2
Change log:  Add info on adding non-themed CSS

@@ -97,5 +97,14 @@
   *
   * @author John Doe <john at example.com>
   */
  $theme_name = _("My Theme Name");
+</code>
+
+++ Adding Non-Theme CSS files
+
+It may be useful/necessary to add a CSS file to the output and not  
include it with the theme output.  For example, there may be CSS code  
shared between the Traditional and Smartmobile views (using themed  
CSS, these views **never** have shared CSS).  To explicitly add a file  
that lives in the base of the theme directory (example file:  
{{example.css}}), this code can be used:
+
+<code type="php">
+$css = new Horde_Themes_Element('example.css');
+$GLOBALS['page_output']->addStylesheet($css->fs, $css->uri);
  </code>



More information about the commits mailing list