PageRenderTime 48ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-contentold/plugins/nextgen-gallery/view/album-compact.php

https://bitbucket.org/zachisit/zachis.it-m
PHP | 43 lines | 24 code | 7 blank | 12 comment | 3 complexity | 67937b845bb338e5d10c50d4a3c37ba4 MD5 | raw file
  1. <?php
  2. /**
  3. Template Page for the album overview
  4. Follow variables are useable :
  5. $album : Contain information about the album
  6. $galleries : Contain all galleries inside this album
  7. $pagination : Contain the pagination content
  8. You can check the content when you insert the tag <?php var_dump($variable) ?>
  9. If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
  10. **/
  11. ?>
  12. <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?>
  13. <div class="ngg-albumoverview">
  14. <!-- List of galleries -->
  15. <?php foreach ($galleries as $gallery) : ?>
  16. <div class="ngg-album-compact">
  17. <div class="ngg-album-compactbox">
  18. <div class="ngg-album-link">
  19. <a class="Link" href="<?php echo $gallery->pagelink ?>">
  20. <img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/>
  21. </a>
  22. </div>
  23. </div>
  24. <h4><a class="ngg-album-desc" title="<?php echo $gallery->title ?>" href="<?php echo $gallery->pagelink ?>" ><?php echo $gallery->title ?></a></h4>
  25. <?php if ($gallery->counter > 0) : ?>
  26. <p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
  27. <?php endif; ?>
  28. </div>
  29. <?php endforeach; ?>
  30. <!-- Pagination -->
  31. <?php echo $pagination ?>
  32. </div>
  33. <?php endif; ?>