PageRenderTime 50ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/archives-of-michigan/seekingmichigan.org-Wordpress
PHP | 41 lines | 22 code | 7 blank | 12 comment | 2 complexity | e06d9bb9ef2e5f0dd54702f365d79545 MD5 | raw file
Possible License(s): GPL-2.0
  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. <p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
  26. </div>
  27. <?php endforeach; ?>
  28. <!-- Pagination -->
  29. <?php echo $pagination ?>
  30. </div>
  31. <?php endif; ?>