<?php 



/*  ---------------------------------------------------------------------------- 
	CATEGORIES
*/
$cat_action_id = td_demo_category::add_category(array(
	'category_name' => 'اکشن',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_4',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_book_reviews_id = td_demo_category::add_category(array(
	'category_name' => 'بررسی کتاب',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_6',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_comedy_id = td_demo_category::add_category(array(
	'category_name' => 'کمدی',
	'parent_id' => $cat_book_reviews_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_8',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_drama_id = td_demo_category::add_category(array(
	'category_name' => 'درام',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_10',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_fantasy_id = td_demo_category::add_category(array(
	'category_name' => 'فانتزی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_1',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_featured_id = td_demo_category::add_category(array(
	'category_name' => 'ویژه',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_2',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_horror_id = td_demo_category::add_category(array(
	'category_name' => 'ترسناک',
	'parent_id' => $cat_book_reviews_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_4',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_movie_reviews_id = td_demo_category::add_category(array(
	'category_name' => 'بررسی فیلم',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_7',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_reading_id = td_demo_category::add_category(array(
	'category_name' => 'خواندنی',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_5',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_romance_id = td_demo_category::add_category(array(
	'category_name' => 'عاشقانه',
	'parent_id' => $cat_book_reviews_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_3',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_sci_fi_id = td_demo_category::add_category(array(
	'category_name' => 'علمی تخیلی',
	'parent_id' => $cat_movie_reviews_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_9',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));

$cat_thoughts_id = td_demo_category::add_category(array(
	'category_name' => 'اندیشه',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => 'td_pic_3',
	'boxed_layout' => 'hide',
	'sidebar_id' => '',
	'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID 
	'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar 
));



/*  ---------------------------------------------------------------------------- 
	ATTACHMMENTS
*/

/*  ---------------------------------------------------------------------------- 
	POSTS
*/

$post_td_post_remembering_my_past_self_decisions_acceptance_id = td_demo_content::add_post(array(
    'title' => 'خرید هاست و دامنه مطمئن از میهن گیگ',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_6',
    'categories_id_array' => array($cat_action_id,$cat_comedy_id,$cat_drama_id,$cat_fantasy_id,$cat_horror_id,$cat_reading_id,$cat_romance_id,$cat_sci_fi_id,$cat_thoughts_id,),
));

$post_td_post_why_does_glitter_get_everywhere_daily_thoughts_id = td_demo_content::add_post(array(
    'title' => 'در زمان آلودگی هوا چه چیزهایی بخوریم؟',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_7',
    'categories_id_array' => array($cat_action_id,$cat_comedy_id,$cat_drama_id,$cat_fantasy_id,$cat_horror_id,$cat_reading_id,$cat_romance_id,$cat_sci_fi_id,$cat_thoughts_id,),
));

$post_td_post_dye_your_life_blue_as_a_hair_color_today_id = td_demo_content::add_post(array(
    'title' => 'اندروید 8 برای گوشی HTC U11 Life عرضه شد',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_8',
    'categories_id_array' => array($cat_action_id,$cat_comedy_id,$cat_drama_id,$cat_fantasy_id,$cat_horror_id,$cat_reading_id,$cat_romance_id,$cat_sci_fi_id,$cat_thoughts_id,),
));

$post_td_post_what_kind_of_video_games_amm_i_into_answers_id = td_demo_content::add_post(array(
    'title' => 'آیفون 10 به این زودی‌ها از رده خارج نمی‌شود',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_9',
    'categories_id_array' => array($cat_action_id,$cat_comedy_id,$cat_drama_id,$cat_fantasy_id,$cat_horror_id,$cat_reading_id,$cat_romance_id,$cat_sci_fi_id,$cat_thoughts_id,),
));

$post_td_post_house_plants_i_have_and_how_i_take_care_of_them_id = td_demo_content::add_post(array(
    'title' => 'گوشی Nova 2S به‌زودی معرفی می‌شود',
    'file' => 'post_default.txt',
    'featured_image_td_id' => 'td_pic_10',
    'categories_id_array' => array($cat_action_id,$cat_comedy_id,$cat_drama_id,$cat_fantasy_id,$cat_horror_id,$cat_reading_id,$cat_romance_id,$cat_sci_fi_id,$cat_thoughts_id,),
));

$post_td_post_cinnamon_rolls_recipe_how_i_baked_them_id = td_demo_content::add_post(array(
	'title' => 'بهترین گوشی‌های اندرویدی برای عکاسی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_thoughts_id,),
));

$post_td_post_vacation_to_the_bahamas_beautiful_hotel_id = td_demo_content::add_post(array(
	'title' => 'نسخه نهایی مایکروسافت اج برای اندروید منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_thoughts_id,),
));

$post_td_post_top_3_favorite_fast_food_places_a_countdown_id = td_demo_content::add_post(array(
	'title' => 'محیط‌ زیستی به سبک گربه‌های اشرافی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_thoughts_id,),
));

$post_td_post_autumn_inspiration_why_i_love_this_season_id = td_demo_content::add_post(array(
	'title' => 'چه چیز جایگزین گوشی هوشمند خواهد شد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_thoughts_id,),
));

$post_td_post_what_to_do_with_fairy_lights_around_the_house_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به خودروهای جدید بورگوارد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_thoughts_id,),
));

$post_td_post_poems_of_a_time_long_gone_jekyl_lovalett_berry_id = td_demo_content::add_post(array(
	'title' => 'چرا گوشی ریزر جک هدفون ندارد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_reading_id,),
));

$post_td_post_slip_and_slide_down_the_line_written_by_daniel_lovit_id = td_demo_content::add_post(array(
	'title' => 'با ویژگی جدید اینستاگرام آشنا شوید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_reading_id,),
));

$post_td_post_a_boundless_leap_of_faith_and_in_time_by_andrew_morris_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به فولکس تیگوان',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_reading_id,),
));

