diff -urN default/attachment.php default.abel/attachment.php
old
|
new
|
|
13 | 13 | <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> |
14 | 14 | |
15 | 15 | <div class="post" id="post-<?php the_ID(); ?>"> |
16 | | <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
| 16 | <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s', 'kubrick'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2> |
17 | 17 | |
18 | 18 | <div class="entry"> |
19 | 19 | <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> |
… |
… |
|
25 | 25 | <p class="postmetadata alt"> |
26 | 26 | <small> |
27 | 27 | <?php printf(__('This entry was posted on %s at %s and is filed under %s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', '));?> |
28 | | <?php printf(__('You can follow any responses to this entry through the %s feed.', 'kubrick'), '<a href="' . comments_rss('') . '">' . __('RSS 2.0', 'kubrick') . '</a>'); ?> |
| 28 | <?php printf(__('You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.', 'kubrick'), comments_rss('')); ?> |
29 | 29 | |
30 | 30 | <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { |
31 | 31 | // Both Comments and Pings are open |
diff -urN default/comments.php default.abel/comments.php
old
|
new
|
|
27 | 27 | <?php foreach ($comments as $comment) : ?> |
28 | 28 | |
29 | 29 | <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> |
30 | | <cite><?php comment_author_link() ?></cite> <?php _e('Says:', 'kubrick'); ?> |
| 30 | <?php printf(__('<cite>%s</cite> Says:', 'kubrick'), comment_author_link()); ?> |
31 | 31 | <?php if ($comment->comment_approved == '0') : ?> |
32 | 32 | <em><?php _e('Your comment is awaiting moderation.', 'kubrick'); ?></em> |
33 | 33 | <?php endif; ?> |
diff -urN default/functions.php default.abel/functions.php
old
|
new
|
|
137 | 137 | } |
138 | 138 | add_action('admin_head', 'kubrick_theme_page_head'); |
139 | 139 | } |
140 | | add_theme_page('Customize Header', 'Header Image and Color', 'edit_themes', basename(__FILE__), 'kubrick_theme_page'); |
| 140 | add_theme_page(__('Customize Header', 'kubrick'), __('Header Image and Color', 'kubrick'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page'); |
141 | 141 | } |
142 | 142 | |
143 | 143 | function kubrick_theme_page_head() { |
… |
… |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | function kubrick_theme_page() { |
350 | | if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>'; |
| 350 | if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>' . __('Options saved.', 'kubrick') . '</strong></p></div>'; |
351 | 351 | ?> |
352 | 352 | <div class='wrap'> |
353 | 353 | <div id="kubrick-header"> |
354 | | <h2>Header Image and Color</h2> |
| 354 | <h2><?php _e('Header Image and Color', 'kubrick') ?></h2> |
355 | 355 | <div id="headwrap"> |
356 | 356 | <div id="header"> |
357 | 357 | <div id="headerimg"> |
… |
… |
|
364 | 364 | <div id="nonJsForm"> |
365 | 365 | <form method="post" action=""> |
366 | 366 | <div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div> |
367 | | <label for="njfontcolor">Font Color:</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> Any CSS color (<code>red</code> or <code>#FF0000</code> or <code>rgb(255, 0, 0)</code>)<br /> |
368 | | <label for="njuppercolor">Upper Color:</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br /> |
369 | | <label for="njlowercolor">Lower Color:</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br /> |
| 367 | <label for="njfontcolor"><?php _e('Font Color:', 'kubrick') ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> <?php printf(__('Any CSS color (%s, %s or %s)', 'kubrick'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>') ?><br /> |
| 368 | <label for="njuppercolor"><?php _e('Upper Color:', 'kubrick') ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> <?php printf (__('HEX only (%s or %s)', 'kubrick'), '<code>#FF0000</code>', '<code>#F00</code>') ?><br /> |
| 369 | <label for="njlowercolor"><?php _e('Lower Color:', 'kubrick') ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> <?php printf (__('HEX only (%s or %s)', 'kubrick'), '<code>#FF0000</code>', '<code>#F00</code>') ?><br /> |
370 | 370 | <input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" /> |
371 | | <input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" /> |
372 | | <input type="submit" name="defaults" value="Use Defaults" /> |
373 | | <input type="submit" class="defbutton" name="submitform" value=" Save " /> |
| 371 | <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php _e('Toggle Text', 'kubrick') ?>" /> |
| 372 | <input type="submit" name="defaults" value="<?php _e('Use Defaults', 'kubrick') ?>" /> |
| 373 | <input type="submit" class="defbutton" name="submitform" value=" <?php _e('Save', 'kubrick') ?> " /> |
374 | 374 | <input type="hidden" name="action" value="save" /> |
375 | 375 | <input type="hidden" name="njform" value="true" /> |
376 | 376 | </form> |
377 | 377 | </div> |
378 | 378 | <div id="jsForm"> |
379 | 379 | <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> |
380 | | <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input> |
381 | | <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input> |
382 | | <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input> |
383 | | <input type="button" name="revert" value="Revert" onclick="kRevert()" /> |
384 | | <input type="button" value="Advanced" onclick="toggleAdvanced()" /> |
| 380 | <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php _e('Font Color', 'kubrick') ?>"></input> |
| 381 | <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php _e('Upper Color', 'kubrick') ?>"></input> |
| 382 | <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php _e('Lower Color', 'kubrick') ?>"></input> |
| 383 | <input type="button" name="revert" value="<?php _e('Revert', 'kubrick') ?>" onclick="kRevert()" /> |
| 384 | <input type="button" value="<?php _e('Advanced', 'kubrick') ?>" onclick="toggleAdvanced()" /> |
385 | 385 | <input type="hidden" name="action" value="save" /> |
386 | 386 | <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" /> |
387 | 387 | <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo kubrick_header_color(); ?>" /> |
388 | 388 | <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo kubrick_upper_color(); ?>" /> |
389 | 389 | <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" /> |
390 | 390 | <input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" /> |
391 | | <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header »'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> |
| 391 | <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header »', 'kubrick'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> |
392 | 392 | </form> |
393 | 393 | <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> |
394 | 394 | <div id="advanced"> |
395 | 395 | <form id="jsAdvanced" style="display:none;" action=""> |
396 | | <label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br /> |
397 | | <label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br /> |
398 | | <label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br /> |
399 | | <input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br /> |
400 | | <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br /> |
| 396 | <label for="advfontcolor"><?php _e('Font Color (CSS):', 'kubrick') ?></label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br /> |
| 397 | <label for="advuppercolor"><?php _e('Upper Color (HEX):', 'kubrick') ?></label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br /> |
| 398 | <label for="advlowercolor"><?php _e('Lower Color (HEX):', 'kubrick') ?></label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br /> |
| 399 | <input type="button" name="default" value="<?php _e('Select Default Colors', 'kubrick') ?>" onclick="kDefaults()" /><br /> |
| 400 | <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php _e('Toggle Text Display', 'kubrick') ?>"></input><br /> |
401 | 401 | </form> |
402 | 402 | </div> |
403 | 403 | </div> |
diff -urN default/page.php default.abel/page.php
old
|
new
|
|
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', 'kubrick') . ' »</p>'); ?> |
| 9 | <?php the_content('<p class="serif">' . __('Read the rest of this page »', 'kubrick') . '</p>'); ?> |
10 | 10 | |
11 | | <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages', 'kubrick') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> |
| 11 | <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> |
12 | 12 | |
13 | 13 | </div> |
14 | 14 | </div> |
… |
… |
|
19 | 19 | |
20 | 20 | <?php get_sidebar(); ?> |
21 | 21 | |
22 | | <?php get_footer(); ?> |
23 | | 檔案末沒有 newline 字元 |
| 22 | <?php get_footer(); ?> |
diff -urN default/sidebar.php default.abel/sidebar.php
old
|
new
|
|
21 | 21 | <p><?php printf(__('You are currently browsing the archives for the '%s' category.', 'kubrick'), single_cat_title('', false)); ?></p> |
22 | 22 | |
23 | 23 | <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> |
24 | | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives |
25 | | for the day %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p> |
| 24 | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the day %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p> |
26 | 25 | |
27 | 26 | <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
28 | | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives |
29 | | for the month %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p> |
| 27 | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the month %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p> |
30 | 28 | |
31 | 29 | <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
32 | | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives |
33 | | for the year %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('Y', 'kubrick'))); ?></p> |
| 30 | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the year %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('Y', 'kubrick'))); ?></p> |
34 | 31 | |
35 | 32 | <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> |
36 | | <p><?php printf(__('You have searched the <a href="%s">%s</a> weblog archives |
37 | | for <strong>'%s'</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), the_search_query()); ?></p> |
| 33 | <p><?php printf(__('You have searched the <a href="%s">%s</a> weblog archives for <strong>'%s'</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), the_search_query()); ?></p> |
38 | 34 | |
39 | 35 | <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
40 | 36 | <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p> |