Ejemplo n.º 1
0
    function widget($args, $instance)
    {
        $options = get_option('sfc_options');
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        $appid = $options['appid'];
        $stream = isset($instance['stream']) ? $instance['stream'] : true;
        $connections = intval($instance['connections']);
        $width = intval($instance['width']);
        ?>
		<?php 
        echo $before_widget;
        ?>
		<?php 
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
		<?php 
        echo sfc_connect_shortcode();
        ?>
		<?php 
        echo $after_widget;
        ?>
		<?php 
    }
    function widget($args, $instance)
    {
        $options = get_option('sfc_options');
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        ?>
		<?php 
        echo $before_widget;
        ?>
		<?php 
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
		<?php 
        echo sfc_connect_shortcode();
        ?>
		<?php 
        echo $after_widget;
        ?>
		<?php 
    }