<?php
$type_import = !empty($_POST['type_import'])? $_POST['type_import']:'';
if($homepage_import=='widgets' ){
update_option( 'sidebars_widgets',array('') );

 
$footer_menu = get_term_by( 'slug', 'منو در پاورقی', 'nav_menu' );
$footer_menu_id = !empty($footer_menu->term_id)?$footer_menu->term_id:'0';
 


$widgets='{"bazinews_main_right":{"bazinews_game_profile-14":{"title":"","number":"4","between":"","game_id":""},"bazinews_post_list-39":{"title":"\u0627\u062e\u0628\u0627\u0631","number":"5","cats":0,"orderby":"","ratio":"rd-ratio60","thumb":"medium","image_width":"35","title_limit":"","meta_category":false,"meta_author":true,"meta_date":true,"meta_view":false,"meta_comments":false,"platforms":""},"bazinews_game_list-40":{"title":"\u0622\u062e\u0631\u06cc\u0646 \u0646\u0645\u0631\u0647 \u0647\u0627","number":"8","category":0,"orderby":"last-reviews","platforms":"","thumb":"","title_limit":"","meta_relesae":true,"meta_platforms":false,"meta_developer":false,"meta_publisher":false,"meta_genre":false,"meta_review":true,"meta_metascore":false,"meta_subscore":false}},"bazinews_main_left":{"bazinews_post_featured-13":{"title":"\u0648\u06cc\u062f\u06cc\u0648 \u0647\u0627","number":"3","cats":6,"orderby":"","ratio":"rd-ratio75","between":"20","thumb":"bazinews_small","excerpt":false,"title_limit":"","excerpt_limit":"","meta_category":true,"meta_author":true,"meta_date":false,"meta_view":false,"meta_comments":false,"platforms":""}},"bazinews_game_right":{"bazinews_game_featured-27":{"title":"\u0622\u062e\u0631\u06cc\u0646 \u0628\u0627\u0632\u06cc \u0647\u0627","number":"10","category":0,"orderby":"","platforms":"","thumb":"bazinews_small","title_limit":"","meta_relesae":true,"meta_platforms":false,"meta_developer":false,"meta_publisher":false,"meta_genre":false,"meta_review":true,"meta_metascore":false,"meta_subscore":false,"cats":"","excerpt":false,"excerpt_limit":"","responsive_column":"","between":"","ratio":"","image_width":"","alignment":"","box_layout":""},"bazinews_game_featured-28":{"title":"\u062f\u0631 \u0622\u06cc\u0646\u062f\u0647 \u0646\u0632\u062f\u06cc\u06a9","number":"10","category":0,"orderby":"","platforms":"","thumb":"bazinews_big","title_limit":"","meta_relesae":true,"meta_platforms":false,"meta_developer":false,"meta_publisher":false,"meta_genre":false,"meta_review":false,"meta_metascore":false,"meta_subscore":false,"cats":"","excerpt":false,"excerpt_limit":"","responsive_column":"","between":"","ratio":"","image_width":"","alignment":"","box_layout":""}},"bazinews_game_left":{"bazinews_game_list-41":{"title":"\u0628\u0627\u0644\u0627\u062a\u0631\u06cc\u0646 \u0646\u0645\u0631\u0647 \u0647\u0627","number":"8","category":0,"orderby":"best-reviews","platforms":"","thumb":"","title_limit":"","meta_relesae":true,"meta_platforms":false,"meta_developer":false,"meta_publisher":false,"meta_genre":false,"meta_review":true,"meta_metascore":false,"meta_subscore":false},"bazinews_game_list-42":{"title":"\u0622\u062e\u0631\u06cc\u0646 \u0645\u062a\u0627\u06a9\u0631\u06cc\u062a\u06cc\u06a9","number":"8","category":0,"orderby":"last-metacritic","platforms":"","thumb":"","title_limit":"","meta_relesae":true,"meta_platforms":false,"meta_developer":false,"meta_publisher":false,"meta_genre":false,"meta_review":false,"meta_metascore":true,"meta_subscore":false}},"bazinews_woocommerce_right":{"woocommerce_product_categories-2":{"title":"\u062f\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0645\u062d\u0635\u0648\u0644\u0627\u062a","orderby":"name","dropdown":0,"count":0,"hierarchical":1,"show_children_only":0,"hide_empty":0,"max_depth":""},"woocommerce_rating_filter-2":{"title":"\u0645\u06cc\u0627\u0646\u06af\u06cc\u0646 \u0631\u0627\u06cc (\u0627\u0645\u062a\u06cc\u0627\u0632)"},"woocommerce_price_filter-2":{"title":"\u0641\u06cc\u0644\u062a\u0631 \u0628\u0631\u0627\u0633\u0627\u0633 \u0642\u06cc\u0645\u062a:"}},"bazinews_footer_1":{"bazinews_post_list-40":{"title":"\u0622\u062e\u0631\u06cc\u0646 \u0645\u0637\u0627\u0644\u0628","number":"4","cats":"","orderby":"","ratio":"rd-ratio75","platforms":"","thumb":"bazinews_small","image_width":"35","title_limit":"","meta_category":false,"meta_author":false,"meta_date":true,"meta_view":false,"meta_comments":false,"excerpt":false,"excerpt_limit":"","hover_post_icon":"","column":"1","responsive_column":"","between":"","alignment":"","box_layout":"none"}},"bazinews_footer_2":{"bazinews_post_list-41":{"title":"\u0628\u06cc\u0634\u062a\u0631\u06cc\u0646 \u062f\u06cc\u062f\u06af\u0627\u0647 \u0647\u0627","number":"4","cats":"","orderby":"most-comment","ratio":"rd-ratio75","platforms":"","thumb":"bazinews_small","image_width":"35","title_limit":"","meta_category":false,"meta_author":false,"meta_date":true,"meta_view":false,"meta_comments":false,"excerpt":false,"excerpt_limit":"","hover_post_icon":"","column":"1","responsive_column":"","between":"","alignment":"","box_layout":"none"}},"bazinews_footer_3":{"nav_menu-14":{"title":"\u0641\u0647\u0631\u0633\u062a \u0647\u0627","nav_menu":'.$footer_menu_id .'}},"bazinews_footer_4":{"bazinews_tags-14":{"title":"\u0628\u0631\u0686\u0633\u0628 \u0647\u0627"}}}'; 
 
bazinewsdemoimport_import_data(json_decode($widgets));
}
