<?php
/*  ---------------------------------------------------------------------------
    top menu - MENUS MUST HAVE THE FOLLOWING NAMES:
    td-demo-top-menu
    td-demo-header-menu
    td-demo-footer-menu
*/

//main menu
$td_demo_header_menu_id = td_demo_menus::create_menu('td-demo-header-menu', 'header-menu');
$td_demo_top_menu_id = td_demo_menus::create_menu('td-demo-top-menu', 'top-menu');
$td_demo_header_menu_extra = td_demo_menus::create_menu('td-demo-header-menu-extra', '');
$td_demo_footer_menu = td_demo_menus::create_menu('td-demo-footer-menu', '');
$td_demo_custom_menu = td_demo_menus::create_menu('td-demo-custom-menu', '');

// main background > keep it empty to make sure that no bg img is set
td_demo_misc::update_background('');

// mobile menu/search background
td_demo_misc::update_background_mobile('td_pic_12');

// login background
td_demo_misc::update_background_login('td_pic_12');


/*  ----------------------------------------------------------------------------
    logo
*/
td_demo_misc::update_logo(array(
    'normal' => '',
    'mobile' => ''
));

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

/*  ----------------------------------------------------------------------------
    socials
*/
td_demo_misc::add_social_buttons(array(
    'facebook' => '#',
    'twitter' => '#',
    'instagram' => '#',
    'youtube' => '#'
));


/*  ----------------------------------------------------------------------------
    Cloud Templates
*/
$td_cloud_cat_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری دسته‌بندی - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/cat_cloud_template.txt',
    'template_type' => 'category',
));
td_demo_misc::update_global_category_template( 'tdb_template_' . $td_cloud_cat_template_id );


$td_cloud_post_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری نوشته - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_cloud_template.txt',
    'template_type' => 'single',
));
td_util::update_option('td_default_site_post_template', 'tdb_template_' . $td_cloud_post_template_id);


$td_cloud_global_author_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری نویسنده - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/author_cloud_template.txt',
    'template_type' => 'author',
));
td_demo_misc::update_global_author_template( 'tdb_template_' . $td_cloud_global_author_template_id );


$td_cloud_global_404_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری 404 - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/404_cloud_template.txt',
    'template_type' => '404',
));
td_demo_misc::update_global_404_template( 'tdb_template_' . $td_cloud_global_404_template_id );


$td_cloud_global_search_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری جستجو - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/search_cloud_template.txt',
    'template_type' => 'search',
));
td_demo_misc::update_global_search_template( 'tdb_template_' . $td_cloud_global_search_template_id );


$td_cloud_global_header_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری هدر - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/header_cloud_template.txt',
    'template_type' => 'header',
));
td_demo_misc::update_global_header_template( 'tdb_template_' . $td_cloud_global_header_template_id );
//update mobile menu id in cloud header template
update_post_meta( $td_cloud_global_header_template_id, 'header_mobile_menu_id', $td_demo_header_menu_id );


$td_cloud_global_date_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری تاریخ - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/date_cloud_template.txt',
    'template_type' => 'date',
));
td_demo_misc::update_global_date_template( 'tdb_template_' . $td_cloud_global_date_template_id );


$td_cloud_global_tag_template_id = td_demo_content::add_cloud_template(array(
    'title' => 'قالب ابری برچسب - اخبار حرفه‌ایی رومینا',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/tag_cloud_template.txt',
    'template_type' => 'tag',
));
td_demo_misc::update_global_tag_template( 'tdb_template_' . $td_cloud_global_tag_template_id );


$template_footer_template_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_template_id);


