function phptemplate_preprocess_block(&$vars, $hook) { $block = $vars['block']; /* Special classes for blocks. $classes = array('block'); $classes[] = 'block-' . $block->module; $classes[] = 'region-' . $vars['block_zebra']; $classes[] = $vars['zebra']; $classes[] = 'region-count-' . $vars['block_id']; $classes[] = 'count-' . $vars['id']; */ $vars['edit_links_array'] = array(); $vars['edit_links'] = ''; if (user_access('administer blocks')) { include_once './' . drupal_get_path('theme', 'blueprint') . '/template.block-editing.inc'; phptemplate_preprocess_block_editing($vars, $hook); $classes[] = 'with-block-editing'; } // Render block id $vars['block_id'] = 'block-' . $block->module . '-' . $block->delta; if (module_exists('block_class')) { if (isset($vars['block_class'])) { $vars['block_class'] .= ' ' . block_class($block); } else { $vars['block_class'] = block_class($block); } } }
<?php // $Id: block.tpl.php,v 1.3 2007/08/07 08:39:36 goba Exp $ ?> <div class="block block-<?php print $block->module; ?> <?php print block_class($block); ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?>"> <?php if($block->subject) { ?><h2 class="title"><?php print $block->subject; ?></h2><?php } ?> <div class="content"><?php print $block->content; ?></div> </div>
?> " class="block block-<?php print $block->module; ?> <?php print $block_region_placement; ?> block-<?php print $block_zebra; ?> <?php if ($blocktheme != '') { print $blocktheme; } if (function_exists(block_class)) { print block_class($block); } ?> "> <?php if ($block->subject) { ?> <h2><?php print variable_get('cpo_isr_more_giftbox_1_title', 'Gift basket finder'); ?> </h2> <?php } ?> <div class="content">
<div id="block-<?php print $block->module . '-' . $block->delta; ?> " class="block block-<?php print $block->module; ?> <?php print $block_region_placement; ?> block-<?php print $block_zebra; if ($blocktheme != '') { print ' ' . $blocktheme; } if (function_exists(block_class)) { print ' ' . block_class($block); } ?> "> <?php if ($block->subject) { ?> <h2><?php print $block->subject; ?> </h2> <?php } ?> <div class="content">