[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/gallery/ -> gallery-block-grid-block.tpl.php (source)

   1  <?php
   2  // $Id: gallery-block-grid-block.tpl.php,v 1.1.2.1 2008/03/08 16:27:25 kiz0987 Exp $
   3  
   4  /**
   5   * @file gallery-block-grid-block.tpl.php
   6   * Default theme implementation to display a Gallery grid block.
   7   *
   8   * Available variables:
   9   * - $class: The CSS class for the block.
  10   * - $images: An array of image HTML organized as rows and columns.
  11   * - $content: The unprocessed image HTML from Gallery2.
  12   * - $num_cols: The number of columns.
  13   *
  14   * @see template_preprocess_gallery_block_grid_block()
  15   */
  16  ?>
  17  <div class="<?php print $class; ?>">
  18    <div class="image-grid">
  19      <table>
  20        <tbody>
  21        <?php foreach ($images as $image_row): ?>
  22          <tr class="<?php print $image_row['zebra']; ?>">
  23          <?php foreach ($image_row['data'] as $image): ?>
  24            <td style="text-align:center;">
  25              <?php print $image; ?>
  26            </td>
  27            <?php endforeach; ?> 
  28          </tr>
  29        <?php endforeach; ?>
  30        </tbody>
  31      </table>
  32    </div>
  33  </div>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7