// Edit form for mapped shortcode.
visual_composer()->editForm()->render();
// Rendering Templates Modal Editor
// visual_composer()->templatesPanelEditor()->render();
visual_composer()->templatesPanelEditor()->renderUITemplate();
// Post settings
require_once vc_path_dir('EDITORS_DIR', 'popups/class-vc-post-settings.php');
$post_settings = new Vc_Post_Settings($editor);
// $post_settings->render();
$post_settings->renderUITemplate();
require_once vc_path_dir('EDITORS_DIR', 'popups/class-vc-edit-layout.php');
$edit_layout = new Vc_Edit_Layout();
$edit_layout->renderUITemplate();
global $current_user;
get_currentuserinfo();
vc_include_settings_preset_class();
?>
<script type="text/javascript">
	var vc_user_mapper = <?php 
echo json_encode(WPBMap::getUserShortCodes());
?>
,
		vc_mapper = <?php 
echo json_encode(WPBMap::getShortCodes());
?>
,
		vc_settings_presets = <?php 
echo json_encode(Vc_Settings_Preset::listDefaultSettingsPresets());
?>
,
		vc_roles = <?php 
/**
 * Respond with rendered popup menu
 *
 * Required _POST params:
 * - shortcode_name string
 *
 * @since 4.7
 */
function vc_action_render_settings_preset_popup()
{
    vc_include_settings_preset_class();
    $html = Vc_Settings_Preset::getRenderedSettingsPresetPopup(vc_post_param('shortcode_name'));
    $response = array('success' => true, 'html' => $html);
    wp_send_json($response);
}