Post format: Link */ /*--- After title data -----------------------------*/ if (is_single() && !empty($st_Settings['after_title']) && $st_Settings['after_title'] == 'yes') { echo '<div id="title-after">' . do_shortcode($st_Settings['after_title_data']) . '</div><div class="clear"><!-- --></div>'; } /*--- Excerpt -----------------------------*/ if (is_single() && !empty($st_Settings['excerpt']) && $st_Settings['excerpt'] == 'yes' && $post->post_excerpt) { echo '<div class="clear"><!-- --></div><div id="post-excerpt">' . wpautop($post->post_excerpt) . '</div>'; } ?> <div class="st-format-link-holder"><?php /*=============================================== L I N K Post Format ===============================================*/ $st_['link'] = st_get_post_meta($post->ID, 'link_value', true, ''); if ($st_['link']) { if (st_get_post_meta($post->ID, 'link_redirect_value', true, '')) { $st_['link'] = st_get_redirect_page_url() . $st_['link']; } $st_['link_title'] = st_get_post_meta($post->ID, 'link_title_value', true, $st_['link']); echo '<a target="_blank" href="' . $st_['link'] . '">' . st_get_post_meta($post->ID, 'link_title_value', true, $st_['link']) . '</a>'; } ?> </div>
function st_icons_social() { global $st_Options, $st_Settings; $out = '<div class="icons-social">'; // Icons selected foreach ($st_Options['networks'] as $value) { if ($st_Settings[$value]) { $value = substr($value, 5); $out .= "\n"; $out .= '<a id="icon-' . $value . '" class="tooltip" title="' . $value . '" href="' . st_get_redirect_page_url() . esc_url($st_Settings['life_' . $value]) . '" target="_blank"><!-- --></a>'; } } // Icons custom if (!empty($st_Settings['lifestream_custom']) && $st_Settings['lifestream_custom']) { $out .= $st_Settings['lifestream_custom']; } $out .= '</div>'; echo $out; return; }