| @@ 12-22 (lines=11) @@ | ||
| 9 | ||
| 10 | class Follow_Button_Widget extends WP_Widget { |
|
| 11 | ||
| 12 | public function __construct() { |
|
| 13 | parent::__construct( |
|
| 14 | 'follow_button_widget', |
|
| 15 | /** This filter is documented in modules/widgets/facebook-likebox.php */ |
|
| 16 | apply_filters( 'jetpack_widget_name', __( 'Follow Button', 'jetpack' ) ), |
|
| 17 | array( |
|
| 18 | 'description' => __( 'Add a WordPress.com follow button to allow people to follow your blog easier', 'jetpack' ), |
|
| 19 | 'customize_selective_refresh' => true, |
|
| 20 | ) |
|
| 21 | ); |
|
| 22 | } |
|
| 23 | ||
| 24 | public function widget( $args, $instance ) { |
|
| 25 | $attributes = array(); |
|
| @@ 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 | apply_filters( 'jetpack_widget_name', 'Ads' ), |
|
| 16 | array( |
|
| 17 | 'description' => __( 'Insert a WordAd wherever you can place a widget.', 'jetpack' ), |
|
| 18 | 'customize_selective_refresh' => true |
|
| 19 | ) |
|
| 20 | ); |
|
| 21 | } |
|
| 22 | ||
| 23 | public function widget( $args, $instance ) { |
|
| 24 | global $wordads; |
|