@@ -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 | ?> |