<?php/**Template Page for the gallery overviewFollow variables are useable : $gallery : Contain all about the gallery (object type stdClass)This object can have the following values: ->ID : Gallery ID (integer) ->show_slideshow : true|false. If it is true, there are two more properties available: ->slideshow_link : link for slideshow (only present if show_slideshow exists) ->slideshow_link_text: link for slideshow (only present if show_slideshow exists) ->show_piclens : true|false. If it is true there is another property available ->piclens_link : link for piclens (javascript routine) (only if show_piclens exists) ->name : gallery name (string) ->title : gallery title ->description : gallery description ->pageid : Page Id ->anchor : Unique ID generated by gallery ID and current page with format 'ngg-gallery-' . $galleryID . '-' . $current_page; ->columns : number of columns(integer) ->imagewidth : style for use in template format: 'style-width: floor(100/columns)' $images : Contain all images, path, title This is a collection of image(s). Every image has the following properties: $image (object type nggImage) ->hidden : image is hidden ->style : style for image when hidden ->pidlink : permalink for image ->metadata : image metadata. This is an array containing: ->metadata['thumbnail'] : image thumbnail information. This is an array containing: ['thumbnail']['width'] : thumbnail width ['thumbnail']['height'] : thumbnail height ->url : image url ->imageURL : image url where the filter ngg_create_gallery_link is applied first ->size : string with picture size in the form 'width="'xxxx'" height="'yyy'"' ->thumbcode : thumbcode (?) ->caption : image caption ->description: image description ->alttext : image alttext from nggImage: errmsg,error,imageURL,thumbURL,imagePath,thumbPath,href,thumbPrefix,thumbFolder, galleryid,pid,filename,description,alttext,imagedate,exclude,thumbcode,name,path,title, pageid,previewpic,permalink,tags $pagination : (string) Contain the pagination content (created with class nggNavigation->create_navigation) 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'] ?>**/?><?phpif(!defined('ABSPATH'))die('No direct access allowed');?><?phpif(!empty($gallery)):?><div class="ngg-galleryoverview" id="<?phpecho$gallery->anchor?>"><?phpif($gallery->show_slideshow){?> <!-- Slideshow link --> <div class="slideshowlink"> <a class="slideshowlink" href="<?phpecho$gallery->slideshow_link?>"><?phpecho$gallery->slideshow_link_text?> </a> </div><?php}?><?phpif($gallery->show_piclens){?> <!-- Piclense link --> <div class="piclenselink"> <a class="piclenselink" href="<?phpecho$gallery->piclens_link?>"><?phpesc_html_e('[View with PicLens]','nggallery');?> </a> </div><?php}?> <!-- Thumbnails --><?phpforeach($imagesas$image):?> <div id="ngg-image-<?phpecho$image->pid?>" class="ngg-gallery-thumbnail-box" <?phpecho$image->style?> > <div class="ngg-gallery-thumbnail" > <a href="<?phpecho$image->imageURL?>" title="<?phpecho$image->description?>" <?phpecho$image->thumbcode?> data-size="<?phpecho$image->meta_data['width']."x".$image->meta_data['height']?>"><?phpif(!$image->hidden){?> <img title="<?phpecho$image->alttext?>" alt="<?phpecho$image->alttext?>" src="<?phpecho$image->thumbnailURL?>" <?phpecho$image->size?> /><?php}?> </a> </div> </div><?phpif($image->hidden)continue;?><?phpif($gallery->columns>0&&++$i%$gallery->columns==0){?> <br style="clear: both" /><?php}?><?phpendforeach;?> <!-- Pagination --><?phpecho$pagination?></div><?phpendif;?>
This is for use with the Photo Swipe plugin: https://wordpress.org/plugins/photo-swipe/