/** * The function for the RAF shortcode. * * @param array $atts * @author Benjamin Niess */ public static function shortcode_recommend_a_friend_link($atts = array()) { extract(shortcode_atts(array('permalink' => '', 'image' => '', 'text' => ''), $atts)); return recommend_a_friend_link($permalink, $image, $text); }
<h3 class="widget-title"> <?php if ($title) { echo $title; } ?> </h3> <?php //custom image view if ($display_type == 2) { echo recommend_a_friend_link('', $image_url); } elseif ($display_type == 3) { echo "<p>" . recommend_a_friend_link('', '', $link_text) . "</p>"; } else { echo recommend_a_friend_link('', RAF_URL . 'images/share-widget-bg.png'); }