PageRenderTime 123ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-contentold/plugins/nextgen-gallery/view/gallery-carousel.php

https://bitbucket.org/zachisit/zachis.it-m
PHP | 56 lines | 30 code | 11 blank | 15 comment | 7 complexity | 31144558ee93e786a6034edcd8ab0ac1 MD5 | raw file
  1. <?php
  2. /**
  3. Template Page for the gallery carousel
  4. Follow variables are useable :
  5. $gallery : Contain all about the gallery
  6. $images : Contain all images, path, title
  7. $pagination : Contain the pagination content
  8. $current : Contain the selected image
  9. $prev/$next : Contain link to the next/previous gallery page
  10. You can check the content when you insert the tag <?php var_dump($variable) ?>
  11. If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
  12. **/
  13. ?>
  14. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
  15. <div class="ngg-galleryoverview">
  16. <div class="pic"><img title="<?php echo $current->alttext ?>" alt="<?php echo $current->alttext ?>" src="<?php echo $current->url; ?>" /></div>
  17. <ul class="ngg-gallery-list">
  18. <!-- PREV LINK -->
  19. <?php if ($prev) : ?>
  20. <li class="ngg-prev">
  21. <a class="prev" href="<?php echo $prev ?>">&#9668;</a>
  22. </li>
  23. <?php endif; ?>
  24. <!-- Thumbnail list -->
  25. <?php foreach ( $images as $image ) : ?>
  26. <?php if ( $image->hidden ) continue; ?>
  27. <li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" >
  28. <a href="<?php echo $image->pidlink ?>" title="<?php echo $image->description ?>" >
  29. <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
  30. </a>
  31. </li>
  32. <?php endforeach; ?>
  33. <!-- NEXT LINK -->
  34. <?php if ($next) : ?>
  35. <li class="ngg-next">
  36. <a class="next" href="<?php echo $next ?>">&#9658;</a>
  37. </li>
  38. <?php endif; ?>
  39. </ul>
  40. </div>
  41. <?php endif; ?>