public function load($template_id = false) { if (!$template_id) { $template_id = vc_post_param('template_unique_id'); } if (!isset($template_id) || '' === $template_id) { echo 'Error: TPL-02'; die; } if (false !== ($predefined_template = Vc_Grid_Item::predefinedTemplate($template_id))) { echo trim($predefined_template['template']); } }
<input type="hidden" id="wpb_vc_js_status" name="wpb_vc_js_status" value="true"/> <input type="hidden" id="wpb_vc_loading" name="wpb_vc_loading" value="<?php _e('Loading, please wait...', 'js_composer'); ?> "/> <input type="hidden" id="wpb_vc_loading_row" name="wpb_vc_loading_row" value="<?php _e('Crunching...', 'js_composer'); ?> "/> <input type="hidden" name="vc_grid_item_editor" value="true"/> <script type="text/javascript"> <?php $vc_gitem_template = vc_request_param('vc_gitem_template'); if (strlen($vc_gitem_template) && false !== ($template = Vc_Grid_Item::predefinedTemplate($vc_gitem_template))) { echo "var vcDefaultGridItemContent = '" . $template['template'] . "';"; } else { ?> /** * Get content of grid item editor of current post. Data is used as models collection of shortcodes. * Data always wrapped with vc_gitem shortcode. * @return {*} */ var vcDefaultGridItemContent = '' + '[vc_gitem]' + '[vc_gitem_animated_block]' + '[vc_gitem_zone_a]' + '[vc_gitem_row position="top"]' + '[vc_gitem_col width="1/1"][/vc_gitem_col]' + '[/vc_gitem_row]' +