golden hour
/home/doctorbruno/public_html/kumaniko.com/wp-content/plugins/jetpack/modules/widgets
⬆️ Go Up
Upload
File/Folder
Size
Actions
authors
-
Del
OK
authors.php
8.06 KB
Del
OK
blog-stats.php
4.88 KB
Del
OK
class-jetpack-instagram-widget.php
24.23 KB
Del
OK
contact-info
-
Del
OK
contact-info.php
17.82 KB
Del
OK
customizer-controls.css
165 B
Del
OK
customizer-utils.js
4.07 KB
Del
OK
eu-cookie-law
-
Del
OK
eu-cookie-law.php
9.99 KB
Del
OK
facebook-likebox
-
Del
OK
facebook-likebox.php
13.67 KB
Del
OK
flickr
-
Del
OK
flickr.php
6.9 KB
Del
OK
gallery
-
Del
OK
gallery.php
14.86 KB
Del
OK
goodreads
-
Del
OK
goodreads.php
6.26 KB
Del
OK
google-translate
-
Del
OK
google-translate.php
5.81 KB
Del
OK
gravatar-profile.css
1.23 KB
Del
OK
gravatar-profile.php
13.23 KB
Del
OK
image-widget
-
Del
OK
image-widget.php
11.27 KB
Del
OK
instagram
-
Del
OK
internet-defense-league.php
5.99 KB
Del
OK
mailchimp.php
3.64 KB
Del
OK
migrate-to-core
-
Del
OK
milestone
-
Del
OK
milestone.php
346 B
Del
OK
my-community
-
Del
OK
my-community.php
10.49 KB
Del
OK
rsslinks-widget.php
10.38 KB
Del
OK
search
-
Del
OK
search.php
36.05 KB
Del
OK
simple-payments
-
Del
OK
simple-payments.php
20.32 KB
Del
OK
social-icons
-
Del
OK
social-icons.php
20.36 KB
Del
OK
social-media-icons
-
Del
OK
social-media-icons.php
10.66 KB
Del
OK
top-posts
-
Del
OK
top-posts.php
25.87 KB
Del
OK
twitter-timeline-admin.js
2.2 KB
Del
OK
twitter-timeline.php
19.77 KB
Del
OK
upcoming-events.php
6.3 KB
Del
OK
wordpress-post-widget
-
Del
OK
wordpress-post-widget.php
3.5 KB
Del
OK
Edit: mailchimp.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * MailChimp popup widget. * It acts as a wrapper for the mailchimp_subscriber_popup shortcode. * * @package automattic/jetpack */ if ( ! class_exists( 'Jetpack_MailChimp_Subscriber_Popup_Widget' ) ) { if ( ! class_exists( 'MailChimp_Subscriber_Popup' ) ) { include_once JETPACK__PLUGIN_DIR . 'modules/shortcodes/mailchimp.php'; } /** * Register MailChimp Subscriber Popup widget. */ function jetpack_mailchimp_subscriber_popup_widget_init() { register_widget( 'Jetpack_MailChimp_Subscriber_Popup_Widget' ); } add_action( 'widgets_init', 'jetpack_mailchimp_subscriber_popup_widget_init' ); /** * Add a MailChimp subscription form. */ class Jetpack_MailChimp_Subscriber_Popup_Widget extends WP_Widget { /** * Constructor */ public function __construct() { parent::__construct( 'widget_mailchimp_subscriber_popup', /** This filter is documented in modules/widgets/facebook-likebox.php */ apply_filters( 'jetpack_widget_name', __( 'MailChimp Subscriber Popup', 'jetpack' ) ), array( 'classname' => 'widget_mailchimp_subscriber_popup', 'description' => __( 'Allows displaying a popup subscription form to visitors.', 'jetpack' ), 'customize_selective_refresh' => true, ) ); } /** * Outputs the HTML for this widget. * * @param array $args An array of standard parameters for widgets in this theme. * @param array $instance An array of settings for this widget instance. * * @return void Echoes it's output */ public function widget( $args, $instance ) { $instance = wp_parse_args( $instance, array( 'code' => '' ) ); // Regular expresion that will match maichimp shortcode. $regex = '(\[mailchimp_subscriber_popup[^\]]+\])'; // Check if the shortcode exists. preg_match( $regex, $instance['code'], $matches ); // Process the shortcode only, if exists. if ( ! empty( $matches[0] ) ) { echo do_shortcode( $matches[0] ); } /** This action is documented in modules/widgets/gravatar-profile.php */ do_action( 'jetpack_stats_extra', 'widget_view', 'mailchimp_subscriber_popup' ); } /** * Deals with the settings when they are saved by the admin. * * @param array $new_instance New configuration values. * @param array $old_instance Old configuration values. * * @return array */ public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $instance = array(); $instance['code'] = MailChimp_Subscriber_Popup::reversal( $new_instance['code'] ); return $instance; } /** * Displays the form for this widget on the Widgets page of the WP Admin area. * * @param array $instance Instance configuration. * * @return void */ public function form( $instance ) { $instance = wp_parse_args( $instance, array( 'code' => '' ) ); $label = sprintf( wp_kses( /* Translators: %s is a link to the MailChimp support docs. */ __( 'Code: <a href="%s" target="_blank">( ? )</a>', 'jetpack' ), array( 'a' => array( 'href' => array(), 'target' => array(), ), ) ), 'https://en.support.wordpress.com/mailchimp/' ); printf( '<p><label for="%1$s">%4$s</label><textarea class="widefat" id="%1$s" name="%2$s" rows="3">%3$s</textarea></p>', esc_attr( $this->get_field_id( 'code' ) ), esc_attr( $this->get_field_name( 'code' ) ), esc_textarea( $instance['code'] ), $label // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped above. ); } } }
Save