modules/widgets/follow-button.php 1 location
|
@@ 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(); |
modules/widgets/rsslinks-widget.php 1 location
|
@@ 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() ); |
modules/widgets/mailchimp.php 1 location
|
@@ 24-35 (lines=12) @@
|
| 21 |
|
/** |
| 22 |
|
* Constructor |
| 23 |
|
*/ |
| 24 |
|
function __construct() { |
| 25 |
|
parent::__construct( |
| 26 |
|
'widget_mailchimp_subscriber_popup', |
| 27 |
|
/** This filter is documented in modules/widgets/facebook-likebox.php */ |
| 28 |
|
apply_filters( 'jetpack_widget_name', __( 'MailChimp Subscriber Popup', 'jetpack' ) ), |
| 29 |
|
array( |
| 30 |
|
'classname' => 'widget_mailchimp_subscriber_popup', |
| 31 |
|
'description' => __( 'Allows displaying a popup subscription form to visitors.', 'jetpack' ), |
| 32 |
|
'customize_selective_refresh' => true, |
| 33 |
|
) |
| 34 |
|
); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* Outputs the HTML for this widget. |
modules/wordads/php/widgets.php 1 location
|
@@ 13-23 (lines=11) @@
|
| 10 |
|
private static $allowed_tags = array( 'mrec', 'wideskyscraper' ); |
| 11 |
|
private static $num_widgets = 0; |
| 12 |
|
|
| 13 |
|
function __construct() { |
| 14 |
|
parent::__construct( |
| 15 |
|
'wordads_sidebar_widget', |
| 16 |
|
/** This filter is documented in modules/widgets/facebook-likebox.php */ |
| 17 |
|
apply_filters( 'jetpack_widget_name', 'Ads' ), |
| 18 |
|
array( |
| 19 |
|
'description' => __( 'Insert an ad unit wherever you can place a widget.', 'jetpack' ), |
| 20 |
|
'customize_selective_refresh' => true |
| 21 |
|
) |
| 22 |
|
); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function widget( $args, $instance ) { |
| 26 |
|
global $wordads; |