-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive-ctc_sermon.php
63 lines (53 loc) · 1.87 KB
/
archive-ctc_sermon.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
<?php
/*
Sermon Index template.
Based on the Church Theme Framework and custom post type.
If you need to see all potential data, use something like print_r(ctfw_sermon_data());
*/
?>
<?php get_header(); ?>
<div id="banner">
<span class="overlay"></span>
<?php
if ( get_theme_mod( 'ecclesio_sermon_banner_image' ) ) {
$banner_img_src = esc_url( get_theme_mod( 'ecclesio_sermon_banner_image' ) );
}
elseif ( get_header_image() ) {
$banner_img_src = get_header_image();
}
else {
$banner_img_src = get_stylesheet_directory_uri().'/images/demo_banner_bible.jpg';
}
echo '<img class="banner-bg" src="' . $banner_img_src . '" alt="">';
?>
<div class="banner-text">
<?php
if ( function_exists('get_customize_partial_sermons_heading') && get_customize_partial_sermons_heading() ) {
$banner_heading = get_customize_partial_sermons_heading();
}
else {
$banner_heading = 'Sermons';
}
echo '<h1 class="page-title">'. $banner_heading .'</h1>';
if( function_exists('get_customize_partial_sermons_byline') && get_customize_partial_sermons_byline() != "") {
$banner_byline = get_customize_partial_sermons_byline();
echo '<p class="page-byline">'. $banner_byline .'</p>';
}
?>
</div><!-- .banner-text -->
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
</div><!-- #banner -->
<div id="content">
<div id="inner-content" class="container">
<?php if(has_action('show_beautiful_filters')) { ?>
<div class="row filter-taxonomy">
<div class="col-sm-12">
<?php do_action('show_beautiful_filters'); ?>
</div>
</div><!-- .filter-taxonomy -->
<?php } ?>
<main id="listing" class="row sermons" role="main">
<?php get_template_part( 'parts/loop', 'archive-sermons' ); ?>
</div> <!-- end #inner-content -->
</div> <!-- end #content -->
<?php get_footer(); ?>