/*  ---------------------------------------------------------------------------
    categories
*/
$demo_cat_1_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', //leave empty for boxed layout, write "hide" for full layout
    'sidebar_id' => '',
    'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
    'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
));
    $demo_cat_2_id =td_demo_category::add_category(array(
        'category_name' => 'سبک زندگی',
        'parent_id' => $demo_cat_1_id,
        'category_template' => '',
        'top_posts_style' => '',
        'description' => '',
        'background_td_pic_id' => '',
        'boxed_layout' => 'hide', //leave empty for boxed layout, write "hide" for full layout
        'sidebar_id' => '',
        'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
        'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
    ));
    $demo_cat_3_id =td_demo_category::add_category(array(
        'category_name' => 'مسافرت',
        'parent_id' => $demo_cat_1_id,
        'category_template' => '',
        'top_posts_style' => '',
        'description' => '',
        'background_td_pic_id' => '',
        'boxed_layout' => 'hide', //leave empty for boxed layout, write "hide" for full layout
        'sidebar_id' => '',
        'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
        'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
    ));
    $demo_cat_4_id =td_demo_category::add_category(array(
        'category_name' => 'تلویزیون',
        'parent_id' => $demo_cat_1_id,
        'category_template' => '',
        'top_posts_style' => '',
        'description' => '',
        'background_td_pic_id' => '',
        'boxed_layout' => 'hide', //leave empty for boxed layout, write "hide" for full layout
        'sidebar_id' => '',
        'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
        'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
    ));
    $demo_cat_5_id =td_demo_category::add_category(array(
        'category_name' => 'موسیقی',
        'parent_id' => $demo_cat_1_id,
        'category_template' => '',
        'top_posts_style' => '',
        'description' => '',
        'background_td_pic_id' => '',
        'boxed_layout' => 'hide', //leave empty for boxed layout, write "hide" for full layout
        'sidebar_id' => '',
        'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
        'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
    ));
    $demo_cat_6_id =td_demo_category::add_category(array(
        'category_name' => 'بازی‌ها',
        'parent_id' => $demo_cat_1_id,
        'category_template' => '',
        'top_posts_style' => '',
        'description' => '',
        'background_td_pic_id' => '',
        'boxed_layout' => 'hide', //leave empty for boxed layout, write "hide" for full layout
        'sidebar_id' => '',
        'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
        'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
    ));
$demo_cat_7_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', //leave empty for boxed layout, write "hide" for full layout
    'sidebar_id' => '',
    'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
    'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
));
$demo_cat_8_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', //leave empty for boxed layout, write "hide" for full layout
    'sidebar_id' => '',
    'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
    'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
));
$demo_cat_9_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', //leave empty for boxed layout, write "hide" for full layout
    'sidebar_id' => '',
    'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
    'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
));
$demo_cat_10_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', //leave empty for boxed layout, write "hide" for full layout
    'sidebar_id' => '',
    'tdc_layout' => '', //THE MODULE ID 1 2 3 NO NAME JUST ID
    'tdc_sidebar_pos' => '', //sidebar_left, sidebar_right, no_sidebar
));


/*  ----------------------------------------------------------------------------
    pages
*/

//homepage
$td_homepage_id = td_demo_content::add_page(array(
    'title' => 'صفحه اصلی',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/homepage.txt',
    'template' => 'default',   // the page template full file name with .php, for default no extension needed
    'td_layout' => '',
    'homepage' => true
));

/*  ----------------------------------------------------------------------------
    menu
*/

//first menu

//add the homepage to the menu
td_demo_menus::add_page(array(
    'title' => 'اخبار',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'page_id' => $td_homepage_id,
    'parent_id' => ''
));

// mega menu one subcateg
td_demo_menus::add_mega_menu(array(
    'title' => 'تکنولوژی',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_7_id
));
td_demo_menus::add_mega_menu(array(
    'title' => 'فرهنگ',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_9_id
));
td_demo_menus::add_mega_menu(array(
    'title' => 'سرگرمی',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_1_id
));
td_demo_menus::add_mega_menu(array(
    'title' => 'ورزش',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_10_id
));

td_demo_menus::add_category(array(
    'title' => 'مسافرت',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_3_id
));

td_demo_menus::add_category(array(
    'title' => 'موسیقی',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_5_id
));

// add a subcategory to the sub-menu
$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'بیشتر',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'url' => '#',
    'parent_id' => ''
));

