Skip to content

Commit

Permalink
Coding standards no arquivo page.php
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldomatias committed May 23, 2018
1 parent 2be6adc commit c97c1bc
Showing 1 changed file with 33 additions and 34 deletions.
67 changes: 33 additions & 34 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,36 @@

get_header(); ?>

<div id="content" class="site-content">

<?php if( has_post_thumbnail() && $img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true ) ) : ?>
<div class="page-fullheader">
<img src="<?php echo esc_url( $img[0] ); ?>" alt="<?php the_title(); ?>">
</div><!-- page-fullheader -->
<?php endif; ?>

<div id="content-inside" class="container no-sidebar">

<?php the_title( '<h2 class="fullheader-title">', '</h2>' ); ?>

<div id="primary" class="content-area">
<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();
endif;
?>

<?php endwhile; // End of the loop. ?>

</main><!-- #main -->
</div><!-- #primary -->
</div><!--#content-inside -->
</div><!-- #content -->

<?php get_footer(); ?>
<div id="content" class="site-content">

<?php if ( has_post_thumbnail() && $img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true ) ) : ?>
<div class="page-fullheader">
<img src="<?php echo esc_url( $img[0] ); ?>" alt="<?php the_title(); ?>">
</div><!-- .page-fullheader -->
<?php endif; ?>

<div id="content-inside" class="container no-sidebar">

<?php the_title( '<h2 class="fullheader-title">', '</h2>' ); ?>

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'page' );
// 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;
endwhile; // End of the loop.
?>

</main><!-- #main -->
</div><!-- #primary -->

</div><!--#content-inside -->

</div><!-- #content -->

<?php get_footer();

0 comments on commit c97c1bc

Please sign in to comment.