<?php

// Add scripts and stylesheet
function blcr_enqueue_styles() {
    global $themeslug, $options;
    wp_register_style($themeslug . 'storecss', get_template_directory_uri() . '/functions/css/theme-page-style.css');
    wp_enqueue_style($themeslug . 'storecss');
}

// Add page to the menu
function blcr_add_menu() {
    $page = add_theme_page('InkThemes Themes Page', 'InkThemes Themes', 'administrator', 'themes', 'blcr_page_init');
    add_action('admin_print_styles-' . $page, 'blcr_enqueue_styles');
}

add_action('admin_menu', 'blcr_add_menu');

// Create the page
function blcr_page_init() {
    $root = get_template_directory_uri();
    $pro_theme_url = 'http://www.inkthemes.com/wp-themes/lead-generation-wordpress-theme/';
    $pro_theme_demo = 'http://inkthemes.com/wptheme/blackriders-education/';
    $site_url = 'http://www.inkthemes.com';
    ?>	
    <div class="inkthemes_advert" id="inkthemes_advert">	
        <div class="inkthemes_block_wrapper">
            <h3><?php _e('BlackRider Pro Version Features', 'black-rider'); ?></h3>
            <div class="inkthemes_block block_two">				
                <ul>						
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('8 Built in Color Schemes', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('PDF/Video Documentations', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('Cool Styling Features', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('Multiple Slider Options', 'black-rider'); ?></li>
                </ul>
            </div>
            <div class="inkthemes_block block_three">
                <ul>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('Seo optimized Theme', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('Translation Ready', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('InBuilt LeadCapture Module', 'black-rider'); ?></li>
                    <li><div class="dashicons dashicons-controls-play"></div><?php _e('Gallery & Contact Page', 'black-rider'); ?></li>						
                </ul>
            </div>
            <a href="<?php echo esc_url($pro_theme_demo); ?>" target="blank" class="btn btn-demo"><?php _e('View Pro Demo', 'black-rider'); ?></a>
            <a href="<?php echo esc_url($pro_theme_url); ?>" target="_blank" class="btn btn-upgrade"><?php _e('Upgrade to Pro', 'black-rider'); ?></a>
        </div>
        <div class="inkthemes_block block_four">				
            <img class="inkthemes_img_responsive " src="<?php echo get_template_directory_uri(); ?>/functions/images/advert.png">				
        </div>
    </div>
    <div class="clear"></div>
    <div id="contain" class="theme_page">
        <div id="themesheader">
            <a href="<?php echo esc_url("http://www.inkthemes.com/"); ?>" target="_blank"><img src="<?php echo $root; ?>/functions/images/inkthemes-logo.png" /></a>
            <br/>           
            <div style="clear: both;"></div>
        </div>
        <div id="container">
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/colorway-wp-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/colorway.jpg" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/colorway-wp-theme/"); ?>" target="_blank">
                            <?php _e('Colorway Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('The best thing about Colorway Theme is the ease with the help of which you can convert your Website in various different Niches. &#8220;Your Clients Would Love Their Site & You Would smile in the back thinking about the Time That You Spend Building their Sites.&#8221;', 'black-rider'); ?>
                    <br /><br />
                    <?php _e('Colorway   Theme is perfect for quick and easy blogging with a clean and modern interface and tons of features. The layout does not distract from your content, which is vital for a site devoted to business & blogging.', 'black-rider'); ?> <br /><br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/colorway-wp-theme/"); ?>" target="_blank">
                            <?php _e('Buy Colorway Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" href="<?php echo esc_url("http://wordpress.org/extend/themes/colorway"); ?>" target="_blank"><?php _e('Try Colorway Lite for FREE', 'black-rider'); ?></a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/corporate-wordpress-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/butterbelly.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/corporate-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Butterbelly Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('For creating a informative corporate WordPress website that perfectly highlights your company profile, business services, attract new visitors, generate leads etc, one need to have a awesome corporate WordPress theme like ButterBelly.', 'black-rider'); ?> 
                    <br/><br/>
                    <?php _e('ButterBelly is a clean, elegant and fully responsive Corporate WordPress Theme, designed specially for corporate websites. The theme is very easy to use and simple to handle. It makes easier for you to get your site ready in few minutes.', 'black-rider'); ?>
                    <br /> <br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/corporate-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Buy ButterBelly Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" target="_blank" href="<?php echo esc_url("http://wordpress.org/extend/themes/butterbelly"); ?>">
                            <?php _e('Try ButterBelly Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-photography-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/photomaker.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-photography-theme/"); ?>" target="_blank">
                            <?php _e('Photomaker Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('As a Photographer one must need to display their work online, as it is the best means of demonstrating your high quality photographs and arts which makes you stand out among all.', 'black-rider'); ?> 
                    <br/><br/>
                    <?php _e('We have very carefully designed and crafted this theme to make your photos look elegant and spectacular on any device. Now you can market your work with this photography theme and can showcase your collection on your WordPress website.', 'black-rider'); ?>
                    <br /> <br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-photography-theme/"); ?>" target="_blank">
                            <?php _e('Buy Photomaker Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" target="_blank" href="<?php echo esc_url("http://wordpress.org/extend/themes/photomaker"); ?>">
                            <?php _e('Try Photomaker Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/featured-content-slider-wordpress-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/compass.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/featured-content-slider-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Compass Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('Compass is an awesome Professional Business WordPress theme with featured content sliders. It helps you to effectively showcase your business to your website visitors. The most rocking part is, it has got amazing animation effect in almost every part of its feature.', 'black-rider'); ?> 
                    <br /><br />
                    <?php _e('Compass is packed with some amazing features such as attractive multiple image Slider, facility to add video/testimonials on the homepage, showing portfolios, several page templates. Got a wonderful featured content moving sliders. Various fab icons with dynamic effect to show up your services in three-column featured area. And much more..', 'black-rider'); ?>
                    <br /><br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/featured-content-slider-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Buy Compass Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" href="<?php echo esc_url("http://wordpress.org/extend/themes/compass"); ?>" target="_blank">
                            <?php _e('Try Compass Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/interior-design-wordpress-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/blackwell.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/interior-design-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('BlackWell Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('BlackWell is a highly professional One Page WordPress Theme for creating interior designing websites. It provides an eye catching look showcasing most important features of your work.', 'black-rider'); ?> 
                    <br/>
                    <br/>
                    <?php _e('Cool thing about BlackWell home page is it comes with a single page scrolling effect which grabs visitors attention and makes site look attractive. A start up loading timer is also there to engage the user while your site is getting loaded.', 'black-rider'); ?>   
                    <br/><br/>
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/interior-design-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Buy BlackWell Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" href="<?php echo esc_url("http://wordpress.org/extend/themes/blackwell"); ?>" target="_blank">
                            <?php _e('Try BlackWell Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/geocraft-directory-listing-wordpress-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/geocraft.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/geocraft-directory-listing-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('GeoCraft Directory Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('Now you can easily setup a WP directory listing website and start earning online. GeoCraft v2 Theme lets you get your City Business Directory Website online within minutes.', 'black-rider'); ?> 
                    <br/><br/>
                    <?php _e('Fully Responsive WordPress Business Directory Theme, One Click Auto Install. Extremely Easy to use. You can create Featured Business Listing. Can generate revenue for you via Paypal (Complete Integrated System) You can create Free/Paid Business Listing. Fully Integrated with User Submission System and much more', 'black-rider'); ?>
                    <br/><br/>
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/geocraft-directory-listing-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Buy GeoCraft Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" target="_blank" href="<?php echo esc_url("http://wordpress.org/extend/themes/business-directory"); ?>">
                            <?php _e('Try GeoCraft Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/lead-generation-wordpress-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/blackbird.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/unique-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('BlackBird Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('Blackbird  is a unique responsive WordPress theme, which is simple to use and comes with newsletter on home page. It&#39;s really easy to setup with a touch-friendly mobile norms. The theme design is fabulous enough giving your visitors the absolute reason to stay on your site.', 'black-rider'); ?>
                    <br/>
                    <br/>
                    <?php _e('Functions are easy to set up an entire website in minutes. On the whole, you can have a absolute control over the look and feel of your whole website. Blackbird theme empowers to give your website a fresh new looks with lightweight assets and cutting edge technology.', 'black-rider'); ?>
                    <br /> <br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/unique-wordpress-theme/"); ?>" target="_blank">
                            <?php _e('Buy BlackBird Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" href="<?php echo esc_url("http://wordpress.org/extend/themes/blackbird/"); ?>" target="_blank">
                            <?php _e('Try BlackBird Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
            <div class="inktheme-page-seperator"></div>
            <div class="theme-item">
                <div class="theme-image">
                    <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-business-theme/"); ?>" target="_blank">
                        <img src="<?php echo $root; ?>/functions/images/harrington.png" />
                    </a>
                </div>
                <div class="theme-desc">
                    <div class="theme-title">
                        <a href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-business-theme/"); ?>" target="_blank">
                            <?php _e('Harrington Theme', 'black-rider'); ?>
                        </a>
                    </div>
                    <br />
                    <?php _e('Harrington is a nice, clean and one of the super WordPress themes for business that comes with a variable slider on home page which gives a moving effect to your images.', 'black-rider'); ?> 
                    <br/><br/>
                    <?php _e('Harrington comes with Ken Burns slider which gives animation effects to your slider images.. That makes Harrington completely outstanding as compared to other WordPress themes. You can adjust the speed of slider as well from the theme option panel', 'black-rider'); ?>
                    <br /> <br />
                    <div class="buy">
                        <a class="button-primary" href="<?php echo esc_url("http://www.inkthemes.com/wp-themes/wordpress-business-theme/"); ?>" target="_blank">
                            <?php _e('Buy Harrington Theme', 'black-rider'); ?>
                        </a>
                        &nbsp;&nbsp;&nbsp;
                        <a class="button-primary" target="_blank" href="<?php echo esc_url("http://wordpress.org/extend/themes/harrington"); ?>">
                            <?php _e('Try Harrington Lite for FREE', 'black-rider'); ?>
                        </a>
                    </div>
                </div>
            </div>
        </div>		
    </div>
    <div class="inkthemes-admin-sidebar">
        <div class="theme-notification">
            <div class="postbox-container" id="main">
                <div class="notification-box">
                    <h3><?php _e("Get Themes email updates and a free WordPress ebook", 'black-rider'); ?></h3>
                    <p><?php _e("We'll send you new updates about themes and WordPress and a free WordPress tips & tricks ebook!", 'black-rider'); ?>
                    </p>
                    <div class = "form-container">
                        <form accept-charset="UTF-8" action="//www.formget.com/mailget/signups/subscribe/IjgwNCI_3D " name="mailget_form" method="post" onsubmit="return v_mailget()" >
                            <div class="form-button-container">
                                <input name="utf8" type="hidden" value="?"/>
                                <input name="subs_set_url" type="hidden" value="<?php echo esc_url($site_url); ?>"/>
                                <input name="subs_name" type="text" placeholder="<?php _e('Your Name', 'black-rider'); ?>" required />
                                <input name="subs_email" type="email" value="<?php echo get_option('admin_email', 'email address'); ?>" required/>
                            </div>                           
                            <input type="submit" value="Subscribe and get a free ebook" name="subscribe" class="button button-primary">
                        </form>
                    </div>
                </div>
                <div class="horizontal-line"></div>
                <div>
                    <h3><?php _e('Get the BlackRider Pro Theme', 'black-rider'); ?></h3>
                    <p><?php _e('You are using the Lite Version of BlackRider Theme. Upgrade to Pro for extra features like Home Page Slider Contact Page, FullWidth Page Templates, Multiple Color Options and much more.', 'black-rider'); ?></p>
                    <a class="button-primary" href="<?php echo esc_url($pro_theme_url); ?>" target="_blank"><?php _e('Get the BlackRider Pro', 'black-rider'); ?></a>
                </div>
                <div class="horizontal-line"></div>
                <div>
                    <h3><?php _e('Rate us on WordPress.org ', 'black-rider'); ?></h3>
                    <p><?php _e('Get Best Theme support. We are always ready to solve your queries. Just started your query at InkThemes.com', 'black-rider'); ?></p>
                    <a class="button-primary" href="<?php echo esc_url('http://www.inkthemes.com/community'); ?>" target="_blank"><?php _e('Get Free Support', 'black-rider'); ?></a>
                </div>
            </div>
        </div>
    </div>
    <?php
}