$post_td_post_who_would_have_thought_it_would_turn_out_like_this_id = td_demo_content::add_post(array(
	'title' => 'اپل 15 میلیون آیفون 10 فروخته است',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_reading_id,),
));

$post_td_post_the_outfit_of_the_past_a_sydney_memorial_book_id = td_demo_content::add_post(array(
	'title' => 'آنر V10 رسما معرفی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_reading_id,),
));

$post_td_post_reliving_old_memories_with_morris_serenity_id = td_demo_content::add_post(array(
	'title' => 'هوش مصنوعی گوگل مچ مزاحم‌ها را می‌گیرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_drama_id,),
));

$post_td_post_rose_dimins_new_novel_my_makeups_all_wrong_id = td_demo_content::add_post(array(
	'title' => 'ممکن است معده‌ی کسی از پرخوری بترکد؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_comedy_id,),
));

$post_td_post_the_killer_in_the_night_by_matthew_addams_id = td_demo_content::add_post(array(
	'title' => 'باکس‌آفیس در تصاحب پیکسار',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_horror_id,),
));

$post_td_post_olivia_tydes_hanging_out_comedy_romance_id = td_demo_content::add_post(array(
	'title' => 'هواوی گوشی میت 10 را در ایران رونمایی کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_romance_id,),
));

$post_td_post_divine_intervention_review_with_daniel_redwit_id = td_demo_content::add_post(array(
	'title' => 'نگاهی به فولکس پاسات',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_action_id,),
));

$post_td_post_faerie_land_a_phantasmal_story_with_lilianne_demur_id = td_demo_content::add_post(array(
	'title' => 'HTC U11 به اندروید 8.0 بروزرسانی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_fantasy_id,),
));

$post_td_post_a_film_by_troy_leroy_selenium_with_ariel_lenor_id = td_demo_content::add_post(array(
	'title' => 'اپل گوشی یا تبلت با نمایشگر تاشو می‌سازد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_drama_id,),
));

$post_td_post_benjamin_buckleys_lost_planet_with_mindy_hawford_id = td_demo_content::add_post(array(
	'title' => 'گوگل اپلیکیشن‌هایش را برای آیفون 10 به‌روز کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_sci_fi_id,),
));

$post_td_post_the_art_of_saying_yes_written_by_david_leban_id = td_demo_content::add_post(array(
	'title' => '5+1 تصمیم برتر در بازی‌های ویدیویی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_comedy_id,),
));

