homebox-block.tpl.php in Homebox 7.3
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 AJAX 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;
?> clearfix 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" title="<?php
print t('Close');
?>"></a>
<?php
}
?>
<a class="portlet-icon portlet-maximize" title="<?php
print t('Maximize');
?>"></a>
<a class="portlet-icon portlet-minus" title="<?php
print t('Collapse');
?>"></a>
<?php
if ($page->settings['color'] || isset($block->edit_form)) {
?>
<a class="portlet-icon portlet-settings" title="<?php
print t('Settings');
?>"></a>
<?php
}
?>
<span class="portlet-title"><?php
print $block->subject;
?></span>
</h3>
<div class="portlet-config">
<?php
if ($page->settings['color']) {
?>
<div class="clearfix"><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
if (is_string($block->content)) {
print $block->content;
}
else {
print drupal_render($block->content);
}
?></div>
</div>
</div>