<?php

/*  ---------------------------------------------------------------------------- 
	CATEGORIES
*/

$cat_style_id = td_demo_category::add_category(array(
    'category_name' => 'سبک',
    'parent_id' => 0,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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_fashion_id = td_demo_category::add_category(array(
	'category_name' => 'مد',
	'parent_id' => $cat_style_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'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_men_id = td_demo_category::add_category(array(
	'category_name' => 'آقایون',
	'parent_id' => $cat_style_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'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_newcommers_id = td_demo_category::add_category(array(
	'category_name' => 'تازه واردان',
	'parent_id' => $cat_style_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'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_stars_id = td_demo_category::add_category(array(
	'category_name' => 'ستارگان',
	'parent_id' => $cat_style_id,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'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_women_id = td_demo_category::add_category(array(
    'category_name' => 'بانوان',
    'parent_id' => $cat_style_id,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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_business_id = td_demo_category::add_category(array(
    'category_name' => 'کسب و کار',
    'parent_id' => 0,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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_lifestyle_id = td_demo_category::add_category(array(
    'category_name' => 'سبک زندگی',
    'parent_id' => 0,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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_marketing_id = td_demo_category::add_category(array(
    'category_name' => 'بازاریابی',
    'parent_id' => 0,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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_fresh_id = td_demo_category::add_category(array(
    'category_name' => 'تازه',
    'parent_id' => 0,
    'category_template' => '',
    'top_posts_style' => '',
    'description' => '',
    'background_td_pic_id' => '',
    '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' => '',
    '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_uncategorized_id = td_demo_category::add_category(array(
	'category_name' => 'بدون نام',
	'parent_id' => 0,
	'category_template' => '',
	'top_posts_style' => '',
	'description' => '',
	'background_td_pic_id' => '',
	'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_measure_success_but_remember_the_work_involved_id = td_demo_content::add_post(array(
	'title' => 'خرید هاست و دامنه مطمئن از میهن گیگ',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_lifestyle_id,),
));

$post_td_post_amazing_confession_of_an_instagram_influencer_id = td_demo_content::add_post(array(
	'title' => 'در زمان آلودگی هوا چه چیزهایی بخوریم؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_2',
	'categories_id_array' => array($cat_lifestyle_id,),
));

$post_td_post_new_data_reveals_huge_people_trust_in_influencers_id = td_demo_content::add_post(array(
	'title' => 'اندروید 8 برای گوشی HTC U11 Life عرضه شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_3',
	'categories_id_array' => array($cat_lifestyle_id,),
));

$post_td_post_a_hotel_totally_banned_social_influencers_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_lifestyle_id,),
));

$post_td_post_influencer_reveals_extent_of_online_trolling_id = td_demo_content::add_post(array(
	'title' => 'گوشی Nova 2S به‌زودی معرفی می‌شود',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_5',
	'categories_id_array' => array($cat_lifestyle_id,),
));

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

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

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

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

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

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

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

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

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

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

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

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

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

$post_td_post_unconventional_influencers_will_get_more_popular_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_fresh_id,),
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$post_best_chance_to_increase_your_followers_id = td_demo_content::add_post(array(
	'title' => 'عرضه‌ی تبلت نوکیا N1 در اندونزی',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_6',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));

$post_td_post_the_weirdest_places_ashes_have_been_scattered_id = td_demo_content::add_post(array(
	'title' => 'اطلاعات سخت‌افزاری G4 S منتشر شد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_7',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));

$post_td_post_kristen_stewart_interview_at_the_toronto_festival_id = td_demo_content::add_post(array(
	'title' => 'کادیلاک بدون راننده، تا دو سال آینده',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_8',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));

$post_td_post_the_first_brand_to_get_an_apple_music_outfit_line_id = td_demo_content::add_post(array(
	'title' => 'ایسوس و اسمارت‌فون جدیدش',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_9',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));

$post_td_post_the_top_10_trips_of_a_lifetime_yu_should_take_id = td_demo_content::add_post(array(
	'title' => 'سامسونگ SSD دو ترابایتی روانه بازار کرد',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_10',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));

$post_td_post_popular_celebrity_baby_names_list_of_the_millennium_id = td_demo_content::add_post(array(
	'title' => 'آیا نوت 5 ماه آینده عرضه می‌شود؟',
	'file' => 'post_default.txt',
	'featured_image_td_id' => 'td_pic_1',
	'categories_id_array' => array($cat_business_id,$cat_fashion_id,$cat_fresh_id,$cat_lifestyle_id,$cat_marketing_id,$cat_men_id,$cat_newcommers_id,$cat_stars_id,$cat_women_id,),
));


/*  ----------------------------------------------------------------------------
	MENUS
*/

$menu_td_demo_header_menu_id = td_demo_menus::create_menu('td-demo-header-menu', '');
$menu_td_demo_custom_menu_id = td_demo_menus::create_menu('td-demo-custom-menu', '');
$menu_td_demo_header_menu_extra_id = td_demo_menus::create_menu('td-demo-header-menu-extra', '');
$menu_td_demo_top_menu_id = td_demo_menus::create_menu('td-demo-top-menu', '');


/*  ----------------------------------------------------------------------------
	CLOUD TEMPLATES
*/

$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_td_demo_header_menu_extra_id );

$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_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_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_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_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_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_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_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);



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


/*  ---------------------------------------------------------------------------- 
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_mega_menu(array(
	'title' => 'طراحی',
	'add_to_menu_id' => $menu_td_demo_header_menu_id,
	'category_id' => $cat_style_id,
	'parent_id' => ''
));

$menu_item_1_id = td_demo_menus::add_category(array(
	'title' => 'کسب و کار',
	'add_to_menu_id' => $menu_td_demo_header_menu_id,
	'category_id' => $cat_business_id,
	'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_category(array(
	'title' => 'سبک زندگی',
	'add_to_menu_id' => $menu_td_demo_header_menu_id,
	'category_id' => $cat_lifestyle_id,
	'parent_id' => ''
));

$menu_item_3_id = td_demo_menus::add_category(array(
	'title' => 'بازاریابی',
	'add_to_menu_id' => $menu_td_demo_header_menu_id,
	'category_id' => $cat_marketing_id,
	'parent_id' => ''
));

$menu_item_4_id = td_demo_menus::add_category(array(
	'title' => 'تازه',
	'add_to_menu_id' => $menu_td_demo_header_menu_id,
	'category_id' => $cat_fresh_id,
	'parent_id' => ''
));


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

$menu_item_1_id = td_demo_menus::add_category(array(
	'title' => 'کسب و کار',
	'add_to_menu_id' => $menu_td_demo_header_menu_extra_id,
	'category_id' => $cat_business_id,
	'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_category(array(
	'title' => 'تازه',
	'add_to_menu_id' => $menu_td_demo_header_menu_extra_id,
	'category_id' => $cat_fresh_id,
	'parent_id' => ''
));

$menu_item_3_id = td_demo_menus::add_category(array(
	'title' => 'سبک زندگی',
	'add_to_menu_id' => $menu_td_demo_header_menu_extra_id,
	'category_id' => $cat_lifestyle_id,
	'parent_id' => ''
));

$menu_item_4_id = td_demo_menus::add_category(array(
	'title' => 'بازاریابی',
	'add_to_menu_id' => $menu_td_demo_header_menu_extra_id,
	'category_id' => $cat_marketing_id,
	'parent_id' => ''
));

$menu_item_5_id = td_demo_menus::add_category(array(
	'title' => 'طراحی',
	'add_to_menu_id' => $menu_td_demo_header_menu_extra_id,
	'category_id' => $cat_style_id,
	'parent_id' => ''
));


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

$menu_item_1_id = td_demo_menus::add_link(array(
	'title' => 'تماس با ما',
	'add_to_menu_id' => $menu_td_demo_top_menu_id,
	'url' => '#',
	'parent_id' => ''
));

$menu_item_2_id = td_demo_menus::add_link(array(
	'title' => 'درباره ما',
	'add_to_menu_id' => $menu_td_demo_top_menu_id,
	'url' => '#',
	'parent_id' => ''
));


/*  ----------------------------------------------------------------------------
	MENUS ITEMS
*/
$menu_item_0_id = td_demo_menus::add_mega_menu(array(
    'title' => 'محبوب‌ترین',
    'add_to_menu_id' => $menu_td_demo_custom_menu_id,
    'category_id' => $cat_style_id,
    'parent_id' => ''
));


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

td_demo_misc::update_background_mobile('td_pic_1');

td_demo_misc::update_background_login('td_pic_2');

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());
