Ticket #7307: wp-default-theme.patch
File wp-default-theme.patch, 38.5 KB (added by , 12 years ago) |
---|
-
./trunk/wordpress/wp-content/themes/default/comments.php
1 1 <?php // Do not delete these lines 2 2 if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 3 die ( 'Please do not load this page directly. Thanks!');3 die ( __('Please do not load this page directly. Thanks!') ); 4 4 5 5 if (!empty($post->post_password)) { // if there's a password 6 6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 7 7 ?> 8 8 9 <p class="nocomments"> This post is password protected. Enter the password to view comments.</p>9 <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments"); ?>.</p> 10 10 11 11 <?php 12 12 return; … … 20 20 <!-- You can start editing here. --> 21 21 22 22 <?php if ($comments) : ?> 23 <h3 id="comments"><?php comments_number( 'No Responses', 'One Response', '% Responses' );?> to“<?php the_title(); ?>”</h3>23 <h3 id="comments"><?php comments_number( __('No Responses'), __('One Response'), __('% Responses') );?> <?php _e("to"); ?> “<?php the_title(); ?>”</h3> 24 24 25 25 <ol class="commentlist"> 26 26 … … 28 28 29 29 <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 30 30 <?php echo get_avatar( $comment, 32 ); ?> 31 <cite><?php comment_author_link() ?></cite> Says:31 <cite><?php comment_author_link() ?></cite> <?php _e("Says"); ?>: 32 32 <?php if ($comment->comment_approved == '0') : ?> 33 <em> Your comment is awaiting moderation.</em>33 <em><?php _e("Your comment is awaiting moderation"); ?>.</em> 34 34 <?php endif; ?> 35 35 <br /> 36 36 37 <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>37 <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php printf( _c('%1$s at %2$s|1: date, 2: time'), get_comment_date( get_option('date_format') ), get_comment_time() ); ?></a> <?php edit_comment_link( __('edit'),' ',''); ?></small> 38 38 39 39 <?php comment_text() ?> 40 40 … … 56 56 57 57 <?php else : // comments are closed ?> 58 58 <!-- If comments are closed. --> 59 <p class="nocomments"> Comments are closed.</p>59 <p class="nocomments"><?php _e("Comments are closed"); ?>.</p> 60 60 61 61 <?php endif; ?> 62 62 <?php endif; ?> … … 64 64 65 65 <?php if ('open' == $post->comment_status) : ?> 66 66 67 <h3 id="respond"> Leave a Reply</h3>67 <h3 id="respond"><?php _e("Leave a Reply"); ?></h3> 68 68 69 69 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 70 <p> You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>70 <p><?php printf( _c('You must be <a href="%1$s">logged in</a> to post a comment.|1: login URL'), get_option('siteurl') . "/wp-login.php?redirect_to=" . urlencode(get_permalink()) ); ?></p> 71 71 <?php else : ?> 72 72 73 73 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 74 74 75 75 <?php if ( $user_ID ) : ?> 76 76 77 <p> Logged in as <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="Log out of this account">Log out »</a></p>77 <p><?php printf( _c('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>|1: profile URL, 2: user name, 3: logout URL'), get_option('siteurl') . "/wp-admin/profile.php", $user_identity, get_option('siteurl') . "/wp-login.php?action=logout" ); ?></p> 78 78 79 79 <?php else : ?> 80 80 81 81 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 82 <label for="author"><small> Name <?php if ($req) echo "(required)"; ?></small></label></p>82 <label for="author"><small><?php _e("Name"); ?> <?php if ($req) _e("(required)");; ?></small></label></p> 83 83 84 84 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 85 <label for="email"><small> Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>85 <label for="email"><small><?php _e("Mail (will not be published)"); ?> <?php if ($req) _e("(required)"); ?></small></label></p> 86 86 87 87 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 88 <label for="url"><small> Website</small></label></p>88 <label for="url"><small><?php _e("Website"); ?></small></label></p> 89 89 90 90 <?php endif; ?> 91 91 92 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->92 <!--<p><small><strong>XHTML:</strong> <?php printf( __("You can use these tags: %s"), "<code>" . allowed_tags() . "</code>" ); ?></small></p>--> 93 93 94 94 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 95 95 96 <p><input name="submit" type="submit" id="submit" tabindex="5" value=" Submit Comment" />96 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" /> 97 97 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 98 98 </p> 99 99 <?php do_action('comment_form', $post->ID); ?> -
./trunk/wordpress/wp-content/themes/default/image.php
10 10 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p> 11 11 <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div> 12 12 13 <?php the_content('<p class="serif"> Read the rest of this entry»</p>'); ?>13 <?php the_content('<p class="serif">' . __('Read the rest of this entry') . ' »</p>'); ?> 14 14 15 15 <div class="navigation"> 16 16 <div class="alignleft"><?php previous_image_link() ?></div> … … 20 20 21 21 <p class="postmetadata alt"> 22 22 <small> 23 This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> 24 and is filed under <?php the_category(', ') ?>. 23 <?php printf( _c('This entry was posted on %1$s at %2$s and is filed under %3$s.|1: date, 2: time, 3: categories'), get_the_time( get_option('date_format') ), get_the_time( get_option('time_format') ), get_the_category_list(', ') ); ?> 25 24 <?php the_taxonomies(); ?> 26 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.25 <?php printf( _c('You can follow any responses to this entry through the %1$s feed.|1: comments feed URL'), '<a href="' . get_post_comments_feed_link() . '">' . __("RSS 2.0") . '</a>' ); ?> 27 26 28 27 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 29 28 // Both Comments and Pings are open ?> 30 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.29 <?php printf( __("You can <a href='#respond'>leave a response</a>, or <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>. 31 30 32 31 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 33 32 // Only Pings are Open ?> 34 Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.33 <?php printf( __("Responses are currently closed, but you can <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>. 35 34 36 35 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 37 36 // Comments are open, Pings are not ?> 38 You can skip to the end and leave a response. Pinging is currently not allowed.37 <?php _e("You can skip to the end and leave a response. Pinging is currently not allowed"); ?>. 39 38 40 39 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 41 40 // Neither Comments, nor Pings are open ?> 42 Both comments and pings are currently closed.41 <?php _e("Both comments and pings are currently closed"); ?>. 43 42 44 <?php } edit_post_link( 'Edit this entry.','',''); ?>43 <?php } edit_post_link( __('Edit this entry'),'','.'); ?> 45 44 46 45 </small> 47 46 </p> … … 54 53 55 54 <?php endwhile; else: ?> 56 55 57 <p> Sorry, no attachments matched your criteria.</p>56 <p><?php _e("Sorry, no attachments matched your criteria"); ?>.</p> 58 57 59 58 <?php endif; ?> 60 59 -
./trunk/wordpress/wp-content/themes/default/archive.php
6 6 7 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 8 <?php /* If this is a category archive */ if (is_category()) { ?> 9 <h2 class="pagetitle"> Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>9 <h2 class="pagetitle"><?php printf( __("Archive for the ‘%s’ Category"), single_cat_title( '', false ) ); ?></h2> 10 10 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> 11 <h2 class="pagetitle"> Posts Tagged ‘<?php single_tag_title(); ?>’</h2>11 <h2 class="pagetitle"><?php printf( __("Posts Tagged ‘%s’"), single_tag_title( '', false ) ); ?></h2> 12 12 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 13 <h2 class="pagetitle"> Archive for <?php the_time('F jS, Y'); ?></h2>13 <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('F jS, Y') ) ); ?></h2> 14 14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 15 <h2 class="pagetitle"> Archive for <?php the_time('F, Y'); ?></h2>15 <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('F, Y' ) ) ); ?></h2> 16 16 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 17 <h2 class="pagetitle"> Archive for <?php the_time('Y'); ?></h2>17 <h2 class="pagetitle"><?php printf( __("Archive for %s"), get_the_time( __('Y' )) ); ?></h2> 18 18 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 19 <h2 class="pagetitle"> Author Archive</h2>19 <h2 class="pagetitle"><?php _e("Author Archive"); ?></h2> 20 20 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 21 <h2 class="pagetitle"> Blog Archives</h2>21 <h2 class="pagetitle"><?php _e("Blog Archives"); ?></h2> 22 22 <?php } ?> 23 23 24 24 25 25 <div class="navigation"> 26 <div class="alignleft"><?php next_posts_link( '« Older Entries') ?></div>27 <div class="alignright"><?php previous_posts_link( 'Newer Entries »') ?></div>26 <div class="alignleft"><?php next_posts_link( __('« Older Entries' ) ) ?></div> 27 <div class="alignright"><?php previous_posts_link( __('Newer Entries »' ) ) ?></div> 28 28 </div> 29 29 30 30 <?php while (have_posts()) : the_post(); ?> 31 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_attribute(); ?>"><?php the_title(); ?></a></h3>33 <small><?php the_time( 'l, F jS, Y') ?></small>32 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h3> 33 <small><?php the_time( get_option('date_format') ) ?></small> 34 34 35 35 <div class="entry"> 36 36 <?php the_content() ?> 37 37 </div> 38 38 39 <p class="postmetadata"><?php the_tags( 'Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>39 <p class="postmetadata"><?php the_tags( __('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?> <?php comments_popup_link( __('No Comments') . ' »', __('1 Comment') . ' »', __('% Comments') . ' »', '', __('Comments Off') . '»' ); ?></p> 40 40 41 41 </div> 42 42 43 43 <?php endwhile; ?> 44 44 45 45 <div class="navigation"> 46 <div class="alignleft"><?php next_posts_link( '« Older Entries') ?></div>47 <div class="alignright"><?php previous_posts_link( 'Newer Entries »') ?></div>46 <div class="alignleft"><?php next_posts_link( __('« Older Entries' ) ) ?></div> 47 <div class="alignright"><?php previous_posts_link( __('Newer Entries »') ) ?></div> 48 48 </div> 49 49 50 50 <?php else : ?> 51 51 52 <h2 class="center"> Not Found</h2>52 <h2 class="center"><?php _e("Not Found"); ?></h2> 53 53 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 54 54 55 55 <?php endif; ?> -
./trunk/wordpress/wp-content/themes/default/404.php
2 2 3 3 <div id="content" class="narrowcolumn"> 4 4 5 <h2 class="center"> Error 404 - Not Found</h2>5 <h2 class="center"><?php _e("Error 404 - Not Found"); ?></h2> 6 6 7 7 </div> 8 8 9 9 <?php get_sidebar(); ?> 10 10 11 11 <?php get_footer(); ?> -
./trunk/wordpress/wp-content/themes/default/searchform.php
1 1 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> 2 2 <label class="hidden" for="s"><?php _e('Search for:'); ?></label> 3 3 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 4 <input type="submit" id="searchsubmit" value=" Search" />4 <input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>" /> 5 5 </div> 6 6 </form> -
./trunk/wordpress/wp-content/themes/default/sidebar.php
7 7 </li> 8 8 9 9 <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. 10 <li><h2> Author</h2>10 <li><h2><?php _e("Author"); ?></h2> 11 11 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 12 12 </li> 13 13 --> … … 18 18 19 19 <?php /* If this is a 404 page */ if (is_404()) { ?> 20 20 <?php /* If this is a category archive */ } elseif (is_category()) { ?> 21 <p> You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>21 <p><?php printf( __("You are currently browsing the archives for the %s category."), single_cat_title( '', false ) ); ?></p> 22 22 23 <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 24 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 25 for the day <?php the_time('l, F jS, Y'); ?>.</p> 23 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 24 <p><?php printf( _c('You are currently browsing the %1$s blog archives for the day %2$s.|1: blog URL, 2: day'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('l, F jS, Y') ) ); ?></p> 26 25 27 26 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 28 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 29 for <?php the_time('F, Y'); ?>.</p> 27 <p><?php printf( _c('You are currently browsing the %1$s blog archives for %2$s.|1: blog URL, 2: month'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('F, Y') ) ); ?></p> 30 28 31 29 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 32 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 33 for the year <?php the_time('Y'); ?>.</p> 30 <p><?php printf( _c('You are currently browsing the %1$s blog archives for the year %2$s.|1: blog URL, 2: year'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_the_time( __('Y') ) ); ?></p> 34 31 35 32 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 36 <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives 37 for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> 33 <p><?php printf( _c('You have searched the %1$s blog archives for <strong>\'%2$s\'</strong>. If you are unable to find anything in these search results, you can try one of these links.|1: blog URL, 2: search query'), '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') .'</a>', get_search_query() ); ?></p> 38 34 39 35 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 40 36 <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> … … 43 39 44 40 </li> <?php }?> 45 41 46 <?php wp_list_pages('title_li=<h2> Pages</h2>' ); ?>42 <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?> 47 43 48 <li><h2> Archives</h2>44 <li><h2><?php _e("Archives"); ?></h2> 49 45 <ul> 50 46 <?php wp_get_archives('type=monthly'); ?> 51 47 </ul> 52 48 </li> 53 49 54 <?php wp_list_categories('show_count=1&title_li=<h2> Categories</h2>'); ?>50 <?php wp_list_categories('show_count=1&title_li=<h2>' . __('Categories') . '</h2>'); ?> 55 51 56 52 <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> 57 53 <?php wp_list_bookmarks(); ?> 58 54 59 <li><h2> Meta</h2>55 <li><h2><?php _e("Meta"); ?></h2> 60 56 <ul> 61 57 <?php wp_register(); ?> 62 58 <li><?php wp_loginout(); ?></li> 63 <li><a href="http://validator.w3.org/check/referer" title=" This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>59 <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li> 64 60 <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> 65 <li><a href="http://wordpress.org/" title=" Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>61 <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li> 66 62 <?php wp_meta(); ?> 67 63 </ul> 68 64 </li> -
./trunk/wordpress/wp-content/themes/default/header.php
4 4 <head profile="http://gmpg.org/xfn/11"> 5 5 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 6 6 7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive<?php } ?> <?php wp_title(); ?></title>7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » <?php _e("Blog Archive"); ?> <?php } ?> <?php wp_title(); ?></title> 8 8 9 9 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> 10 10 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> -
./trunk/wordpress/wp-content/themes/default/index.php
7 7 <?php while (have_posts()) : the_post(); ?> 8 8 9 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_attribute(); ?>"><?php the_title(); ?></a></h2>11 <small><?php the_time( 'F jS, Y') ?> <!-- by <?php the_author() ?> --></small>10 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h2> 11 <small><?php the_time( get_option('date_format') ) ?> <!-- by <?php the_author() ?> --></small> 12 12 13 13 <div class="entry"> 14 <?php the_content( 'Read the rest of this entry»'); ?>14 <?php the_content( __('Read the rest of this entry') . ' »'); ?> 15 15 </div> 16 16 17 <p class="postmetadata"><?php the_tags( 'Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>17 <p class="postmetadata"><?php the_tags(__('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?> <?php comments_popup_link( __('No Comments') . ' »', __('1 Comment') . ' »', __('% Comments') . ' »', '', __('Comments Off') . '»' ); ?></p> 18 18 </div> 19 19 20 20 <?php endwhile; ?> 21 21 22 22 <div class="navigation"> 23 <div class="alignleft"><?php next_posts_link( '« Older Entries') ?></div>24 <div class="alignright"><?php previous_posts_link( 'Newer Entries »') ?></div>23 <div class="alignleft"><?php next_posts_link( __('« Older Entries') ) ?></div> 24 <div class="alignright"><?php previous_posts_link( __('Newer Entries »') ) ?></div> 25 25 </div> 26 26 27 27 <?php else : ?> 28 28 29 <h2 class="center"> Not Found</h2>30 <p class="center"> Sorry, but you are looking for something that isn't here.</p>29 <h2 class="center"><?php _e("Not Found"); ?></h2> 30 <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> 31 31 <?php include (TEMPLATEPATH . "/searchform.php"); ?> 32 32 33 33 <?php endif; ?> -
./trunk/wordpress/wp-content/themes/default/footer.php
3 3 <div id="footer"> 4 4 <!-- 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. --> 5 5 <p> 6 <?php bloginfo('name'); ?> is proudly powered by 7 <a href="http://wordpress.org/">WordPress</a> 8 <br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> 9 and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. 6 <?php printf( _c('%1$s is proudly powered by %2$s|1: blog name, 2: WordPress URL'), get_bloginfo('name'), '<a href="http://wordpress.org/">WordPress</a>' ); ?>. 7 <br/> 8 <?php printf( _c('%1$s and %2$s|1: entries RSS, 2: comments RSS'), '<a href="' . get_bloginfo('rss2_url') . '">' . __("Entries (RSS)") . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __("Comments (RSS)") . '</a>' ); ?>. 10 9 <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> 11 10 </p> 12 11 </div> -
./trunk/wordpress/wp-content/themes/default/search.php
4 4 5 5 <?php if (have_posts()) : ?> 6 6 7 <h2 class="pagetitle"> Search Results</h2>7 <h2 class="pagetitle"><?php _e("Search Results"); ?></h2> 8 8 9 9 <div class="navigation"> 10 <div class="alignleft"><?php next_posts_link( '« Older Entries') ?></div>11 <div class="alignright"><?php previous_posts_link( 'Newer Entries »') ?></div>10 <div class="alignleft"><?php next_posts_link( __('« Older Entries') ) ?></div> 11 <div class="alignright"><?php previous_posts_link( __('Newer Entries »') ) ?></div> 12 12 </div> 13 13 14 14 15 15 <?php while (have_posts()) : the_post(); ?> 16 16 17 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_attribute(); ?>"><?php the_title(); ?></a></h3>19 <small><?php the_time( 'l, F jS, Y') ?></small>18 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __("Permanent Link to %s"), the_title_attribute( array( "echo" => false ) ) ); ?>"><?php the_title(); ?></a></h3> 19 <small><?php the_time( get_option('date_format') ) ?></small> 20 20 21 <p class="postmetadata"><?php the_tags( 'Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>21 <p class="postmetadata"><?php the_tags(__('Tags') . ': ', ', ', '<br />'); ?> <?php printf( __("Posted in %s"), get_the_category_list(', ') ); ?> | <?php edit_post_link( __('Edit'), '', ' | '); ?> <?php comments_popup_link( __('No Comments') . ' »', __('1 Comment') . ' »', __('% Comments') . ' »', '', __('Comments Off') . '»' ); ?></p> 22 22 </div> 23 23 24 24 <?php endwhile; ?> 25 25 26 26 <div class="navigation"> 27 <div class="alignleft"><?php next_posts_link( '« Older Entries') ?></div>28 <div class="alignright"><?php previous_posts_link( 'Newer Entries »') ?></div>27 <div class="alignleft"><?php next_posts_link( __('« Older Entries') ) ?></div> 28 <div class="alignright"><?php previous_posts_link( __('Newer Entries »') ) ?></div> 29 29 </div> 30 30 31 31 <?php else : ?> 32 32 33 <h2 class="center"> No posts found. Try a different search?</h2>33 <h2 class="center"><?php _e("No posts found. Try a different search?"); ?></h2> 34 34 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 35 35 36 36 <?php endif; ?> … … 39 39 40 40 <?php get_sidebar(); ?> 41 41 42 42 <?php get_footer(); ?> -
./trunk/wordpress/wp-content/themes/default/links.php
8 8 9 9 <div id="content" class="widecolumn"> 10 10 11 <h2> Links:</h2>11 <h2><?php _e("Links"); ?>:</h2> 12 12 <ul> 13 13 <?php wp_list_bookmarks(); ?> 14 14 </ul> -
./trunk/wordpress/wp-content/themes/default/page.php
6 6 <div class="post" id="post-<?php the_ID(); ?>"> 7 7 <h2><?php the_title(); ?></h2> 8 8 <div class="entry"> 9 <?php the_content('<p class="serif"> Read the rest of this page»</p>'); ?>9 <?php the_content('<p class="serif">' . __('Read the rest of this page') . ' »</p>'); ?> 10 10 11 <?php wp_link_pages(array('before' => '<p><strong> Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>11 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 12 12 13 13 </div> 14 14 </div> 15 15 <?php endwhile; endif; ?> 16 <?php edit_post_link( 'Edit this entry.', '<p>', '</p>'); ?>16 <?php edit_post_link( __('Edit this entry'), '<p>', '.</p>'); ?> 17 17 </div> 18 18 19 19 <?php get_sidebar(); ?> 20 20 21 21 <?php get_footer(); ?> -
./trunk/wordpress/wp-content/themes/default/single.php
13 13 <h2><?php the_title(); ?></h2> 14 14 15 15 <div class="entry"> 16 <?php the_content('<p class="serif"> Read the rest of this entry»</p>'); ?>16 <?php the_content('<p class="serif">' . __('Read the rest of this entry') . ' »</p>'); ?> 17 17 18 <?php wp_link_pages(array('before' => '<p><strong> Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>19 <?php the_tags( '<p> Tags: ', ', ', '</p>'); ?>18 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 19 <?php the_tags( '<p>' . __('Tags') . ': ', ', ', '</p>'); ?> 20 20 21 21 <p class="postmetadata alt"> 22 22 <small> 23 This entry was posted24 23 <?php /* This is commented, because it requires a little adjusting sometimes. 25 24 You'll need to download this plugin, and follow the instructions: 26 25 http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ 27 26 /* $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() ?> 29 and is filed under <?php the_category(', ') ?>. 30 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed. 27 <?php printf( _c('This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the %4$s feed.|1: date, 2: time, 3: categories, 4: comments feed URL'), get_the_time( get_option('date_format') ), get_the_time( get_option('time_format') ), get_the_category_list(', '), '<a href="' . get_post_comments_feed_link() . '">' . __("RSS 2.0") . '</a>' ); ?> 31 28 32 29 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 33 30 // Both Comments and Pings are open ?> 34 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.31 <?php printf( __("You can <a href='#respond'>leave a response</a>, or <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>. 35 32 36 33 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 37 34 // Only Pings are Open ?> 38 Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.35 <?php printf( __("Responses are currently closed, but you can <a href='%s' rel='trackback'>trackback</a> from your own site"), get_trackback_url() ); ?>. 39 36 40 37 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 41 38 // Comments are open, Pings are not ?> 42 You can skip to the end and leave a response. Pinging is currently not allowed.39 <?php _e("You can skip to the end and leave a response. Pinging is currently not allowed" ); ?>. 43 40 44 41 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { 45 42 // Neither Comments, nor Pings are open ?> 46 Both comments and pings are currently closed.43 <?php _e("Both comments and pings are currently closed"); ?>. 47 44 48 <?php } edit_post_link( 'Edit this entry','','.'); ?>45 <?php } edit_post_link( __('Edit this entry'),'','.'); ?> 49 46 50 47 </small> 51 48 </p> … … 57 54 58 55 <?php endwhile; else: ?> 59 56 60 <p> Sorry, no posts matched your criteria.</p>57 <p><?php _e("Sorry, no posts matched your criteria"); ?>.</p> 61 58 62 59 <?php endif; ?> 63 60 -
./trunk/wordpress/wp-content/themes/default/archives.php
10 10 11 11 <?php include (TEMPLATEPATH . '/searchform.php'); ?> 12 12 13 <h2> Archives by Month:</h2>13 <h2><?php _e("Archives by Month"); ?>:</h2> 14 14 <ul> 15 15 <?php wp_get_archives('type=monthly'); ?> 16 16 </ul> 17 17 18 <h2> Archives by Subject:</h2>18 <h2><?php _e("Archives by Subject"); ?>:</h2> 19 19 <ul> 20 20 <?php wp_list_categories(); ?> 21 21 </ul> -
./trunk/wordpress/wp-content/themes/default/comments-popup.php
6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 7 <html xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>9 <title><?php printf( _c('%1$s - Comments on %2$s|1: blog name, 2: title'), get_option('blogname'), get_the_title() ); ?></title> 10 10 11 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 12 12 <style type="text/css" media="screen"> … … 19 19 20 20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 21 21 22 <h2 id="comments"> Comments</h2>22 <h2 id="comments"><?php _e("Comments"); ?></h2> 23 23 24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>">< abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>24 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> 27 <p> The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is:<em><?php trackback_url() ?></em></p>27 <p><?php _e('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is:'); ?> <em><?php trackback_url() ?></em></p> 28 28 <?php } ?> 29 29 30 30 <?php … … 42 42 <?php foreach ($comments as $comment) { ?> 43 43 <li id="comment-<?php comment_ID() ?>"> 44 44 <?php comment_text() ?> 45 <p><cite><?php comment_type( 'Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>45 <p><cite><?php comment_type( __('Comment'), __('Trackback'), __('Pingback') ); ?> <?php printf( _c('by %1$s — %2$s @ %3$s|1: author, 2: date, 3: time&link'), get_comment_author_link(), get_comment_date(), '<a href="#comment-' . get_comment_ID() . '">' . get_comment_time() . '</a>' ); ?></cite></p> 46 46 </li> 47 47 48 48 <?php } // end for each comment ?> 49 49 </ol> 50 50 <?php } else { // this is displayed if there are no comments so far ?> 51 <p> No comments yet.</p>51 <p><?php _e("No comments yet."); ?></p> 52 52 <?php } ?> 53 53 54 54 <?php if ('open' == $post->comment_status) { ?> 55 <h2> Leave a comment</h2>56 <p> Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed:<code><?php echo allowed_tags(); ?></code></p>55 <h2><?php _e("Leave a comment"); ?></h2> 56 <p><?php _e('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed:' ); ?> <code><?php echo allowed_tags(); ?></code></p> 57 57 58 58 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 59 59 <?php if ( $user_ID ) : ?> 60 <p> Logged in as <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="Log out of this account">Log out »</a></p>60 <p><?php printf( _c('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>|1: profile URL, 2: user name, 3: logout URL'), get_option('siteurl') . "/wp-admin/profile.php", $user_identity, get_option('siteurl') . "/wp-login.php?action=logout" ); ?></p> 61 61 <?php else : ?> 62 62 <p> 63 63 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> 64 <label for="author"> Name</label>64 <label for="author"><?php _e("Name"); ?></label> 65 65 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 66 66 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> 67 67 </p> 68 68 69 69 <p> 70 70 <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> 71 <label for="email"> E-mail</label>71 <label for="email"><?php _e("E-mail"); ?></label> 72 72 </p> 73 73 74 74 <p> 75 75 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> 76 <label for="url">< abbr title="Universal Resource Locator">URL</abbr></label>76 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label> 77 77 </p> 78 78 <?php endif; ?> 79 79 80 80 <p> 81 <label for="comment"> Your Comment</label>81 <label for="comment"><?php _e("Your Comment"); ?></label> 82 82 <br /> 83 83 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 84 84 </p> 85 85 86 86 <p> 87 <input name="submit" type="submit" tabindex="5" value=" Say It!" />87 <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!'); ?>" /> 88 88 </p> 89 89 <?php do_action('comment_form', $post->ID); ?> 90 90 </form> 91 91 <?php } else { // comments are closed ?> 92 <p> Sorry, the comment form is closed at this time.</p>92 <p><?php _e("Sorry, the comment form is closed at this time."); ?></p> 93 93 <?php } 94 94 } // end password check 95 95 ?> 96 96 97 <div><strong><a href="javascript:window.close()"> Close this window.</a></strong></div>97 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div> 98 98 99 99 <?php // if you delete this the sky will fall on your head 100 100 endwhile; … … 102 102 103 103 <!-- // this is just the end of the motor - don't touch that line either :) --> 104 104 <?php //} ?> 105 <p class="credit"><?php timer_stop(1); ?> <cite> Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>105 <p class="credit"><?php timer_stop(1); ?> <cite><?php printf( __("Powered by %s"), '<a href="http://wordpress.org/" title="' . __('Powered by WordPress, state-of-the-art semantic personal publishing platform.') . '"><strong>WordPress</strong></a>' ); ?></cite></p> 106 106 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 107 107 <script type="text/javascript"> 108 108 <!--