You are here

ddblock-cycle-pager-content.tpl.php in Dynamic display block 7

Same filename and directory in other branches
  1. 6 ddblock-cycle-pager-content.tpl.php

File

ddblock-cycle-pager-content.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to display a dynamic display blocks from a dynamic display block instance.
 *
 * Available variables:
 * - $delta: Block number of the block.
 * - $pager: Add a pager to the dynamic display block.
 * - $pager_height: Height of the container of the pager.
 * - $pager_width: Width of the container of the pager.
 * - $pager_position: position of the slider (top | bottom)
 * - $content: themed content
 *
 * notes: don't change the ID names, they are used by the jQuery script.
 */
$number_of_items = 6;
$number_of_items_per_row = 3;
$settings = $ddblock_cycle_pager_settings;
?>



<?php

if ($settings['pager'] == 'custom-pager') {
  ?>
 <?php

  if ($settings['pager_position'] == 'bottom' || $settings['pager_position'] == 'both') {
    ?>
   <div class="spacer-horizontal"><b></b></div>
 <?php

  }
  ?>
 <div id="ddblock-pager-<?php

  print $settings['delta'];
  ?>" class="<?php

  print $settings['pager'];
  ?>" class="clear-block border">
  <div  class="<?php

  print $settings['pager'];
  ?>-inner" class="clear-block border">
   <?php

  if ($pager_items) {
    ?>
    <?php

    $item_counter = 0;
    ?>
    <?php

    foreach ($pager_items as $pager_item) {
      ?>
     <div class="<?php

      print $settings['pager'];
      ?>-item <?php

      print $settings['pager'];
      ?>-item-<?php

      print $item_counter;
      ?>">
      <div class="<?php

      print $settings['pager'];
      ?>-item-inner">
       <a href="#" title="navigate to topic"><?php

      print $pager_item['image'];
      print $pager_item['text'];
      ?></a>
      </div>
     </div>
     <?php

      $item_counter++;
      if ($item_counter == $number_of_items_per_row) {
        ?>
      <div class="spacer-horizontal"><b></b></div>
     <?php

      }
      else {
        ?>
      <div class="spacer-vertical"></div>
     <?php

      }
      ?>
    <?php

    }
    ?>
   <?php

  }
  ?>
  </div> <!-- pager-inner-->
 </div>  <!-- pager-->
 <?php

  if ($settings['pager_position'] == 'top' || $settings['pager_position'] == 'both') {
    ?>
   <div class="spacer-horizontal"><b></b></div>
 <?php

  }
}