| 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 |
}
|