├── .gitignore ├── img ├── logo.gif ├── more.gif ├── xml.gif ├── bullet.gif ├── body-bg.gif ├── box-tile.gif ├── box-top.gif ├── comment.gif ├── header-bg.gif ├── mf-lg-ora.gif ├── nav-top.gif ├── nhov-top.gif ├── subnav-bg.gif ├── box-bottom.gif ├── btn-search.gif ├── bullet-alt.gif ├── com-bubble.gif ├── footer-top.gif ├── nav-bottom.gif ├── nhov-bottom.gif ├── comment-bubble.gif ├── footer-bottom.gif └── greenbar-top.gif ├── screenshot.png ├── 404.php ├── links.php ├── footer.php ├── template-parts ├── content-none.php ├── content-page.php ├── content.php └── content-single.php ├── archives.php ├── page.php ├── searchform.php ├── single.php ├── css └── print.css ├── sidebar.php ├── index.php ├── archive.php ├── header.php ├── search.php ├── functions.php ├── phpcs.xml ├── comments.php ├── comments-popup.php └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | ._* 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/logo.gif -------------------------------------------------------------------------------- /img/more.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/more.gif -------------------------------------------------------------------------------- /img/xml.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/xml.gif -------------------------------------------------------------------------------- /img/bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/bullet.gif -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/screenshot.png -------------------------------------------------------------------------------- /img/body-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/body-bg.gif -------------------------------------------------------------------------------- /img/box-tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/box-tile.gif -------------------------------------------------------------------------------- /img/box-top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/box-top.gif -------------------------------------------------------------------------------- /img/comment.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/comment.gif -------------------------------------------------------------------------------- /img/header-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/header-bg.gif -------------------------------------------------------------------------------- /img/mf-lg-ora.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/mf-lg-ora.gif -------------------------------------------------------------------------------- /img/nav-top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/nav-top.gif -------------------------------------------------------------------------------- /img/nhov-top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/nhov-top.gif -------------------------------------------------------------------------------- /img/subnav-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/subnav-bg.gif -------------------------------------------------------------------------------- /img/box-bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/box-bottom.gif -------------------------------------------------------------------------------- /img/btn-search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/btn-search.gif -------------------------------------------------------------------------------- /img/bullet-alt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/bullet-alt.gif -------------------------------------------------------------------------------- /img/com-bubble.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/com-bubble.gif -------------------------------------------------------------------------------- /img/footer-top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/footer-top.gif -------------------------------------------------------------------------------- /img/nav-bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/nav-bottom.gif -------------------------------------------------------------------------------- /img/nhov-bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/nhov-bottom.gif -------------------------------------------------------------------------------- /img/comment-bubble.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/comment-bubble.gif -------------------------------------------------------------------------------- /img/footer-bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/footer-bottom.gif -------------------------------------------------------------------------------- /img/greenbar-top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/microformats-wordpress-theme/master/img/greenbar-top.gif -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |

Error 404 - Not Found

6 | 7 |
8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /links.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 |
10 | 11 |

Links:

12 | 15 | 16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /template-parts/content-none.php: -------------------------------------------------------------------------------- 1 | 6 |

Not Found

7 |

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /archives.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 |
10 | 11 |

Blog Archive by Month:

12 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 13 |
14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 14 |

15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /css/print.css: -------------------------------------------------------------------------------- 1 | /* 2 | Title: microformats styles for print media 3 | Author: dan@simplebits.com 4 | Updated: 11 May 2005 5 | */ 6 | 7 | body { 8 | margin: .6in; 9 | font-family: Verdana, sans-serif; 10 | font-size: 12pt; 11 | } 12 | h1, h2, h3 { 13 | font-family: "Trebuchet MS", Verdana, sans-serif; 14 | } 15 | #nav, hr { 16 | display: none; 17 | } 18 | a:link, a:visited { 19 | color: gray; 20 | } 21 | 22 | /* print URLs after link text */ 23 | #content .entry p a:link:after, #content .entry p a:visited:after { 24 | content: " (" attr(href) ") "; 25 | } 26 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 29 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

Latest microformats news Feed

5 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 |
2 |

3 |
4 | Read the rest of this page »

' ); ?> 5 | '

Pages: ', 9 | 'after' => '

