We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit de116c45 authored by Jonas Haraldsson's avatar Jonas Haraldsson

theme-wide config

set config_dir in templating.php
try to load nixtape/themes/gnufm/config/theme.conf in header.tpl

theme.conf can f.ex be used to set theme-wide css classes

theme.conf:
myclass = "foo"

my.tpl:
<span class="{#myclass#}">span with foo class</span>
parent 068cdcf7
......@@ -59,6 +59,7 @@ $smarty = new Smarty();
$smarty->template_dir = array($install_path . '/themes/'. $theme . '/templates/', $install_path . '/themes/gnufm/templates/');
$smarty->compile_dir = $install_path. '/themes/' . $theme . '/templates_c/';
$smarty->cache_dir = $install_path. '/cache/';
$smarty->config_dir = array($install_path . '/themes/' . $theme . '/config/', $install_path . '/themes/gnufm/config/');
$current_lang = preg_replace('/.UTF-8/', '', $current_lang);
$smarty->assign('lang_selector_array', array(($current_lang) => 1));
......
{config_load file='theme.conf' scope='global'}
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment