File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/shortcode/spa_highlight.php
<?php
if(!class_exists('iz_vc_highlightBox'))
{
class iz_vc_highlightBox extends iz_shortcode{
public function __construct()
{
$this->custom_shortcode('iz_vc_highlight', 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_highlight.php', $atts, $content);
}
public function iz_vc_shortcode()
{
vc_map( array(
"name" => __( "High Light", IZ_LANG),
"base" => "iz_vc_highlight",
"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' => __( 'High light title', IZ_LANG ),
'param_name' => 'title',
'value' => '',
'edit_field_class' => 'vc_col-md-6'
),
array(
'type' => 'textfield',
'heading' => __('Strong title text', IZ_LANG),
'param_name' => 'strong',
'value' => '',
'edit_field_class' => 'vc_col-md-6'
),
array(
'type' => 'textfield',
'heading' => __('High light subtitle text', IZ_LANG),
'param_name' => 'solgan',
'value' => '',
),
)
));
}
}
}