Skip to content

Commit

Permalink
Added section elements and changed remaining content div elements to …
Browse files Browse the repository at this point in the history
…article elements
  • Loading branch information
splorp committed Aug 28, 2011
1 parent dc2ff02 commit f44fd36
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 31 deletions.
2 changes: 2 additions & 0 deletions 404.php
Expand Up @@ -7,8 +7,10 @@

<?php get_header(); ?>

<section id="content">
<h2>Not found.</h2>
<p>Sorry, you seem to be looking for something that simply isn’t here.</p>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
2 changes: 2 additions & 0 deletions links.php
Expand Up @@ -7,9 +7,11 @@

<?php get_header(); ?>

<section id="content">
<h2>Links</h2>
<ul>
<?php wp_list_bookmarks(); ?>
</ul>
</section>

<?php get_footer(); ?>
2 changes: 2 additions & 0 deletions page-custom.php
Expand Up @@ -7,6 +7,8 @@

<?php get_header(); ?>

<section id="content">
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
20 changes: 11 additions & 9 deletions page.php
Expand Up @@ -7,14 +7,16 @@

<?php get_header(); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></h2>
<?php the_content('<p>Read the rest of this page</p>'); ?>
<?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>

<section id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></h2>
<?php the_content('<p>Read the rest of this page</p>'); ?>
<?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</article>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
46 changes: 24 additions & 22 deletions search.php
Expand Up @@ -7,36 +7,38 @@

<?php get_header(); ?>

<?php if (have_posts()) : ?>
<section id="content">
<?php if (have_posts()) : ?>

<h2>Search Results</h2>
<h2>Search Results</h2>

<?php next_posts_link('Older'); delim_posts_link(); previous_posts_link('Entries') ?>
<?php next_posts_link('Older'); delim_posts_link(); previous_posts_link('Entries') ?>

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

<div <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<p><?php the_time('l, F jS, Y') ?></p>
<p>Tags:</p>
<?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?>
<p>Categories:</p>
<ul>
<li><?php the_category('</li><li>') ?></li>
</ul>
<p><?php edit_post_link('Edit', '', ' | '); ?><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
</div>
<article <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php if(the_title( '', '', false ) !='') the_title(); else echo 'Untitled';?></a></h3>
<p><?php the_time('l, F jS, Y') ?></p>
<p>Tags:</p>
<?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?>
<p>Categories:</p>
<ul>
<li><?php the_category('</li><li>') ?></li>
</ul>
<p><?php edit_post_link('Edit', '', ' | '); ?><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
</article>

<?php endwhile; ?>
<?php endwhile; ?>

<?php next_posts_link('Older'); delim_posts_link(); previous_posts_link('Entries') ?>
<?php else : ?>
<?php next_posts_link('Older'); delim_posts_link(); previous_posts_link('Entries') ?>

<?php else : ?>

<h2>Not found.</h2>
<p>Sorry, you seem to be looking for something that simply isn’t here.</p>
<h2>Not found.</h2>
<p>Sorry, you seem to be looking for something that simply isn’t here.</p>

<?php endif; ?>
<?php endif; ?>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

0 comments on commit f44fd36

Please sign in to comment.