...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/www/wp-content/plugins/template-core/widgets/ |
Upload File : |
<?php
class Tpath_Mailchimp_Form_Widget extends WP_Widget {
private $api_key = '';
private $api_url = '';
function __construct()
{
/* Widget settings. */
$widget_options = array('classname' => 'tpath_mailchimp_form_widget', 'description' => 'Displays subscribe form for Mailchimp Lists.');
$control_options = array('id_base' => 'tpath_mailchimp_form-widget');
/* Create the widget. */
parent::__construct('tpath_mailchimp_form-widget', 'Mailchimp Subscribe Form', $widget_options, $control_options);
}
function widget($args, $instance)
{
extract($args);
$description = !empty($instance['description']) ? $instance['description'] : __( 'Subscribe to Our Newsletter', 'TemplateCore' );
$mailchimp_list = $instance['mailchimp_list'];
$title = apply_filters('widget_title', $instance['title']);
static $tpath_mailchimp_id = 1;
echo $before_widget;
if($title) {
echo $before_title . $title . $after_title;
}
if( $description ) {
echo '<p class="subscribe-desc">' . $description . '</p>';
}
if( $mailchimp_list != '' ) {
wp_enqueue_script( 'greenture-bootstrap-validator-js' ); ?>
<div id="mailchimp-subscribe-widget<?php echo esc_attr( $tpath_mailchimp_id ); ?>" class="tpath-mc-form subscribe-form mailchimp-form-wrapper">
<p class="mailchimp-msg tpath-form-success"></p>
<form action="<?php echo esc_url( tpath_get_current_url() ); ?>" id="tpath-mailchimp-form-widget<?php echo esc_attr( $tpath_mailchimp_id ); ?>" name="tpath-mailchimp-form-widget<?php echo esc_attr( $tpath_mailchimp_id ); ?>" class="tpath-mailchimp-form">
<div class="form-group mailchimp-email tpath-form-group-addon">
<div class="input-group">
<input type="email" placeholder="<?php esc_html_e('Enter your email here...' , 'TemplateCore'); ?>" class="tpath-subscribe input-email form-control" name="subscribe_email">
<div class="input-group-btn">
<button type="submit" id="tpath_mc_form_widget_submit" name="tpath_mailchimp_submit" class="btn mc-subscribe tpath-submit"><i class="flaticon flaticon-right164"></i></button>
</div>
</div>
</div>
<input type="hidden" id="tpath_mc_form_widget_list" name="tpath_mc_form_list" value="<?php echo esc_attr( $mailchimp_list ); ?>">
</form>
</div>
<?php }
$tpath_mailchimp_id++; ?>
<?php echo $after_widget;
}
function update($new_instance, $old_instance)
{
$instance = $old_instance;
$instance['title'] = $new_instance['title'];
$instance['description'] = $new_instance['description'];
$instance['mailchimp_list'] = $new_instance['mailchimp_list'];
return $instance;
}
function form($instance)
{
$defaults = array('title' => '', 'description' => '', 'mailchimp_list' => '');
$instance = wp_parse_args((array) $instance, $defaults);
$lists = tpath_get_mailing_lists_format(); ?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id('description') ); ?>"><?php _e('Description:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('description') ); ?>" name="<?php echo esc_attr( $this->get_field_name('description') ); ?>" value="<?php echo esc_attr( $instance['description'] ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id('mailchimp_list') ); ?>"><?php _e( 'Choose Mailing List:', 'TemplateCore' ); ?></label>
<select id="<?php echo esc_attr( $this->get_field_id('mailchimp_list') ); ?>" name="<?php echo esc_attr( $this->get_field_name('mailchimp_list') ); ?>">
<?php foreach( $lists as $key => $value ) { ?>
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $instance['mailchimp_list'], $value ); ?>><?php echo esc_attr( $key ); ?></option>
<?php } ?>
</select>
</p>
<?php }
}
function tpath_mailchimp_form_load()
{
register_widget('Tpath_Mailchimp_Form_Widget');
}
add_action('widgets_init', 'tpath_mailchimp_form_load');
?>