<?php
//about theme info
add_action( 'admin_menu', 'gardening_landscape_aura_gettingstarted_page' );
function gardening_landscape_aura_gettingstarted_page() {      
    add_theme_page( esc_html__('Gardening Landscape Aura', 'gardening-landscape-aura'), esc_html__('All About Gardening Landscape Aura', 'gardening-landscape-aura'), 'edit_theme_options', 'gardening_landscape_aura_mainpage', 'gardening_landscape_aura_main_content');   
}


function gardening_landscape_aura_discount_notice() {
    global $pagenow;
    if ( is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] ) ) { ?>
        <div class="notice getting_started">
            <div class="notice-content">
                <p><?php esc_html_e( '🎉 Thank You For Choosing CA WP Themes!', 'gardening-landscape-aura' ); ?></p>
                
                <h2><?php esc_html_e( '🚀 Get Started with Your Free Theme!', 'gardening-landscape-aura' ); ?></h2>
                
                <p><?php esc_html_e( "Here are some useful links to help you set up your theme quickly:", 'gardening-landscape-aura' ); ?></p>
                
                <div class="info-link">
                    <a href="<?php echo esc_url( 'https://cawpthemes.com/gardening-landscape-aura-free-wordpress-theme/' ); ?>" target="_blank">
                        <?php esc_html_e( '🎨 View Free Theme Details', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>
                
                <div class="info-link">
                    <a href="<?php echo esc_url( 'https://cawpthemes.com/docs/gardening-landscape-aura-free-theme-documentation/' ); ?>" target="_blank">
                        <?php esc_html_e( '📖 Read Theme Documentation', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>

                <h2><?php esc_html_e( '🔥 Upgrade to Pro for More Amazing Features!', 'gardening-landscape-aura' ); ?></h2>
                
                <p><?php esc_html_e( "Unlock the full potential of your website with our premium version! 🚀", 'gardening-landscape-aura' ); ?></p>
                
                <div class="info-link">
                   <a href="<?php echo esc_url( 'https://cawpthemes.com/docs/premium-theme-and-plugin-download/' ); ?>" target="_blank">
                        <?php esc_html_e( '📖 Pro Documentation', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>

                <div class="info-link">
                    <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_URL ); ?>" target="_blank">
                        <?php esc_html_e( '🚀 Upgrade to Pro', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>

                <div class="info-link">
                    <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_DEMO ); ?>" target="_blank">
                        <?php esc_html_e( '✨ Premium Demo', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>

                <h2><?php esc_html_e( '🔥 Limited Time Offer – Flat 15% OFF on Pro Themes!', 'gardening-landscape-aura' ); ?></h2>
                
                <p><?php esc_html_e( "Upgrade today and get 15% off! Don't miss this exclusive deal! 💰", 'gardening-landscape-aura' ); ?></p>
                
                <ul class="discount-benefits">
                    <li>✅ <?php esc_html_e('SEO Optimized & Speed Fast 🚀', 'gardening-landscape-aura'); ?></li>
                    <li>✅ <?php esc_html_e('Fully Responsive & Mobile-Friendly 📱', 'gardening-landscape-aura'); ?></li>
                    <li>✅ <?php esc_html_e('Customizer Support for Easy Customization 🎨', 'gardening-landscape-aura'); ?></li>
                    <li>✅ <?php esc_html_e('Premium Features & Regular Updates 🔥', 'gardening-landscape-aura'); ?></li>
                </ul>
                
                <p class="discount-code">
                    <?php esc_html_e('👉 Use Code:', 'gardening-landscape-aura'); ?> 
                    <span>SAVE15</span> 
                    <?php esc_html_e(' at Checkout', 'gardening-landscape-aura'); ?>
                </p>
                
                <div class="info-link">
                    <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_URL ); ?>" target="_blank">
                        <?php esc_html_e( '🛒 Shop Now', 'gardening-landscape-aura' ); ?>
                    </a>
                </div>

                <p class="offer-expiry"><?php esc_html_e('📅 Hurry! Offer ends soon.', 'gardening-landscape-aura' ); ?></p>
            </div>
        </div>
    <?php }
}

add_action( 'admin_notices', 'gardening_landscape_aura_discount_notice' );
// Add a Custom CSS file to WP Admin Area
function gardening_landscape_aura_admin_page_theme_style() {
   wp_enqueue_style('gardening-landscape-aura-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/getstarted/getstarted.css');
}
add_action('admin_enqueue_scripts', 'gardening_landscape_aura_admin_page_theme_style');

//About Theme Info
function gardening_landscape_aura_main_content() { 

    //custom function about theme customizer

    $return = add_query_arg( array()) ;
    $theme = wp_get_theme( 'gardening-landscape-aura' );
?>

<div class="theme-discount-banner">
    <h2><?php esc_html_e('🚀 Limited Time Offer – Flat 15% OFF on All Premium WordPress Themes! 🎉', 'gardening-landscape-aura'); ?></h2>
    <p><?php esc_html_e('Upgrade your website with our stunning, high-performance WordPress themes at an exclusive 15% discount! 💰✨', 'gardening-landscape-aura'); ?></p>
    
    <ul class="discount-benefits">
        <li>✅ <?php esc_html_e('SEO Optimized & Speed Fast 🚀', 'gardening-landscape-aura'); ?></li>
        <li>✅ <?php esc_html_e('Fully Responsive & Mobile-Friendly 📱', 'gardening-landscape-aura'); ?></li>
        <li>✅ <?php esc_html_e('Customizer Support for Easy Customization 🎨', 'gardening-landscape-aura'); ?></li>
        <li>✅ <?php esc_html_e('Premium Features & Regular Updates 🔥', 'gardening-landscape-aura'); ?></li>
    </ul>
    
    <p class="discount-code"><?php esc_html_e('👉 Use Code: ', 'gardening-landscape-aura'); ?> <span>SAVE15</span> <?php esc_html_e(' at Checkout', 'gardening-landscape-aura'); ?></p>
    
    <a href="https://cawpthemes.com/gardening-landscape-aura-premium-wordpress-theme/" class="cta-button"><?php esc_html_e('Shop Now 🚀', 'gardening-landscape-aura'); ?></a>
    
    <p class="offer-expiry"><?php esc_html_e('📅 Hurry! Offer ends soon.', 'gardening-landscape-aura'); ?></p>
</div>

<div class="admin-main-box">
    <div class="admin-left-box">
        <h2><?php esc_html_e( 'Welcome to Gardening Landscape Aura Theme', 'gardening-landscape-aura' ); ?><span class="version"><?php $theme_info = wp_get_theme();
echo $theme_info->get( 'Version' );?></span></h2>
        <p><?php esc_html_e('CA WP Themes is a premium WordPress theme development company that provides high-quality themes for various types of websites. They specialize in creating themes for businesses, eCommerce, portfolios, blogs, and many more. Their themes are easy to use and customize, making them perfect for those who want to create a professional-looking website without any coding skills.','gardening-landscape-aura'); ?></p>
        <p><?php esc_html_e('CA WP Themes offers a wide range of themes that are designed to be responsive and compatible with the latest versions of WordPress. Our themes are also SEO optimized, ensuring that your website will rank well on search engines. They come with a variety of features such as customizable widgets, social media integration, and custom page templates.','gardening-landscape-aura'); ?></p>
        <p><?php esc_html_e('One of the unique things about CA WP Themes is their focus on providing excellent customer support. They have a dedicated team of support staff who are available 24/7 to help customers with any issues they may encounter. Their support team is knowledgeable and friendly, ensuring that customers receive the best possible experience.','gardening-landscape-aura'); ?></p>
    </div>
    <div class="admin-right-boxt">
        <div class="admin_text-btn">    
            <h4><?php esc_html_e('Buy Gardening Landscape Aura Premium Theme','gardening-landscape-aura'); ?></h4>
            <p><?php esc_html_e('Now the Premium Version is only at $39.99 with Lifetime Access!Grab the deal now!', 'gardening-landscape-aura'); ?></p>
            <div class="info-link">
                <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_URL ); ?>" target="_blank"> <?php esc_html_e( 'Upgrade to Pro', 'gardening-landscape-aura' ); ?></a>
            </div>
        </div>
        <hr>
        <div class="admin_text-btn">
            <h4><?php esc_html_e('Premium Theme Demo','gardening-landscape-aura'); ?></h4>
            <div class="info-link">
                <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Demo', 'gardening-landscape-aura' ); ?></a>
            </div>
        </div>
        <hr>
        <div class="admin_text-btn">
            <h4><?php esc_html_e('Need Support? / Contact Us','gardening-landscape-aura'); ?></h4>
            <div class="info-link">
                <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Contact Us', 'gardening-landscape-aura' ); ?></a>
            </div>
        </div>
        <hr>
        <div class="admin_text-btn">
            <h4><?php esc_html_e('Documentation','gardening-landscape-aura'); ?></h4>
            <div class="info-link">
                <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_PRO_DOCUMENTATION ); ?>" target="_blank"> <?php esc_html_e( 'Docs', 'gardening-landscape-aura' ); ?></a>
            </div>
        </div>
        <hr>
        <div class="admin_text-btn">
            <h4><?php esc_html_e('Free Theme','gardening-landscape-aura'); ?></h4>
            <div class="info-link">
                <a href="<?php echo esc_url( GARDENING_LANDSCAPE_AURA_FREE_URL ); ?>" target="_blank"> <?php esc_html_e( 'Demo', 'gardening-landscape-aura' ); ?></a>
            </div>
        </div>

    </div>
</div>

<?php } ?>