page.pre.php 828 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @file template.preprocess-page.inc
  4. */
  5. /**
  6. * Override or insert variables into page templates.
  7. *
  8. * @param $vars
  9. * A sequential array of variables to pass to the theme template.
  10. * @param $hook
  11. * The name of the theme function being called.
  12. */
  13. # set variables for the logo and slogan (from Deco drupal 6.x theme)
  14. $site_fields = array();
  15. if ($vars['site_name']) {
  16. $site_fields[] = check_plain($vars['site_name']);
  17. }
  18. // if ($vars['site_slogan']) {
  19. // $site_fields[] = check_plain($vars['site_slogan']);
  20. // }
  21. $vars['site_title'] = implode(' ', $site_fields);
  22. if (theme_get_setting('layout_enable_settings') == 'on')
  23. $vars['method'] = theme_get_setting('layout_method');
  24. $vars['primary_local_tasks'] = menu_primary_local_tasks();
  25. $vars['secondary_local_tasks'] = menu_secondary_local_tasks();