Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
69 lines (66 loc) · 2.56 KB
/
Copy pathindex.php
File metadata and controls
69 lines (66 loc) · 2.56 KB
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
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Marinara_Blog
*/
get_header();
$featImgURL = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
?>
<div id="inside-page-content-wrapper" class="index-page-content-wrapper-row content-wrapper-row row">
<?php if ($feat_img_url): ?>
<div id="inside-page-featured-img-wrapper" class="container">
<div class="feat-img-inner-wrapper row">
<img src="<?php echo $feat_img_url; ?>" alt="<?php the_title(); ?> Featured Image" class="feat-img">
<div class="feat-img-caption-title">
<h2><?php the_title(); ?></h2>
</div>
<?php if ($the_excerpt): ?>
<div class="feat-img-caption-description">
<h3 class="" style="margin-bottom: 0;"><?php e($the_excerpt); ?></h3>
</div>
<?php endif; ?>
</div>
</div>
<?php else: ?>
<div id="inside-page-no-featured-img-wrapper" class="container">
<div class="no-feat-img-inner-wrapper row">
<div class="no-feat-img-caption-title">
<h2><?php the_title(); ?></h2>
</div>
</div>
</div>
<?php endif; ?>
<div class="inside-page-container page-container container">
<div class="breadcrumb-row sm-row clearfix grey-bg">
<div class="breadcrumb-col col-xs-12 col-sm-6">
<?php echo marinara_blog_breadcrumb(); ?>
</div>
<div class="social-shares-col col-xs-12 col-sm-6 grey-bg">
<?php echo marinara_blog_social_shares_buttons(); ?>
</div>
</div>
<div class="page-content-col col-xs-12">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'page' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // End of the loop. ?>
</div><!-- end of <div class="page-content-col -->
</div>
<div class="inside-page-footer-container page-footer-container container">
<?php get_template_part( 'inside', 'page-container-footer' ); ?>
</div>
</div><!-- end of <div id="inside-page-content-wrapper" -->
<?php get_footer(); ?>