$post_td_post_the_princess_the_lost_diadem_by_livia_thelmon_id = td_demo_content::add_post(array(
	'title' => 'گوشی اوپو A79 معرفی شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_horror_id,),
));

$post_td_post_a_real_tearjerker_our_fate_lies_by_olivia_reingold_id = td_demo_content::add_post(array(
	'title' => 'فایرفاکس کوانتوم یا گوگل کروم؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_romance_id,),
));

$post_td_post_a_dangerous_game_dark_horme_now_in_theaters_id = td_demo_content::add_post(array(
	'title' => 'آیا مایکروسافت به سمت اندروید می‌رود؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_action_id,),
));

$post_td_post_children_of_the_foresta_movie_starring_river_song_id = td_demo_content::add_post(array(
	'title' => 'تبلت Surface Pro 3 ارزان می‌شود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_fantasy_id,),
));

$post_td_post_heartwrenching_story_of_sorrows_ledge_id = td_demo_content::add_post(array(
	'title' => 'با تبلت جدید هوآوی آشنا شوید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_drama_id,),
));

$post_td_post_dystopian_future_in_the_eyes_of_harry_deeply_disturbing_id = td_demo_content::add_post(array(
	'title' => 'پدیده‌ای به نام «اسکرین‌شات»',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_sci_fi_id,),
));

$post_td_post_emil_dolovans_lets_skate_downtown_parody_id = td_demo_content::add_post(array(
	'title' => 'نکسوس بعدی بر اساس LG G4 نخواهد بود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_comedy_id,),
));

$post_td_post_review_of_strangers_written_by_adam_jersey_id = td_demo_content::add_post(array(
	'title' => 'مایکروسافت درحال خرید AMD',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_horror_id,),
));

$post_td_post_lavinia_montaine_an_unforgettable_journey_id = td_demo_content::add_post(array(
	'title' => 'عبور تاریخی از نقطه‌ی بی‌بازگشت',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_romance_id,),
));

$post_td_post_kevin_mcartur_and_atrium_loss_awe_inspiring_id = td_demo_content::add_post(array(
	'title' => 'چرا آدرس‌های اینترنتی به زبان انگلیسی هستند؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_action_id,),
));

$post_td_post_witchs_trial_potion_making_dark_fantasy_story_id = td_demo_content::add_post(array(
	'title' => 'بازی مافیا 3 در راه است',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_fantasy_id,),
));

$post_td_post_ravenol_thysses_tragical_story_in_lavender_sky_id = td_demo_content::add_post(array(
	'title' => 'دوازده ترفند عمومی اندروید',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_drama_id,),
));

$post_td_post_willow_lane_now_in_theaters_abduction_severs_ties_id = td_demo_content::add_post(array(
	'title' => 'تعقیب کوسه‌ها با GPS',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_sci_fi_id,),
));

$post_td_post_how_to_get_lost_on_a_short_hike_by_kevin_mcsprout_id = td_demo_content::add_post(array(
	'title' => 'جزییات سخت‌افزاری گلکسی A8 منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_comedy_id,),
));

$post_td_post_serendipitous_journey_oakland_cult_by_jim_pickings_id = td_demo_content::add_post(array(
	'title' => 'فبلت‌ها آمده‌اند که بمانند!',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_horror_id,),
));

$post_td_post_warm_by_your_side_written_by_adrien_hallock_id = td_demo_content::add_post(array(
	'title' => 'مشخصات LG G Pro 3 لو رفت؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_romance_id,),
));

$post_td_post_flooded_horror_action_movie_with_paul_mchopkins_id = td_demo_content::add_post(array(
	'title' => 'کدام بازی مبارزه‌ای محبوب‌تر است؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_action_id,),
));

$post_td_post_savathian_cult_lilia_thompsons_stunning_performance_id = td_demo_content::add_post(array(
	'title' => 'وقتی پوست روی بدن پرینت میشود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_fantasy_id,),
));

$post_td_post_linear_misconception_what_if_aliens_lived_amongst_us_id = td_demo_content::add_post(array(
	'title' => 'سونی بخش موبایل‌اش را نمی‌فروشد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_sci_fi_id,),
));

