Gallery one, for single-thumb gallery popups
authorlaury <laury@gaslightmedia.com>
Wed, 10 Dec 2014 15:55:19 +0000 (10:55 -0500)
committerlaury <laury@gaslightmedia.com>
Wed, 10 Dec 2014 15:55:19 +0000 (10:55 -0500)
nggallery/gallery-one.php [new file with mode: 0644]

diff --git a/nggallery/gallery-one.php b/nggallery/gallery-one.php
new file mode 100644 (file)
index 0000000..a5a01c1
--- /dev/null
@@ -0,0 +1,39 @@
+<?php 
+/**
+Template Page for the gallery overview
+
+Follow variables are useable :
+
+    $gallery     : Contain all about the gallery
+    $images      : Contain all images, path, title
+    $pagination  : Contain the pagination content
+
+ You can check the content when you insert the tag <?php var_dump($variable) ?>
+ If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
+**/
+?>
+<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
+<?php if (!empty ($gallery)) : ?>
+
+<?php $i=1; ?>
+
+<div class="gallery-holder small-6 medium-3 large-2 columns gal<?php echo $gallery->ID; ?>">
+<?php foreach ($images as $image) : ?>
+
+    <?php if ($i < 2) : ?>
+        <div style="display:none;">
+            <img src="<?php echo $image->imageURL ?>" />
+        </div>
+        <a href="<?php echo $image->imageURL ?>" <?php echo $image->thumbcode ?> title="<?php echo $image->alttext ?>">
+            <img src="<?php echo $image->thumbnailURL ?>" /></a>
+       <div class="gallery-one-title">
+           <?php echo $gallery->title ?>
+       </div>
+    <?php else : ?>
+        <a style="display:none" href="<?php echo $image->imageURL ?>" title="<?php echo $image->alttext ?>" <?php echo $image->thumbcode ?>>link</a>
+<?php endif; $i++; ?>
+
+<?php endforeach; ?>
+</div>
+
+<?php endif;?>