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

/htdocs/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/templates/compact.php

https://github.com/Fishgate/privatecollectionswp
PHP | 38 lines | 38 code | 0 blank | 0 comment | 5 complexity | 856fb77e8c8df04cf67bf3d3cf8671cd MD5 | raw file
  1. <?php $this->start_element('nextgen_gallery.gallery_container', 'container', $displayed_gallery); ?>
  2. <div class="ngg-albumoverview">
  3. <?php foreach ($galleries as $gallery) { ?>
  4. <div class="ngg-album-compact">
  5. <div class="ngg-album-compactbox">
  6. <div class="ngg-album-link">
  7. <a class="Link gallery_link" href="<?php echo nextgen_esc_url($gallery->pagelink); ?>">
  8. <img class="Thumb"
  9. alt="<?php echo esc_attr($gallery->title); ?>"
  10. src="<?php echo nextgen_esc_url($gallery->previewurl); ?>"/>
  11. </a>
  12. </div>
  13. </div>
  14. <?php if (!empty($image_gen_params)) {
  15. $max_width = 'style="max-width: ' . ($image_gen_params['width'] + 20) . 'px"';
  16. } else {
  17. $max_width = '';
  18. } ?>
  19. <h4>
  20. <a class="ngg-album-desc"
  21. title="<?php echo esc_attr($gallery->title); ?>"
  22. href="<?php echo nextgen_esc_url($gallery->pagelink); ?>"
  23. <?php echo $max_width; ?>>
  24. <?php echo_safe_html($gallery->title); ?>
  25. </a>
  26. </h4>
  27. <p class="ngg-album-gallery-image-counter">
  28. <?php if (isset($gallery->counter) && $gallery->counter > 0) { ?>
  29. <strong><?php echo $gallery->counter; ?></strong>&nbsp;<?php _e('Photos', 'nggallery'); ?>
  30. <?php } else { ?>
  31. &nbsp;
  32. <?php } ?>
  33. </p>
  34. </div>
  35. <?php } ?>
  36. <br class="ngg-clear"/>
  37. </div>
  38. <?php $this->end_element(); ?>