Example #1
0
/**
 * 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.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Blank Theme
 */
get_header();
?>

	<div id="primary" class="<?php 
blank_theme_primary_classes();
?>
">
		<main id="main" class="site-main" role="main">

		<?php 
if (have_posts()) {
    if (is_home() && !is_front_page()) {
        ?>
				<header>
					<h1 class="page-title screen-reader-text"><?php 
        single_post_title();
        ?>
</h1>
				</header>
<?php

/**
 * Template Name: Full Width Template
 *
 * Used for showing full width tempalte
 *
 * @package Blank Theme
 */
get_header();
?>

	<div id="primary" class="<?php 
blank_theme_primary_classes('blank-theme-full-page', 'large-12 medium-12 small-12 column');
?>
">
		<main id="main" class="site-main" role="main">

			<?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();