=')) {
return;
}
}
deactivate_plugins(basename(__FILE__)); // Deactivate ourself
wp_die("The base SFC plugin must be activated before this plugin will run.");
}
register_activation_hook(__FILE__, 'sfc_user_status_activation_check');
function get_sfc_userstatus($args='') {
$args = wp_parse_args($args, array(
'profileid' => '',
'linked' => 'true'
));
extract($args);
return "";
}
function sfc_userstatus($args='') {
echo get_sfc_userstatus($args);
}
function sfc_userstatus_shortcode($atts) {
$args = shortcode_atts(array(
'profileid' => '',
'linked' => 'true'
), $atts);
return get_sfc_userstatus($args);
}
add_shortcode('fb-userstatus', 'sfc_userstatus_shortcode');
class SFC_User_Status_Widget extends WP_Widget {
function SFC_User_Status_Widget() {
$widget_ops = array('classname' => 'widget_sfc-status', 'description' => 'Facebook User Status (needs user profile number)' );
$this->WP_Widget('sfc-userstatus', 'Facebook Status (SFC)', $widget_ops);
}
function widget($args, $instance) {
extract( $args );
$title = apply_filters('widget_title', $instance['title']);
$profileid = $instance['profileid'];
?>
(Your User Profile Number can be found on this page.)