Esempio n. 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 Generate
 */
get_header();
?>

	<div id="primary" <?php 
generate_content_class();
?>
>
		<main id="main" class="site-main" itemtype="http://schema.org/Blog" itemscope="itemscope" itemprop="mainContentOfPage" role="main">

		<?php 
if (have_posts()) {
    ?>

			<?php 
    /* Start the Loop */
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
Esempio n. 2
0
<?php

/**
 * The template for displaying image attachments.
 *
 * @package Generate
 */
get_header();
?>

	<div id="primary" <?php 
generate_content_class('image-attachment');
?>
>
		<main id="main" class="site-main" role="main">

		<?php 
while (have_posts()) {
    the_post();
    ?>

			<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
				<div class="inside-article">
					<header class="entry-header">
						<?php