td_demo_menus::add_category(array(
    'title' => 'سیاست',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_8_id,
    'parent_id' => $parent_submenu_id
));
td_demo_menus::add_category(array(
    'title' => 'سبک زندگی',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_2_id,
    'parent_id' => $parent_submenu_id
));
td_demo_menus::add_category(array(
    'title' => 'تلویزیون',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_4_id,
    'parent_id' => $parent_submenu_id
));
td_demo_menus::add_category(array(
    'title' => 'بازی‌ها',
    'add_to_menu_id' => $td_demo_header_menu_id,
    'category_id' => $demo_cat_6_id,
    'parent_id' => $parent_submenu_id
));



td_demo_menus::add_category(array(
    'title' => 'سبک زندگی',
    'add_to_menu_id' => $td_demo_top_menu_id,
    'category_id' => $demo_cat_2_id
));
td_demo_menus::add_category(array(
    'title' => 'مسافرت',
    'add_to_menu_id' => $td_demo_top_menu_id,
    'category_id' => $demo_cat_3_id
));
td_demo_menus::add_category(array(
    'title' => 'تلویزیون',
    'add_to_menu_id' => $td_demo_top_menu_id,
    'category_id' => $demo_cat_4_id
));
td_demo_menus::add_category(array(
    'title' => 'موسیقی',
    'add_to_menu_id' => $td_demo_top_menu_id,
    'category_id' => $demo_cat_5_id
));
td_demo_menus::add_category(array(
    'title' => 'بازی‌ها',
    'add_to_menu_id' => $td_demo_top_menu_id,
    'category_id' => $demo_cat_6_id
));


$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'صفحه اصلی',
    'add_to_menu_id' => $td_demo_header_menu_extra,
    'url' => '#',
    'parent_id' => ''
));
$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'درباره ما',
    'add_to_menu_id' => $td_demo_header_menu_extra,
    'url' => '#',
    'parent_id' => ''
));
$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'تبلیغات',
    'add_to_menu_id' => $td_demo_header_menu_extra,
    'url' => '#',
    'parent_id' => ''
));
$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'ارسال خبر',
    'add_to_menu_id' => $td_demo_header_menu_extra,
    'url' => '#',
    'parent_id' => ''
));
$parent_submenu_id = td_demo_menus::add_link(array(
    'title' => 'تماس با ما',
    'add_to_menu_id' => $td_demo_header_menu_extra,
    'url' => '#',
    'parent_id' => ''
));


td_demo_menus::add_category(array(
    'title' => 'مسافرت',
    'add_to_menu_id' => $td_demo_footer_menu,
    'category_id' => $demo_cat_3_id
));
td_demo_menus::add_category(array(
    'title' => 'سیاست',
    'add_to_menu_id' => $td_demo_footer_menu,
    'category_id' => $demo_cat_8_id
));
td_demo_menus::add_category(array(
    'title' => 'ورزش',
    'add_to_menu_id' => $td_demo_footer_menu,
    'category_id' => $demo_cat_10_id
));
td_demo_menus::add_category(array(
    'title' => 'تکنولوژی',
    'add_to_menu_id' => $td_demo_footer_menu,
    'category_id' => $demo_cat_7_id
));
td_demo_menus::add_category(array(
    'title' => 'ویدیو',
    'add_to_menu_id' => $td_demo_footer_menu,
    'category_id' => $demo_cat_7_id
));
td_demo_menus::add_category(array(
    'title' => 'فرهنگ',
    'add_to_menu_id' => $td_demo_custom_menu,
    'category_id' => $demo_cat_9_id
));
td_demo_menus::add_category(array(
    'title' => 'سرگرمی',
    'add_to_menu_id' => $td_demo_custom_menu,
    'category_id' => $demo_cat_1_id
));
td_demo_menus::add_category(array(
    'title' => 'بازی‌ها',
    'add_to_menu_id' => $td_demo_custom_menu,
    'category_id' => $demo_cat_6_id
));
td_demo_menus::add_category(array(
    'title' => 'سبک زندگی',
    'add_to_menu_id' => $td_demo_custom_menu,
    'category_id' => $demo_cat_2_id
));
td_demo_menus::add_category(array(
    'title' => 'موسیقی',
    'add_to_menu_id' => $td_demo_custom_menu,
    'category_id' => $demo_cat_5_id
));


