12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- function clameurs_theme() {
- $path = drupal_get_path('theme', 'clameurs');
-
- return array(
- 'system_settings_form' => array(
- 'arguments' => array('form' => NULL, 'key' => 'clameurs'),
- ),
- );
-
- include($path .'/inc/template.theme-settings.inc');
- }
- function clameurs_preprocess(&$vars, $hook) {
- global $theme, $theme_info, $user, $language;
- $vars['is_admin'] = in_array('admin', $user->roles);
- $vars['logged_in'] = ($user->uid > 0) ? TRUE : FALSE;
- $vars['theme_path'] = base_path() . path_to_theme() .'/';
-
-
- $path = drupal_get_path('theme', 'clameurs');
- $file = $path .'/preprocess/'. str_replace('_', '-', $hook) .'.pre.php';
- if (is_file($file)) {
- include($file);
- }
- }
- $path = drupal_get_path('theme', 'clameurs');
- include_once($path .'/inc/template.custom-functions.inc');
- include_once($path .'/inc/template.theme-overrides.inc');
|