homebox-admin-display-form.tpl.php in Homebox 6
Same filename and directory in other branches
homebox-admin-display-form.tpl.php Default theme implementation to configure homebox blocks.
File
homebox-admin-display-form.tpl.phpView source
<?php
/**
* @file
* homebox-admin-display-form.tpl.php
* Default theme implementation to configure homebox blocks.
*/
// Add table javascript.
drupal_add_js('misc/tableheader.js');
drupal_add_js(drupal_get_path('module', 'block') . '/block.js');
foreach ($block_regions as $region => $title) {
drupal_add_tabledrag('blocks', 'match', 'sibling', 'block-region-select', 'block-region-' . $region, NULL, FALSE);
drupal_add_tabledrag('blocks', 'order', 'sibling', 'block-weight', 'block-weight-' . $region);
}
?>
<table id="blocks" class="sticky-enabled">
<thead>
<tr>
<th><?php
print t('Block');
?></th>
<th><?php
print t('Region');
?></th>
<th><?php
print t('Weight');
?></th>
<th><?php
print t('Visible');
?></th>
<th><?php
print t('Open');
?></th>
<th><?php
print t('Movable');
?></th>
</tr>
</thead>
<tbody>
<?php
$row = 0;
?>
<?php
foreach ($block_regions as $region => $title) {
?>
<tr class="region region-<?php
print $region;
?>">
<td colspan="5" class="region"><?php
print $title;
?></td>
</tr>
<tr class="region-message region-<?php
print $region;
?>-message <?php
print empty($block_listing[$region]) ? 'region-empty' : 'region-populated';
?>">
<td colspan="5"><em><?php
print t('No blocks in this column');
?></em></td>
</tr>
<?php
foreach ($block_listing[$region] as $delta => $data) {
?>
<tr class="draggable <?php
print $row % 2 == 0 ? 'odd' : 'even';
print $data->row_class ? ' ' . $data->row_class : '';
?>">
<td class="block">
<?php
print $data->block_title;
?>
</td>
<td><?php
print $data->region_select;
?></td>
<td><?php
print $data->weight_select;
?> <?php
print $data->bid;
?></td>
<td><?php
print $data->status;
?></td>
<td><?php
print $data->open;
?></td>
<td><?php
print $data->movable;
?></td>
</tr>
<?php
$row++;
?>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
<?php
print $form_submit;
?>
<!-- End Homebox admin form layout -->