homebox-block.tpl.php in Homebox 6.2
Same filename and directory in other branches
homebox-block.tpl.php Default theme implementation each homebox block.
2 theme calls to homebox-block.tpl.php
- homebox.tpl.php in ./
homebox.tpl.php - homebox.tpl.php Default layout for homebox.
- homebox_build_block in ./
homebox.module - Render a single block, for AHAH callbacks.
File
homebox-block.tpl.phpView source
<?php
/**
* @file
* homebox-block.tpl.php
* Default theme implementation each homebox block.
*/
?>
<div id="homebox-block-<?php
print $block->key;
?>" class="<?php
print $block->homebox_classes;
?> clear-block block block-<?php
print $block->module;
?>">
<div class="homebox-portlet-inner">
<h3 class="portlet-header">
<?php
if ($block->closable) {
?>
<a class="portlet-icon portlet-close"></a>
<?php
}
?>
<a class="portlet-icon portlet-maximize"></a>
<a class="portlet-icon portlet-minus"></a>
<?php
if ($page->settings['color'] || isset($block->edit_form)) {
?>
<a class="portlet-icon portlet-settings"></a>
<?php
}
?>
<span class="portlet-title"><?php
print $block->subject;
?></span>
</h3>
<div class="portlet-config">
<?php
if ($page->settings['color']) {
?>
<div class="clear-block"><div class="homebox-colors">
<span class="homebox-color-message"><?php
print t('Select a color') . ':';
?></span>
<?php
for ($i = 0; $i < HOMEBOX_NUMBER_OF_COLOURS; $i++) {
?>
<span class="homebox-color-selector" style="background-color: <?php
print $page->settings['colors'][$i];
?>;"> </span>
<?php
}
?>
</div></div>
<?php
}
?>
<?php
if (isset($block->edit_form)) {
print $block->edit_form;
}
?>
</div>
<div class="portlet-content content"><?php
print $block->content;
?></div>
</div>
</div>