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

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

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

revision 1.1, Sun Sep 30 09:01:20 2007 UTC revision 1.2, Sun Feb 17 16:35:36 2008 UTC
# Line 0  Line 1 
1    <?php
2    
3    // add jquery.pngFix.js file
4    drupal_add_js(drupal_get_path('theme', 'salamander') . '/js/jquery.pngfix.js', 'theme');
5    
6    
7    // Salamander's regions
8    function salamander_regions() {
9      return array(
10           'header' => t('header'),
11           'content_top' => t('content top'),
12           'sidebar_left' => t('left sidebar'),
13           'sidebar_right' => t('right sidebar'),
14           'content_bottom' => t('content bottom'),
15           'footer' => t('footer'),
16               'user1' => t('user1'),
17               'user2' => t('user2'),
18               'user3' => t('user3'),
19               'user4' => t('user4'),
20               'user5' => t('user5'),
21               'user6' => t('user6')
22    
23      );
24    }
25    
26    
27    //  Breadcrumb override
28    function salamander_breadcrumb($breadcrumb) {
29      if (!empty($breadcrumb)) {
30              $breadcrumb[] = drupal_get_title();  // RADUT's complete breadcrumb ( › = › , » = &#187; &raquo;)
31        return '<div class="breadcrumb">'. implode(' &raquo; ', $breadcrumb) .'</div>';
32      }
33    }
34    
35    
36    // Quick fix for the validation error: 'ID "edit-submit" already defined'
37    $elementCountForHack = 0;
38    function phptemplate_submit($element) {
39      global $elementCountForHack;
40      return str_replace('edit-submit', 'edit-submit-' . ++$elementCountForHack, theme('button', $element));
41    }
42    

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

  ViewVC Help
Powered by ViewVC 1.1.2