Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Template Page for the image browser
- Follow variables are useable :
- $image : Contain all about the image
- $meta : Contain the raw Meta data from the image
- $exif : Contain the clean up Exif data
- $iptc : Contain the clean up IPTC data
- $xmp : Contain the clean up XMP data
- 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 ($image)) : ?>
- <!--breadcrumbs go here-->
- <div class="ngg-imagebrowser" id="<?php echo $image->anchor ?>">
- <!-- Image Anchor Above -->
- <h3><?php echo $iptc['headline'] ?> - Photo #<?php echo $image->number ?></h3>
- <!-- Image alttext Above -->
- <div class="pic"><?php echo $image->href_link ?></div>
- <div class="ngg-imagebrowser-nav">
- <div class="back">
- <a class="ngg-browser-prev" id="ngg-prev-<?php echo $image->previous_pid ?>" href="<?php echo $image->previous_image_link ?>">◄ <?php _e('Back', 'nggallery') ?></a>
- </div>
- <div class="next">
- <a class="ngg-browser-next" id="ngg-next-<?php echo $image->next_pid ?>" href="<?php echo $image->next_image_link ?>"><?php _e('Next', 'nggallery') ?> ►</a>
- </div>
- <div class="counter"><?php _e('Picture', 'nggallery') ?> <?php echo $image->number ?> <?php _e('of', 'nggallery')?> <?php echo $image->total ?></div>
- <div class="ngg-imagebrowser-desc"><br /><?php echo $image->alttext ?><br /><?php echo $image->description ?></div>
- <div class="ngg-imagebrowser-desc"><?php _e('Metrics:', 'nggallery') ?> <?php echo $iptc['location'] ?> / <?php echo $iptc['city'] ?>, <?php echo $iptc['state'] ?> @ <?php echo $exif['created_timestamp'] ?></div>
- <div class="ngg-imagebrowser-desc"><?php _e('Keywords:', 'nggallery') ?> <?php echo $iptc['keywords'] ?></div>
- <div class="ngg-imagebrowser-desc"><?php _e('Filename:', 'nggallery') ?> <?php echo $image->filename ?></p></div>
- <?php // var_dump($image) ?>
- <?php // var_dump($meta) ?>
- <?php // var_dump($exif) ?>
- <?php // var_dump($iptc) ?>
- <?php // var_dump($xmp) ?>
- </div>
- <?php echo $image->filename ?> Got updates for this Image? Submit here:
- <?php // add_filter('gform_field_value_image_filename', 'get_filename'); function get_filename($value){$variable = "suck" ;return (string) $variable; } ?>
- <?php add_filter('gform_field_value_image_filename', 'get_filename'); function get_filename($value){ "<pre>";var_dump(get_defined_vars());echo "</pre>" , $variable = "suck" ;return (string) $variable; } ?>
- <?php echo $image->filename ?>
- <?php gravity_form(1, false, false, false, '', false); ?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement