Projet

Général

Profil

Paste
Télécharger (1,99 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ddblock / ddblock-cycle-pager-content.tpl.php @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 * Default theme implementation to display a dynamic display blocks from a dynamic display block instance.
6
 *
7
 * Available variables:
8
 * - $delta: Block number of the block.
9
 * - $pager: Add a pager to the dynamic display block.
10
 * - $pager_height: Height of the container of the pager.
11
 * - $pager_width: Width of the container of the pager.
12
 * - $pager_position: position of the slider (top | bottom)
13
 * - $content: themed content
14
 *
15
 * notes: don't change the ID names, they are used by the jQuery script.
16
 */
17
$number_of_items = 6;
18
$number_of_items_per_row=3;
19
$settings = $ddblock_cycle_pager_settings;
20
?>
21

    
22

    
23

    
24
<?php if ($settings['pager'] == 'custom-pager'): ?>
25
 <?php if ($settings['pager_position'] == 'bottom' || $settings['pager_position'] == 'both'): ?>
26
   <div class="spacer-horizontal"><b></b></div>
27
 <?php endif; ?>
28
 <div id="ddblock-pager-<?php print $settings['delta'] ?>" class="<?php print $settings['pager'] ?>" class="clear-block border">
29
  <div  class="<?php print $settings['pager'] ?>-inner" class="clear-block border">
30
   <?php if ($pager_items): ?>
31
    <?php $item_counter=0; ?>
32
    <?php foreach ($pager_items as $pager_item): ?>
33
     <div class="<?php print $settings['pager'] ?>-item <?php print $settings['pager'] ?>-item-<?php print $item_counter ?>">
34
      <div class="<?php print $settings['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 ($settings['pager_position'] == 'top' || $settings['pager_position'] == 'both'): ?>
48
   <div class="spacer-horizontal"><b></b></div>
49
 <?php endif; ?>
50
<?php endif; ?>