updated basic HTML portions for better semantics
This commit is contained in:
parent
0d83ea38a6
commit
a90b2b0b62
30
content.php
30
content.php
@ -3,17 +3,21 @@
|
|||||||
// content.PHP
|
// content.PHP
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="blog-post">
|
<article id="post-<?php the_ID(); ?>" >
|
||||||
<h2 class="blog-post-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h2>
|
|
||||||
<p class="blog-post-meta"><?php the_date(); ?> by <?php the_author_link(); ?></p>
|
|
||||||
<?php the_content(); ?>
|
|
||||||
</div><!-- /.blog-post -->
|
|
||||||
|
|
||||||
<div class="blog-comments">
|
<section <?php post_class(); ?>>
|
||||||
<?php
|
<h2 class="blog-post-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h2>
|
||||||
// If comments are open or we have at least one comment, load up the comment template.
|
<p class="blog-post-meta"><?php the_date(); ?> by <?php the_author_link(); ?></p>
|
||||||
if ( comments_open() || get_comments_number() ) :
|
<?php the_content(); ?>
|
||||||
comments_template();
|
</section><!-- /.blog-post -->
|
||||||
endif;
|
|
||||||
?>
|
<section class="blog-comments">
|
||||||
</div> <!-- blog comments -->
|
<?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;
|
||||||
|
?>
|
||||||
|
</section> <!-- blog comments -->
|
||||||
|
|
||||||
|
</article>
|
||||||
|
12
footer.php
12
footer.php
@ -1,3 +1,15 @@
|
|||||||
|
<hr>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
|
||||||
|
<p>this is a <a href="http://motherfuckingwebsite.com/">motherfucking website</a> and a <a href="http://bettermotherfuckingwebsite.com/">better motherfucking</a> website.</p>
|
||||||
|
<p><a href="https://code.jacobhaddon.com/Wordpress/mfwpt">Code</a> by Jacob Haddon - license <a href="https://www.gnu.org/licenses/gpl-2.0.en.html">GPLv2.0 or later</a> - <a href="https://Apokrupha.com">Apokrupha.com</a></p>
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
<?php wp_footer(); ?>
|
<?php wp_footer(); ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
36
header.php
36
header.php
@ -1,13 +1,27 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html <?php language_attributes(); ?>>
|
<html <?php language_attributes(); ?>>
|
||||||
<head>
|
|
||||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
<head>
|
||||||
<title><?php wp_title(); ?></title>
|
|
||||||
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||||
<?php wp_head(); ?>
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
</head>
|
<title><?php wp_title(); ?></title>
|
||||||
<body <?php body_class(); ?>>
|
|
||||||
<?php wp_nav_menu( array(
|
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||||
'theme_location' => 'header-menu',
|
<?php wp_head(); ?>
|
||||||
'container_class' => 'mfwpt_menu'
|
|
||||||
) );?>
|
</head>
|
||||||
|
|
||||||
|
<body <?php body_class(); ?>>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Nav -->
|
||||||
|
<?php wp_nav_menu( array(
|
||||||
|
'theme_location' => 'header-menu',
|
||||||
|
'container' => 'nav',
|
||||||
|
'container_class' => 'mfwpt_menu'
|
||||||
|
) );?>
|
||||||
|
<!-- Nav -->
|
||||||
|
|
||||||
|
28
index.php
28
index.php
@ -1,11 +1,17 @@
|
|||||||
<?php
|
<?php get_header(); ?>
|
||||||
get_header();
|
|
||||||
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
<main>
|
||||||
get_template_part( 'content', get_post_format() );
|
|
||||||
endwhile;
|
<?php
|
||||||
else :
|
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
||||||
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
|
get_template_part( 'content', get_post_format() );
|
||||||
endif;
|
endwhile;
|
||||||
//get_sidebar();
|
else :
|
||||||
get_footer();
|
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
|
||||||
?>
|
endif;
|
||||||
|
//get_sidebar();
|
||||||
|
?>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
Loading…
x
Reference in New Issue
Block a user