21. View Source s<article id="post-3" class="post-3 post hentry category-uncategorized"> <h1><a title="Permanent Link to This Is an HTML5ized Version of the Default Wordpress Theme" rel="bookmark" href="http://htmlcssjavascript.com/dev/?p=3">This Is an HTML5ized Version of the Default Wordpress Theme</a></h1> <time pubdate="pubdate" datetime="2010-01-17T21:52:52+00:00">January 17th, 2010</time> <div class="entry"> <p>Source Code and discussion.</p> </div> <p class="postmetadata"> Posted in <a rel="category" title="View all posts in Uncategorized" href="http://htmlcssjavascript.com/dev/?cat=1">Uncategorized</a> | <a title="Edit post" href="http://htmlcssjavascript.com/dev/wp-admin/post.php?action=edit&post=3" class="post-edit-link">Edit</a> | <a title="Comment on This Is an HTML5ized Version of the Default Wordpress Theme" href="http://htmlcssjavascript.com/dev/?p=3#respond">No Comments »</a></p> </article> Default/Kubrick
22. sidebar.php <?php /** * @package WordPress * @subpackage Kubrick_x_HTML5 */ ?> <aside id="sidebar" > <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <!-- SNIP --> </li> <?php }?> </ul> <nav> <ul> <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> <li><h2>Archives</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> </ul> </nav> <ul> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks(); ?> <li><h2>Meta</h2> <!-- SNIP --> </li> <?php } ?> <?php endif; ?> </ul> </aside> Default/Kubrick
24. comments.php <?php // snip! ?> <?php if ( comments_open() ) : ?> <div id="comment-form"> <h2><?php comment_form_title( 'Leave a comment', 'Leave a Reply to %s' ); ?></h2> <div class="cancel-comment-reply"> <small><?php cancel_comment_reply_link(); ?></small> </div> <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( is_user_logged_in() ) : ?> <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a></p> <?php else : ?> <p><label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label><input type="text" class="text-input" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> </p> <p><label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label> <input type="email" class="text-input" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /></p> <p><label for="url"><small>Website</small></label>< input type="url" class="text-input" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" /> </p> <?php endif; ?> <p><label for="comment"><small>Comments</small></label> <textarea name="comment" cols="100%" rows="10" tabindex="4"></textarea> </p> <div class="button"><input name="submit" type="submit" id="submit" tabindex="5" value="Submit" /></div> <?php comment_id_fields(); ?> <?php do_action('comment_form', $post->ID); ?> </form> <!—SNIP- AWiderNet
25. footer.php <?php /** * @package WordPress * @subpackage Kubrick_x_HTML5 */ ?> <hr /> <footer id="footer" > <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> <?php bloginfo('name'); ?> is proudly powered by <a href="http://wordpress.org/">WordPress</a> <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> </p> </footer> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> <?php /* "Just what do you think you're doing Dave?" */ ?> <?php wp_footer(); ?> </body> </html> Default/Kubrick
Note I didn’t use a <section> for the div id=content. It’s really just a generic container. If that was a section- the outline (which I’ll show you) would show “untitled section” because it’s not coupled with a header. The time element has a machine readable datetime attribute.
Note I didn’t use a <section> for the div id=content. It’s really just a generic container. If that was a section- the outline (which I’ll show you) would show “untitled section” because it’s not coupled with a header. The time element has a machine readable datetime attribute.