File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/shortcode/spa_newleter.php
<?php
if(!class_exists('iz_vc_newletter'))
{
class iz_vc_newletter extends iz_shortcode{
public function __construct()
{
$this->custom_shortcode('iz_spa_newletter', array($this, 'iz_render_html'));
add_action('vc_before_init', array($this, 'iz_vc_shortcode'));
}
public function iz_render_html($atts, $content ='')
{
extract(shortcode_atts(array(
'title_left' => '',
'span' => '',
'title_right' => '',
), $atts));
$html = '<h4 class="subscribeHeading">'.esc_attr($title_left).'<span>'.esc_attr($span).'</span>'.esc_attr($title_right).'</h4>';
return $html;
}
public function iz_vc_shortcode()
{
vc_map( array(
"name" => __( "Spa NewsLetter Heading", IZ_LANG),
"base" => "iz_spa_newletter",
"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' => __('Left title', IZ_LANG),
'param_name' => 'title_left',
'value' => '',
'edit_field_class' => 'vc_col-md-4'
),
array(
'type' => 'textfield',
'heading' => __('Span title', IZ_LANG),
'param_name' => 'span',
'value' => '',
'edit_field_class' => 'vc_col-md-4'
),
array(
'type' => 'textfield',
'heading' => __('Right title', IZ_LANG),
'param_name' => 'title_right',
'value' => '',
'edit_field_class' => 'vc_col-md-4'
),
)
));
}
}
}