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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Oct 14 23:21:33 2009 UTC (6 weeks, 2 days ago) by drupalsharkcom
Branch: MAIN
CVS Tags: DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/x-php
Minor cosmetic/IE6 updates
1 <?php
2
3 /* Body class control */
4
5 function phptemplate_body_class($left, $right) {
6 if ($left != '' && $right != '') {
7 $class = 'sidebars';
8 }
9 else {
10 if ($left != '') {
11 $class = 'sidebar-left';
12 }
13 if ($right != '') {
14 $class = 'sidebar-right';
15 }
16 }
17
18 if (isset($class)) {
19 print ' class="'. $class .'"';
20 }
21 }
22
23 // Javascript Includes
24
25 drupal_add_js(drupal_get_path('theme', 'amity_island') . '/js/suckerfish.js', 'theme');
26 drupal_add_css(drupal_get_path('theme', 'amity_island') . '/css/admin.css', 'theme');
27
28 // Quick fix for the validation error: 'ID "edit-submit" already defined'
29 $elementCountForHack = 0;
30 function phptemplate_submit($element) {
31 global $elementCountForHack;
32 return str_replace('edit-submit', 'edit-submit-' . ++$elementCountForHack, theme('button', $element));
33 }

  ViewVC Help
Powered by ViewVC 1.1.2