<?php 
include_once 'classes/Dummy.php';
if (isset($_GET['save_dummy'])) {
    $dummy->save();
}
?>
<script type="text/javascript"> 
    function dummy () {
        var reply = confirm("WARNING: You have already insert dummy content and by inserting it again, you will have duplicate content.\r\n\We recommend doing this ONLY if something went wrong the first time and you have already cleared the content.");         
        return reply;
    }   
</script>
<form action="themes.php?page=theme_options&sub_page=dummy_content&save_dummy" method="post">
    <div class="content-inner envoo-dummy">
        <h3><?php _e("Insert dummy content: posts, pages, categories", ANPS_TEMPLATE_LANG); ?></h3>
        <p><?php _e("If you are new to wordpress or have problems creating posts or pages that look like the theme preview you can import dummy posts and pages here that will definitley help to understand how those tasks are done.", ANPS_TEMPLATE_LANG); ?></p>                   
        <div class="input">
            <center>
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/anps-framework/images/dummy_restaurant.png" />
                <h4>Restaurant Demo</h4>
                <div class="demo-buttons">
                    <input type="submit" name="dummy1" class="dummy" <?php if ($dummy->select()) : ?> onclick = "return dummy(); " id="dummy-twice"<?php endif; ?> value="<?php _e("Insert dummy content", ANPS_TEMPLATE_LANG); ?>" />
                    <a class="launch" href="http://anpsthemes.com/kataleya/restaurant/" target="_blank">launch demo preview</a>
                </div>
            </center>
        </div>
        <div class="input">
            <center>
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/anps-framework/images/dummy_pizza.png" />
                <h4>Pizza Place Demo</h4>
                <div class="demo-buttons">
                    <input type="submit" name="dummy2" class="dummy" <?php if ($dummy->select()) : ?> onclick = "return dummy(); " id="dummy-twice"<?php endif; ?> value="<?php _e("Insert dummy content", ANPS_TEMPLATE_LANG); ?>" />
                    <a class="launch" href="http://anpsthemes.com/kataleya/pizza-place/" target="_blank">launch demo preview</a>
                </div>
            </center>
        </div>
        <div class="input">
            <center>
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/anps-framework/images/dummy_coffee.png" />
                <h4>Coffee Place Demo</h4>
                <div class="demo-buttons">
                    <input type="submit" name="dummy3" class="dummy" <?php if ($dummy->select()) : ?> onclick = "return dummy(); " id="dummy-twice"<?php endif; ?> value="<?php _e("Insert dummy content", ANPS_TEMPLATE_LANG); ?>" />
                    <a class="launch" href="http://anpsthemes.com/kataleya/coffee-shop/" target="_blank">launch demo preview</a>
                </div>
            </center>
        </div>
        <div class="input">
            <center>
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/anps-framework/images/dummy_woo.png" />
                <h4>Woocommerce Demo</h4>
                <div class="demo-buttons">
                    <input type="submit" name="dummy4" class="dummy" <?php if ($dummy->select()) : ?> onclick = "return dummy(); " id="dummy-twice"<?php endif; ?> value="<?php _e("Insert dummy content", ANPS_TEMPLATE_LANG); ?>" />
                    <a class="launch" href="http://anpsthemes.com/kataleya/woocommerce/" target="_blank">launch demo preview</a>
                </div>
            </center>
        </div>
        <div class="input">
            <center>
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/anps-framework/images/dummy_pub.png" />
                <h4>Pub Demo</h4>
                <div class="demo-buttons">
                    <input type="submit" name="dummy5" class="dummy" <?php if ($dummy->select()) : ?> onclick = "return dummy(); " id="dummy-twice"<?php endif; ?> value="<?php _e("Insert dummy content", ANPS_TEMPLATE_LANG); ?>" />
                    <a class="launch" href="http://anpsthemes.com/kataleya/pub/" target="_blank">launch demo preview</a>
                </div>
            </center>
        </div>
    </div>
</form>