$post_td_post_delores_campignones_just_a_christmas_story_id = td_demo_content::add_post(array(
	'title' => 'مشخصات گوشی گلکسی J2 لو رفت',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_comedy_id,),
));

$post_td_post_freakshow_gravity_lane_by_emily_levind_id = td_demo_content::add_post(array(
	'title' => 'Redmi Note 2 سنسور اثر انگشت دارد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_horror_id,),
));

$post_td_post_an_eccentric_game_dramatic_romance_by_emilia_damon_id = td_demo_content::add_post(array(
	'title' => 'عرضه‌ی تبلت نوکیا N1 در اندونزی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_romance_id,),
));

$post_td_post_clan_matters_a_film_by_christopher_rain_id = td_demo_content::add_post(array(
	'title' => 'اطلاعات سخت‌افزاری G4 S منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_action_id,),
));

$post_td_post_magical_ludens_moli_an_evil_wizards_tale_id = td_demo_content::add_post(array(
	'title' => 'کادیلاک بدون راننده، تا دو سال آینده',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_fantasy_id,),
));

$post_td_post_gravity_the_drama_musical_now_in_theaters_id = td_demo_content::add_post(array(
	'title' => 'ایسوس و اسمارت‌فون جدیدش',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_4',
	'categories_id_array' => array($cat_drama_id,),
));

$post_td_post_a_movie_by_lowliett_george_daylight_hunters_id = td_demo_content::add_post(array(
	'title' => 'سامسونگ SSD دو ترابایتی روانه بازار کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_sci_fi_id,),
));



/*  ---------------------------------------------------------------------------- 
	PAGES
*/
$page_homepage_id = td_demo_content::add_page(array(
	'title' => 'صفحه اصلی',
	'file' => 'homepage.txt',
	'homepage' => true,
));


/*  ---------------------------------------------------------------------------- 
	MENUS
*/
$menu_critic_id = td_demo_menus::create_menu('td-demo-header-menu', '');


/*  ---------------------------------------------------------------------------- 
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_page(array(
	'title' => 'صفحه اصلی',
	'add_to_menu_id' => $menu_critic_id,
	'page_id' => $page_homepage_id,
	'parent_id' => ''
));

$menu_item_1_id = td_demo_menus::add_mega_menu(array(
	'title' => 'بررسی کتاب',
	'add_to_menu_id' => $menu_critic_id,
	'category_id' => $cat_book_reviews_id,
	'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_mega_menu(array(
	'title' => 'بررسی فیلم',
	'add_to_menu_id' => $menu_critic_id,
	'category_id' => $cat_movie_reviews_id,
	'parent_id' => ''
));

$menu_item_3_id = td_demo_menus::add_mega_menu(array(
	'title' => 'خواندنی',
	'add_to_menu_id' => $menu_critic_id,
	'category_id' => $cat_reading_id,
	'parent_id' => ''
));

$menu_item_4_id = td_demo_menus::add_category(array(
	'title' => 'اندیشه',
	'add_to_menu_id' => $menu_critic_id,
	'category_id' => $cat_thoughts_id,
	'parent_id' => ''
));

$menu_mobile_menu_id = td_demo_menus::create_menu('td-demo-custom-menu', '');


/*  ---------------------------------------------------------------------------- 
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_page(array(
	'title' => 'صفحه اصلی',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'page_id' => $page_homepage_id,
	'parent_id' => ''
));

$menu_item_1_id = td_demo_menus::add_category(array(
	'title' => 'بررسی کتاب',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_book_reviews_id,
	'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_category(array(
	'title' => 'کمدی',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_comedy_id,
	'parent_id' => $menu_item_1_id
));

$menu_item_3_id = td_demo_menus::add_category(array(
	'title' => 'ترسناک',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_horror_id,
	'parent_id' => $menu_item_1_id
));

$menu_item_4_id = td_demo_menus::add_category(array(
	'title' => 'عاشقانه',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_romance_id,
	'parent_id' => $menu_item_1_id
));

$menu_item_5_id = td_demo_menus::add_category(array(
	'title' => 'بررسی فیلم',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_movie_reviews_id,
	'parent_id' => ''
));

$menu_item_6_id = td_demo_menus::add_category(array(
	'title' => 'اکشن',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_action_id,
	'parent_id' => $menu_item_5_id
));

$menu_item_7_id = td_demo_menus::add_category(array(
	'title' => 'درام',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_drama_id,
	'parent_id' => $menu_item_5_id
));

$menu_item_8_id = td_demo_menus::add_category(array(
	'title' => 'فانتزی',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_fantasy_id,
	'parent_id' => $menu_item_5_id
));

$menu_item_9_id = td_demo_menus::add_category(array(
	'title' => 'علمی تخیلی',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_sci_fi_id,
	'parent_id' => $menu_item_5_id
));

$menu_item_10_id = td_demo_menus::add_category(array(
	'title' => 'خواندنی',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_reading_id,
	'parent_id' => ''
));

$menu_item_11_id = td_demo_menus::add_category(array(
	'title' => 'اندیشه',
	'add_to_menu_id' => $menu_mobile_menu_id,
	'category_id' => $cat_thoughts_id,
	'parent_id' => ''
));


/*  ---------------------------------------------------------------------------- 
	CLOUD TEMPLATES
*/
$template_tag_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب برچسب - نقد و بررسی',
	'file' => 'tag_cloud_template.txt',
	'template_type' => 'tag',
));