', 10 | 'next_or_number' => 'number', 11 | ) 12 | ); 13 | 14 | edit_post_link( 15 | sprintf( 16 | /* translators: %s: Name of current post */ 17 | __( 'Edit "%s"', 'microformatsorg' ), 18 | get_the_title() 19 | ), 20 | '
', 21 | '
' 22 | ); 23 | ?> 24 | 25 |
26 |
27 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | ', '' ); 6 | the_archive_description( '
', '
' ); 7 | the_posts_pagination( 8 | array( 9 | 'prev_text' => __( 'Previous Entries', 'microformats' ), 10 | 'next_text' => __( 'Next Entries', 'microformats' ), 11 | ) 12 | ); 13 | while ( have_posts() ) : 14 | the_post(); 15 | ?> 16 | 17 | 18 | 19 | 20 | __( 'Previous Entries', 'microformats' ), 26 | 'next_text' => __( 'Next Entries', 'microformats' ), 27 | ) 28 | ); 29 | ?> 30 | 31 | 32 | 33 | 34 |
35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 2 | > 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | > 12 | 13 |
14 | 38 | 39 |
40 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 |
> 2 |

3 |
4 | 5 |
6 | 7 | 11 | 12 | 13 | 32 |
33 | -------------------------------------------------------------------------------- /template-parts/content-single.php: -------------------------------------------------------------------------------- 1 |
> 2 |

3 |
4 | Read the rest of this entry »

' ); ?> 5 |
6 | 7 | '

Pages: ', 11 | 'after' => '

', 12 | 'next_or_number' => 'number', 13 | ) 14 | ); 15 | ?> 16 | 17 | 18 | 22 | 23 | 24 | 45 |
46 | -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |

Search Results

8 | 9 | 13 | 14 | 15 | 19 | 20 |
21 |

22 | 23 | 28 |
29 | 30 | 31 | 32 | 36 | 37 | 38 | 39 |

Not Found

