@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | <?php lsx_content_wrap_before(); ?> |
11 | 11 | |
12 | 12 | <?php |
13 | - $restricted = false; |
|
14 | - $page_id = get_the_ID(); |
|
15 | - $redirect = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id; |
|
13 | + $restricted = false; |
|
14 | + $page_id = get_the_ID(); |
|
15 | + $redirect = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id; |
|
16 | 16 | ?> |
17 | 17 | |
18 | 18 | <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | |
22 | 22 | <!-- Begining restricted content --> |
23 | 23 | <?php |
24 | - if ( ! function_exists( 'wc_memberships_view_restricted_post_content' ) || ( current_user_can( 'wc_memberships_view_restricted_post_content', $post_id ) ) ) { |
|
25 | - ?> |
|
24 | + if ( ! function_exists( 'wc_memberships_view_restricted_post_content' ) || ( current_user_can( 'wc_memberships_view_restricted_post_content', $post_id ) ) ) { |
|
25 | + ?> |
|
26 | 26 | <main id="main" role="main"> |
27 | 27 | |
28 | 28 | <?php lsx_content_top(); ?> |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | <div class="row"> |
32 | 32 | <?php if ( have_posts() ) : ?> |
33 | 33 | <?php |
34 | - while ( have_posts() ) : |
|
35 | - the_post(); |
|
36 | - ?> |
|
34 | + while ( have_posts() ) : |
|
35 | + the_post(); |
|
36 | + ?> |
|
37 | 37 | |
38 | 38 | <?php include LSX_HEALTH_PLAN_PATH . '/templates/content-archive-plan.php'; ?> |
39 | 39 | |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | </main><!-- #main --> |
53 | 53 | |
54 | 54 | <?php |
55 | - } else { |
|
56 | - wp_redirect( $redirect ); |
|
57 | - exit; |
|
58 | - } |
|
59 | - ?> |
|
55 | + } else { |
|
56 | + wp_redirect( $redirect ); |
|
57 | + exit; |
|
58 | + } |
|
59 | + ?> |
|
60 | 60 | |
61 | 61 | <?php lsx_content_after(); ?> |
62 | 62 |
@@ -15,13 +15,13 @@ discard block |
||
15 | 15 | $redirect = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id; |
16 | 16 | ?> |
17 | 17 | |
18 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
18 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
19 | 19 | |
20 | 20 | <?php lsx_content_before(); ?> |
21 | 21 | |
22 | 22 | <!-- Begining restricted content --> |
23 | 23 | <?php |
24 | - if ( ! function_exists( 'wc_memberships_view_restricted_post_content' ) || ( current_user_can( 'wc_memberships_view_restricted_post_content', $post_id ) ) ) { |
|
24 | + if ( ! function_exists('wc_memberships_view_restricted_post_content') || (current_user_can('wc_memberships_view_restricted_post_content', $post_id))) { |
|
25 | 25 | ?> |
26 | 26 | <main id="main" role="main"> |
27 | 27 | |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | |
30 | 30 | <div class="post-wrapper archive-plan"> |
31 | 31 | <div class="row"> |
32 | - <?php if ( have_posts() ) : ?> |
|
32 | + <?php if (have_posts()) : ?> |
|
33 | 33 | <?php |
34 | - while ( have_posts() ) : |
|
34 | + while (have_posts()) : |
|
35 | 35 | the_post(); |
36 | 36 | ?> |
37 | 37 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | <?php else : ?> |
43 | 43 | |
44 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
44 | + <?php get_template_part('partials/content', 'none'); ?> |
|
45 | 45 | |
46 | 46 | <?php endif; ?> |
47 | 47 | </div> |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | <?php |
55 | 55 | } else { |
56 | - wp_redirect( $redirect ); |
|
56 | + wp_redirect($redirect); |
|
57 | 57 | exit; |
58 | 58 | } |
59 | 59 | ?> |