<div class="share-bar"> <div class="row"> <div class="large-12 columns"> <div class="left add-to-wishlist"> <span class="show-for-large-up add-to-wishlist-text wish<?php if (grav_has_wishlist(get_the_ID())) { ?> active<?php } ?> " data-pid="<?php the_ID(); ?> ">Add to Wishlist</span> <span class="wish<?php if (grav_has_wishlist(get_the_ID())) { ?> active<?php } ?> " data-pid="<?php the_ID(); ?> "></span> </div> <ul> <li class="title"><span class="hide-for-small">Share</span></li> <li><a onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('<?php the_permalink(); ?>
?> '; new_location['title'] = '<?php echo $experience->post_title; ?> '; new_location['link'] = '<?php echo get_permalink($experience->ID); ?> '; new_location['pid'] = '<?php echo $experience->ID; ?> '; new_location['wish_class'] = '<?php echo grav_has_wishlist($experience->ID) ? " active" : ""; ?> '; new_location['description'] = '<?php echo wp_trim_words($experience->post_excerpt, 10); ?> '; new_location['location'] = '<?php echo $location->post_title; ?> '; storeLocatorAddLocation(new_location); <?php }