40 | 41 | 42 | 43 | 44 |
45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | __( 'Primary Menu', 'microformats' ), 8 | ) 9 | ); 10 | 11 | // Add default posts and comments RSS feed links to head. 12 | add_theme_support( 'automatic-feed-links' ); 13 | 14 | /* 15 | * Let WordPress manage the document title. 16 | * By adding theme support, we declare that this theme does not use a 17 | * hard-coded tag in the document head, and expect WordPress to 18 | * provide it for us. 19 | */ 20 | add_theme_support( 'title-tag' ); 21 | 22 | /* 23 | * Switch default core markup for search form, comment form, and comments 24 | * to output valid HTML5. 25 | */ 26 | add_theme_support( 27 | 'html5', 28 | array( 29 | 'search-form', 30 | 'comment-form', 31 | 'comment-list', 32 | 'gallery', 33 | 'caption', 34 | ) 35 | ); 36 | } 37 | add_action( 'after_setup_theme', 'microformatsorg_theme_setup' ); 38 | 39 | function microformatsorg_widget_init() { 40 | if ( function_exists( 'register_sidebar' ) ) { 41 | register_sidebar( 42 | array( 43 | 'name' => 'Global Sidebar', 44 | 'id' => 'sidebar-1', 45 | 'description' => 'Sidebar appears on all pages', 46 | 'before_widget' => '<div id="%1$s" class="box widget %2$s"><div class="box-inner">', 47 | 'after_widget' => '</div></div>', 48 | 'before_title' => '<h3>', 49 | 'after_title' => '</h3>', 50 | ) 51 | ); 52 | } 53 | register_sidebar( 54 | array( 55 | 'name' => 'Home Page', 56 | 'id' => 'sidebar-2', 57 | 'description' => 'Sidebar only appears on home page', 58 | 'before_widget' => '<div id="%1$s" class="box widget %2$s"><div class="box-inner">', 59 | 'after_widget' => '</div></div>', 60 | 'before_title' => '<h3>', 61 | 'after_title' => '</h3>', 62 | ) 63 | ); 64 | register_sidebar( 65 | array( 66 | 'name' => 'Post Page', 67 | 'id' => 'sidebar-3', 68 | 'description' => 'Sidebar only appears on post pages', 69 | 'before_widget' => '<div id="%1$s" class="box widget %2$s"><div class="box-inner">', 70 | 'after_widget' => '</div></div>', 71 | 'before_title' => '<h3>', 72 | 'after_title' => '</h3>', 73 | ) 74 | ); 75 | } 76 | add_action( 'widgets_init', 'microformatsorg_widget_init' ); 77 | 78 | function microformatsorg_scripts() { 79 | // Theme stylesheets 80 | wp_enqueue_style( 81 | 'microformatsorg-style', 82 | get_template_directory_uri() . '/style.css"', 83 | array(), 84 | '1.0', 85 | 'screen' 86 | ); 87 | wp_enqueue_style( 88 | 'microformatsorg-print-style', 89 | get_template_directory_uri() . 'css/print.css"', 90 | array(), 91 | '1.0', 92 | 'print' 93 | ); 94 | } 95 | 96 | add_action( 'wp_enqueue_scripts', 'microformatsorg_scripts' ); 97 | 98 | function microformatsorg_footer() { 99 | if( defined( 'MICROFORMATS_GOOGLE_ANALYTICS' ) ) { 100 | ?> 101 | <script src="http://www.google-analytics.com/urchin.js" type="text/javascript" /> 102 | <script type="text/javascript"> 103 | _uacct = "<?php echo MICROFORMATS_GOOGLE_ANALYTICS;?>"; 104 | urchinTracker(); 105 | </script> 106 | <?php 107 | } 108 | } 109 | 110 | add_action( 'wp_footer', 'microformatsorg_footer' ); 111 | -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- 1 | <?xml version="1.0"?> 2 | <ruleset name="WordPress Theme Coding Standards"> 3 | <description>A custom set of code standard rules to check for WordPress themes.</description> 4 | 5 | <!-- Pass some flags to PHPCS: 6 | p flag: Show progress of the run. 7 | s flag: Show sniff codes in all reports. 8 | --> 9 | <arg value="ps"/> 10 | 11 | <!-- Strip the filepaths down to the relevant bit. --> 12 | <arg name="basepath" value="./"/> 13 | 14 | <!-- Check up to 8 files simultanously. --> 15 | <arg name="parallel" value="8"/> 16 | 17 | <!-- Only check the PHP, CSS and SCSS files. JS files are checked separately with JSCS and JSHint. --> 18 | <arg name="extensions" value="php,css,scss/css"/> 19 | 20 | <!-- Check all files in this directory and the directories below it. --> 21 | <file>.</file> 22 | <exclude-pattern>*/vendor</exclude-pattern> 23 | <exclude-pattern>*/node_modules</exclude-pattern> 24 | <!-- 25 | ############################################################################# 26 | USE THE WordPress RULESET 27 | ############################################################################# 28 | --> 29 | 30 | <rule ref="WordPress"/> 31 | 32 | 33 | <!-- 34 | ############################################################################# 35 | SNIFF SPECIFIC CONFIGURATION 36 | ############################################################################# 37 | --> 38 | 39 | <!-- Verify that the text_domain is set to the desired text-domain. 40 | Multiple valid text domains can be provided as a comma-delimited list. --> 41 | <rule ref="WordPress.WP.I18n"> 42 | <properties> 43 | <property name="text_domain" type="array" value="microformats"/> 44 | </properties> 45 | </rule> 46 | 47 | <!-- Allow for theme specific exceptions to the file name rules based 48 | on the theme hierarchy. --> 49 | <rule ref="WordPress.Files.FileName"> 50 | <properties> 51 | <property name="is_theme" value="true"/> 52 | </properties> 53 | </rule> 54 | 55 | <!-- Set the minimum supported WP version. This is used by several sniffs. 56 | The minimum version set here should be in line with the minimum WP version 57 | as set in the "Requires at least" tag in the readme.txt file. --> 58 | <config name="minimum_supported_wp_version" value="4.7"/> 59 | 60 | <rule ref="WordPress.Arrays.MultipleStatementAlignment"> 61 | <properties> 62 | <!-- No need to adjust alignment of large arrays when the item with the largest key is removed. --> 63 | <property name="exact" value="false"/> 64 | <!-- Don't align multi-line items if ALL items in the array are multi-line. --> 65 | <property name="alignMultilineItems" value="!=100"/> 66 | <!-- Array assignment operator should always be on the same line as the array key. --> 67 | <property name="ignoreNewlines" value="false"/> 68 | </properties> 69 | </rule> 70 | 71 | <!-- Verify that everything in the global namespace is prefixed with a theme specific prefix. 72 | Multiple valid prefixes can be provided as a comma-delimited list. --> 73 | <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> 74 | <properties> 75 | <property name="prefixes" type="array" value="_s" /> 76 | </properties> 77 | </rule> 78 | 79 | 80 | <!-- 81 | ############################################################################# 82 | USE THE PHPCompatibility RULESET 83 | ############################################################################# 84 | --> 85 | 86 | 87 | <config name="testVersion" value="5.3-99.0"/> 88 | <rule ref="PHPCompatibility"> 89 | <!-- Whitelist PHP native classes, interfaces, functions and constants which 90 | are back-filled by WP. 91 | 92 | Based on: 93 | * /wp-includes/compat.php 94 | * /wp-includes/random_compat/random.php 95 | --> 96 | <exclude name="PHPCompatibility.PHP.NewClasses.errorFound"/> 97 | <exclude name="PHPCompatibility.PHP.NewClasses.typeerrorFound"/> 98 | 99 | <exclude name="PHPCompatibility.PHP.NewConstants.json_pretty_printFound"/> 100 | <exclude name="PHPCompatibility.PHP.NewConstants.php_version_idFound"/> 101 | 102 | <exclude name="PHPCompatibility.PHP.NewFunctions.hash_equalsFound"/> 103 | <exclude name="PHPCompatibility.PHP.NewFunctions.json_last_error_msgFound"/> 104 | <exclude name="PHPCompatibility.PHP.NewFunctions.random_intFound"/> 105 | <exclude name="PHPCompatibility.PHP.NewFunctions.random_bytesFound"/> 106 | <exclude name="PHPCompatibility.PHP.NewFunctions.array_replace_recursiveFound"/> 107 | 108 | <exclude name="PHPCompatibility.PHP.NewInterfaces.jsonserializableFound"/> 109 | </rule> 110 | </ruleset> 111 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | <?php // Do not delete these lines 2 | if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { 3 | die( 'Please do not load this page directly. Thanks!' ); 4 | } 5 | 6 | if ( ! empty( $post->post_password ) ) { // if there's a password 7 | if ( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] != $post->post_password ) { // and it doesn't match the cookie 8 | ?> 9 | 10 | <p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.' ); ?><p> 11 | 12 | <?php 13 | return; 14 | } 15 | } 16 | 17 | /* This variable is for alternating comment background */ 18 | $oddcomment = 'alt'; 19 | ?> 20 | 21 | <!-- You can start editing here. --> 22 | 23 | <?php if ( $comments ) : ?> 24 | <h3 id="comments"><?php comments_number( 'No Responses', 'One Response', '% Responses' ); ?> to “<?php the_title(); ?>”</h3> 25 | 26 | <ol class="com-list hfeed" id="comment-feed"> 27 | 28 | <?php foreach ( $comments as $comment ) : ?> 29 | 30 | <li class="hentry <?php echo $oddcomment; ?>" id="comment-<?php comment_ID(); ?>"> 31 | <cite class="entry-title author"> 32 | <?php echo get_avatar( $comment, 50 ); ?> 33 | <?php comment_author_link(); ?> 34 | </cite>: 35 | 36 | <?php if ( $comment->comment_approved == '0' ) : ?> 37 | <em>Your comment is awaiting moderation.</em> 38 | <?php endif; ?> 39 | 40 | <div class="entry-content"> 41 | <?php comment_text(); ?> 42 | <?php edit_comment_link( '<p>Edit Comment</p>', '', '' ); ?> 43 | </div> 44 | 45 | <p class="com-meta"> 46 | <a class="entry-title" rel="bookmark" href="#comment-<?php comment_ID(); ?>"> 47 | <span class="updated"> 48 | <span class="value-title" title="<?php comment_date( 'Y-m-d\TH:i:s' ); ?>"> </span> 49 | <?php comment_date( 'F jS, Y' ); ?> at <?php comment_time(); ?> 50 | </span> 51 | </a> 52 | </p> 53 | 54 | </li> 55 | 56 | <?php 57 | /* Changes every other comment to a different class */ 58 | if ( 'alt' == $oddcomment ) { 59 | $oddcomment = ''; 60 | } else { 61 | $oddcomment = 'alt'; 62 | } 63 | ?> 64 | 65 | <?php endforeach; /* end for each comment */ ?> 66 | 67 | </ol> 68 | 69 | <?php else : // this is displayed if there are no comments so far ?> 70 | 71 | <?php if ( 'open' == $post->comment_status ) : ?> 72 | <!-- If comments are open, but there are no comments. --> 73 | 74 | <?php else : // comments are closed ?> 75 | <!-- If comments are closed. --> 76 | <p class="nocomments">Comments are closed.</p> 77 | 78 | <?php endif; ?> 79 | <?php endif; ?> 80 | 81 | 82 | <?php if ( 'open' == $post->comment_status ) : ?> 83 | 84 | <h3 id="respond">Leave a Reply</h3> 85 | 86 | <?php if ( get_option( 'comment_registration' ) && ! $user_ID ) : ?> 87 | <p>You must be <a href="<?php echo get_option( 'siteurl' ); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> 88 | <?php else : ?> 89 | 90 | <?php $hascommented = ( $comment_author != '' && $comment_author_email != '' ); ?> 91 | 92 | <form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform"> 93 | 94 | <?php if ( $user_ID ) : ?> 95 | 96 | <p>Logged in as <?php echo get_avatar( $comment, 16 ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option( 'siteurl' ); ?>/wp-login.php?action=logout" title="<?php _e( 'Log out of this account' ); ?>">Logout »</a></p> 97 | 98 | <?php elseif ( $hascommented && ! isset( $_GET['changeDetails'] ) ) : ?> 99 | <input type="hidden" name="author" id="author" value="<?php echo $comment_author; ?>"> 100 | <input type="hidden" name="email" id="email" value="<?php echo $comment_author_email; ?>"> 101 | <input type="hidden" name="url" id="url" value="<?php echo $comment_author_url; ?>"> 102 | 103 | <p>Welcome back, <?php echo get_avatar( $comment_author_email, 16 ); ?> <strong><?php echo $comment_author; ?></strong>. Leave a comment: 104 | <a href="<?php echo htmlspecialchars( $_SERVER['REQUEST_URI'] ) . '?changeDetails#respond'; ?>">Change Details »</a></p> 105 | 106 | <?php else : ?> 107 | 108 | <p><label for="author">Name 109 | <?php 110 | if ( $req ) { 111 | _e( '(required)' );} 112 | ?> 113 | </label><br /> 114 | <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" /></p> 115 | 116 | <p><label for="email">Email (will not be published) 117 | <?php 118 | if ( $req ) { 119 | _e( '(required)' );} 120 | ?> 121 | </label><br /> 122 | <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" /></p> 123 | 124 | <p><label for="url">Website</label><br /> 125 | <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" /></p> 126 | 127 | <?php endif; ?> 128 | 129 | <p><label for="comment">Comment</label><br /> 130 | <textarea name="comment" id="comment" cols="50%" rows="10" style="width: 449px;"></textarea></p> 131 | 132 | <p><input name="submit" type="submit" id="submit" value="Submit Comment" /> 133 | <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 134 | </p> 135 | <?php do_action( 'comment_form', $post->ID ); ?> 136 | 137 | </form> 138 | 139 | <?php endif; // If registration required and not logged in ?> 140 | 141 | <?php endif; // if you delete this the sky will fall on your head ?> 142 | -------------------------------------------------------------------------------- /comments-popup.php: -------------------------------------------------------------------------------- 1 | <?php 2 | /* Don't remove these lines. */ 3 | add_filter( 'comment_text', 'popuplinks' ); 4 | foreach ( $posts as $post ) { 5 | start_wp(); 6 | ?> 7 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 8 | <html xmlns="http://www.w3.org/1999/xhtml"> 9 | <head> 10 | <title><?php echo get_settings( 'blogname' ); ?> - <?php echo sprintf( __( 'Comments on %s' ), the_title( '', '', false ) ); ?> 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 |

