homebox.tpl.php in Homebox 7.3
Same filename and directory in other branches
homebox.tpl.php Default layout for homebox.
1 theme call to homebox.tpl.php
- homebox_build in ./
homebox.module - Responsible for firing the hook_theme().
File
homebox.tpl.phpView source
<?php
/**
* @file
* homebox.tpl.php
* Default layout for homebox.
*/
global $user;
?>
<div id="homebox" class="<?php
print $classes;
?> clearfix">
<?php
if ($user->uid) {
?>
<div id="homebox-buttons">
<?php
if (!empty($add_links)) {
?>
<a href="javascript:void(0)" id="homebox-add-link"><?php
print t('Add a block');
?></a>
<?php
}
?>
<?php
print $save_form;
?>
</div>
<?php
}
?>
<?php
if (!empty($add_links)) {
?>
<div id="homebox-add"><?php
print $add_links;
?></div>
<?php
}
?>
<div class="homebox-maximized"></div>
<?php
for ($i = 1; $i <= count($regions); $i++) {
?>
<div class="homebox-column-wrapper homebox-column-wrapper-<?php
print $i;
?> homebox-row-<?php
print $page->settings['rows'][$i];
?>"<?php
print $page->settings['widths'][$i] ? ' style="width: ' . $page->settings['widths'][$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', array(
'block' => $block,
'page' => $page,
));
?>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</div>
</div>
<?php
}
?>
</div>