public_html/wp-content/plugins/js_composer/include/classes/editors/popups/class-vc-templates-panel-editor.php
/**
	 * Load frontend default template content by index
	 * @since 4.4
	 */
Load frontend default template content by index
@since 4.4
Load frontend default template content by index @since 4 . 4
public function renderFrontendDefaultTemplate() {
		$template_index = (int) vc_post_param( 'template_unique_id' );
		$data = $this->getDefaultTemplate( $template_index );
		if ( ! $data ) {
			die( 'Error: Vc_Templates_Panel_Editor::renderFrontendDefaultTemplate:1' );
		}
		vc_frontend_editor()->setTemplateContent( trim( $data['content'] ) );
		vc_frontend_editor()->enqueueRequired();
		vc_include_template( 'editors/frontend_template.tpl.php', array(
			'editor' => vc_frontend_editor()
		) );
		die();
	}
public function renderFrontendDefaultTemplate ( ) { $ template_index = ( int ) vc_post_param ( 'template_unique_id' ) ; $ data = $ this -> getDefaultTemplate ( $ template_index ) ; if ( ! $ data ) { die ( 'Error: Vc_Templates_Panel_Editor::renderFrontendDefaultTemplate:1' ) ; } vc_frontend_editor ( ) -> setTemplateContent ( trim ( $ data [ 'content' ] ) ) ; vc_frontend_editor ( ) -> enqueueRequired ( ) ; vc_include_template ( 'editors/frontend_template.tpl.php' , array ( 'editor' => vc_frontend_editor ( ) ) ) ; die ( ) ; }
Load frontend default template content by index
 @since 4.4
Load frontend default template content by index @since 4 . 4