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

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

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


Revision 1.13 - (show annotations) (download) (as text)
Fri Nov 28 01:23:22 2008 UTC (12 months ago) by florian
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, HEAD
Changes since 1.12: +1 -1 lines
File MIME type: text/x-php
*** empty log message ***
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 'sidebar_left' => t('Left sidebar'),
11 'sidebar_right' => t('Right sidebar'),
12 'header' => t('Header'),
13 'user1' => t('User 1'),
14 'user2' => t('User 2'),
15 'user3' => t('User 3'),
16 'content_top' => t('Top content'),
17 'content_bottom' => t('Bottom content'),
18 'user4' => t('User 4'),
19 'user5' => t('User 5'),
20 'user6' => t('User 6'),
21 'footer' => t('Footer')
22
23 );
24 }
25
26 /* Modify theme variables */
27 function xmll() {
28 return '<em>by <a href="http://www.radut.net/"> Dr. Radut</a></em>';
29 }
30
31 // Breadcrumb override
32 function salamander_breadcrumb($breadcrumb) {
33 if (!empty($breadcrumb)) {
34 $breadcrumb[] = drupal_get_title(); // full breadcrumb
35 return '<div class="breadcrumb">'. implode(' &raquo; ', $breadcrumb) .'</div>';
36 }
37 }
38
39 // Quick fix for the validation error: 'ID "edit-submit" already defined'
40 $elementCountForHack = 0;
41 function phptemplate_submit($element) {
42 global $elementCountForHack;
43 return str_replace('edit-submit', 'edit-submit-' . ++$elementCountForHack, theme('button', $element));
44 }
45

  ViewVC Help
Powered by ViewVC 1.1.2