-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-packages.php
70 lines (59 loc) · 1.86 KB
/
template-packages.php
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
<?php
/**
* Template Name: Packages
*/
global $houzez_local;
$paid_submission_type = esc_html ( houzez_option('enable_paid_submission','') );
if( $paid_submission_type != 'membership' ) {
wp_redirect( home_url() );
}
get_header();
if(houzez_check_is_elementor()) {
if( have_posts() ):
while( have_posts() ): the_post();
$content = get_the_content();
endwhile;
endif;
wp_reset_postdata();
if( !empty($content) ) {
the_content();
} else {
the_content();
?>
<section class="frontend-submission-page">
<div class="container">
<div class="dashboard-content-block-wrap">
<div class="row row-no-padding">
<?php get_template_part('template-parts/membership/package-item'); ?>
</div>
</div><!-- dashboard-content-block-wrap -->
</div><!-- container -->
</section><!-- frontend-submission-page -->
<?php
}
} else { ?>
<section class="frontend-submission-page">
<div class="container">
<div class="dashboard-content-block-wrap">
<?php
if( have_posts() ):
while( have_posts() ): the_post();
$content = get_the_content();
endwhile;
endif;
wp_reset_postdata();
if( !empty($content) ) {
the_content();
} else {
echo '<div class="row row-no-padding">';
get_template_part('template-parts/membership/package-item');
echo '<div>';
}
?>
</div><!-- dashboard-content-block-wrap -->
</div><!-- container -->
</section>
<?php
}
?>
<?php get_footer(); ?>