function colabs_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="colabs-fbshare ' . $float . '"> <a name="fb_share" type="' . $type . '" share_url="' . $url . '">' . colabs_remove_wpautop($content) . '</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script> </div> '; return $output; }
function colabs_shortcode_ilink($atts, $content = null) { extract(shortcode_atts(array('style' => 'info', 'url' => '', 'icon' => '', 'title' => ''), $atts)); $atts = ''; if ($icon != '') { $atts .= ' style="background: url( ' . $icon . ') no-repeat left 40%;"'; } if ($title != '') { $atts .= ' title="' . esc_attr($title) . '"'; } return '<span class="colabs-sc-ilink"><a class="' . $style . '" href="' . $url . '"' . $atts . '>' . colabs_remove_wpautop($content) . '</a></span>'; }