/*  ---------------------------------------------------------------------------
    posts
*/
// posts in featured category

/* ------------------------------------------------------------------ */
// posts in multiple categories

td_demo_content::add_post(array(
    'title' => 'خرید هاست و دامنه مطمئن از میهن گیگ',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_1'
));

td_demo_content::add_post(array(
    'title' => 'در زمان آلودگی هوا چه چیزهایی بخوریم؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_2'
));

td_demo_content::add_post(array(
    'title' => 'اندروید 8 برای گوشی HTC U11 Life عرضه شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_3'
));

td_demo_content::add_post(array(
    'title' => 'آیفون 10 به این زودی‌ها از رده خارج نمی‌شود',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_4'
));

td_demo_content::add_post(array(
    'title' => 'گوشی Nova 2S به‌زودی معرفی می‌شود',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_5'
));

td_demo_content::add_post(array(
    'title' => 'بهترین گوشی‌های اندرویدی برای عکاسی',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_6'
));

td_demo_content::add_post(array(
    'title' => 'نسخه نهایی مایکروسافت اج برای اندروید منتشر شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_7'
));

td_demo_content::add_post(array(
    'title' => 'محیط‌ زیستی به سبک گربه‌های اشرافی',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_8'
));

td_demo_content::add_post(array(
    'title' => 'چه چیز جایگزین گوشی هوشمند خواهد شد؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id,$demo_cat_3_id,$demo_cat_4_id,$demo_cat_5_id,$demo_cat_6_id,$demo_cat_7_id,$demo_cat_8_id,$demo_cat_9_id,$demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_9'
));

/* ------------------------------------------------------------------ */
// posts in one category
/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'نگاهی به خودروهای جدید بورگوارد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_10'
));

td_demo_content::add_post(array(
    'title' => 'چرا گوشی ریزر جک هدفون ندارد؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_11'
));

td_demo_content::add_post(array(
    'title' => 'با ویژگی جدید اینستاگرام آشنا شوید',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_12'
));

td_demo_content::add_post(array(
    'title' => 'نگاهی به فولکس تیگوان',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_10_id),
    'featured_image_td_id' => 'td_pic_1'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'اپل 15 میلیون آیفون 10 فروخته است',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_9_id),
    'featured_image_td_id' => 'td_pic_2'
));

td_demo_content::add_post(array(
    'title' => 'آنر V10 رسما معرفی شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_9_id),
    'featured_image_td_id' => 'td_pic_3'
));

td_demo_content::add_post(array(
    'title' => 'هوش مصنوعی گوگل مچ مزاحم‌ها را می‌گیرد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_9_id),
    'featured_image_td_id' => 'td_pic_4'
));

td_demo_content::add_post(array(
    'title' => 'ممکن است معده‌ی کسی از پرخوری بترکد؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_9_id),
    'featured_image_td_id' => 'td_pic_5'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'باکس‌آفیس در تصاحب پیکسار',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_8_id),
    'featured_image_td_id' => 'td_pic_6'
));

td_demo_content::add_post(array(
    'title' => 'هواوی گوشی میت 10 را در ایران رونمایی کرد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_8_id),
    'featured_image_td_id' => 'td_pic_7'
));

td_demo_content::add_post(array(
    'title' => 'نگاهی به فولکس پاسات',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_8_id),
    'featured_image_td_id' => 'td_pic_8'
));

td_demo_content::add_post(array(
    'title' => 'HTC U11 به اندروید 8.0 بروزرسانی شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_8_id),
    'featured_image_td_id' => 'td_pic_9'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'اپل گوشی یا تبلت با نمایشگر تاشو می‌سازد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_7_id),
    'featured_image_td_id' => 'td_pic_10'
));

td_demo_content::add_post(array(
    'title' => 'گوگل اپلیکیشن‌هایش را برای آیفون 10 به‌روز کرد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_7_id),
    'featured_image_td_id' => 'td_pic_11'
));

