wordpress/php-fpm/wordpress_files/themes/ltk-foundation/page-templates/page-without-title.php
2020-05-22 01:40:23 +00:00

60 lines
1.4 KiB
PHP

<?php
/**
* Template name: Page without title
*
* This page whould be all equals to the regular page template, except that this
* one must display no title at all.
*/
__('Page without title', 'ltk-foundation');
?>
<?php use LTK\Foundation\ViewHelper; ?>
<?php use LTK\Foundation\View\Breadcrumb; ?>
<?php get_header(); ?>
<div class="row">
<div class="<?php ViewHelper::getColumnClass('center'); ?>">
<?php echo Breadcrumb::getBreadcrumb(); ?>
<?php if (have_posts()): while (have_posts()): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?> itemscope itemtype="http://schema.org/Article">
<div class="post-body" itemprop="articleBody">
<?php if (has_post_thumbnail()): ?>
<div class="thumbnail">
<?php the_post_thumbnail('post-thumbnail', [
'class' => 'img-responsive',
'itemprop' => 'image'
]); ?>
</div>
<?php endif; ?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
<aside class="post-footer">
<?php comments_template('/templates/comments.php'); ?>
</aside>
</article>
<?php endwhile; endif; ?>
</div>
<?php get_template_part('templates/sidebars/column-left'); ?>
<?php get_template_part('templates/sidebars/column-right'); ?>
</div>
<?php get_footer(); ?>