Esempio n. 1
0
/**
 * Implementation of preprocess_page().
 */
function singular_preprocess_page(&$vars)
{
    include_once drupal_get_path('theme', 'singular') . '/styles.inc';
    $vars['styles'] .= singular_style_css(singular_get_style_info());
    $vars['styles_ie6'] = singular_style_ie6();
    $settings = theme_get_settings('singular');
    if (!empty($settings['layout'])) {
        $vars['attr']['class'] .= ' ' . $settings['layout'];
    }
}
Esempio n. 2
0
/**
 * Implementation of preprocess_page().
 */
function singular_preprocess_html(&$vars) {
  include_once(drupal_get_path('theme', 'singular') .'/styles.inc');
  $vars['classes_array'][] = theme_get_setting('layout');
  drupal_add_css(singular_style_css(singular_get_style_info()), array('type' => 'inline'));
}