td_demo_content::add_post(array(
    'title' => '5+1 تصمیم برتر در بازی‌های ویدیویی',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_7_id),
    'featured_image_td_id' => 'td_pic_12'
));

td_demo_content::add_post(array(
    'title' => 'گوشی اوپو A79 معرفی شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_7_id),
    'featured_image_td_id' => 'td_pic_13'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'فایرفاکس کوانتوم یا گوگل کروم؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_6_id),
    'featured_image_td_id' => 'td_pic_14'
));

td_demo_content::add_post(array(
    'title' => 'آیا مایکروسافت به سمت اندروید می‌رود؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_6_id),
    'featured_image_td_id' => 'td_pic_15'
));

td_demo_content::add_post(array(
    'title' => 'تبلت Surface Pro 3 ارزان می‌شود',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_6_id),
    'featured_image_td_id' => 'td_pic_16'
));

td_demo_content::add_post(array(
    'title' => 'با تبلت جدید هوآوی آشنا شوید',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_6_id),
    'featured_image_td_id' => 'td_pic_17'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'پدیده‌ای به نام «اسکرین‌شات»',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_5_id),
    'featured_image_td_id' => 'td_pic_18'
));

td_demo_content::add_post(array(
    'title' => 'نکسوس بعدی بر اساس LG G4 نخواهد بود',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_5_id),
    'featured_image_td_id' => 'td_pic_19'
));

td_demo_content::add_post(array(
    'title' => 'مایکروسافت درحال خرید AMD',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_5_id),
    'featured_image_td_id' => 'td_pic_20'
));

td_demo_content::add_post(array(
    'title' => 'عبور تاریخی از نقطه‌ی بی‌بازگشت',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_5_id),
    'featured_image_td_id' => 'td_pic_11'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'چرا آدرس‌های اینترنتی به زبان انگلیسی هستند؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_4_id),
    'featured_image_td_id' => 'td_pic_13'
));

td_demo_content::add_post(array(
    'title' => 'بازی مافیا 3 در راه است',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_4_id),
    'featured_image_td_id' => 'td_pic_14'
));

td_demo_content::add_post(array(
    'title' => 'دوازده ترفند عمومی اندروید',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_4_id),
    'featured_image_td_id' => 'td_pic_15'
));

td_demo_content::add_post(array(
    'title' => 'تعقیب کوسه‌ها با GPS',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_4_id),
    'featured_image_td_id' => 'td_pic_16'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'جزییات سخت‌افزاری گلکسی A8 منتشر شد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_3_id),
    'featured_image_td_id' => 'td_pic_16'
));

td_demo_content::add_post(array(
    'title' => 'فبلت‌ها آمده‌اند که بمانند!',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_3_id),
    'featured_image_td_id' => 'td_pic_17'
));

td_demo_content::add_post(array(
    'title' => 'مشخصات LG G Pro 3 لو رفت؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_3_id),
    'featured_image_td_id' => 'td_pic_18'
));

td_demo_content::add_post(array(
    'title' => 'کدام بازی مبارزه‌ای محبوب‌تر است؟',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_3_id),
    'featured_image_td_id' => 'td_pic_19'
));

/* ------------------------------------------------------------------ */

td_demo_content::add_post(array(
    'title' => 'وقتی پوست روی بدن پرینت میشود',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id),
    'featured_image_td_id' => 'td_pic_20'
));

td_demo_content::add_post(array(
    'title' => 'سونی بخش موبایل‌اش را نمی‌فروشد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id),
    'featured_image_td_id' => 'td_pic_19'
));

td_demo_content::add_post(array(
    'title' => 'مشخصات گوشی گلکسی J2 لو رفت',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id),
    'featured_image_td_id' => 'td_pic_18'
));

td_demo_content::add_post(array(
    'title' => 'Redmi Note 2 سنسور اثر انگشت دارد',
    'file' => TDC_PATH_LEGACY . '/includes/demos/romania_news/pages/post_default.txt',
    'categories_id_array' => array($demo_cat_2_id),
    'featured_image_td_id' => 'td_pic_17'
));