Merge branch 'restructure'

merged with changes
This commit is contained in:
Jacob Haddon 2024-02-18 11:36:40 -05:00
commit ae204a9d35
4 changed files with 71 additions and 35 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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 -->

View File

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