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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Mar 2 19:09:21 2009 UTC (8 months, 3 weeks ago) by sakib000
Branch: MAIN
CVS Tags: DRUPAL-5--1-5, HEAD
Branch point for: DRUPAL-5
Changes since 1.1: +13 -4 lines
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 function phptemplate_body_class($sidebar_left, $sidebar_right) {
3 if ($sidebar_left != '' && $sidebar_right != '') {
4 $class = 'sidebars';
5 }
6 else {
7 if ($sidebar_left != '') {
8 $class = 'sidebar-left';
9 }
10 if ($sidebar_right != '') {
11 $class = 'sidebar-right';
12 }
13 }
14
15 if (isset($class)) {
16 print ' class="'. $class .'"';
17 }
18 }
19
20
21
22 function admire_gray_regions() {
23 return array(
24 'header' => t('Header'),
25 'sidebar_left' => t('Sidebar left'),
26 'content_top' => t('Content top'),
27 'sidebar_right' => t('Sidebar right'),
28 'footer_block' => t('Footer block'),
29 );
30 }

  ViewVC Help
Powered by ViewVC 1.1.2