You are here

homebox-block.tpl.php in Homebox 6

homebox-block.tpl.php Default theme implementation each homebox block.

File

homebox-block.tpl.php
View source
<?php

/**
 * @file
 * homebox-block.tpl.php
 * Default theme implementation each homebox block.
 */
?>
<div id="homebox-block-<?php

print $block->module . '-' . $block->delta;
?>" class="<?php

print $block->homebox_classes;
?> clear-block block block-<?php

print $block->module;
?>">
  <div class="homebox-portlet-inner">
    <h3 class="portlet-header"><?php

print $block->subject;
?></h3>
    <div class="portlet-config">
      <?php

if (variable_get('homebox_users_use_colors_' . $pid, FALSE)) {
  ?>
        <div class="homebox-colors">
          <?php

  for ($i = 0; $i < HOMEBOX_NUMBER_OF_COLOURS; $i++) {
    ?>
            <span href="#" class="homebox-color-selector" style="background-color: <?php

    print variable_get('homebox_color_' . $pid . '_' . $i, '#E4F0F8');
    ?>;">&nbsp;</span>
          <?php

  }
  ?>
        </div>
      <?php

}
?>
      <?php

if ($block->module == 'views') {
  ?>
        <?php

  $filters = theme('homebox_views_exposed_filter', $block);
  ?>
        <?php

  print $filters;
  ?>
      <?php

}
?>
      <?php

if (variable_get('homebox_users_use_colors_' . $pid, FALSE) || $block->module == 'views' && !is_null($filters)) {
  ?>
        <div class="clear-block"></div>
      <?php

}
?>
    </div>
    <div class="portlet-content"><?php

print $block->content;
?></div>
  </div>
</div>