| @@ 11-23 (lines=13) @@ | ||
| 8 | ||
| 9 | class Jetpack_RSS_Links_Widget extends WP_Widget { | |
| 10 | ||
| 11 | 	function __construct() { | |
| 12 | $widget_ops = array( | |
| 13 | 'classname' => 'widget_rss_links', | |
| 14 | 'description' => __( "Links to your blog's RSS feeds", 'jetpack' ), | |
| 15 | 'customize_selective_refresh' => true, | |
| 16 | ); | |
| 17 | parent::__construct( | |
| 18 | 'rss_links', | |
| 19 | /** This filter is documented in modules/widgets/facebook-likebox.php */ | |
| 20 | apply_filters( 'jetpack_widget_name', __( 'RSS Links', 'jetpack' ) ), | |
| 21 | $widget_ops | |
| 22 | ); | |
| 23 | } | |
| 24 | ||
| 25 | 	function widget( $args, $instance ) { | |
| 26 | $instance = wp_parse_args( (array) $instance, $this->defaults() ); | |
| @@ 754-765 (lines=12) @@ | ||
| 751 | */ | |
| 752 | ||
| 753 | class Jetpack_Subscriptions_Widget extends WP_Widget { | |
| 754 | 	function __construct() { | |
| 755 | $widget_ops = array( 'classname' => 'jetpack_subscription_widget', 'description' => __( 'Add an email signup form to allow people to subscribe to your blog.', 'jetpack' ) ); | |
| 756 | $control_ops = array( 'width' => 300 ); | |
| 757 | ||
| 758 | parent::__construct( | |
| 759 | 'blog_subscription', | |
| 760 | /** This filter is documented in modules/widgets/facebook-likebox.php */ | |
| 761 | apply_filters( 'jetpack_widget_name', __( 'Blog Subscriptions', 'jetpack' ) ), | |
| 762 | $widget_ops, | |
| 763 | $control_ops | |
| 764 | ); | |
| 765 | } | |
| 766 | ||
| 767 | 	function widget( $args, $instance ) { | |
| 768 | if ( | |