PageRenderTime 41ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress/wp-content/plugins/nextgen-gallery/view/album-compact.php

http://ownerpress.googlecode.com/
PHP | 43 lines | 24 code | 7 blank | 12 comment | 3 complexity | ca0100e5e28b03a673b793ea5270ff1c MD5 | raw file
Possible License(s): Apache-2.0, AGPL-1.0, GPL-2.0, GPL-3.0, LGPL-2.1
  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; ?>