function render( $template ) { $template = vc_template( 'frontend_editor/' . $template . '.tpl.php' ); require $template; }
/** * Include template from templates dir. * * @since 4.3 * * @param $template * @param array $variables - passed variables to the template. * * @param bool $once * * @return mixed */ function vc_include_template($template, $variables = array(), $once = false) { is_array($variables) && extract($variables); if ($once) { return require_once vc_template($template); } else { return require vc_template($template); } }