File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/shortcode/spa_team.php
<?php
if(!class_exists('iz_vc_team'))
{
class iz_vc_team extends iz_shortcode{
public function __construct()
{
$this->custom_shortcode('iz_spa_team', 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_team.php', $atts, $content);
}
public function iz_vc_shortcode()
{
vc_map( array(
"name" => __( "Spa Team", IZ_LANG),
"base" => "iz_spa_team",
"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' => __('Name', IZ_LANG),
'param_name' => 'name',
'value' => '',
),
array(
'type' => 'textfield',
'heading' => __('Member subtitle', IZ_LANG),
'param_name' => 'subtitle',
'value' => '',
),
array(
'type' => 'textarea',
'heading' => __( 'Member description', IZ_LANG ),
'param_name' => 'description',
'value' => '',
),
array(
'type' => 'attach_image',
'heading' => __('Member avatar', IZ_LANG),
'param_name' => 'image',
),
array(
'type' => 'social_upload',
'heading' => __('Member social link', IZ_LANG),
'param_name' => 'link',
'value' => '',
),
)
));
}
}
}