<?php // $Id$ // Create detailed page level ID's and classes for easy theming // Default String based on Arguments $index = 0; $arg_string = array(); while (($argvalue = arg($index)) != '') { // exclude values that are numeric (i.e node id's, user id's) if (!is_numeric($argvalue)) { $arg_string[$index] = check_plain($argvalue); } $index++; } // Use the modified args array to build a detailed class string $arg_string = _sky_id_safe(implode(' ', $arg_string)); $class = array(); $id = array(); $sidebar_left = $variables['left']; $sidebar_right = $variables['right']; switch (TRUE) { case empty($sidebar_left) && empty($sidebar_right): $class[] = 'no-sidebars'; break; case $sidebar_left && $sidebar_right: $class[] = 'both'; break; case $sidebar_left: $class[] = 'left'; break; case $sidebar_right:
<?php // $Id$ ?> <!-- start block.tpl.php --> <div id="block-<?php print _sky_id_safe($block->module); ?> -<?php print $block->delta; ?> " class="<?php print $classes; ?> "> <?php if ($block->subject) { ?> <div class="title"><?php print $block->subject; ?> </div> <?php } ?> <div class="content"><?php print $block->content; ?> </div> </div> <!-- end block.tpl.php -->