Skip to content

Instantly share code, notes, and snippets.

@plasticmind
Created October 15, 2015 00:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save plasticmind/9edaa59c2f5955802e59 to your computer and use it in GitHub Desktop.
Pinterest Hidden Image Stack
<?php if ( isset($pinterest_image) && ($pinterest_image!=='') ) : ?><div class="pin-image" style="display:none"><img src="<?php echo get_template_directory_uri(); ?>/assets/i/blank.gif" alt="" data-pin-media="<?php echo $pinterest_image; ?>"<?php echo (isset($pinterest_description) && ($pinterest_description!=='')) ? ' data-pin-description="'.$pinterest_description.'"': '';?>></div><?php endif; ?>
<?php if ( isset($pinterest_image_2) && ($pinterest_image_2!=='') ) : ?><div class="pin-image" style="display:none"><img src="<?php echo get_template_directory_uri(); ?>/assets/i/blank-2.gif" alt="" data-pin-media="<?php echo $pinterest_image_2; ?>"<?php echo (isset($pinterest_description) && ($pinterest_description!=='')) ? ' data-pin-description="'.$pinterest_description.'"': '';?>></div><?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment