template.php in Commerce Kickstart 7.2
File
themes/commerce_kickstart_theme/template.php
View source
<?php
function commerce_kickstart_theme_preprocess_html(&$variables) {
drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-8.css', array(
'group' => CSS_THEME,
'weight' => 23,
'browsers' => array(
'IE' => 'lte IE 8',
'!IE' => FALSE,
),
'preprocess' => FALSE,
));
drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-7.css', array(
'group' => CSS_THEME,
'weight' => 24,
'browsers' => array(
'IE' => 'lte IE 7',
'!IE' => FALSE,
),
'preprocess' => FALSE,
));
drupal_add_library('commerce_kickstart_theme', 'selectnav');
}
function commerce_kickstart_theme_library() {
$libraries['selectnav'] = array(
'title' => 'Selectnav',
'version' => '',
'js' => array(
libraries_get_path('selectnav.js') . '/selectnav.min.js' => array(),
),
);
return $libraries;
}
function commerce_kickstart_theme_preprocess_node(&$variables) {
$variables['submitted'] = $variables['date'] . ' - ' . $variables['name'];
if ($variables['type'] == 'blog_post') {
$variables['submitted'] = t('By') . ' ' . $variables['name'] . ', ' . $variables['date'];
}
}