=')) { 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_bookmark_widget_activation_check'); function get_sfc_bookmark($args='') { return ''; } function sfc_bookmark($args='') { echo get_sfc_bookmark(); } function sfc_bookmark_shortcode($atts) { return get_sfc_bookmark(); } add_shortcode('fb-bookmark', 'sfc_bookmark_shortcode'); class SFC_Bookmark_Widget extends WP_Widget { function SFC_Bookmark_Widget() { $widget_ops = array('classname' => 'widget_sfc-bookmark', 'description' => 'Facebook Bookmark'); $this->WP_Widget('sfc-bookmark', 'Facebook Bookmark (SFC)', $widget_ops); } function widget($args, $instance) { extract( $args ); $title = apply_filters('widget_title', $instance['title']); ?> '') ); $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '') ); $title = strip_tags($instance['title']); ?>