'.implode($error, ',').'' : '
Templates/Pages Imported Successfully
'); } // Hide the save button. $GLOBALS['hide_save_button'] = true; echo '
'; if(!empty($fields)){ foreach($fields as $fk => $fv){ echo ''; } } echo '
'.$message.'
'. __('Select / Deselect All') .'
'.$fv['title'].'
'; } public static function get_conf(){ global $pagelayer; $conf = '{ "single-template": { "post_type": "'.$pagelayer->builder['name'].'", "type": "single", "title": "Single Product", "conditions": [ { "type": "include", "template": "singular", "sub_template": "product", "id": "" } ] }, "archive-template": { "post_type": "'.$pagelayer->builder['name'].'", "type": "archive", "title": "Product Archive", "conditions": [ { "type": "include", "template": "archives", "sub_template": "product", "id": "" } ] }, "cart": { "post_type": "page", "title": "Cart" }, "checkout": { "post_type": "page", "title": "Checkout" }, "myaccount": { "post_type": "page", "title": "My account" }, "order_pay": { "post_type": "page", "title": "Order Pay", "parent": "checkout" }, "order_received": { "post_type": "page", "title": "Order Received", "parent": "checkout" } }'; return $conf; } public static function get_content(){ $content['cart'] = ' '; $content['checkout'] = ' '; $content['myaccount'] = ' '; $content['order_pay'] = ' '; $content['order_received'] = ' '; $content['single-template'] = ' '; $content['archive-template'] = ' '; return $content; } } return new KKART_Admin_Import_Template();