22 | 23 |

24 | 25 |

RSS feed for comments on this post.' ); ?>

26 | 27 | ping_status ) { ?> 28 |

URI to TrackBack this entry is:' ); ?>

29 | 30 | 31 | get_results( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date" ); 37 | $commentstatus = $wpdb->get_row( "SELECT comment_status, post_password FROM $wpdb->posts WHERE ID = $id" ); 38 | if ( ! empty( $commentstatus->post_password ) && $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] != $commentstatus->post_password ) { // and it doesn't match the cookie 39 | echo( get_the_password_form() ); 40 | } else { 41 | ?> 42 | 43 | 44 |
    45 | 46 |
  1. 47 | 48 |

    @

    49 |
  2. 50 | 51 | 52 |
53 | 54 |

55 | 56 | 57 | comment_status ) { ?> 58 |

59 |

HTML allowed:' ); ?>

60 | 61 |
62 |

63 | 64 | 65 | 66 | 67 |

68 | 69 |

70 | 71 | 72 |

73 | 74 |

75 | 76 | 77 |

78 | 79 |

80 | 81 |
82 | 83 |

84 | 85 |

86 | 87 |

88 | ID ); ?> 89 |
90 | 91 |

92 | 96 | 97 |
98 | 99 | 103 | 104 | 105 | 106 |

Powered by WordPress' ), __( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ) ); ?>

107 | 108 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: microformats 3 | Theme URI: http://microformats.org/ 4 | Description: The official theme for microformats.org. Now maintained by Ben Ward 5 | Version: 1.1 6 | Author: Dan Cederholm 7 | Author URI: http://www.simplebits.com/ 8 | */ 9 | 10 | /* 11 | Title: microformats styles for screen media 12 | Author: dan@simplebits.com 13 | Updated: 22 July 2005 14 | */ 15 | 16 | body { 17 | margin: 0; 18 | padding: 0; 19 | font-family: Verdana, sans-serif; 20 | font-size: small; 21 | text-align: center; 22 | color: #333; 23 | background: #636958; 24 | } 25 | 26 | /* --[ links ]------------------------------- */ 27 | 28 | a:link { 29 | color: #3080CB; 30 | text-decoration: none; 31 | border-bottom: 1px dotted #68C3EE; 32 | } 33 | a:visited { 34 | color: #5FB5E1; 35 | text-decoration: none; 36 | border-bottom: 1px dotted #86D9F1; 37 | } 38 | a:hover { 39 | color: #fff; 40 | background-color: #3080CB; 41 | text-decoration: none; 42 | border: none; 43 | } 44 | a:active { 45 | background-color: #6CA300; 46 | } 47 | a.more { 48 | padding-right: 13px; 49 | background-image: url(img/more.gif); 50 | background-repeat: no-repeat; 51 | background-position: 100% 50%; 52 | } 53 | 54 | /* --[ common elements ]---------------------- */ 55 | 56 | blockquote { 57 | margin: 1em 0 1em 30px; 58 | padding: 0; 59 | font-size: 88%; 60 | line-height: 1.5em; 61 | color: #777; 62 | } 63 | code { 64 | color: #7B9905; 65 | font-family: Monaco, monospace; 66 | font-size: 110%; 67 | line-height: 1.2em; 68 | text-align: left; 69 | } 70 | code strong { 71 | color: #4E6200; 72 | } 73 | abbr, acronym, .popup { 74 | font-style: normal; 75 | border-bottom: 1px dotted #999; 76 | cursor: help; 77 | } 78 | em { 79 | font-style: italic; 80 | } 81 | strong { 82 | font-weight: bold; 83 | } 84 | strike, del { 85 | text-decoration: line-through; 86 | } 87 | ins { 88 | text-decoration: none; 89 | } 90 | address { 91 | margin: 0; 92 | padding: 0; 93 | font-style: normal; 94 | } 95 | 96 | /* --[ layout structure ]--------------------- */ 97 | 98 | #wrap { 99 | position: relative; 100 | width: 750px; 101 | margin: 0 auto; 102 | padding: 8px 0 0 0; 103 | text-align: left; 104 | background: #fff; 105 | border-left: 4px solid #53584A; 106 | border-right: 4px solid #53584A; 107 | background: #fff url(img/greenbar-top.gif) repeat-x top left; 108 | } 109 | #content { 110 | float: left; 111 | width: 449px; 112 | margin: 30px 20px; 113 | font-size: 95%; 114 | line-height: 1.5em; 115 | } 116 | #sidebar { 117 | float: right; 118 | width: 241px; 119 | margin: 30px 20px 30px 0; 120 | color: #473C28; 121 | } 122 | #footer { 123 | clear: both; 124 | font-size: 85%; 125 | } 126 | 127 | /* --[ header ]------------------------------- */ 128 | 129 | #header { 130 | width: 100%; 131 | float: left; 132 | margin: 0; 133 | padding: 0; 134 | background: url(img/header-bg.gif) repeat-x bottom left; 135 | } 136 | #header h1 { 137 | float: left; 138 | width: 144px; 139 | height: 36px; 140 | margin: 0; 141 | padding: 20px 20px 18px 20px; 142 | } 143 | #header h1 a { 144 | border: none; 145 | background: none; 146 | } 147 | 148 | /* --[ nav ]------------------------------- */ 149 | 150 | #nav { 151 | width: 530px; 152 | float: left; 153 | margin: 0; 154 | padding: 20px 0 18px 36px; 155 | font-family: "Trebuchet MS", Verdana; 156 | font-size: 115%; 157 | text-transform: lowercase; 158 | } 159 | #nav li { 160 | list-style: none; 161 | float: left; 162 | margin: 0 6px 0 0; 163 | padding: 0 0 0 0; 164 | } 165 | #nav a { 166 | float: left; 167 | display: block; 168 | padding: 8px 10px; 169 | text-decoration: none; 170 | font-weight: bold; 171 | color: #6CA300; 172 | border: none; 173 | } 174 | 175 | /* hover state */ 176 | 177 | #nav li:hover { 178 | background: #E0E8B9 url(img/nhov-top.gif) no-repeat top left; 179 | } 180 | #nav a:hover { /* a backup for IE's lack of li:hover support */ 181 | background-color: #E0E8B9; 182 | } 183 | html>body #nav a:hover { 184 | background: transparent url(img/nhov-bottom.gif) no-repeat bottom right; 185 | } 186 | 187 | /* active state */ 188 | 189 | #nav li.current-menu-item { 190 | background: url(img/nav-top.gif) no-repeat top left; 191 | } 192 | #nav li.current-menu-item a { 193 | color: #333; 194 | background: url(img/nav-bottom.gif) no-repeat bottom right !important; 195 | } 196 | 197 | .primary-menu { 198 | margin: 0; 199 | } 200 | 201 | /* --[ content styles ]------------------------------- */ 202 | 203 | #content h2 { 204 | margin: 0 0 1em 0; 205 | padding: 0; 206 | font-family: "Trebuchet MS", sans-serif; 207 | font-size: 160%; 208 | color: #E97E00; 209 | } 210 | #content h2#home-title { 211 | margin-bottom: 10px; 212 | font-size: 140%; 213 | } 214 | #content h3 { 215 | margin: 0 0 1em 0; 216 | padding: 0; 217 | font-family: "Trebuchet MS", sans-serif; 218 | font-size: 130%; 219 | color: #6CA300; 220 | } 221 | #content ul li { 222 | margin: 0 0 4px 0; 223 | padding-left: 17px; 224 | list-style: none; 225 | background: url(img/bullet-alt.gif) no-repeat 0 3px; 226 | } 227 | #content ol.code { 228 | margin: 2em 0; 229 | padding: 10px 10px 10px 30px; 230 | border: 2px solid #E0E8B9; 231 | background: #F8F8EC; 232 | } 233 | #content ol.code li { 234 | margin: 0 10px; 235 | padding: 2px 0; 236 | border-bottom: 1px dotted #E0E8B9; 237 | color: #C9D68A; 238 | } 239 | #content dl { 240 | margin: 1em 0; 241 | } 242 | #content dl dt { 243 | font-weight: bold; 244 | } 245 | #content dl dd { 246 | margin: 0 0 1em 20px; 247 | font-size: 90%; 248 | line-height: 1.4em; 249 | } 250 | img.figure { 251 | float: right; 252 | margin: 0 0 10px 15px; 253 | } 254 | 255 | /* sub navigation */ 256 | 257 | #content ul.subnav { 258 | margin: 1em 0; 259 | padding: 5px; 260 | border-top: 1px solid #E0E8B9; 261 | border-bottom: 1px solid #E0E8B9; 262 | background: url(img/subnav-bg.gif) repeat-x top left; 263 | } 264 | #content ul.subnav li { 265 | margin: 0 22px 0 0; 266 | padding: 0; 267 | color: #333; 268 | background: none; 269 | display: inline; 270 | font-weight: bold; 271 | } 272 | #content ul.subnav li a { 273 | color: #6CA300; 274 | border: none; 275 | } 276 | #content ul.subnav li a:hover { 277 | color: #fff; 278 | background: #6CA300; 279 | } 280 | 281 | /* XML feed link */ 282 | 283 | #feed-link { 284 | margin-left: 4px; 285 | vertical-align: middle; 286 | border: none; 287 | } 288 | a:hover#feed-link { 289 | background: none; 290 | } 291 | 292 | /* weblog entries */ 293 | 294 | .entry { 295 | clear: left; 296 | } 297 | 298 | #content .entry h3 { 299 | margin: 0 0 6px 0; 300 | padding: 10px 0 0 0; 301 | font-family: "Trebuchet MS", sans-serif; 302 | font-size: 150%; 303 | font-weight: bold; 304 | border-top: 1px dotted #E0E8B9; 305 | } 306 | #content .entry h3 a { 307 | border-bottom: none; 308 | } 309 | .entry p { 310 | margin: 0 0 1em 0; 311 | padding: 0; 312 | } 313 | .entry p.entry-date { 314 | margin: 0; 315 | padding: 6px 0 0 0; 316 | font-family: Verdana, sans-serif; 317 | font-size: 90%; 318 | color: #99A26B; 319 | border-top: 1px dotted #E0E8B9; 320 | } 321 | #content ul.post-info { 322 | margin: 1em 0 0 0; 323 | padding: 0; 324 | list-style: none; 325 | } 326 | #content ul.post-info li { 327 | float: left; 328 | margin: 2px 6px 2em 0; 329 | padding: 0; 330 | font-size: 90%; 331 | color: #666; 332 | background: url(img/nav-top.gif) no-repeat top left; 333 | } 334 | #content ul.post-info a { 335 | float: left; 336 | display: block; 337 | padding: 2px 6px; 338 | text-decoration: none; 339 | border: none; 340 | color: #99A26B; 341 | background: url(img/nav-bottom.gif) no-repeat bottom right; 342 | } 343 | #content ul.post-info a img { 344 | vertical-align: middle; 345 | } 346 | #content ul.post-info a:hover { 347 | color: #6E7549; 348 | } 349 | 350 | /* tags */ 351 | #content div.post-tags { 352 | display: block; 353 | } 354 | #content div.post-tags h4, 355 | #content div.post-tags ul { 356 | display: inline; 357 | } 358 | #content div.post-tags ul li { 359 | display: inline; 360 | background: none; 361 | padding: 2px; 362 | } 363 | 364 | /* comments */ 365 | 366 | h3#comments { 367 | clear: left; 368 | } 369 | .com-list { 370 | margin: 1em 0; 371 | padding: 0; 372 | font-size: 90%; 373 | line-height: 1.4em; 374 | list-style: none; 375 | color: #473C28; 376 | } 377 | .com-list li { 378 | margin: 0 0 1em 0; 379 | padding: 15px; 380 | border: 2px solid #E0E8B9; 381 | background: #F8F8EC; 382 | overflow: auto; 383 | } 384 | .com-list cite { 385 | margin: 0; 386 | padding: 0 0 0 24px; 387 | font-style: normal; 388 | font-weight: bold; 389 | font-size: 110%; 390 | background: url(img/com-bubble.gif) no-repeat 0 50%; 391 | } 392 | .com-list cite .avatar { 393 | float: right; 394 | margin-left: 4px; 395 | border: 2px solid #E0E8B9; 396 | } 397 | .com-meta { 398 | clear: right; 399 | padding: 10px 0 0 0; 400 | margin: 0; 401 | text-align: right; 402 | } 403 | .com-meta a { 404 | color: #6CA300; 405 | border: none; 406 | } 407 | .com-meta a:hover { 408 | color: #fff; 409 | background: #6CA300; 410 | } 411 | 412 | h3#respond { 413 | clear: left; 414 | margin-top: 2em; 415 | } 416 | 417 | /* blog archive link */ 418 | 419 | h3#archive-link { 420 | clear: left; 421 | padding-top: 10px; 422 | font-family: Verdana, sans-serif; 423 | font-size: 100%; 424 | font-weight: bold; 425 | color: #333; 426 | border-top: 1px dotted #E0E8B9; 427 | } 428 | 429 | /* --[ sidebar ]------------------------------- */ 430 | 431 | /* rounded box style */ 432 | 433 | .box { 434 | width: 241px; 435 | margin: 0 0 14px 0; 436 | background: #F8F8EC url(img/box-tile.gif) repeat-y top left; 437 | } 438 | .box-inner { 439 | background: url(img/box-bottom.gif) no-repeat bottom left; 440 | } 441 | .box h3 { 442 | margin: 0; 443 | padding: 15px 18px 0 18px; 444 | font-family: "Trebuchet MS", sans-serif; 445 | font-size: 110%; 446 | color: #E97E00; 447 | background: url(img/box-top.gif) no-repeat top left; 448 | } 449 | .box p, .box ul, .box ol, .box dl, .box form { 450 | margin: 0; 451 | padding: 1em 18px 18px 18px; 452 | font-size: 85%; 453 | line-height: 1.4em; 454 | } 455 | .box ul li { 456 | margin: 0 0 2px 10px; 457 | padding-left: 15px; 458 | list-style: none; 459 | background: url(img/bullet-alt.gif) no-repeat 0 3px; 460 | } 461 | .box dl dt { 462 | margin: 0 0 2px 0; 463 | font-weight: bold; 464 | } 465 | .box dl dd { 466 | margin: 0; 467 | padding: 0; 468 | } 469 | 470 | /* vevents */ 471 | 472 | #events-list li { 473 | margin-bottom: 1em; 474 | list-style: none; 475 | } 476 | #events-list li.last { 477 | margin-bottom: 0; 478 | } 479 | #events-list li abbr { 480 | border: none; 481 | } 482 | 483 | /* about box */ 484 | 485 | #about-logo { 486 | float: right; 487 | padding: 8px 2px 8px 10px; 488 | } 489 | 490 | /* microformats list */ 491 | 492 | .box dl#mf-list { 493 | margin-left: 10px; 494 | } 495 | .box dl#mf-list dt { 496 | margin: 0; 497 | padding-left: 15px; 498 | font-weight: normal; 499 | background: url(img/bullet-alt.gif) no-repeat 0 3px; 500 | } 501 | .box dl#mf-list dd { 502 | margin: 0 0 8px 15px; 503 | } 504 | 505 | /* search form */ 506 | 507 | .box #search { 508 | margin: 0; 509 | padding: 18px; 510 | background: url(img/box-top.gif) no-repeat top left; 511 | } 512 | #search input { 513 | vertical-align: middle; 514 | } 515 | #search-text { 516 | width: 130px; 517 | } 518 | 519 | /* --[ footer ]------------------------------- */ 520 | 521 | #footer { 522 | margin: 0; 523 | padding: 0 0 28px 0; 524 | color: #473C28; 525 | text-align: center; 526 | background: #F8F8EC url(img/footer-bottom.gif) no-repeat bottom left; 527 | } 528 | #footer p { 529 | margin: 0 20px 0 20px; 530 | padding: 20px; 531 | line-height: 1.4em; 532 | background: url(img/footer-top.gif) no-repeat top left; 533 | } 534 | #footer-feed { 535 | padding-left: 27px; 536 | background-image: url(img/xml.gif); 537 | background-repeat: no-repeat; 538 | background-position: 0 50%; 539 | } 540 | #footer a { 541 | color: #6CA300; 542 | border: none; 543 | } 544 | #footer a:hover { 545 | background-color: #E0E8B9; 546 | } 547 | 548 | /* --[ misc ]------------------------------- */ 549 | 550 | a img { 551 | border: none; 552 | } 553 | .hide { 554 | display: none; 555 | } 556 | img#mf-diagram { 557 | border: none; 558 | } 559 | 560 | blockquote blockquote, blockquote blockquote p { 561 | display:inline; 562 | margin-top:0; 563 | margin-bottom:0; 564 | padding:0; 565 | } 566 | blockquote ol { 567 | margin:0; 568 | padding:0; 569 | list-style:none; 570 | } 571 | --------------------------------------------------------------------------------