take-month-off.php
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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(); ?>