<?php
function rswpthemes_awt_premium_demos(){
	$demo_lists = array();
	$demo_lists['premium-demo-1'] = array(
        'title' => __( 'Premium Demo 1', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/pro-demo-1.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=author-portfolio-demo-selector',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/author-portfolio-pro-wordpress-theme/',
     );
    $demo_lists['premium-demo-2'] = array(
        'title' => __( 'Premium Demo 2', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/pro-demo-2.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=author-portfolio-demo-selector',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/author-portfolio-pro-wordpress-theme/',
     );
    $demo_lists['premium-demo-3'] = array(
        'title' => __( 'Premium Demo 3', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/pro-demo-3.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=author-portfolio-demo-selector',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/author-portfolio-pro-wordpress-theme/',
     );

    $demo_lists['premium-demo-4'] = array(
        'title' => __( 'Premium Demo 4', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/pro-demo-4.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=author-portfolio-demo-selector',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/author-portfolio-pro-wordpress-theme/',
     );

    $demo_lists['shofy-demo-grocery'] = array(
        'title' => __( 'Grocery Store Home', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Grocery', 'store', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/shofy/shofy-grocery.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/shofy/demo',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/shofy-premium-multipurpose-woocommerce-theme/',
     );
    $demo_lists['shofy-demo-fashion'] = array(
        'title' => __( 'Fashion Store Home', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'fashion', 'store', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/shofy/shofy-fashion.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/shofy/demo',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/shofy-premium-multipurpose-woocommerce-theme/',
     );
    $demo_lists['shofy-demo-electronic'] = array(
        'title' => __( 'Electronic Store Home', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Electronic', 'store', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/shofy/shofy-electronic.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/shofy/demo',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/shofy-premium-multipurpose-woocommerce-theme/',
     );
    $demo_lists['shofy-demo-jewellery'] = array(
        'title' => __( 'Jewellery Store Home', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Jewellery', 'store', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/shofy/shofy-jewellery.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/shofy/demo',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/shofy-premium-multipurpose-woocommerce-theme/',
     );
    $demo_lists['shofy-demo-beauty'] = array(
        'title' => __( 'Beauty Store Home', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Beauty', 'store', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/shofy/shofy-beauty.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/shofy/demo',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/shofy-premium-multipurpose-woocommerce-theme/',
     );
    $demo_lists['blog-home-1'] = array(
        'title' => __( 'Blog Home 1', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-1.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-2'] = array(
        'title' => __( 'Blog Home 2', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-2.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-3'] = array(
        'title' => __( 'Blog Home 3', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-3.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-4'] = array(
        'title' => __( 'Blog Home 4', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-4.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-5'] = array(
        'title' => __( 'Blog Home 5', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-5.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-6'] = array(
        'title' => __( 'Blog Home 6', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-6.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );
    $demo_lists['blog-home-7'] = array(
        'title' => __( 'Blog Home 7', 'rspbpc' ),/*Title*/
        'is_pro' => true, /*Is Premium*/
        'type' => 'pro', /*Optional eg gutentor, elementor or other page builders or type*/
        'author' => __( 'rswpthemes' ),/*Author Name*/
        'keywords' => array( 'Author', 'book', 'blog', 'pro' ),/*Search keyword*/
        'categories' => array( 'pro' ),/*Categories*/
        'screenshot_url' => RSWPTHEMES_AWT_PLUGIN_URL . 'themes-demoes/demoes/screenshots/blog-home-7.jpg',/*Full URL Path to demo screenshot image*/
        'demo_url' => 'https://rswpthemes.com/demo-page/?demo=wpbeeg',/*Full URL Path to Live Demo*/
        'pro_url' => 'https://rswpthemes.com/wpbeeg-multipurpose-wordpress-theme/',
     );


    $current_theme = wp_get_theme();
    $theme_slug = $current_theme->get('TextDomain');

    if ($theme_slug === 'electronic-store') {
        // Reorder to prioritize 'shofy-demo-electronic', 'shofy-demo-jewellery', etc.
        $ordered_demos = array(
            'shofy-demo-electronic' => $demo_lists['shofy-demo-electronic'],
            'shofy-demo-jewellery' => $demo_lists['shofy-demo-jewellery'], // Add more priority demos if needed
            'shofy-demo-fashion' => $demo_lists['shofy-demo-fashion'], // Add more priority demos if needed
            'shofy-demo-beauty' => $demo_lists['shofy-demo-beauty'], // Add more priority demos if needed
            'shofy-demo-grocery' => $demo_lists['shofy-demo-grocery'], // Add more priority demos if needed
        );

        $demo_lists = array_merge($ordered_demos, $demo_lists);
    }

    return $demo_lists;
}