get_jp_emblem( true ) ); // Wrap title in span so Logo can be properly styled. $widget_title = sprintf( '%s', $widget_title ); wp_add_dashboard_widget( 'jetpack_summary_widget', $widget_title, array( __CLASS__, 'dashboard_widget' ) ); wp_enqueue_style( 'jetpack-dashboard-widget', plugins_url( 'css/dashboard-widget.css', JETPACK__PLUGIN_FILE ), array(), JETPACK__VERSION ); wp_style_add_data( 'jetpack-dashboard-widget', 'rtl', 'replace' ); } } /** * Fires dashboard widget action. * Both the footer from this file and the stats graph from modules/stats.php hook into this action. */ public static function dashboard_widget() { /** * Fires when the dashboard is loaded. * * @since 3.4.0 */ do_action( 'jetpack_dashboard_widget' ); } /** * Load the widget footer showing Akismet stats. */ public static function dashboard_widget_footer() { ?>