-
Notifications
You must be signed in to change notification settings - Fork 5
/
content-page.php
46 lines (41 loc) · 970 Bytes
/
content-page.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
<?php
/**
* The template used for displaying page content if custom template doesn't exits.
* NOTE: based on page.php template
*/
?>
<header class="jumbotron jumbotron-fluid bg-custom">
<div class="container">
<?php the_title( '<h1>', '</h1>' ); ?>
<?php if(have_bootplate_subtitle()) { bootplate_subtitle(); } ?>
<?php
if(have_bootplate_btns()) :
if(have_cta1() && have_cta2()) :
?>
<div class="row margin-top">
<div class="col-sm-6">
<?php the_cta(1); ?>
</div>
<div class="col-sm-6">
<?php the_cta(2); ?>
</div>
</div>
<?php
elseif(have_cta1() && !have_cta2()) :
?>
<div class="row margin-top">
<div class="col-sm-12">
<?php the_cta(1); ?>
</div>
</div>
<?php
endif; // end which buttons?
endif; // end have_btns
?>
</div><!--/.container-->
</header>
<section id="page-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="container">
<?php the_content(); ?>
</div>
</section>