take-month-off.php 2.4 KB
<?php
/**
 * The template for displaying the Cancel Subscription .
 *
 * This page template will display any functions hooked into the `homepage` action.
 * By default this includes a variety of product displays and the page content itself. To change the order or toggle these components
 * use the Homepage Control plugin.
 * https://wordpress.org/plugins/homepage-control/
 *
 * Template name: Take Month Off
 *
 * @package storefront
 */
?>

<?php
remove_filter('the_content', 'wpautop');
get_header();
//
//function fgc_add_post_meta_set_time($post_id, $meta_key, $meta_value) {
//    if ((int) get_post_meta($post_id, $meta_key)[0] > 0) {
//        update_post_meta($post_id, $meta_key, $meta_value);
//    } else {
//        add_post_meta($post_id, $meta_key, $meta_value);
//    }
//}
//
//function fgc_redirect_back() {
//    echo '<META HTTP-EQUIV = "Refresh" Content = "0; URL=' . get_site_url() . '/my-account' . '">';
//    exit();
//}
?>
<div class="popup-container">
    <div class="popup"></div>
    <div class="blur"></div>
</div> 

<div id="primary" class="content-area">
    <main id="main" class="site-main" role="main">

        <?php while (have_posts()) : the_post(); ?>

            <?php
            do_action('storefront_page_before');
            ?>
            <?php ?>
            <div class="shop-step-1">
                <h1 class="page-title shop-page-title">take a month off</h1>
                <p>Not getting through as much REIZE as you normally do?<br/>
                    No problem!</p>

                <p>Hit pause on your subscription and we'll pick up right where we left off in a months time.</p>

                <form id="confirm_take_month_off" class="form" action="" method = "post">
                    <div class="innersmall">
                        <!--<input type = "submit" value = "submit"/>-->
                        <!--<input type = "hidden" name = "action" value = "take-month-off"/>-->
                        <a class="button btnrow set-take-month-off"  >Confirm <i class="fa fa-angle-right hide"></i></a>
                    </div>
                </form>
            </div>
            <?php
            /**
             * @hooked storefront_display_comments - 10
             */
            do_action('storefront_page_after');
            ?>

        <?php endwhile; // end of the loop.                            ?>

    </main><!-- #main -->
</div><!-- #primary -->

<?php get_footer(); ?>