/[drupal]/contributions/modules/ddblock/ddblock-cycle-pager-content.tpl.php
ViewVC logotype

Contents of /contributions/modules/ddblock/ddblock-cycle-pager-content.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Sun Sep 13 09:33:54 2009 UTC (2 months, 2 weeks ago) by ppblaauw
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +16 -16 lines
File MIME type: text/x-php
by ppblaauw: Dev release (Additional pager functionality and bug fixes), see CHANGELOG.txt
1 <?php
2 // $Id: ddblock-cycle-pager-content.tpl.php,v 1.2 2009/02/20 16:09:18 ppblaauw Exp $
3
4 /**
5 * @file
6 * Default theme implementation to display a dynamic display blocks from a dynamic display block instance.
7 *
8 * Available variables:
9 * - $ddblock_delta: Block number of the block.
10 * - $ddblock_pager: Add a pager to the dynamic display block.
11 * - $ddblock_pager_height: Height of the container of the pager.
12 * - $ddblock_pager_width: Width of the container of the pager.
13 * - $ddblock_pager_position: position of the slider (top | bottom)
14 * - $ddblock_content: themed content
15 *
16 * notes: don't change the ID names, they are used by the jQuery script.
17 */
18 $number_of_items = 6;
19 $number_of_items_per_row=3;
20 ?>
21
22 <?php //custom pager. ?>
23
24 <?php if ($ddblock_pager == 'custom-pager'): ?>
25 <?php if ($ddblock_pager_position == 'bottom' || $ddblock_pager_position == 'both'): ?>
26 <div class="spacer-horizontal"><b></b></div>
27 <?php endif; ?>
28 <div id="ddblock-pager-<?php print $ddblock_delta ?>" class="<?php print $ddblock_pager ?>" class="clear-block border">
29 <div class="<?php print $ddblock_pager ?>-inner" class="clear-block border">
30 <?php if ($ddblock_content): ?>
31 <?php $item_counter=0; ?>
32 <?php foreach ($ddblock_content as $pager_item): ?>
33 <div class="<?php print $ddblock_pager ?>-item <?php print $ddblock_pager ?>-item-<?php print $item_counter ?>">
34 <div class="<?php print $ddblock_pager ?>-item-inner">
35 <a href="#" title="navigate to topic"><?php print $pager_item['image']; ?><?php print $pager_item['text']; ?></a>
36 </div>
37 </div>
38 <?php $item_counter++; if ($item_counter == $number_of_items_per_row):?>
39 <div class="spacer-horizontal"><b></b></div>
40 <?php else: ?>
41 <div class="spacer-vertical"></div>
42 <?php endif; ?>
43 <?php endforeach; ?>
44 <?php endif; ?>
45 </div> <!-- pager-inner-->
46 </div> <!-- pager-->
47 <?php if ($ddblock_pager_position == 'top' || $ddblock_pager_position == 'both'): ?>
48 <div class="spacer-horizontal"><b></b></div>
49 <?php endif; ?>
50 <?php endif; ?>

  ViewVC Help
Powered by ViewVC 1.1.2