Yuzu Theme
from meowapps.com
This commit is contained in:
79
single-meow_collection.php
Normal file
79
single-meow_collection.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<div class="single-collection top-and-bottom-margin">
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
$featured_image = get_the_post_thumbnail_url(get_the_ID(),'large');
|
||||
require get_template_directory() . '/components/opaque-featured-image.php';
|
||||
?>
|
||||
|
||||
<div class="page-header medium-container">
|
||||
<?php
|
||||
global $photocore;
|
||||
$breadcrumb = $photocore->get_breadcrumbs_from_collection( $post->ID );
|
||||
$home_item = [
|
||||
'url' => get_home_url(),
|
||||
'name' => __('Home', 'yuzu')
|
||||
];
|
||||
array_unshift($breadcrumb, $home_item);
|
||||
|
||||
if(count( $breadcrumb ) > 1 && get_theme_mod('display_breadcrumb', true)) {
|
||||
?>
|
||||
<div class="meow-breadcrumb">
|
||||
<div class="breadcrumb-items-container">
|
||||
<?php
|
||||
foreach($breadcrumb as $key=>$value) {
|
||||
if($key != count($breadcrumb) - 1) {
|
||||
?>
|
||||
<a href="<?php echo $value['url']; ?>" class="breadcrumb-item">
|
||||
<?php echo $value['name']; ?>
|
||||
</a>
|
||||
<span class="divider">/</span>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<span class="breadcrumb-item active">
|
||||
<?php echo $value['name']; ?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<h1 class="page-title"><?= get_the_title(); ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="entry-content fullwidth-container">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
?>
|
||||
<div class="comments-section">
|
||||
<?php
|
||||
comments_template();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
</div>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user