<p> ' . __('Further configuration is done via the', 'mr_social_sharing_toolkit') . ' <a href="options-general.php?page=mr_social_sharing#tab_4">' . __('plugin admin screen', 'mr_social_sharing_toolkit') . '</a>. </p>'; } } $MR_Social_Sharing_Toolkit = new MR_Social_Sharing_Toolkit(); add_action('wp_print_styles', array($MR_Social_Sharing_Toolkit, 'prepare_styles')); add_action('wp_print_scripts', array($MR_Social_Sharing_Toolkit, 'prepare_scripts')); if ($MR_Social_Sharing_Toolkit->should_print_opengraph()) { add_action('wp_head', array($MR_Social_Sharing_Toolkit, 'print_opengraph'), 1); } if ($MR_Social_Sharing_Toolkit->should_linkify_content()) { add_filter('the_content', array($MR_Social_Sharing_Toolkit, 'linkify')); } if ($MR_Social_Sharing_Toolkit->should_linkify_comments()) { add_filter('comment_text', array($MR_Social_Sharing_Toolkit, 'linkify')); } if ($MR_Social_Sharing_Toolkit->should_share_excerpt()) { add_filter('the_excerpt', array($MR_Social_Sharing_Toolkit, 'share_excerpt')); } if ($MR_Social_Sharing_Toolkit->should_share_content()) { add_filter('the_content', array($MR_Social_Sharing_Toolkit, 'share')); } if ($MR_Social_Sharing_Toolkit->should_use_shortcode()) { add_shortcode('social_share', array($MR_Social_Sharing_Toolkit, 'share_shortcode')); } /* Register widgets */ add_action('widgets_init', create_function('', 'return register_widget("MR_Social_Sharing_Toolkit_Widget");')); add_action('widgets_init', create_function('', 'return register_widget("MR_Social_Sharing_Toolkit_Follow_Widget");')); /* Register plugin admin page */ add_action('admin_menu', array($MR_Social_Sharing_Toolkit, 'plugin_menu'));