source: sipes/cord/modules/block/block-admin-display-form.tpl.php @ 8a8efa8

stableversion-3.0
Last change on this file since 8a8efa8 was b354002, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio del cord

  • Propiedad mode establecida a 100755
File size: 3.0 KB
Línea 
1<?php
2
3/**
4 * @file block-admin-display-form.tpl.php
5 * Default theme implementation to configure blocks.
6 *
7 * Available variables:
8 * - $block_regions: An array of regions. Keyed by name with the title as value.
9 * - $block_listing: An array of blocks keyed by region and then delta.
10 * - $form_submit: Form submit button.
11 * - $throttle: TRUE or FALSE depending on throttle module being enabled.
12 *
13 * Each $block_listing[$region] contains an array of blocks for that region.
14 *
15 * Each $data in $block_listing[$region] contains:
16 * - $data->region_title: Region title for the listed block.
17 * - $data->block_title: Block title.
18 * - $data->region_select: Drop-down menu for assigning a region.
19 * - $data->weight_select: Drop-down menu for setting weights.
20 * - $data->throttle_check: Checkbox to enable throttling.
21 * - $data->configure_link: Block configuration link.
22 * - $data->delete_link: For deleting user added blocks.
23 *
24 * @see template_preprocess_block_admin_display_form()
25 * @see theme_block_admin_display()
26 */
27?>
28<?php
29  // Add table javascript.
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      <?php if ($throttle): ?>
44        <th><?php print t('Throttle'); ?></th>
45      <?php endif; ?>
46      <th colspan="2"><?php print t('Operations'); ?></th>
47    </tr>
48  </thead>
49  <tbody>
50    <?php $row = 0; ?>
51    <?php foreach ($block_regions as $region => $title): ?>
52      <tr class="region region-<?php print $region?>">
53        <td colspan="<?php print $throttle ? '6' : '5'; ?>" class="region"><?php print $title; ?></td>
54      </tr>
55      <tr class="region-message region-<?php print $region?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
56        <td colspan="<?php print $throttle ? '6' : '5'; ?>"><em><?php print t('No blocks in this region'); ?></em></td>
57      </tr>
58      <?php foreach ($block_listing[$region] as $delta => $data): ?>
59      <tr class="draggable <?php print $row % 2 == 0 ? 'odd' : 'even'; ?><?php print $data->row_class ? ' '. $data->row_class : ''; ?>">
60        <td class="block"><?php print $data->block_title; ?></td>
61        <td><?php print $data->region_select; ?></td>
62        <td><?php print $data->weight_select; ?></td>
63        <?php if ($throttle): ?>
64          <td><?php print $data->throttle_check; ?></td>
65        <?php endif; ?>
66        <td><?php print $data->configure_link; ?></td>
67        <td><?php print $data->delete_link; ?></td>
68      </tr>
69      <?php $row++; ?>
70      <?php endforeach; ?>
71    <?php endforeach; ?>
72  </tbody>
73</table>
74
75<?php print $form_submit; ?>
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.