1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
?>
|
28 |
|
|
<?php
|
29 |
|
|
|
30 |
|
|
drupal_add_js('misc/tableheader.js');
|
31 |
|
|
drupal_add_js(drupal_get_path('module', 'block') . '/block.js');
|
32 |
|
|
foreach ($block_regions as $region => $title) {
|
33 |
|
|
drupal_add_tabledrag('blocks', 'match', 'sibling', 'block-region-select', 'block-region-' . $region, NULL, FALSE);
|
34 |
|
|
drupal_add_tabledrag('blocks', 'order', 'sibling', 'block-weight', 'block-weight-' . $region);
|
35 |
|
|
}
|
36 |
|
|
?>
|
37 |
|
|
<table id="blocks" class="sticky-enabled">
|
38 |
|
|
<thead>
|
39 |
|
|
<tr>
|
40 |
|
|
<th><?php print t('Block'); ?></th>
|
41 |
|
|
<th><?php print t('Region'); ?></th>
|
42 |
|
|
<th><?php print t('Weight'); ?></th>
|
43 |
|
|
<th colspan="2"><?php print t('Operations'); ?></th>
|
44 |
|
|
</tr>
|
45 |
|
|
</thead>
|
46 |
|
|
<tbody>
|
47 |
|
|
<?php $row = 0; ?>
|
48 |
|
|
<?php foreach ($block_regions as $region => $title): ?>
|
49 |
|
|
<tr class="region-title region-title-<?php print $region?>">
|
50 |
|
|
<td colspan="5"><?php print $title; ?></td>
|
51 |
|
|
</tr>
|
52 |
|
|
<tr class="region-message region-<?php print $region?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
|
53 |
|
|
<td colspan="5"><em><?php print t('No blocks in this region'); ?></em></td>
|
54 |
|
|
</tr>
|
55 |
|
|
<?php foreach ($block_listing[$region] as $delta => $data): ?>
|
56 |
|
|
<tr class="draggable <?php print $row % 2 == 0 ? 'odd' : 'even'; ?><?php print $data->row_class ? ' ' . $data->row_class : ''; ?>">
|
57 |
|
|
<td class="block"><?php print $data->block_title; ?></td>
|
58 |
|
|
<td><?php print $data->region_select; ?></td>
|
59 |
|
|
<td><?php print $data->weight_select; ?></td>
|
60 |
|
|
<td><?php print $data->configure_link; ?></td>
|
61 |
|
|
<td><?php print $data->delete_link; ?></td>
|
62 |
|
|
</tr>
|
63 |
|
|
<?php $row++; ?>
|
64 |
|
|
<?php endforeach; ?>
|
65 |
|
|
<?php endforeach; ?>
|
66 |
|
|
</tbody>
|
67 |
|
|
</table>
|
68 |
|
|
|
69 |
|
|
<?php print $form_submit; ?> |