You are here

homebox.tpl.php in Homebox 6

homebox.tpl.php Default layout for homebox.

File

homebox.tpl.php
View source
<?php

/**
 * @file
 * homebox.tpl.php
 * Default layout for homebox.
 */
?>
<div id="homebox" class="column-count-<?php

print $column_count;
?>">

  <a href="#" id="homebox-add"><?php

print t('Add content');
?></a>

  <ul id="homebox-settings" class="homebox-settings-hidden">
    <?php

foreach ($available_blocks as $key => $block) {
  ?>
      <li>
        <input type="checkbox" class="homebox_toggle_box" <?php

  print $block['checked'];
  ?> id="homebox_toggle_<?php

  print $block['dom_id'];
  ?>" /> <?php

  print $block['subject'];
  ?>
      </li>
    <?php

}
?>
  </ul>

  <?php

for ($i = 1; $i <= count($regions); $i++) {
  ?>
    <div class="homebox-column" id="homebox-column-<?php

  print $i;
  ?>">
      <?php

  foreach ($regions[$i] as $key => $weight) {
    ?>
        <?php

    foreach ($weight as $block) {
      ?>
          <?php

      if ($block->content) {
        ?>
            <?php

        print theme('homebox_block', $block, $pid);
        ?>
          <?php

      }
      ?>
        <?php

    }
    ?>
      <?php

  }
  ?>
    </div>
  <?php

}
?>

  <div class="clear-block"></div>
</div>

<?php


// Print CSS classes based on colors
print $color_css_classes;
?>
<!-- End Homebox -->