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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Sun Feb 17 16:35:36 2008 UTC (21 months, 1 week ago) by xactive
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--2
Changes since 1.1: +42 -0 lines
File MIME type: text/x-php
Initial commit of example module. Here is a brief description of what this module does.
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

  ViewVC Help
Powered by ViewVC 1.1.2