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