td_demo_misc::update_global_tag_template( 'tdb_template_' . $template_tag_template_id);


$template_date_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب تاریخ - نقد و بررسی',
	'file' => 'date_cloud_template.txt',
	'template_type' => 'date',
));

td_demo_misc::update_global_date_template( 'tdb_template_' . $template_date_template_id);


$template_404_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب 404 - نقد و بررسی',
	'file' => '404_cloud_template.txt',
	'template_type' => '404',
));

td_demo_misc::update_global_404_template( 'tdb_template_' . $template_404_template_id);


$template_footer_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب فوتر نویسنده - نقد و بررسی',
	'file' => 'footer_author_cloud_template.txt',
	'template_type' => 'footer',
));

$template_footer_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب فوتر - نقد و بررسی',
    'file' => 'footer_cloud_template.txt',
    'template_type' => 'footer',
));

td_demo_misc::update_global_footer_template( 'tdb_template_' . $template_footer_id);

$template_author_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب نویسنده - نقد و بررسی',
	'file' => 'author_cloud_template.txt',
	'template_type' => 'author',
));

td_demo_misc::update_global_author_template( 'tdb_template_' . $template_author_template_id);


$template_search_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب جستجو - نقد و بررسی',
	'file' => 'search_cloud_template.txt',
	'template_type' => 'search',
));

td_demo_misc::update_global_search_template( 'tdb_template_' . $template_search_template_id);



$template_category_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب دسته‌بندی - نقد و بررسی',
	'file' => 'cat_cloud_template.txt',
	'template_type' => 'category',
));

td_demo_misc::update_global_category_template( 'tdb_template_' . $template_category_template_id);


$template_single_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب نوشته - نقد و بررسی',
	'file' => 'post_cloud_template.txt',
	'template_type' => 'single',
));

td_util::update_option('td_default_site_post_template', 'tdb_template_' . $template_single_template_id);


$template_header_template_id = td_demo_content::add_cloud_template(array(
	'title' => 'قالب هدر - نقد و بررسی',
	'file' => 'header_cloud_template.txt',
	'template_type' => 'header',
));
td_demo_misc::update_global_header_template( 'tdb_template_' . $template_header_template_id);
//update mobile menu id in cloud header template
update_post_meta( $template_header_template_id, 'header_mobile_menu_id', $menu_critic_id );



/*  ---------------------------------------------------------------------------- 
	GENERAL SETTINGS
*/
td_demo_misc::update_background('', false);

td_demo_misc::update_background_mobile('tdx_pic_5');

td_demo_misc::update_background_login('tdx_pic_6');

td_demo_misc::update_background_header('');

td_demo_misc::update_background_footer('');

td_demo_misc::update_footer_text('');

td_demo_misc::update_logo(array('normal' => '','retina' => '','mobile' => '',));

td_demo_misc::update_footer_logo(array('normal' => '','retina' => '',));

td_demo_misc::add_social_buttons(array());
