function woo_shortcode_ilink($atts, $content = null) { extract(shortcode_atts(array('style' => 'info', 'url' => '', 'icon' => '', 'title' => ''), $atts)); $atts = ''; if ($icon != '') { $atts .= ' style="background: url( ' . esc_url($icon) . ') no-repeat left 40%;"'; } if ($title != '') { $atts .= ' title="' . esc_attr($title) . '"'; } return '<span class="woo-sc-ilink"><a class="' . esc_attr($style) . '" href="' . esc_url($url) . '"' . $atts . '>' . woo_remove_wpautop($content) . '</a></span>'; }
function woo_shortcode_fbshare($atts, $content = null) { extract(shortcode_atts(array('url' => '', 'type' => 'button', 'float' => 'left'), $atts)); global $post; if (isset($url) && $url == '' && isset($post)) { $url = get_permalink($post->ID); } // End IF Statement $output = ' <div class="woo-fbshare ' . esc_attr($float) . '"> <a name="fb_share" type="' . esc_attr($type) . '" share_url="' . esc_url($url) . '">' . woo_remove_wpautop($content) . '</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script> </div> '; return $output; }
function woo_shortcode_toggle($atts, $content = null) { extract(shortcode_atts(array('link' => 'Toggle link', 'hide' => ''), $atts)); woo_check_shortcode_js('toggle'); $output .= '<a class="woo-sc-toggle-trigger">' . $link . '</a>'; $output .= '<div class="woo-sc-toggle-box' . $show . '">' . woo_remove_wpautop($content) . '</div>'; return $output; }