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_about.php
<?php
if(!class_exists('iz_vc_about'))
{
	class iz_vc_about extends iz_shortcode{
		public function __construct()
		{
			$this->custom_shortcode('iz_about', 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_about.php', $atts, $content);
		}

		public function iz_vc_shortcode()
		{
		   	vc_map( array(
		      "name"      => __( "About Section", IZ_LANG),
		      "base"      => "iz_about",
		      "category"  => __( "Spa Shortcode", IZ_LANG),		      
		      "params" => array(		        
		        array(
		            'type' => 'textfield',			        
		            'heading' => __( 'About title', IZ_LANG ),
		            'param_name' => 'title',
		            'value' => '',
		            'description' => __( 'Change title text.', IZ_LANG ),
		            'edit_field_class' => 'vc_col-md-6'
		        ),
		        array(
		        	'type' => 'textfield',
		        	'heading' => __('Span text title', IZ_LANG),
		        	'param_name' => 'span',
		        	'value' => '',
		        ),
		        array(
		        	'type' => 'attach_image',
		        	'param_name' => 'image',
		        	'heading' => __('About image', IZ_LANG),		        	
		        ),
		        array(
		        	'type' => 'attach_image',
		        	'param_name' => 'image_shadown',
		        	'heading' => __('Image shadown', IZ_LANG),		        	
		        ),
		        array(
		        	'type' => 'textarea_html',
		        	'param_name' => 'content',
		        	'value' => '',
		        	'heading' => __('About description', IZ_LANG),
		        ),
		    )
			));
		}
	}
}