Beispiel #1
0
function iva_sociable($atts, $content = null)
{
    extract(shortcode_atts(array('title' => '', 'color' => 'black'), $atts));
    $out = "";
    if ($title) {
        $out .= '<h4 class="widget-title">' . $title . '<span></span></h4>';
    }
    $out .= atp_social($color);
    return $out;
}
Beispiel #2
0
 function widget($args, $instance)
 {
     extract($args);
     $title = $instance['title'];
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     $color = $instance['color'];
     //echo atp_social();
     echo atp_social($color);
     echo $after_widget;
 }