<?php
add_action( 'vc_before_init', 'rockon_welcome_contentWITHVS' );
function rockon_welcome_contentWITHVS() {
   vc_map( array(
      "name" => __("Welcome Block",'rockon'),
      "base" => "rockon_welcome_content",
      "class" => "",
      "category" => __('Content','rockon'),
      'admin_enqueue_js' => array(get_template_directory_uri().'/vc_extend/bartag.js'),
      'admin_enqueue_css' => array(get_template_directory_uri().'/vc_extend/bartag.css'),
      "params" => array(
         array(
            "type" => "textfield",
            "holder" => "div",
            "class" => "",
            "heading" => __("Title",'rockon'),
            "param_name" => "title",
            "value" => __("WELCOME IN ROCKON CLUB",'rockon'),
            "description" => __("Title text Here.",'rockon')
         ),
         array(
            "type" => "textarea_html",
            "holder" => "div",
            "class" => "",
            "heading" => __("Description",'rockon'),
            "param_name" => "content",
            "value" => __("<p>Mauris a massa id leo aliquam consequat porttitor vitae est. Proin ultricies velit sed porttitor viverra. Pellentesque eget tristique est. Donec volutpat, eros et bibendum lacinia, enim ipsum gravida enim, quis viverra odio elit sit amet orci. Aenean eget mi quam.</p>",'rockon'),
            "description" => __("Enter your content.",'rockon')
         )
      )
   ) );
}
add_shortcode( 'rockon_welcome_content', 'rockon_welcome_content_func' );
function rockon_welcome_content_func( $atts ) { // New function parameter $content is added!
   extract( shortcode_atts( array(
      'title' => 'something',
	  'content' => 'Mauris a massa id leo aliquam consequat porttitor vitae est. Proin ultricies velit sed porttitor viverra. Pellentesque eget tristique est. Donec volutpat, eros et bibendum lacinia, enim ipsum gravida enim, quis viverra odio elit sit amet orci. Aenean eget mi quam.'
   ), $atts ) );
   
	$result = '<div class="rock_welcome_note"><div class="row">
      <div class="col-lg-10 col-lg-offset-1">
        <h1 class="rock_welcome">'.__(esc_attr($title),'rockon').'</h1>
        <p>'.__(esc_attr($content),'rockon').'</p>
      </div>
      <div class="clearfix"></div>
      <div class="col-lg-12">
        <div class="rock_divider"></div>
      </div>
    </div></div>';
	return $result;
   
}
?>