HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/shortcode/spa_newsletter.php
<?php
if(!class_exists('iz_vc_mailchimp'))
{
	class iz_vc_mailchimp extends iz_shortcode{
		public function __construct()
		{
			$this->custom_shortcode('iz_spa_mailchimp', array($this, 'iz_render_html'));
			add_action('vc_before_init', array($this, 'iz_vc_shortcode'));
		}

		public function iz_render_html($atts, $content ='')
		{			
			return $this->get_template('spa_mailchimp.php', $atts, $content);
		}

		public function iz_vc_shortcode()
		{
		   	vc_map( array(
		      "name"      => __( "Spa Mailchimp", IZ_LANG),
		      "base"      => "iz_spa_mailchimp",
		      "category"  => __( "Spa Shortcode", IZ_LANG),
		      // 'admin_enqueue_css' => array(get_template_directory_uri().'/builder/assets/css/vc_extends_css.css'),
		      "params" => array(		        
		        array(
		        	'type' => 'textfield',
		    		'heading' => __('Enter mailchimp apikey', IZ_LANG),
		    		'param_name' => 'apikey',
		      		'value' => '',		    		
		    	),
		    	array(
		            'type' => 'textfield',			        
		            'heading' => __( 'Enter Mailchimp List Id', IZ_LANG ),
		            'param_name' => 'mailchimp_id',
		            'value' => '',		            
		        ),
		        array(
		        	'type' => 'textfield',
		        	'heading' => __("Message when subscribe successful", IZ_LANG),
		        	'param_name' => 'message',
		        	'value' => '',
		        )		       
		    )
			));
		}
	}
}