Ejemplo n.º 1
0
 public static function sfc_like_button()
 {
     if (function_exists('sfc_like_button')) {
         sfc_like_button();
     } else {
         echo _e('Please install Simple Facebook Connect', 'corewp');
     }
 }
Ejemplo n.º 2
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        $url = $instance['url'];
        $width = intval($instance['width']);
        ?>
		<?php 
        echo $before_widget;
        ?>
		<?php 
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
		<?php 
        sfc_like_button(array('url' => $url, 'layout' => 'standard', 'showfaces' => 'false', 'width' => $width));
        ?>
		<?php 
        echo $after_widget;
        ?>
		<?php 
    }