forked from davidperel/layerswp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.php
34 lines (29 loc) · 810 Bytes
/
builder.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
<?php
/**
* Template Name: Layers Template
*
* This template is used for displaying the Layers page builder
*
* @package Layers
* @since Layers 1.0.0
*/
get_header();
global $post;
do_action('before_layers_builder_widgets');
if ( post_password_required() ) { ?>
<section id="post-<?php the_ID(); ?>" <?php post_class( 'content-main clearfix' ); ?>>
<?php do_action('layers_before_post_loop'); ?>
<div class="row">
<?php do_action('layers_before_private_post'); ?>
<div class="story">
<?php echo get_the_password_form(); ?>
</div>
<?php do_action('layers_after_private_post'); ?>
</div>
<?php do_action('layers_after_post_loop'); ?>
</section>
<?php } else {
dynamic_sidebar( 'obox-layers-builder-' . $post->ID );
}
do_action('after_layers_builder_widgets');
get_footer();