@@ 12-21 (lines=10) @@ | ||
9 | ||
10 | private static $allowed_tags = array( 'mrec', 'wideskyscraper' ); |
|
11 | ||
12 | function __construct() { |
|
13 | parent::__construct( |
|
14 | 'wordads_sidebar_widget', |
|
15 | /** This filter is documented in modules/widgets/facebook-likebox.php */ |
|
16 | apply_filters( 'jetpack_widget_name', 'Ads' ), |
|
17 | array( |
|
18 | 'description' => __( 'Insert an ad unit wherever you can place a widget.', 'jetpack' ), |
|
19 | 'customize_selective_refresh' => true |
|
20 | ) |
|
21 | ); |
|
22 | } |
|
23 | ||
24 | public function widget( $args, $instance ) { |
@@ 13-23 (lines=11) @@ | ||
10 | ||
11 | class Jetpack_Follow_Button_Widget extends WP_Widget { |
|
12 | ||
13 | public function __construct() { |
|
14 | parent::__construct( |
|
15 | 'follow_button_widget', |
|
16 | /** This filter is documented in modules/widgets/facebook-likebox.php */ |
|
17 | apply_filters( 'jetpack_widget_name', __( 'Follow Button', 'jetpack' ) ), |
|
18 | array( |
|
19 | 'description' => __( 'Add a WordPress.com follow button to allow people to follow your blog easier', 'jetpack' ), |
|
20 | 'customize_selective_refresh' => true, |
|
21 | ) |
|
22 | ); |
|
23 | } |
|
24 | ||
25 | public function widget( $args, $instance ) { |
|
26 | $attributes = array(); |
@@ 22-33 (lines=12) @@ | ||
19 | /** |
|
20 | * Constructor |
|
21 | */ |
|
22 | function __construct() { |
|
23 | parent::__construct( |
|
24 | 'widget_mailchimp_subscriber_popup', |
|
25 | /** This filter is documented in modules/widgets/facebook-likebox.php */ |
|
26 | apply_filters( 'jetpack_widget_name', __( 'MailChimp Subscriber Popup', 'jetpack' ) ), |
|
27 | array( |
|
28 | 'classname' => 'widget_mailchimp_subscriber_popup', |
|
29 | 'description' => __( 'Allows displaying a popup subscription form to visitors.', 'jetpack' ), |
|
30 | 'customize_selective_refresh' => true, |
|
31 | ) |
|
32 | ); |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * Outputs the HTML for this widget. |