Make WordPress Core

Ticket #2105: hatom-default.diff

File hatom-default.diff, 8.6 KB (added by Otto42, 19 years ago)

Add hAtom support to the default template.

  • wp-content/themes/default/archive.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="narrowcolumn">
     3        <div id="content" class="narrowcolumn hfeed">
    44<?php is_tag(); ?>
    55                <?php if (have_posts()) : ?>
    66
    … …  
    2828                </div>
    2929
    3030                <?php while (have_posts()) : the_post(); ?>
    31                 <div class="post">
    32                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    33                                 <small><?php the_time('l, F jS, Y') ?></small>
     31                <div class="post hentry">
     32                                <h3 id="post-<?php the_ID(); ?>"><a class="entry-title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
     33                                <small>
     34                                <abbr class="updated published" title="<?php the_time('Y-m-d\TH:i:s\Z') ?>"><?php the_time('l, F jS, Y') ?></abbr></small>
    3435
    35                                 <div class="entry">
     36                                <div class="entry entry-content">
    3637                                        <?php the_content() ?>
    3738                                </div>
    3839
  • wp-content/themes/default/attachment.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="widecolumn">
     3        <div id="content" class="widecolumn hfeed">
    44
    55  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    66
    … …  
    1010                </div>
    1111<?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
    1212<?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
    13                 <div class="post" id="post-<?php the_ID(); ?>">
    14                         <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     13                <div class="post hentry" id="post-<?php the_ID(); ?>">
     14                        <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a class="entry-title" href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    1515                        <div class="entry">
     16                                <div class="entry-content">
    1617                                <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
    1718
    1819                                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     20                                </div>
    1921
    2022                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    2123
  • wp-content/themes/default/index.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="narrowcolumn">
     3        <div id="content" class="narrowcolumn hfeed">
    44
    55        <?php if (have_posts()) : ?>
    66
    77                <?php while (have_posts()) : the_post(); ?>
    88
    9                         <div class="post" id="post-<?php the_ID(); ?>">
    10                                 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    11                                 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
     9                        <div class="post hentry" id="post-<?php the_ID(); ?>">
     10                                <h2><a class="entry-title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     11                                <small>
     12                                <abbr class="updated published" title="<?php the_time('Y-m-d\TH:i:s\Z') ?>"><?php the_time('F jS, Y') ?></abbr>
     13                                <!-- by <span class="vcard author"><a href="<?php the_author_url();" class="url fn" ><?php the_author() ?></a></span> -->
     14                                </small>
    1215
    13                                 <div class="entry">
     16                                <div class="entry entry-content">
    1417                                        <?php the_content('Read the rest of this entry &raquo;'); ?>
    1518                                </div>
    1619
  • wp-content/themes/default/page.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="narrowcolumn">
     3        <div id="content" class="narrowcolumn hfeed">
    44
    55                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    6                 <div class="post" id="post-<?php the_ID(); ?>">
    7                 <h2><?php the_title(); ?></h2>
     6                <div class="post hentry" id="post-<?php the_ID(); ?>">
     7                <h2 class="entry-title"><?php the_title(); ?></h2>
    88                        <div class="entry">
    9                                 <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
     9                                <div class="entry-content"><?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?></div>
    1010
    1111                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1212
  • wp-content/themes/default/search.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="narrowcolumn">
     3        <div id="content" class="narrowcolumn hfeed">
    44
    55        <?php if (have_posts()) : ?>
    66
    … …  
    1414
    1515                <?php while (have_posts()) : the_post(); ?>
    1616
    17                         <div class="post">
    18                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    19                                 <small><?php the_time('l, F jS, Y') ?></small>
    20 
     17                        <div class="post hentry">
     18                                <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" class="entry-title" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
     19                                <small><abbr class="updated published" title="<?php the_time('Y-m-d\TH:i:s\Z') ?>"><?php the_time('l, F jS, Y') ?></abbr></small>
    2120                                <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
    2221                        </div>
    2322
  • wp-content/themes/default/single.php

     
    11<?php get_header(); ?>
    22
    3         <div id="content" class="widecolumn">
     3        <div id="content" class="widecolumn hfeed">
    44
    55        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    66
    … …  
    99                        <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    1010                </div>
    1111
    12                 <div class="post" id="post-<?php the_ID(); ?>">
    13                         <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     12                <div class="post hentry" id="post-<?php the_ID(); ?>">
     13                        <h2><a class="entry-title" href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    1414
    1515                        <div class="entry">
    16                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     16                                <div class="entry-content"><?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?></div>
    1717
    1818                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1919                                <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
    … …  
    2525                                                        You'll need to download this plugin, and follow the instructions:
    2626                                                        http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    2727                                                        /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
    28                                                 on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
     28                                                on <abbr class="updated published" title="<?php the_time('Y-m-d\TH:i:s\Z') ?>"><?php the_time('l, F jS, Y') ?></abbr> at <?php the_time() ?>
    2929                                                and is filed under <?php the_category(', ') ?>.
    3030                                                You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    3131