function get_featured_image($size, $id = false) { check_size_exist($size); $postid = $id ? $id : get_the_ID(); $src = wp_get_attachment_image_src(get_post_thumbnail_id($postid), $size); if (!$src) { return default_image($size); } return $src[0]; }
echo page_url(); ?> ', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false"> <i class="icon-twitter"></i> </span> <span class="social-share-button" onclick="popUp=window.open('https://www.linkedin.com/shareArticle?mini=true&url=<?php echo page_url(); ?> ', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false"> <i class="icon-linkedin"></i> </span> <span class="social-share-button" onclick="popUp=window.open('http://pinterest.com/pin/create/link/?url=<?php echo page_url(); ?> &media=<?php echo default_image(); ?> &description=<?php echo urlencode(default_description()); ?> ', 'popupwindow', 'scrollbars=yes,width=800,height=400');popUp.focus();return false"> <i class="icon-pinterest"></i> </span> <a class="social-share-button mail" href="mailto:?subject=<?php echo email_title(); ?> &body=<?php echo email_description(); ?> ">
function twitter_summary_large_image() { return twitter_summary_large()->getArray()[0]['card_image'] ? twitter_summary_large()->getArray()[0]['card_image']->getMain()->getUrl() : default_image(); }