/[drupal]/contributions/themes/refresco/template.php
ViewVC logotype

Diff of /contributions/themes/refresco/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu May 29 02:40:09 2008 UTC revision 1.1.2.1, Sat May 31 12:56:48 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: template.php,v 1.1 2008/05/29 02:40:09 crashtest Exp $
   
 $theme_path = path_to_theme();  
   
 // Add javascript and stylesheets here.  
 drupal_add_css($theme_path .'/styles.css', 'theme', 'all');  
3    
4  /**  /**
5   * Return a themed breadcrumb trail.   * Return a themed breadcrumb trail.
6   *   *
7   * @param $breadcrumb   * @param $breadcrumb
8   *   An array containing the breadcrumb links.   *   An array containing the breadcrumb links.
9   * @return a string containing the breadcrumb output.   * @return
10     *   A string containing the breadcrumb output.
11   */   */
12  function phptemplate_breadcrumb($breadcrumb) {  function phptemplate_breadcrumb($breadcrumb) {
13    if (!empty($breadcrumb)) {    if (!empty($breadcrumb)) {
# Line 36  function phptemplate_comment_wrapper($co Line 32  function phptemplate_comment_wrapper($co
32   */   */
33  function phptemplate_preprocess_page(&$vars) {  function phptemplate_preprocess_page(&$vars) {
34    $vars['tabs2'] = menu_secondary_local_tasks();    $vars['tabs2'] = menu_secondary_local_tasks();
35          $vars['theme_path'] = path_to_theme();    $vars['editme'] = t('Edit');
36    if ($is_front == '0') { $vars['mission'] = NULL; }    if ($vars['is_front'] == '0') {
37        $vars['mission'] = FALSE;
38      }
39    
40    // Hook into color.module    // Hook into color.module.
41    if (module_exists('color')) {    if (module_exists('color')) {
42      _color_page_alter($vars);      _color_page_alter($vars);
43    }    }
44  }  }
45    
46  /**  /**
47     * Override or insert PHPTemplate variables into the templates.
48     */
49    function phptemplate_preprocess_block(&$vars) {
50      if ($vars['block']->module == 'block' && user_access('administer blocks')) {
51        $vars['edit_url'] = url('admin/build/block/configure/'. $vars['block']->delta);
52        $vars['edit_text'] = t('Edit');
53      }
54    }
55    
56    /**
57   * Returns the rendered local tasks. The default implementation renders   * Returns the rendered local tasks. The default implementation renders
58   * them as tabs. Overridden to split the secondary tasks.   * them as tabs. Overridden to split the secondary tasks.
59   *   *
# Line 85  function phptemplate_get_ie_styles() { Line 93  function phptemplate_get_ie_styles() {
93    return $iecss;    return $iecss;
94  }  }
95    
96  function trescoweb_menu_tree_cid($menu_name, $data) {  function phptemplate_menu_tree_cid($menu_name, $data) {
97    return 'links:'. $menu_name .':tree-data:'. md5(serialize($data));    return 'links:'. $menu_name .':tree-data:'. md5(serialize($data));
98  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2