Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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