WordPress.org

Make WordPress Core

Ticket #3569: safari-compat2.diff

File safari-compat2.diff, 148.9 KB (added by nickshanks, 11 years ago)

Proposesd fix

  • wp-login.php

     
    2929<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3030<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    3131<head>
    32         <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
     32        <title><?php bloginfo('name'); ?> &#8250; <?php echo $title; ?></title>
    3333        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    3434        <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    3535<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
     
    145145                <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($_POST['user_email'])); ?>" size="25" tabindex="20" /></label>
    146146        </p>
    147147<?php do_action('lostpassword_form'); ?>
    148         <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Get New Password &raquo;'); ?>" tabindex="100" /></p>
     148        <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Get New Password &#187;'); ?>" tabindex="100" /></p>
    149149</form>
    150150</div>
    151151
     
    265265        </p>
    266266<?php do_action('register_form'); ?>
    267267        <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
    268         <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Register &raquo;'); ?>" tabindex="100" /></p>
     268        <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Register &#187;'); ?>" tabindex="100" /></p>
    269269</form>
    270270</div>
    271271
     
    353353<?php do_action('login_form'); ?>
    354354        <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p>
    355355        <p class="submit">
    356                 <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" />
     356                <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> &#187;" tabindex="100" />
    357357                <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
    358358        </p>
    359359</form>
  • wp-blog-header.php

     
    66        else $path = 'wp-admin/';
    77
    88  require_once( dirname(__FILE__) . '/wp-includes/functions.php');
    9   wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
     9  wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &#8250; Error");
    1010}
    1111
    1212$wp_did_header = true;
  • wp-includes/link-template.php

     
    361361        echo $format;
    362362}
    363363
    364 function next_post_link($format='%link &raquo;', $link='%title', $in_same_cat = false, $excluded_categories = '') {
     364function next_post_link($format='%link &#187;', $link='%title', $in_same_cat = false, $excluded_categories = '') {
    365365        $post = get_next_post($in_same_cat, $excluded_categories);
    366366
    367367        if ( !$post )
     
    458458        }
    459459}
    460460
    461 function next_posts_link($label='Next Page &raquo;', $max_page=0) {
     461function next_posts_link($label='Next Page &#187;', $max_page=0) {
    462462        global $paged, $wpdb, $wp_query;
    463463        if ( !$max_page ) {
    464464                $max_page = $wp_query->max_num_pages;
     
    495495        }
    496496}
    497497
    498 function posts_nav_link($sep=' &#8212; ', $prelabel='&laquo; Previous Page', $nxtlabel='Next Page &raquo;') {
     498function posts_nav_link($sep=' &#8212; ', $prelabel='&laquo; Previous Page', $nxtlabel='Next Page &#187;') {
    499499        global $wp_query;
    500500        if ( !is_singular() ) {
    501501                $max_num_pages = $wp_query->max_num_pages;
  • wp-includes/wp-db.php

     
    369369<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    370370<html xmlns="http://www.w3.org/1999/xhtml">
    371371<head>
    372         <title>WordPress &rsaquo; Error</title>
     372        <title>WordPress &#8250; Error</title>
    373373        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    374374        <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" />
    375375</head>
  • wp-includes/general-template.php

     
    146146}
    147147
    148148
    149 function wp_title($sep = '&raquo;', $display = true) {
     149function wp_title($sep = '&#187;', $display = true) {
    150150        global $wpdb;
    151151        global $m, $year, $monthnum, $day, $category_name, $wp_locale, $posts;
    152152
     
    342342                                $url    = get_month_link($arcresult->year,      $arcresult->month);
    343343                                $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year);
    344344                                if ( $show_post_count )
    345                                         $after = '&nbsp;('.$arcresult->posts.')' . $afterafter;
     345                                        $after = '&#160;('.$arcresult->posts.')' . $afterafter;
    346346                                echo get_archives_link($url, $text, $format, $before, $after);
    347347                        }
    348348                }
     
    354354                            $url = get_year_link($arcresult->year);
    355355                $text = sprintf('%d', $arcresult->year);
    356356                                if ($show_post_count)
    357                     $after = '&nbsp;('.$arcresult->posts.')' . $afterafter;
     357                    $after = '&#160;('.$arcresult->posts.')' . $afterafter;
    358358                echo get_archives_link($url, $text, $format, $before, $after);
    359359            }
    360360                }                       
     
    367367                                $date = sprintf('%1$d-%2$02d-%3$02d 00:00:00', $arcresult->year, $arcresult->month, $arcresult->dayofmonth);
    368368                                $text = mysql2date($archive_day_date_format, $date);
    369369                                if ($show_post_count)
    370                                         $after = '&nbsp;('.$arcresult->posts.')'.$afterafter;
     370                                        $after = '&#160;('.$arcresult->posts.')'.$afterafter;
    371371                                echo get_archives_link($url, $text, $format, $before, $after);
    372372                        }
    373373                }
     
    387387                                                $url  = sprintf('%1$s/%2$s%3$sm%4$s%5$s%6$sw%7$s%8$d', get_option('home'), '', '?', '=', $arc_year, '&amp;', '=', $arcresult->week);
    388388                                                $text = $arc_week_start . $archive_week_separator . $arc_week_end;
    389389                                                if ($show_post_count)
    390                                                         $after = '&nbsp;('.$arcresult->posts.')'.$afterafter;
     390                                                        $after = '&#160;('.$arcresult->posts.')'.$afterafter;
    391391                                                echo get_archives_link($url, $text, $format, $before, $after);
    392392                                        }
    393393                                }
     
    512512                get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month),
    513513                        date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">&laquo; ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
    514514        } else {
    515                 echo "\n\t\t".'<td colspan="3" id="prev" class="pad">&nbsp;</td>';
     515                echo "\n\t\t".'<td colspan="3" id="prev" class="pad">&#160;</td>';
    516516        }
    517517
    518         echo "\n\t\t".'<td class="pad">&nbsp;</td>';
     518        echo "\n\t\t".'<td class="pad">&#160;</td>';
    519519
    520520        if ( $next ) {
    521521                echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' .
    522522                get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month),
    523                         date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' &raquo;</a></td>';
     523                        date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' &#187;</a></td>';
    524524        } else {
    525                 echo "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';
     525                echo "\n\t\t".'<td colspan="3" id="next" class="pad">&#160;</td>';
    526526        }
    527527
    528528        echo '
     
    576576        // See how much we should pad in the beginning
    577577        $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins);
    578578        if ( 0 != $pad )
    579                 echo "\n\t\t".'<td colspan="'.$pad.'" class="pad">&nbsp;</td>';
     579                echo "\n\t\t".'<td colspan="'.$pad.'" class="pad">&#160;</td>';
    580580
    581581        $daysinmonth = intval(date('t', $unixmonth));
    582582        for ( $day = 1; $day <= $daysinmonth; ++$day ) {
     
    601601
    602602        $pad = 7 - calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear))-$week_begins);
    603603        if ( $pad != 0 && $pad != 7 )
    604                 echo "\n\t\t".'<td class="pad" colspan="'.$pad.'">&nbsp;</td>';
     604                echo "\n\t\t".'<td class="pad" colspan="'.$pad.'">&#160;</td>';
    605605
    606606        echo "\n\t</tr>\n\t</tbody>\n\t</table>";
    607607
     
    934934        $show_all = false;
    935935        $prev_next = true;
    936936        $prev_text = __('&laquo; Previous');
    937         $next_text = __('Next &raquo;');
     937        $next_text = __('Next &#187;');
    938938        $end_size = 1; // How many numbers on either end including the end
    939939        $mid_size = 2; // How many numbers to either side of current not including current
    940940        $type = 'plain';
  • wp-includes/js/colorpicker.js

     
    681681                if ((i % width) == 0) { cp_contents += "<tr>"; }
    682682                if (use_highlight) { var mo = 'onMouseOver="'+windowRef+'ColorPicker_highlightColor(\''+colors[i]+'\',window.document)"'; }
    683683                else { mo = ""; }
    684                 cp_contents += '<td bgcolor="'+colors[i]+'"><a href="javascript:void()" onclick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+'>&nbsp;</a></td>';
     684                cp_contents += '<td bgcolor="'+colors[i]+'"><a href="javascript:void()" onclick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+'>&#160;</a></td>';
    685685                if ( ((i+1)>=total) || (((i+1) % width) == 0)) {
    686686                        cp_contents += "</tr>";
    687687                        }
     
    690690        if (document.getElementById) {
    691691                var width1 = Math.floor(width/2);
    692692                var width2 = width = width1;
    693                 cp_contents += "<tr><td colspan='"+width1+"' bgcolor='#ffffff' ID='colorPickerSelectedColor'>&nbsp;</td><td colspan='"+width2+"' align='center' id='colorPickerSelectedColorValue'>#FFFFFF</td></tr>";
     693                cp_contents += "<tr><td colspan='"+width1+"' bgcolor='#ffffff' ID='colorPickerSelectedColor'>&#160;</td><td colspan='"+width2+"' align='center' id='colorPickerSelectedColorValue'>#FFFFFF</td></tr>";
    694694                }
    695695        cp_contents += "</table>";
    696696        if (windowMode) {
  • wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

     
    240240                                }
    241241
    242242                                // Remove anonymous, empty paragraphs.
    243                                 content = content.replace(new RegExp('<p>(\\s|&nbsp;)*</p>', 'mg'), '');
     243                                content = content.replace(new RegExp('<p>(\\s|&#160;)*</p>', 'mg'), '');
    244244
    245245                                // Handle table badness.
    246246                                content = content.replace(new RegExp('<(table( [^>]*)?)>.*?<((tr|thead)( [^>]*)?)>', 'mg'), '<$1><$3>');
     
    586586        pee = pee.replace(new RegExp('\\s*\\n', 'gi'), "<br />\n");
    587587        pee = pee.replace(new RegExp('(</?(?:table|thead|tfoot|caption|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6])[^>]*>)\\s*<br />', 'gi'), "$1");
    588588        pee = pee.replace(new RegExp('<br />(\\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)', 'gi'), '$1');
    589         pee = pee.replace(new RegExp('^((?:&nbsp;)*)\\s', 'mg'), '$1&nbsp;');
     589        pee = pee.replace(new RegExp('^((?:&#160;)*)\\s', 'mg'), '$1&#160;');
    590590        //pee = pee.replace(new RegExp('(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') .  stripslashes(clean_pre('$2'))  . '</pre>' "); // Hmm...
    591591        return pee;
    592592}
  • wp-includes/js/tinymce/plugins/paste/editor_plugin.js

     
    1 /**
    21
    3  * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $
    42
    5  *
    63
    7  * @author Moxiecode
    84
    9  * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
    105
    11  */
    126
    13 
    147
    15 /* Import plugin specific language pack */
    168
    17 tinyMCE.importPluginLanguagePack('paste');
    189
    19 
    2010
    21 var TinyMCE_PastePlugin = {
    2211
    23         getInfo : function() {
    2412
    25                 return {
    2613
    27                         longname : 'Paste text/word',
    2814
    29                         author : 'Moxiecode Systems AB',
    3015
    31                         authorurl : 'http://tinymce.moxiecode.com',
    3216
    33                         infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html',
    3417
    35                         version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
    3618
    37                 };
    3819
    39         },
    4020
    41 
    4221
    43         initInstance : function(inst) {
    4422
    45                 if (tinyMCE.isMSIE && tinyMCE.getParam("paste_auto_cleanup_on_paste", false))
    4623
    47                         tinyMCE.addEvent(inst.getBody(), "paste", TinyMCE_PastePlugin._handlePasteEvent);
    4824
    49         },
    5025
    51 
    5226
    53         getControlHTML : function(cn) {
    5427
    55                 switch (cn) {
    5628
    57                         case "pastetext":
    5829
    59                                 return tinyMCE.getButtonHTML(cn, 'lang_paste_text_desc', '{$pluginurl}/images/pastetext.gif', 'mcePasteText', true);
    6030
    61 
    6231
    63                         case "pasteword":
    6432
    65                                 return tinyMCE.getButtonHTML(cn, 'lang_paste_word_desc', '{$pluginurl}/images/pasteword.gif', 'mcePasteWord', true);
    6633
    67 
    6834
    69                         case "selectall":
    7035
    71                                 return tinyMCE.getButtonHTML(cn, 'lang_selectall_desc', '{$pluginurl}/images/selectall.gif', 'mceSelectAll', true);
    7236
    73                 }
    7437
    75 
    7638
    77                 return '';
    7839
    79         },
    8040
    81 
    8241
    83         execCommand : function(editor_id, element, command, user_interface, value) {
    8442
    85                 switch (command) {
    8643
    87                         case "mcePasteText":
    8844
    89                                 if (user_interface) {
    9045
    91                                         if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false))
    9246
    93                                                 TinyMCE_PastePlugin._insertText(clipboardData.getData("Text"), true);
    9447
    95                                         else {
    9648
    97                                                 var template = new Array();
    9849
    99                                                 template['file']        = '../../plugins/paste/pastetext.htm'; // Relative to theme
    10050
    101                                                 template['width']  = 450;
    10251
    103                                                 template['height'] = 400;
    10452
    105                                                 var plain_text = "";
    10653
    107                                                 tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'});
    10854
    109                                         }
    11055
    111                                 } else
    11256
    113                                         TinyMCE_PastePlugin._insertText(value['html'], value['linebreaks']);
    11457
    115 
    11658
    117                                 return true;
    11859
    119 
    12060
    121                         case "mcePasteWord":
    12261
    123                                 if (user_interface) {
    12462
    125                                         if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false)) {
    12663
    127                                                 TinyMCE_PastePlugin._insertWordContent(TinyMCE_PastePlugin._clipboardHTML());
    12864
    129                                         } else {
    13065
    131                                                 var template = new Array();
    13266
    133                                                 template['file']        = '../../plugins/paste/pasteword.htm'; // Relative to theme
    13467
    135                                                 template['width']  = 450;
    13668
    137                                                 template['height'] = 400;
    13869
    139                                                 var plain_text = "";
    14070
    141                                                 tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'});
    14271
    143                                         }
    14472
    145                                 } else
    14673
    147                                         TinyMCE_PastePlugin._insertWordContent(value);
    14874
    149 
    15075
    151                                 return true;
    15276
    153 
    15477
    155                         case "mceSelectAll":
    15678
    157                                 tinyMCE.execInstanceCommand(editor_id, 'selectall');
    15879
    159                                 return true;
    16080
    161 
    16281
    163                 }
    16482
    165 
    16683
    167                 // Pass to next handler in chain
    16884
    169                 return false;
    17085
    171         },
    17286
    173 
    17487
    175         // Private plugin internal methods
    17688
    177 
    17889
    179         _handlePasteEvent : function(e) {
    18090
    181                 switch (e.type) {
    18291
    183                         case "paste":
    18492
    185                                 var html = TinyMCE_PastePlugin._clipboardHTML();
    18693
    187                                 var r, inst = tinyMCE.selectedInstance;
    18894
    189 
    19095
    191                                 // Removes italic, strong etc, the if was needed due to bug #1437114
    19296
    193                                 if (inst && (r = inst.getRng()) && r.text.length > 0)
    19497
    195                                         tinyMCE.execCommand('delete');
    19698
    197 
    19899
    199                                 if (html && html.length > 0)
    200100
    201                                         tinyMCE.execCommand('mcePasteWord', false, html);
    202101
    203 
    204102
    205                                 tinyMCE.cancelEvent(e);
    206103
    207                                 return false;
    208104
    209                 }
    210105
    211 
    212106
    213                 return true;
    214107
    215         },
    216108
    217 
    218109
    219         _insertText : function(content, bLinebreaks) {
    220110
    221                 if (content && content.length > 0) {
    222111
    223                         if (bLinebreaks) {
    224112
    225                                 // Special paragraph treatment
    226113
    227                                 if (tinyMCE.getParam("paste_create_paragraphs", true)) {
    228114
    229                                         var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');
    230115
    231                                         for (var i=0; i<rl.length; i+=2)
    232116
    233                                                 content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);
    234117
    235 
    236118
    237                                         content = tinyMCE.regexpReplace(content, "\r\n\r\n", "</p><p>", "gi");
    238119
    239                                         content = tinyMCE.regexpReplace(content, "\r\r", "</p><p>", "gi");
    240120
    241                                         content = tinyMCE.regexpReplace(content, "\n\n", "</p><p>", "gi");
    242121
    243 
    244122
    245                                         // Has paragraphs
    246123
    247                                         if ((pos = content.indexOf('</p><p>')) != -1) {
    248124
    249                                                 tinyMCE.execCommand("Delete");
    250125
    251 
    252126
    253                                                 var node = tinyMCE.selectedInstance.getFocusElement();
    254127
    255 
    256128
    257                                                 // Get list of elements to break
    258129
    259                                                 var breakElms = new Array();
    260130
    261 
    262131
    263                                                 do {
    264132
    265                                                         if (node.nodeType == 1) {
    266133
    267                                                                 // Don't break tables and break at body
    268134
    269                                                                 if (node.nodeName == "TD" || node.nodeName == "BODY")
    270135
    271                                                                         break;
    272136
    273                
    274137
    275                                                                 breakElms[breakElms.length] = node;
    276138
    277                                                         }
    278139
    279                                                 } while(node = node.parentNode);
    280140
    281 
    282141
    283                                                 var before = "", after = "</p>";
    284142
    285                                                 before += content.substring(0, pos);
    286143
    287 
    288144
    289                                                 for (var i=0; i<breakElms.length; i++) {
    290145
    291                                                         before += "</" + breakElms[i].nodeName + ">";
    292146
    293                                                         after += "<" + breakElms[(breakElms.length-1)-i].nodeName + ">";
    294147
    295                                                 }
    296148
    297 
    298149
    299                                                 before += "<p>";
    300150
    301                                                 content = before + content.substring(pos+7) + after;
    302151
    303                                         }
    304152
    305                                 }
    306153
    307 
    308154
    309                                 if (tinyMCE.getParam("paste_create_linebreaks", true)) {
    310155
    311                                         content = tinyMCE.regexpReplace(content, "\r\n", "<br />", "gi");
    312156
    313                                         content = tinyMCE.regexpReplace(content, "\r", "<br />", "gi");
    314157
    315                                         content = tinyMCE.regexpReplace(content, "\n", "<br />", "gi");
    316158
    317                                 }
    318159
    319                         }
    320160
    321                
    322161
    323                         tinyMCE.execCommand("mceInsertRawHTML", false, content);
    324162
    325                 }
    326163
    327         },
    328164
    329 
    330165
    331         _insertWordContent : function(content) {
    332166
    333                 if (content && content.length > 0) {
    334167
    335                         // Cleanup Word content
    336168
    337                         var bull = String.fromCharCode(8226);
    338169
    339                         var middot = String.fromCharCode(183);
    340170
    341                         var cb;
    342171
    343 
    344172
    345                         if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")
    346173
    347                                 content = eval(cb + "('before', content)");
    348174
    349 
    350175
    351                         var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');
    352176
    353                         for (var i=0; i<rl.length; i+=2)
    354177
    355                                 content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);
    356178
    357 
    358179
    359                         if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {
    360180
    361                                 content = content.replace(new RegExp('<p class=MsoHeading.*?>(.*?)<\/p>', 'gi'), '<p><b>$1</b></p>');
    362181
    363                         }
    364182
    365 
    366183
    367                         content = content.replace(new RegExp('tab-stops: list [0-9]+.0pt">', 'gi'), '">' + "--list--");
    368184
    369                         content = content.replace(new RegExp(bull + "(.*?)<BR>", "gi"), "<p>" + middot + "$1</p>");
    370185
    371                         content = content.replace(new RegExp('<SPAN style="mso-list: Ignore">', 'gi'), "<span>" + bull); // Covert to bull list
    372186
    373                         content = content.replace(/<o:p><\/o:p>/gi, "");
    374187
    375                         content = content.replace(new RegExp('<br style="page-break-before: always;.*>', 'gi'), '-- page break --'); // Replace pagebreaks
    376188
    377                         content = content.replace(new RegExp('<(!--)([^>]*)(--)>', 'g'), "");  // Word comments
    378189
    379 
    380190
    381                         if (tinyMCE.getParam("paste_remove_spans", true))
    382191
    383                                 content = content.replace(/<\/?span[^>]*>/gi, "");
    384192
    385 
    386193
    387                         if (tinyMCE.getParam("paste_remove_styles", true))
    388194
    389                                 content = content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)', 'gi'), "<$1$3");
    390195
    391 
    392196
    393                         content = content.replace(/<\/?font[^>]*>/gi, "");
    394197
    395 
    396198
    397                         // Strips class attributes.
    398199
    399                         switch (tinyMCE.getParam("paste_strip_class_attributes", "all")) {
    400200
    401                                 case "all":
    402201
    403                                         content = content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");
    404202
    405                                         break;
    406203
    407 
    408204
    409                                 case "mso":
    410205
    411                                         content = content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)', 'gi'), "<$1$3");
    412206
    413                                         break;
    414207
    415                         }
    416208
    417 
    418209
    419                         content = content.replace(new RegExp('href="?' + TinyMCE_PastePlugin._reEscape("" + document.location) + '', 'gi'), 'href="' + tinyMCE.settings['document_base_url']);
    420210
    421                         content = content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
    422211
    423                         content = content.replace(/<\\?\?xml[^>]*>/gi, "");
    424212
    425                         content = content.replace(/<\/?\w+:[^>]*>/gi, "");
    426213
    427                         content = content.replace(/-- page break --\s*<p>&nbsp;<\/p>/gi, ""); // Remove pagebreaks
    428214
    429                         content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks
    430215
    431 
    432216
    433         //              content = content.replace(/\/?&nbsp;*/gi, ""); &nbsp;
    434217
    435         //              content = content.replace(/<p>&nbsp;<\/p>/gi, '');
    436218
    437 
    438219
    439                         if (!tinyMCE.settings['force_p_newlines']) {
    440220
    441                                 content = content.replace('', '' ,'gi');
    442221
    443                                 content = content.replace('</p>', '<br /><br />' ,'gi');
    444222
    445                         }
    446223
    447 
    448224
    449                         if (!tinyMCE.isMSIE && !tinyMCE.settings['force_p_newlines']) {
    450225
    451                                 content = content.replace(/<\/?p[^>]*>/gi, "");
    452226
    453                         }
    454227
    455 
    456228
    457                         content = content.replace(/<\/?div[^>]*>/gi, "");
    458229
    459 
    460230
    461                         // Convert all middlot lists to UL lists
    462231
    463                         if (tinyMCE.getParam("paste_convert_middot_lists", true)) {
    464232
    465                                 var div = document.createElement("div");
    466233
    467                                 div.innerHTML = content;
    468234
    469 
    470235
    471                                 // Convert all middot paragraphs to li elements
    472236
    473                                 var className = tinyMCE.getParam("paste_unindented_list_class", "unIndentedList");
    474237
    475 
    476238
    477                                 while (TinyMCE_PastePlugin._convertMiddots(div, "--list--")) ; // bull
    478239
    479                                 while (TinyMCE_PastePlugin._convertMiddots(div, middot, className)) ; // Middot
    480240
    481                                 while (TinyMCE_PastePlugin._convertMiddots(div, bull)) ; // bull
    482241
    483 
    484242
    485                                 content = div.innerHTML;
    486243
    487                         }
    488244
    489 
    490245
    491                         // Replace all headers with strong and fix some other issues
    492246
    493                         if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {
    494247
    495                                 content = content.replace(/<h[1-6]>&nbsp;<\/h[1-6]>/gi, '<p>&nbsp;&nbsp;</p>');
    496248
    497                                 content = content.replace(/<h[1-6]>/gi, '<p><b>');
    498249
    499                                 content = content.replace(/<\/h[1-6]>/gi, '</b></p>');
    500250
    501                                 content = content.replace(/<b>&nbsp;<\/b>/gi, '<b>&nbsp;&nbsp;</b>');
    502251
    503                                 content = content.replace(/^(&nbsp;)*/gi, '');
    504252
    505                         }
    506253
    507 
    508254
    509                         content = content.replace(/--list--/gi, ""); // Remove --list--
    510255
    511 
    512256
    513                         if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")
    514257
    515                                 content = eval(cb + "('after', content)");
    516258
    517 
    518259
    519                         // Insert cleaned content
    520260
    521                         tinyMCE.execCommand("mceInsertContent", false, content);
    522261
    523 
    524262
    525                         if (tinyMCE.getParam('paste_force_cleanup_wordpaste', true))
    526263
    527                                 window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1); // Do normal cleanup detached from this thread
    528264
    529                 }
    530265
    531         },
    532266
    533 
    534267
    535         _reEscape : function(s) {
    536268
    537                 var l = "?.\\*[](){}+^$:";
    538269
    539                 var o = "";
    540270
    541 
    542271
    543                 for (var i=0; i<s.length; i++) {
    544272
    545                         var c = s.charAt(i);
    546273
    547 
    548274
    549                         if (l.indexOf(c) != -1)
    550275
    551                                 o += '\\' + c;
    552276
    553                         else
    554277
    555                                 o += c;
    556278
    557                 }
    558279
    559 
    560280
    561                 return o;
    562281
    563         },
    564282
    565 
    566283
    567         _convertMiddots : function(div, search, class_name) {
    568284
    569                 var mdot = String.fromCharCode(183);
    570285
    571                 var bull = String.fromCharCode(8226);
    572286
    573 
    574287
    575                 var nodes = div.getElementsByTagName("p");
    576288
    577                 var prevul;
    578289
    579                 for (var i=0; i<nodes.length; i++) {
    580290
    581                         var p = nodes[i];
    582291
    583 
    584292
    585                         // Is middot
    586293
    587                         if (p.innerHTML.indexOf(search) == 0) {
    588294
    589                                 var ul = document.createElement("ul");
    590295
    591 
    592296
    593                                 if (class_name)
    594297
    595                                         ul.className = class_name;
    596298
    597 
    598299
    599                                 // Add the first one
    600300
    601                                 var li = document.createElement("li");
    602301
    603                                 li.innerHTML = p.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&nbsp;', "gi"), '');
    604302
    605                                 ul.appendChild(li);
    606303
    607 
    608304
    609                                 // Add the rest
    610305
    611                                 var np = p.nextSibling;
    612306
    613                                 while (np) {
    614307
    615                                 // If the node is whitespace, then
    616308
    617                                 // ignore it and continue on.
    618309
    619                                 if (np.nodeType == 3 && new RegExp('^\\s$', 'm').test(np.nodeValue)) {
    620310
    621                                         np = np.nextSibling;
    622311
    623                                         continue;
    624312
    625                                 }
    626313
    627 
    628314
    629                                         if (search == mdot) {
    630315
    631                                                 if (np.nodeType == 1 && new RegExp('^o(\\s+|&nbsp;)').test(np.innerHTML)) {
    632316
    633                                                         // Second level of nesting
    634317
    635                                                         if (!prevul) {
    636318
    637                                                                 prevul = ul;
    638319
    639                                                                 ul = document.createElement("ul");
    640320
    641                                                                 prevul.appendChild(ul);
    642321
    643                                                         }
    644322
    645                                                         np.innerHTML = np.innerHTML.replace(/^o/, '');
    646323
    647                                                 } else {
    648324
    649                                                         // Pop the stack if we're going back up to the first level
    650325
    651                                                         if (prevul) {
    652326
    653                                                                 ul = prevul;
    654327
    655                                                                 prevul = null;
    656328
    657                                                         }
    658329
    659                                                         // Not element or middot paragraph
    660330
    661                                                         if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)
    662331
    663                                                                 break;
    664332
    665                                                 }
    666333
    667                                         } else {
    668334
    669                                                 // Not element or middot paragraph
    670335
    671                                                 if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)
    672336
    673                                                         break;
    674337
    675                                         }
    676338
    677 
    678339
    679                                         var cp = np.nextSibling;
    680340
    681                                         var li = document.createElement("li");
    682341
    683                                         li.innerHTML = np.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&nbsp;', "gi"), '');
    684342
    685                                         np.parentNode.removeChild(np);
    686343
    687                                         ul.appendChild(li);
    688344
    689                                         np = cp;
    690345
    691                                 }
    692346
    693 
    694347
    695                                 p.parentNode.replaceChild(ul, p);
    696348
    697 
    698349
    699                                 return true;
    700350
    701                         }
    702351
    703                 }
    704352
    705 
    706353
    707                 return false;
    708354
    709         },
    710355
    711 
    712356
    713         _clipboardHTML : function() {
    714357
    715                 var div = document.getElementById('_TinyMCE_clipboardHTML');
    716358
    717 
    718359
    719                 if (!div) {
    720360
    721                         var div = document.createElement('DIV');
    722361
    723                         div.id = '_TinyMCE_clipboardHTML';
    724362
    725 
    726363
    727                         with (div.style) {
    728364
    729                                 visibility = 'hidden';
    730365
    731                                 overflow = 'hidden';
    732366
    733                                 position = 'absolute';
    734367
    735                                 width = 1;
    736368
    737                                 height = 1;
    738369
    739                         }
    740370
    741 
    742371
    743                         document.body.appendChild(div);
    744372
    745                 }
    746373
    747 
    748374
    749                 div.innerHTML = '';
    750375
    751                 var rng = document.body.createTextRange();
    752376
    753                 rng.moveToElementText(div);
    754377
    755                 rng.execCommand('Paste');
    756378
    757                 var html = div.innerHTML;
    758379
    759                 div.innerHTML = '';
    760380
    761                 return html;
    762381
    763         }
    764382
    765 };
    766383
    767 
    768384
    769 tinyMCE.addPlugin("paste", TinyMCE_PastePlugin);
    770385
  • wp-includes/js/tinymce/tiny_mce.js

    +/**
    + * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $
    + *
    + * @author Moxiecode
    + * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
    + */
    +
    +/* Import plugin specific language pack */ 
    +tinyMCE.importPluginLanguagePack('paste');
    +
    +var TinyMCE_PastePlugin = {
    +	getInfo : function() {
    +		return {
    +			longname : 'Paste text/word',
    +			author : 'Moxiecode Systems AB',
    +			authorurl : 'http://tinymce.moxiecode.com',
    +			infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html',
    +			version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
    +		};
    +	},
    +
    +	initInstance : function(inst) {
    +		if (tinyMCE.isMSIE && tinyMCE.getParam("paste_auto_cleanup_on_paste", false))
    +			tinyMCE.addEvent(inst.getBody(), "paste", TinyMCE_PastePlugin._handlePasteEvent);
    +	},
    +
    +	getControlHTML : function(cn) { 
    +		switch (cn) { 
    +			case "pastetext":
    +				return tinyMCE.getButtonHTML(cn, 'lang_paste_text_desc', '{$pluginurl}/images/pastetext.gif', 'mcePasteText', true);
    +
    +			case "pasteword":
    +				return tinyMCE.getButtonHTML(cn, 'lang_paste_word_desc', '{$pluginurl}/images/pasteword.gif', 'mcePasteWord', true);
    +
    +			case "selectall":
    +				return tinyMCE.getButtonHTML(cn, 'lang_selectall_desc', '{$pluginurl}/images/selectall.gif', 'mceSelectAll', true);
    +		} 
    +
    +		return ''; 
    +	},
    +
    +	execCommand : function(editor_id, element, command, user_interface, value) { 
    +		switch (command) { 
    +			case "mcePasteText": 
    +				if (user_interface) {
    +					if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false))
    +						TinyMCE_PastePlugin._insertText(clipboardData.getData("Text"), true); 
    +					else { 
    +						var template = new Array(); 
    +						template['file']	= '../../plugins/paste/pastetext.htm'; // Relative to theme 
    +						template['width']  = 450; 
    +						template['height'] = 400; 
    +						var plain_text = ""; 
    +						tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'}); 
    +					}
    +				} else
    +					TinyMCE_PastePlugin._insertText(value['html'], value['linebreaks']);
    +
    +				return true;
    +
    +			case "mcePasteWord": 
    +				if (user_interface) {
    +					if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false)) {
    +						TinyMCE_PastePlugin._insertWordContent(TinyMCE_PastePlugin._clipboardHTML());
    +					} else { 
    +						var template = new Array(); 
    +						template['file']	= '../../plugins/paste/pasteword.htm'; // Relative to theme 
    +						template['width']  = 450; 
    +						template['height'] = 400; 
    +						var plain_text = ""; 
    +						tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'});
    +					}
    +				} else
    +					TinyMCE_PastePlugin._insertWordContent(value);
    +
    +				return true;
    +
    +			case "mceSelectAll":
    +				tinyMCE.execInstanceCommand(editor_id, 'selectall'); 
    +				return true; 
    +
    +		} 
    +
    +		// Pass to next handler in chain 
    +		return false; 
    +	},
    +
    +	// Private plugin internal methods
    +
    +	_handlePasteEvent : function(e) {
    +		switch (e.type) {
    +			case "paste":
    +				var html = TinyMCE_PastePlugin._clipboardHTML();
    +				var r, inst = tinyMCE.selectedInstance;
    +
    +				// Removes italic, strong etc, the if was needed due to bug #1437114
    +				if (inst && (r = inst.getRng()) && r.text.length > 0)
    +					tinyMCE.execCommand('delete');
    +
    +				if (html && html.length > 0)
    +					tinyMCE.execCommand('mcePasteWord', false, html);
    +
    +				tinyMCE.cancelEvent(e);
    +				return false;
    +		}
    +
    +		return true;
    +	},
    +
    +	_insertText : function(content, bLinebreaks) { 
    +		if (content && content.length > 0) {
    +			if (bLinebreaks) { 
    +				// Special paragraph treatment 
    +				if (tinyMCE.getParam("paste_create_paragraphs", true)) {
    +					var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');
    +					for (var i=0; i<rl.length; i+=2)
    +						content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);
    +
    +					content = tinyMCE.regexpReplace(content, "\r\n\r\n", "</p><p>", "gi"); 
    +					content = tinyMCE.regexpReplace(content, "\r\r", "</p><p>", "gi"); 
    +					content = tinyMCE.regexpReplace(content, "\n\n", "</p><p>", "gi"); 
    +
    +					// Has paragraphs 
    +					if ((pos = content.indexOf('</p><p>')) != -1) { 
    +						tinyMCE.execCommand("Delete"); 
    +
    +						var node = tinyMCE.selectedInstance.getFocusElement(); 
    +
    +						// Get list of elements to break 
    +						var breakElms = new Array(); 
    +
    +						do { 
    +							if (node.nodeType == 1) { 
    +								// Don't break tables and break at body 
    +								if (node.nodeName == "TD" || node.nodeName == "BODY") 
    +									break; 
    +		
    +								breakElms[breakElms.length] = node; 
    +							} 
    +						} while(node = node.parentNode); 
    +
    +						var before = "", after = "</p>"; 
    +						before += content.substring(0, pos); 
    +
    +						for (var i=0; i<breakElms.length; i++) { 
    +							before += "</" + breakElms[i].nodeName + ">"; 
    +							after += "<" + breakElms[(breakElms.length-1)-i].nodeName + ">"; 
    +						} 
    +
    +						before += "<p>"; 
    +						content = before + content.substring(pos+7) + after; 
    +					} 
    +				} 
    +
    +				if (tinyMCE.getParam("paste_create_linebreaks", true)) {
    +					content = tinyMCE.regexpReplace(content, "\r\n", "<br />", "gi"); 
    +					content = tinyMCE.regexpReplace(content, "\r", "<br />", "gi"); 
    +					content = tinyMCE.regexpReplace(content, "\n", "<br />", "gi"); 
    +				}
    +			} 
    +		
    +			tinyMCE.execCommand("mceInsertRawHTML", false, content); 
    +		}
    +	},
    +
    +	_insertWordContent : function(content) { 
    +		if (content && content.length > 0) {
    +			// Cleanup Word content
    +			var bull = String.fromCharCode(8226);
    +			var middot = String.fromCharCode(183);
    +			var cb;
    +
    +			if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")
    +				content = eval(cb + "('before', content)");
    +
    +			var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');
    +			for (var i=0; i<rl.length; i+=2)
    +				content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);
    +
    +			if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {
    +				content = content.replace(new RegExp('<p class=MsoHeading.*?>(.*?)<\/p>', 'gi'), '<p><b>$1</b></p>');
    +			}
    +
    +			content = content.replace(new RegExp('tab-stops: list [0-9]+.0pt">', 'gi'), '">' + "--list--");
    +			content = content.replace(new RegExp(bull + "(.*?)<BR>", "gi"), "<p>" + middot + "$1</p>");
    +			content = content.replace(new RegExp('<SPAN style="mso-list: Ignore">', 'gi'), "<span>" + bull); // Covert to bull list
    +			content = content.replace(/<o:p><\/o:p>/gi, "");
    +			content = content.replace(new RegExp('<br style="page-break-before: always;.*>', 'gi'), '-- page break --'); // Replace pagebreaks
    +			content = content.replace(new RegExp('<(!--)([^>]*)(--)>', 'g'), "");  // Word comments
    +
    +			if (tinyMCE.getParam("paste_remove_spans", true))
    +				content = content.replace(/<\/?span[^>]*>/gi, "");
    +
    +			if (tinyMCE.getParam("paste_remove_styles", true))
    +				content = content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)', 'gi'), "<$1$3");
    +
    +			content = content.replace(/<\/?font[^>]*>/gi, "");
    +
    +			// Strips class attributes.
    +			switch (tinyMCE.getParam("paste_strip_class_attributes", "all")) {
    +				case "all":
    +					content = content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");
    +					break;
    +
    +				case "mso":
    +					content = content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)', 'gi'), "<$1$3");
    +					break;
    +			}
    +
    +			content = content.replace(new RegExp('href="?' + TinyMCE_PastePlugin._reEscape("" + document.location) + '', 'gi'), 'href="' + tinyMCE.settings['document_base_url']);
    +			content = content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
    +			content = content.replace(/<\\?\?xml[^>]*>/gi, "");
    +			content = content.replace(/<\/?\w+:[^>]*>/gi, "");
    +			content = content.replace(/-- page break --\s*<p>&#160;<\/p>/gi, ""); // Remove pagebreaks
    +			content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks
    +
    +	//		content = content.replace(/\/?&#160;*/gi, ""); &#160;
    +	//		content = content.replace(/<p>&#160;<\/p>/gi, '');
    +
    +			if (!tinyMCE.settings['force_p_newlines']) {
    +				content = content.replace('', '' ,'gi');
    +				content = content.replace('</p>', '<br /><br />' ,'gi');
    +			}
    +
    +			if (!tinyMCE.isMSIE && !tinyMCE.settings['force_p_newlines']) {
    +				content = content.replace(/<\/?p[^>]*>/gi, "");
    +			}
    +
    +			content = content.replace(/<\/?div[^>]*>/gi, "");
    +
    +			// Convert all middlot lists to UL lists
    +			if (tinyMCE.getParam("paste_convert_middot_lists", true)) {
    +				var div = document.createElement("div");
    +				div.innerHTML = content;
    +
    +				// Convert all middot paragraphs to li elements
    +				var className = tinyMCE.getParam("paste_unindented_list_class", "unIndentedList");
    +
    +				while (TinyMCE_PastePlugin._convertMiddots(div, "--list--")) ; // bull
    +				while (TinyMCE_PastePlugin._convertMiddots(div, middot, className)) ; // Middot
    +				while (TinyMCE_PastePlugin._convertMiddots(div, bull)) ; // bull
    +
    +				content = div.innerHTML;
    +			}
    +
    +			// Replace all headers with strong and fix some other issues
    +			if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {
    +				content = content.replace(/<h[1-6]>&#160;<\/h[1-6]>/gi, '<p>&#160;&#160;</p>');
    +				content = content.replace(/<h[1-6]>/gi, '<p><b>');
    +				content = content.replace(/<\/h[1-6]>/gi, '</b></p>');
    +				content = content.replace(/<b>&#160;<\/b>/gi, '<b>&#160;&#160;</b>');
    +				content = content.replace(/^(&#160;)*/gi, '');
    +			}
    +
    +			content = content.replace(/--list--/gi, ""); // Remove --list--
    +
    +			if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")
    +				content = eval(cb + "('after', content)");
    +
    +			// Insert cleaned content
    +			tinyMCE.execCommand("mceInsertContent", false, content);
    +
    +			if (tinyMCE.getParam('paste_force_cleanup_wordpaste', true))
    +				window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1); // Do normal cleanup detached from this thread
    +		}
    +	},
    +
    +	_reEscape : function(s) {
    +		var l = "?.\\*[](){}+^$:";
    +		var o = "";
    +
    +		for (var i=0; i<s.length; i++) {
    +			var c = s.charAt(i);
    +
    +			if (l.indexOf(c) != -1)
    +				o += '\\' + c;
    +			else
    +				o += c;
    +		}
    +
    +		return o;
    +	},
    +
    +	_convertMiddots : function(div, search, class_name) {
    +		var mdot = String.fromCharCode(183);
    +		var bull = String.fromCharCode(8226);
    +
    +		var nodes = div.getElementsByTagName("p");
    +		var prevul;
    +		for (var i=0; i<nodes.length; i++) {
    +			var p = nodes[i];
    +
    +			// Is middot
    +			if (p.innerHTML.indexOf(search) == 0) {
    +				var ul = document.createElement("ul");
    +
    +				if (class_name)
    +					ul.className = class_name;
    +
    +				// Add the first one
    +				var li = document.createElement("li");
    +				li.innerHTML = p.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&#160;', "gi"), '');
    +				ul.appendChild(li);
    +
    +				// Add the rest
    +				var np = p.nextSibling;
    +				while (np) {
    +			        // If the node is whitespace, then
    +			        // ignore it and continue on.
    +			        if (np.nodeType == 3 && new RegExp('^\\s$', 'm').test(np.nodeValue)) {
    +			                np = np.nextSibling;
    +			                continue;
    +			        }
    +
    +					if (search == mdot) {
    +					        if (np.nodeType == 1 && new RegExp('^o(\\s+|&#160;)').test(np.innerHTML)) {
    +					                // Second level of nesting
    +					                if (!prevul) {
    +					                        prevul = ul;
    +					                        ul = document.createElement("ul");
    +					                        prevul.appendChild(ul);
    +					                }
    +					                np.innerHTML = np.innerHTML.replace(/^o/, '');
    +					        } else {
    +					                // Pop the stack if we're going back up to the first level
    +					                if (prevul) {
    +					                        ul = prevul;
    +					                        prevul = null;
    +					                }
    +					                // Not element or middot paragraph
    +					                if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)
    +					                        break;
    +					        }
    +					} else {
    +					        // Not element or middot paragraph
    +					        if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)
    +					                break;
    +				        }
    +
    +					var cp = np.nextSibling;
    +					var li = document.createElement("li");
    +					li.innerHTML = np.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--|&#160;', "gi"), '');
    +					np.parentNode.removeChild(np);
    +					ul.appendChild(li);
    +					np = cp;
    +				}
    +
    +				p.parentNode.replaceChild(ul, p);
    +
    +				return true;
    +			}
    +		}
    +
    +		return false;
    +	},
    +
    +	_clipboardHTML : function() {
    +		var div = document.getElementById('_TinyMCE_clipboardHTML');
    +
    +		if (!div) {
    +			var div = document.createElement('DIV');
    +			div.id = '_TinyMCE_clipboardHTML';
    +
    +			with (div.style) {
    +				visibility = 'hidden';
    +				overflow = 'hidden';
    +				position = 'absolute';
    +				width = 1;
    +				height = 1;
    +			}
    +
    +			document.body.appendChild(div);
    +		}
    +
    +		div.innerHTML = '';
    +		var rng = document.body.createTextRange();
    +		rng.moveToElementText(div);
    +		rng.execCommand('Paste');
    +		var html = div.innerHTML;
    +		div.innerHTML = '';
    +		return html;
    +	}
    +};
    +
    +tinyMCE.addPlugin("paste", TinyMCE_PastePlugin);
     
    12231223
    12241224                                                if (!elm.hasChildNodes() && !re.test(elm.nodeName)) {
    12251225                                                        if (dre.test(elm.nodeName))
    1226                                                                 elm.innerHTML = "&nbsp;&nbsp;";
     1226                                                                elm.innerHTML = "&#160;&#160;";
    12271227                                                        else
    1228                                                                 elm.innerHTML = "&nbsp;";
     1228                                                                elm.innerHTML = "&#160;";
    12291229                                                }
    12301230                                        }
    12311231                                }
     
    20592059
    20602060                                html = doc.body.innerHTML;
    20612061                                html = tinyMCE.regexpReplace(html, "<o:p><\/o:p>", "<br />");
    2062                                 html = tinyMCE.regexpReplace(html, "<o:p>&nbsp;<\/o:p>", "");
     2062                                html = tinyMCE.regexpReplace(html, "<o:p>&#160;<\/o:p>", "");
    20632063                                html = tinyMCE.regexpReplace(html, "<st1:.*?>", "");
    20642064                                html = tinyMCE.regexpReplace(html, "<p><\/p>", "");
    20652065                                html = tinyMCE.regexpReplace(html, "<p><\/p>\r\n<p><\/p>", "");
    2066                                 html = tinyMCE.regexpReplace(html, "<p>&nbsp;<\/p>", "<br />");
     2066                                html = tinyMCE.regexpReplace(html, "<p>&#160;<\/p>", "<br />");
    20672067                                html = tinyMCE.regexpReplace(html, "<p>\s*(<p>\s*)?", "<p>");
    20682068                                html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "</p>");
    20692069                        }*/
     
    32853285
    32863286                                if (tinyMCE.isGecko || tinyMCE.isOpera) {
    32873287                                        try {
    3288                                                 // Is plain text or HTML, &amp;, &nbsp; etc will be encoded wrong in FF
     3288                                                // Is plain text or HTML, &amp;, &#160; etc will be encoded wrong in FF
    32893289                                                if (value.indexOf('<') == -1 && !value.match(/(&#38;|&#160;|&#60;|&#62;)/g)) {
    32903290                                                        var r = this.getRng();
    32913291                                                        var n = this.getDoc().createTextNode(tinyMCE.entityDecode(value));
     
    38783878/* file:jscripts/tiny_mce/classes/TinyMCE_Cleanup.class.js */
    38793879
    38803880TinyMCE_Engine.prototype.cleanupHTMLCode = function(s) {
    3881         s = s.replace(new RegExp('<p \\/>', 'gi'), '<p>&nbsp;</p>');
    3882         s = s.replace(new RegExp('<p>\\s*<\\/p>', 'gi'), '<p>&nbsp;</p>');
     3881        s = s.replace(new RegExp('<p \\/>', 'gi'), '<p>&#160;</p>');
     3882        s = s.replace(new RegExp('<p>\\s*<\\/p>', 'gi'), '<p>&#160;</p>');
    38833883
    38843884        // Fix close BR elements
    38853885        s = s.replace(new RegExp('<br>\\s*<\\/br>', 'gi'), '<br />');
     
    41654165
    41664166                                if (!np) {
    41674167                                        np = d.createElement('li');
    4168                                         np.innerHTML = '&nbsp;';
     4168                                        np.innerHTML = '&#160;';
    41694169                                        np.appendChild(n);
    41704170                                        p.insertBefore(np, p.firstChild);
    41714171                                } else
     
    42444244                t3 = new Date().getTime();
    42454245
    42464246        // Post processing
    4247         nb = tinyMCE.getParam('entity_encoding') == 'numeric' ? '&#160;' : '&nbsp;';
     4247        nb = tinyMCE.getParam('entity_encoding') == 'numeric' ? '&#160;' : '&#160;';
    42484248        h = h.replace(/<\/?(body|head|html)[^>]*>/gi, '');
    42494249        h = h.replace(new RegExp(' (rowspan="1"|colspan="1")', 'g'), '');
    42504250        h = h.replace(/<p><hr \/><\/p>/g, '<hr />');
    4251         h = h.replace(/<p>(&nbsp;|&#160;)<\/p><hr \/><p>(&nbsp;|&#160;)<\/p>/g, '<hr />');
     4251        h = h.replace(/<p>(&#160;|&#160;)<\/p><hr \/><p>(&#160;|&#160;)<\/p>/g, '<hr />');
    42524252        h = h.replace(/<td>\s*<br \/>\s*<\/td>/g, '<td>' + nb + '</td>');
    42534253        h = h.replace(/<p>\s*<br \/>\s*<\/p>/g, '<p>' + nb + '</p>');
    42544254        h = h.replace(/<br \/>$/, ''); // Remove last BR for Gecko
    42554255        h = h.replace(/<br \/><\/p>/g, '</p>'); // Remove last BR in P tags for Gecko
    4256         h = h.replace(/<p>\s*(&nbsp;|&#160;)\s*<br \/>\s*(&nbsp;|&#160;)\s*<\/p>/g, '<p>' + nb + '</p>');
    4257         h = h.replace(/<p>\s*(&nbsp;|&#160;)\s*<br \/>\s*<\/p>/g, '<p>' + nb + '</p>');
    4258         h = h.replace(/<p>\s*<br \/>\s*&nbsp;\s*<\/p>/g, '<p>' + nb + '</p>');
     4256        h = h.replace(/<p>\s*(&#160;|&#160;)\s*<br \/>\s*(&#160;|&#160;)\s*<\/p>/g, '<p>' + nb + '</p>');
     4257        h = h.replace(/<p>\s*(&#160;|&#160;)\s*<br \/>\s*<\/p>/g, '<p>' + nb + '</p>');
     4258        h = h.replace(/<p>\s*<br \/>\s*&#160;\s*<\/p>/g, '<p>' + nb + '</p>');
    42594259        h = h.replace(new RegExp('<a>(.*?)<\\/a>', 'g'), '$1');
    42604260        h = h.replace(/<p([^>]*)>\s*<\/p>/g, '<p$1>' + nb + '</p>');
    42614261
    42624262        // Clean body
    4263         if (/^\s*(<br \/>|<p>&nbsp;<\/p>|<p>&#160;<\/p>|<p><\/p>)\s*$/.test(h))
     4263        if (/^\s*(<br \/>|<p>&#160;<\/p>|<p>&#160;<\/p>|<p><\/p>)\s*$/.test(h))
    42644264                h = '';
    42654265
    42664266        // If preformatted
     
    42774277        }
    42784278
    42794279        if (s.force_br_newlines)
    4280                 h = h.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<br />');
     4280                h = h.replace(/<p>(&#160;|&#160;)<\/p>/g, '<br />');
    42814281
    42824282        // Call custom cleanup code
    42834283        h = tinyMCE._customCleanup(inst, on_save ? "get_from_editor" : "insert_to_editor", h);
     
    43784378                        s.extended_valid_elements = '';
    43794379                }
    43804380
    4381                 this.fillStr = s.entity_encoding == "named" ? "&nbsp;" : "&#160;";
     4381                this.fillStr = s.entity_encoding == "named" ? "&#160;" : "&#160;";
    43824382                this.idCount = 0;
    43834383        },
    43844384
     
    51125112                h = h.replace(/\s\/>/g, '>');
    51135113
    51145114                // Since MSIE auto generated emtpy P tags some times we must tell it to keep the real ones
    5115                 h = h.replace(/<p([^>]*)>\u00A0?<\/p>/gi, '<p$1 mce_keep="true">&nbsp;</p>'); // Keep empty paragraphs
    5116                 h = h.replace(/<p([^>]*)>\s*&nbsp;\s*<\/p>/gi, '<p$1 mce_keep="true">&nbsp;</p>'); // Keep empty paragraphs
    5117                 h = h.replace(/<p([^>]*)>\s+<\/p>/gi, '<p$1 mce_keep="true">&nbsp;</p>'); // Keep empty paragraphs
     5115                h = h.replace(/<p([^>]*)>\u00A0?<\/p>/gi, '<p$1 mce_keep="true">&#160;</p>'); // Keep empty paragraphs
     5116                h = h.replace(/<p([^>]*)>\s*&#160;\s*<\/p>/gi, '<p$1 mce_keep="true">&#160;</p>'); // Keep empty paragraphs
     5117                h = h.replace(/<p([^>]*)>\s+<\/p>/gi, '<p$1 mce_keep="true">&#160;</p>'); // Keep empty paragraphs
    51185118
    51195119                // Remove first comment
    51205120                e.innerHTML = tinyMCE.uniqueTag + h;
     
    67896789
    67906790                                // Check if it's a empty paragraph
    67916791                                if (isEmpty(paraBefore))
    6792                                         paraBefore.innerHTML = "&nbsp;";
     6792                                        paraBefore.innerHTML = "&#160;";
    67936793
    67946794                                // Check if it's a empty paragraph
    67956795                                if (isEmpty(paraAfter))
    6796                                         paraAfter.innerHTML = "&nbsp;";
     6796                                        paraAfter.innerHTML = "&#160;";
    67976797
    67986798                                // Delete old contents
    67996799                                rng.deleteContents();
     
    68156815
    68166816                                //tinyMCE.debug("1: ", paraBefore.innerHTML, paraAfter.innerHTML);
    68176817                        } else {
    6818                                 body.innerHTML = "<" + blockName + ">&nbsp;</" + blockName + "><" + blockName + ">&nbsp;</" + blockName + ">";
     6818                                body.innerHTML = "<" + blockName + ">&#160;</" + blockName + "><" + blockName + ">&#160;</" + blockName + ">";
    68196819                                paraAfter = body.childNodes[1];
    68206820                        }
    68216821
     
    68536853
    68546854                // Check if it's a empty paragraph
    68556855                if (isEmpty(paraBefore))
    6856                         paraBefore.innerHTML = "&nbsp;";
     6856                        paraBefore.innerHTML = "&#160;";
    68576857
    68586858                // Check if it's a empty paragraph
    68596859                if (isEmpty(paraAfter))
    6860                         paraAfter.innerHTML = "&nbsp;";
     6860                        paraAfter.innerHTML = "&#160;";
    68616861
    68626862                // Create a range around everything
    68636863                rng = doc.createRange();
  • wp-includes/js/tinymce/wp-mce-help.php

     
    155155                <tr><th>k</th><td><strike><?php _e('Strikethrough') ?></strike></td><th>r</th><td class="align right"><?php _e('Align Right') ?></td></tr>
    156156                <tr><th>l</th><td><b>&bull;</b> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert <span class="anchor">Anchor</span>') ?></td></tr>
    157157                <tr><th>o</th><td>1. <?php _e('List') ?></td><th>s</th><td><?php _e('Unlink Anchor') ?></td></tr>
    158                 <tr><th>q</th><td>&rarr;<?php _e('Quote/Indent') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
    159                 <tr><th>w</th><td>&larr;<?php _e('Unquote/Outdent') ?></td><th>t</th><td><?php _e('Insert "More" Tag') ?></td></tr>
     158                <tr><th>q</th><td>&#8594;<?php _e('Quote/Indent') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
     159                <tr><th>w</th><td>&#8592;<?php _e('Unquote/Outdent') ?></td><th>t</th><td><?php _e('Insert "More" Tag') ?></td></tr>
    160160                <tr><th>u</th><td><?php _e('Undo') ?></td><th>e</th><td><?php _e('Edit HTML') ?></td></tr>
    161161                <tr><th>y</th><td><?php _e('Redo') ?></td><th>h</th><td><?php _e('Open Help') ?></td></tr>
    162162        </table>
  • wp-includes/js/tinymce/themes/advanced/jscripts/charmap.js

     
    292292        if (cols % charsPerRow > 0) {
    293293                var padd = charsPerRow - (cols % charsPerRow);
    294294                for (var i=0; i<padd-1; i++)
    295                         html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&nbsp;</td>';
     295                        html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&#160;</td>';
    296296        }
    297297        html += '</tr></table>';
    298298        document.write(html);
  • wp-includes/js/tinymce/themes/advanced/about.htm

     
    3434                                        <div id="plugintablecontainer">
    3535                                        </div>
    3636
    37                                         <p>&nbsp;</p>
     37                                        <p>&#160;</p>
    3838                                </div>
    3939                        </div>
    4040
  • wp-includes/js/tinymce/themes/advanced/charmap.htm

     
    1818        <td width="100" align="center" valign="top">
    1919            <table border="0" cellpadding="0" cellspacing="0" width="100" style="height: 100px">
    2020                <tr>
    21                     <td class="charmapOver" style="font-size: 40px; height:80px;" id="codeV">&nbsp;</td>
     21                    <td class="charmapOver" style="font-size: 40px; height:80px;" id="codeV">&#160;</td>
    2222                </tr>
    2323                <tr>
    24                     <td style="font-size: 10px; font-family: Arial, Helvetica, sans-serif; text-align:center;" id="codeN">&nbsp;</td>
     24                    <td style="font-size: 10px; font-family: Arial, Helvetica, sans-serif; text-align:center;" id="codeN">&#160;</td>
    2525                </tr>
    2626            </table>
    2727        </td>
     
    3333                    <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">HTML-Code</td>
    3434                </tr>
    3535                <tr>
    36                     <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&nbsp;</td>
     36                    <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&#160;</td>
    3737                </tr>
    3838                <tr>
    39                     <td style="font-size: 1px;">&nbsp;</td>
     39                    <td style="font-size: 1px;">&#160;</td>
    4040                </tr>
    4141                <tr>
    4242                    <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">NUM-Code</td>
    4343                </tr>
    4444                <tr>
    45                     <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&nbsp;</td>
     45                    <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&#160;</td>
    4646                </tr>
    4747            </table>
    4848        </td>
  • wp-includes/js/tinymce/themes/advanced/link.htm

     
    2424            <td><table border="0" cellspacing="0" cellpadding="0">
    2525                                  <tr>
    2626                                        <td><input id="href" name="href" type="text" value="" style="width: 200px" /></td>
    27                                         <td id="hrefbrowsercontainer">&nbsp;</td>
     27                                        <td id="hrefbrowsercontainer">&#160;</td>
    2828                                  </tr>
    2929                                </table></td>
    3030          </tr>
  • wp-includes/js/tinymce/themes/advanced/image.htm

     
    2323            <td><table border="0" cellspacing="0" cellpadding="0">
    2424                <tr>
    2525                  <td><input id="src" name="src" type="text" value="" style="width: 200px" onchange="getImageData();"></td>
    26                   <td id="srcbrowsercontainer">&nbsp;</td>
     26                  <td id="srcbrowsercontainer">&#160;</td>
    2727                </tr>
    2828              </table></td>
    2929          </tr>
  • wp-includes/js/tinymce/themes/advanced/editor_template.js

     
    909909                                html += '<a title="' + nodeData + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" target="_self" class="mcePathItem">' + nodeName + '</a>';
    910910
    911911                                if (i > 0) {
    912                                         html += " &raquo; ";
     912                                        html += " &#187; ";
    913913                                }
    914914                        }
    915915
  • wp-includes/classes.php

     
    536536        var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); //TODO: decouple this
    537537
    538538        function start_el($output, $page, $depth, $args) {
    539                                 $pad = str_repeat('&nbsp;', $depth * 3);
     539                                $pad = str_repeat('&#160;', $depth * 3);
    540540
    541541                                $output .= "\t<option value=\"$page->ID\"";
    542542                                if ( $page->ID == $args['selected'] )
     
    651651        var $db_fields = array ('parent' => 'category_parent', 'id' => 'cat_ID'); //TODO: decouple this
    652652
    653653        function start_el($output, $category, $depth, $args) {
    654                 $pad = str_repeat('&nbsp;', $depth * 3);
     654                $pad = str_repeat('&#160;', $depth * 3);
    655655
    656656                $cat_name = apply_filters('list_cats', $category->cat_name, $category);
    657657                $output .= "\t<option value=\"".$category->cat_ID."\"";
     
    660660                $output .= '>';
    661661                $output .= $pad.$cat_name;
    662662                if ( $args['show_count'] )
    663                         $output .= '&nbsp;&nbsp;('. $category->category_count .')';
     663                        $output .= '&#160;&#160;('. $category->category_count .')';
    664664                if ( $args['show_last_update'] ) {
    665665                        $format = 'Y-m-d';
    666                         $output .= '&nbsp;&nbsp;' . gmdate($format, $category->last_update_timestamp);
     666                        $output .= '&#160;&#160;' . gmdate($format, $category->last_update_timestamp);
    667667                }
    668668                $output .= "</option>\n";
    669669
  • wp-includes/functions.php

     
    12071207        header('Content-Type: text/html; charset=utf-8');
    12081208
    12091209        if ( empty($title) )
    1210                 $title = __('WordPress &rsaquo; Error');
     1210                $title = __('WordPress &#8250; Error');
    12111211
    12121212        if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') )
    12131213                $admin_dir = '';
  • wp-content/themes/classic/comments.php

     
    44
    55<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
    66<?php if ( comments_open() ) : ?>
    7         <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
     7        <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&#187;</a>
    88<?php endif; ?>
    99</h2>
    1010
     
    4242
    4343<?php if ( $user_ID ) : ?>
    4444
    45 <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="<?php _e('Log out of this account') ?>">Logout &raquo;</a></p>
     45<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="<?php _e('Log out of this account') ?>">Logout &#187;</a></p>
    4646
    4747<?php else : ?>
    4848
  • wp-content/themes/classic/index.php

     
    2727<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    2828<?php endif; ?>
    2929
    30 <?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
     30<?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &#187;')); ?>
    3131
    3232<?php get_footer(); ?>
  • wp-content/themes/default/search.php

     
    88
    99                <div class="navigation">
    1010                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    11                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
     11                        <div class="alignright"><?php previous_posts_link('Next Entries &#187;') ?></div>
    1212                </div>
    1313
    1414
     
    2525
    2626                <div class="navigation">
    2727                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    28                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
     28                        <div class="alignright"><?php previous_posts_link('Next Entries &#187;') ?></div>
    2929                </div>
    3030
    3131        <?php else : ?>
  • wp-content/themes/default/index.php

     
    1111                                <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    1212
    1313                                <div class="entry">
    14                                         <?php the_content('Read the rest of this entry &raquo;'); ?>
     14                                        <?php the_content('Read the rest of this entry &#187;'); ?>
    1515                                </div>
    1616
    1717                                <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
     
    2121
    2222                <div class="navigation">
    2323                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    24                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
     24                        <div class="alignright"><?php previous_posts_link('Next Entries &#187;') ?></div>
    2525                </div>
    2626
    2727        <?php else : ?>
  • wp-content/themes/default/functions.php

     
    1 <?php
    21
    3 
    42
    5 function kubrick_head() {
    63
    7         $head = "<style type='text/css'>\n<!--";
    84
    9         $output = '';
    105
    11         if ( kubrick_header_image() ) {
    126
    13                 $url =  kubrick_header_image_url() ;
    147
    15                 $output .= "#header { background: url('$url') no-repeat bottom center; }\n";
    168
    17         }
    189
    19         if ( false !== ( $color = kubrick_header_color() ) ) {
    2010
    21                 $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";
    2211
    23         }
    2412
    25         if ( false !== ( $display = kubrick_header_display() ) ) {
    2613
    27                 $output .= "#headerimg { display: $display }\n";
    2814
    29         }
    3015
    31         $foot = "--></style>\n";
    3216
    33         if ( '' != $output )
    3417
    35                 echo $head . $output . $foot;
    3618
    37 }
    3819
    39 
    4020
    41 add_action('wp_head', 'kubrick_head');
    4221
    43 
    4422
    45 function kubrick_header_image() {
    4623
    47         return apply_filters('kubrick_header_image', get_option('kubrick_header_image'));
    4824
    49 }
    5025
    51 
    5226
    53 function kubrick_upper_color() {
    5427
    55         if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {
    5628
    57                 parse_str(substr($url, strpos($url, '?') + 1), $q);
    5829
    59                 return $q['upper'];
    6030
    61         } else
    6231
    63                 return '69aee7';
    6432
    65 }
    6633
    67 
    6834
    69 function kubrick_lower_color() {
    7035
    71         if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {
    7236
    73                 parse_str(substr($url, strpos($url, '?') + 1), $q);
    7437
    75                 return $q['lower'];
    7638
    77         } else
    7839
    79                 return '4180b6';
    8040
    81 }
    8241
    83 
    8442
    85 function kubrick_header_image_url() {
    8643
    87         if ( $image = kubrick_header_image() )
    8844
    89                 $url = get_template_directory_uri() . '/images/' . $image;
    9045
    91         else
    9246
    93                 $url = get_template_directory_uri() . '/images/kubrickheader.jpg';
    9447
    95 
    9648
    97         return $url;
    9849
    99 }
    10050
    101 
    10251
    103 function kubrick_header_color() {
    10452
    105         return apply_filters('kubrick_header_color', get_option('kubrick_header_color'));
    10653
    107 }
    10854
    109 
    11055
    111 function kubrick_header_color_string() {
    11256
    113         $color = kubrick_header_color();
    11457
    115         if ( false === $color )
    11658
    117                 return 'white';
    11859
    119 
    12060
    121         return $color;
    12261
    123 }
    12462
    125 
    12663
    127 function kubrick_header_display() {
    12864
    129         return apply_filters('kubrick_header_display', get_option('kubrick_header_display'));
    13065
    131 }
    13266
    133 
    13467
    135 function kubrick_header_display_string() {
    13668
    137         $display = kubrick_header_display();
    13869
    139         return $display ? $display : 'inline';
    14070
    141 }
    14271
    143 
    14472
    145 add_action('admin_menu', 'kubrick_add_theme_page');
    14673
    147 
    14874
    149 function kubrick_add_theme_page() {
    15075
    151         if ( $_GET['page'] == basename(__FILE__) ) {
    15276
    153                 if ( 'save' == $_REQUEST['action'] ) {
    15477
    155                         if ( isset($_REQUEST['njform']) ) {
    15678
    157                                 if ( isset($_REQUEST['defaults']) ) {
    15879
    159                                         delete_option('kubrick_header_image');
    16080
    161                                         delete_option('kubrick_header_color');
    16281
    163                                         delete_option('kubrick_header_display');
    16482
    165                                 } else {
    16683
    167                                         if ( '' == $_REQUEST['njfontcolor'] )
    16884
    169                                                 delete_option('kubrick_header_color');
    17085
    171                                         else
    17286
    173                                                 update_option('kubrick_header_color', $_REQUEST['njfontcolor']);
    17487
    175 
    17688
    177                                         if ( preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njuppercolor'], $uc) && preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njlowercolor'], $lc) ) {
    17889
    179                                                 $uc = ( strlen($uc[0]) == 3 ) ? $uc[0]{0}.$uc[0]{0}.$uc[0]{1}.$uc[0]{1}.$uc[0]{2}.$uc[0]{2} : $uc[0];
    18090
    181                                                 $lc = ( strlen($lc[0]) == 3 ) ? $lc[0]{0}.$lc[0]{0}.$lc[0]{1}.$lc[0]{1}.$lc[0]{2}.$lc[0]{2} : $lc[0];
    18291
    183                                                 update_option('kubrick_header_image', "header-img.php?upper=$uc&amp;lower=$lc");
    18492
    185                                         }
    18693
    187 
    18894
    189                                         if ( isset($_REQUEST['toggledisplay']) ) {
    19095
    191                                                 if ( false === get_option('kubrick_header_display') )
    19296
    193                                                         update_option('kubrick_header_display', 'none');
    19497
    195                                                 else
    19698
    197                                                         delete_option('kubrick_header_display');
    19899
    199                                         }
    200100
    201                                 }
    202101
    203                         } else {
    204102
    205 
    206103
    207                                 if ( isset($_REQUEST['headerimage']) ) {
    208104
    209                                         if ( '' == $_REQUEST['headerimage'] )
    210105
    211                                                 delete_option('kubrick_header_image');
    212106
    213                                         else
    214107
    215                                                 update_option('kubrick_header_image', $_REQUEST['headerimage']);
    216108
    217                                 }
    218109
    219 
    220110
    221                                 if ( isset($_REQUEST['fontcolor']) ) {
    222111
    223                                         if ( '' == $_REQUEST['fontcolor'] )
    224112
    225                                                 delete_option('kubrick_header_color');
    226113
    227                                         else
    228114
    229                                                 update_option('kubrick_header_color', $_REQUEST['fontcolor']);
    230115
    231                                 }
    232116
    233 
    234117
    235                                 if ( isset($_REQUEST['fontdisplay']) ) {
    236118
    237                                         if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )
    238119
    239                                                 delete_option('kubrick_header_display');
    240120
    241                                         else
    242121
    243                                                 update_option('kubrick_header_display', 'none');
    244122
    245                                 }
    246123
    247                         }
    248124
    249                         //print_r($_REQUEST);
    250125
    251                         wp_redirect("themes.php?page=functions.php&saved=true");
    252126
    253                         die;
    254127
    255                 }
    256128
    257                 add_action('admin_head', 'kubrick_theme_page_head');
    258129
    259         }
    260130
    261         add_theme_page('Customize Header', 'Header Image and Color', 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
    262131
    263 }
    264132
    265 
    266133
    267 function kubrick_theme_page_head() {
    268134
    269 ?>
    270135
    271 <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>
    272136
    273 <script type='text/javascript'>
    274137
    275 // <![CDATA[
    276138
    277         function pickColor(color) {
    278139
    279                 ColorPicker_targetInput.value = color;
    280140
    281                 kUpdate(ColorPicker_targetInput.id);
    282141
    283         }
    284142
    285         function PopupWindow_populate(contents) {
    286143
    287                 contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" value="Close Color Picker" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';
    288144
    289                 this.contents = contents;
    290145
    291                 this.populated = false;
    292146
    293         }
    294147
    295         function PopupWindow_hidePopup(magicword) {
    296148
    297                 if ( magicword != 'prettyplease' )
    298149
    299                         return false;
    300150
    301                 if (this.divName != null) {
    302151
    303                         if (this.use_gebi) {
    304152
    305                                 document.getElementById(this.divName).style.visibility = "hidden";
    306153
    307                         }
    308154
    309                         else if (this.use_css) {
    310155
    311                                 document.all[this.divName].style.visibility = "hidden";
    312156
    313                         }
    314157
    315                         else if (this.use_layers) {
    316158
    317                                 document.layers[this.divName].visibility = "hidden";
    318159
    319                         }
    320160
    321                 }
    322161
    323                 else {
    324162
    325                         if (this.popupWindow && !this.popupWindow.closed) {
    326163
    327                                 this.popupWindow.close();
    328164
    329                                 this.popupWindow = null;
    330165
    331                         }
    332166
    333                 }
    334167
    335                 return false;
    336168
    337         }
    338169
    339         function colorSelect(t,p) {
    340170
    341                 if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" )
    342171
    343                         cp.hidePopup('prettyplease');
    344172
    345                 else {
    346173
    347                         cp.p = p;
    348174
    349                         cp.select(t,p);
    350175
    351                 }
    352176
    353         }
    354177
    355         function PopupWindow_setSize(width,height) {
    356178
    357                 this.width = 162;
    358179
    359                 this.height = 210;
    360180
    361         }
    362181
    363 
    364182
    365         var cp = new ColorPicker();
    366183
    367         function advUpdate(val, obj) {
    368184
    369                 document.getElementById(obj).value = val;
    370185
    371                 kUpdate(obj);
    372186
    373         }
    374187
    375         function kUpdate(oid) {
    376188
    377                 if ( 'uppercolor' == oid || 'lowercolor' == oid ) {
    378189
    379                         uc = document.getElementById('uppercolor').value.replace('#', '');
    380190
    381                         lc = document.getElementById('lowercolor').value.replace('#', '');
    382191
    383                         hi = document.getElementById('headerimage');
    384192
    385                         hi.value = 'header-img.php?upper='+uc+'&lower='+lc;
    386193
    387                         document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat';
    388194
    389                         document.getElementById('advuppercolor').value = '#'+uc;
    390195
    391                         document.getElementById('advlowercolor').value = '#'+lc;
    392196
    393                 }
    394197
    395                 if ( 'fontcolor' == oid ) {
    396198
    397                         document.getElementById('header').style.color = document.getElementById('fontcolor').value;
    398199
    399                         document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value;
    400200
    401                 }
    402201
    403                 if ( 'fontdisplay' == oid ) {
    404202
    405                         document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    406203
    407                 }
    408204
    409         }
    410205
    411         function toggleDisplay() {
    412206
    413                 td = document.getElementById('fontdisplay');
    414207
    415                 td.value = ( td.value == 'none' ) ? 'inline' : 'none';
    416208
    417                 kUpdate('fontdisplay');
    418209
    419         }
    420210
    421         function toggleAdvanced() {
    422211
    423                 a = document.getElementById('jsAdvanced');
    424212
    425                 if ( a.style.display == 'none' )
    426213
    427                         a.style.display = 'block';
    428214
    429                 else
    430215
    431                         a.style.display = 'none';
    432216
    433         }
    434217
    435         function kDefaults() {
    436218
    437                 document.getElementById('headerimage').value = '';
    438219
    439                 document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7';
    440220
    441                 document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6';
    442221
    443                 document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat';
    444222
    445                 document.getElementById('header').style.color = '#FFFFFF';
    446223
    447                 document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '';
    448224
    449                 document.getElementById('fontdisplay').value = 'inline';
    450225
    451                 document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    452226
    453         }
    454227
    455         function kRevert() {
    456228
    457                 document.getElementById('headerimage').value = '<?php echo kubrick_header_image(); ?>';
    458229
    459                 document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo kubrick_upper_color(); ?>';
    460230
    461                 document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo kubrick_lower_color(); ?>';
    462231
    463                 document.getElementById('header').style.background = 'url("<?php echo kubrick_header_image_url(); ?>") center no-repeat';
    464232
    465                 document.getElementById('header').style.color = '';
    466233
    467                 document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo kubrick_header_color_string(); ?>';
    468234
    469                 document.getElementById('fontdisplay').value = '<?php echo kubrick_header_display_string(); ?>';
    470235
    471                 document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    472236
    473         }
    474237
    475         function kInit() {
    476238
    477                 document.getElementById('jsForm').style.display = 'block';
    478239
    479                 document.getElementById('nonJsForm').style.display = 'none';
    480240
    481         }
    482241
    483         addLoadEvent(kInit);
    484242
    485 // ]]>
    486243
    487 </script>
    488244
    489 <style type='text/css'>
    490245
    491         #headwrap {
    492246
    493                 text-align: center;
    494247
    495         }
    496248
    497         #kubrick-header {
    498249
    499                 font-size: 80%;
    500250
    501         }
    502251
    503         #kubrick-header .hibrowser {
    504252
    505                 width: 780px;
    506253
    507                 height: 260px;
    508254
    509                 overflow: scroll;
    510255
    511         }
    512256
    513         #kubrick-header #hitarget {
    514257
    515                 display: none;
    516258
    517         }
    518259
    519         #kubrick-header #header h1 {
    520260
    521                 font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
    522261
    523                 font-weight: bold;
    524262
    525                 font-size: 4em;
    526263
    527                 text-align: center;
    528264
    529                 padding-top: 70px;
    530265
    531                 margin: 0;
    532266
    533         }
    534267
    535 
    536268
    537         #kubrick-header #header .description {
    538269
    539                 font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    540270
    541                 font-size: 1.2em;
    542271
    543                 text-align: center;
    544272
    545         }
    546273
    547         #kubrick-header #header {
    548274
    549                 text-decoration: none;
    550275
    551                 color: <?php echo kubrick_header_color_string(); ?>;
    552276
    553                 padding: 0;
    554277
    555                 margin: 0;
    556278
    557                 height: 200px;
    558279
    559                 text-align: center;
    560280
    561                 background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat;
    562281
    563         }
    564282
    565         #kubrick-header #headerimg {
    566283
    567                 margin: 0;
    568284
    569                 height: 200px;
    570285
    571                 width: 100%;
    572286
    573                 display: <?php echo kubrick_header_display_string(); ?>;
    574287
    575         }
    576288
    577         #jsForm {
    578289
    579                 display: none;
    580290
    581                 text-align: center;
    582291
    583         }
    584292
    585         #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button {
    586293
    587                 padding: 0px;
    588294
    589                 margin: 0px;
    590295
    591         }
    592296
    593         #advanced {
    594297
    595                 text-align: center;
    596298
    597                 width: 620px;
    598299
    599         }
    600300
    601         html>body #advanced {
    602301
    603                 text-align: center;
    604302
    605                 position: relative;
    606303
    607                 left: 50%;
    608304
    609                 margin-left: -380px;
    610305
    611         }
    612306
    613         #jsAdvanced {
    614307
    615                 text-align: right;
    616308
    617         }
    618309
    619         #nonJsForm {
    620310
    621                 position: relative;
    622311
    623                 text-align: left;
    624312
    625                 margin-left: -370px;
    626313
    627                 left: 50%;
    628314
    629         }
    630315
    631         #nonJsForm label {
    632316
    633                 padding-top: 6px;
    634317
    635                 padding-right: 5px;
    636318
    637                 float: left;
    638319
    639                 width: 100px;
    640320
    641                 text-align: right;
    642321
    643         }
    644322
    645         .defbutton {
    646323
    647                 font-weight: bold;
    648324
    649         }
    650325
    651         .zerosize {
    652326
    653                 width: 0px;
    654327
    655                 height: 0px;
    656328
    657                 overflow: hidden;
    658329
    659         }
    660330
    661         #colorPickerDiv a, #colorPickerDiv a:hover {
    662331
    663                 padding: 1px;
    664332
    665                 text-decoration: none;
    666333
    667                 border-bottom: 0px;
    668334
    669         }
    670335
    671 </style>
    672336
    673 <?php
    674337
    675 }
    676338
    677 
    678339
    679 function kubrick_theme_page() {
    680340
    681         if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>';
    682341
    683 ?>
    684342
    685 <div class='wrap'>
    686343
    687         <div id="kubrick-header">
    688344
    689                 <h2>Header Image and Color</h2>
    690345
    691                 <div id="headwrap">
    692346
    693                         <div id="header">
    694347
    695                                 <div id="headerimg">
    696348
    697                                         <h1><?php bloginfo('name'); ?></h1>
    698349
    699                                         <div class="description"><?php bloginfo('description'); ?></div>
    700350
    701                                 </div>
    702351
    703                         </div>
    704352
    705                 </div>
    706353
    707                 <br />
    708354
    709                 <div id="nonJsForm">
    710355
    711                         <form method="post" action="">
    712356
    713                                 <div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>
    714357
    715                                 <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 />
    716358
    717                                 <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 />
    718359
    719                                 <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 />
    720360
    721                                 <input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" />
    722361
    723                                 <input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />
    724362
    725                                 <input type="submit" name="defaults" value="Use Defaults" />
    726363
    727                                 <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;Save&nbsp;&nbsp;" />
    728364
    729                                 <input type="hidden" name="action" value="save" />
    730365
    731                                 <input type="hidden" name="njform" value="true" />
    732366
    733                         </form>
    734367
    735                 </div>
    736368
    737                 <div id="jsForm">
    738369
    739                         <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
    740370
    741                                 <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input>
    742371
    743                                 <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input>
    744372
    745                                 <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input>
    746373
    747                                 <input type="button" name="revert" value="Revert" onclick="kRevert()" />
    748374
    749                                 <input type="button" value="Advanced" onclick="toggleAdvanced()" />
    750375
    751                                 <input type="hidden" name="action" value="save" />
    752376
    753                                 <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" />
    754377
    755                                 <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo kubrick_header_color(); ?>" />
    756378
    757                                 <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo kubrick_upper_color(); ?>" />
    758379
    759                                 <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" />
    760380
    761                                 <input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" />
    762381
    763                                 <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header &raquo;'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
    764382
    765                         </form>
    766383
    767                         <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
    768384
    769                         <div id="advanced">
    770385
    771                                 <form id="jsAdvanced" style="display:none;" action="">
    772386
    773                                         <label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br />
    774387
    775                                         <label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br />
    776388
    777                                         <label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br />
    778389
    779                                         <input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br />
    780390
    781                                         <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br />
    782391
    783                                 </form>
    784392
    785                         </div>
    786393
    787                 </div>
    788394
    789         </div>
    790395
    791 </div>
    792396
    793 <?php } ?>
    794397
  • wp-content/themes/default/page.php

    +<?php
    +
    +function kubrick_head() {
    +	$head = "<style type='text/css'>\n<!--";
    +	$output = '';
    +	if ( kubrick_header_image() ) {
    +		$url =  kubrick_header_image_url() ;
    +		$output .= "#header { background: url('$url') no-repeat bottom center; }\n";
    +	}
    +	if ( false !== ( $color = kubrick_header_color() ) ) {
    +		$output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";
    +	}
    +	if ( false !== ( $display = kubrick_header_display() ) ) {
    +		$output .= "#headerimg { display: $display }\n";
    +	}
    +	$foot = "--></style>\n";
    +	if ( '' != $output )
    +		echo $head . $output . $foot;
    +}
    +
    +add_action('wp_head', 'kubrick_head');
    +
    +function kubrick_header_image() {
    +	return apply_filters('kubrick_header_image', get_option('kubrick_header_image'));
    +}
    +
    +function kubrick_upper_color() {
    +	if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {
    +		parse_str(substr($url, strpos($url, '?') + 1), $q);
    +		return $q['upper'];
    +	} else
    +		return '69aee7';
    +}
    +
    +function kubrick_lower_color() {
    +	if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {
    +		parse_str(substr($url, strpos($url, '?') + 1), $q);
    +		return $q['lower'];
    +	} else
    +		return '4180b6';
    +}
    +
    +function kubrick_header_image_url() {
    +	if ( $image = kubrick_header_image() )
    +		$url = get_template_directory_uri() . '/images/' . $image;
    +	else
    +		$url = get_template_directory_uri() . '/images/kubrickheader.jpg';
    +
    +	return $url;
    +}
    +
    +function kubrick_header_color() {
    +	return apply_filters('kubrick_header_color', get_option('kubrick_header_color'));
    +}
    +
    +function kubrick_header_color_string() {
    +	$color = kubrick_header_color();
    +	if ( false === $color )
    +		return 'white';
    +
    +	return $color;
    +}
    +
    +function kubrick_header_display() {
    +	return apply_filters('kubrick_header_display', get_option('kubrick_header_display'));
    +}
    +
    +function kubrick_header_display_string() {
    +	$display = kubrick_header_display();
    +	return $display ? $display : 'inline';
    +}
    +
    +add_action('admin_menu', 'kubrick_add_theme_page');
    +
    +function kubrick_add_theme_page() {
    +	if ( $_GET['page'] == basename(__FILE__) ) {
    +		if ( 'save' == $_REQUEST['action'] ) {
    +			if ( isset($_REQUEST['njform']) ) {
    +				if ( isset($_REQUEST['defaults']) ) {
    +					delete_option('kubrick_header_image');
    +					delete_option('kubrick_header_color');
    +					delete_option('kubrick_header_display');
    +				} else {
    +					if ( '' == $_REQUEST['njfontcolor'] )
    +						delete_option('kubrick_header_color');
    +					else
    +						update_option('kubrick_header_color', $_REQUEST['njfontcolor']);
    +
    +					if ( preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njuppercolor'], $uc) && preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njlowercolor'], $lc) ) {
    +						$uc = ( strlen($uc[0]) == 3 ) ? $uc[0]{0}.$uc[0]{0}.$uc[0]{1}.$uc[0]{1}.$uc[0]{2}.$uc[0]{2} : $uc[0];
    +						$lc = ( strlen($lc[0]) == 3 ) ? $lc[0]{0}.$lc[0]{0}.$lc[0]{1}.$lc[0]{1}.$lc[0]{2}.$lc[0]{2} : $lc[0];
    +						update_option('kubrick_header_image', "header-img.php?upper=$uc&amp;lower=$lc");
    +					}
    +
    +					if ( isset($_REQUEST['toggledisplay']) ) {
    +						if ( false === get_option('kubrick_header_display') )
    +							update_option('kubrick_header_display', 'none');
    +						else
    +							delete_option('kubrick_header_display');
    +					}
    +				}
    +			} else {
    +
    +				if ( isset($_REQUEST['headerimage']) ) {
    +					if ( '' == $_REQUEST['headerimage'] )
    +						delete_option('kubrick_header_image');
    +					else
    +						update_option('kubrick_header_image', $_REQUEST['headerimage']);
    +				}
    +
    +				if ( isset($_REQUEST['fontcolor']) ) {
    +					if ( '' == $_REQUEST['fontcolor'] )
    +						delete_option('kubrick_header_color');
    +					else
    +						update_option('kubrick_header_color', $_REQUEST['fontcolor']);
    +				}
    +
    +				if ( isset($_REQUEST['fontdisplay']) ) {
    +					if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )
    +						delete_option('kubrick_header_display');
    +					else
    +						update_option('kubrick_header_display', 'none');
    +				}
    +			}
    +			//print_r($_REQUEST);
    +			wp_redirect("themes.php?page=functions.php&saved=true");
    +			die;
    +		}
    +		add_action('admin_head', 'kubrick_theme_page_head');
    +	}
    +	add_theme_page('Customize Header', 'Header Image and Color', 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
    +}
    +
    +function kubrick_theme_page_head() {
    +?>
    +<script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>
    +<script type='text/javascript'>
    +// <![CDATA[
    +	function pickColor(color) {
    +		ColorPicker_targetInput.value = color;
    +		kUpdate(ColorPicker_targetInput.id);
    +	}
    +	function PopupWindow_populate(contents) {
    +		contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" value="Close Color Picker" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';
    +		this.contents = contents;
    +		this.populated = false;
    +	}
    +	function PopupWindow_hidePopup(magicword) {
    +		if ( magicword != 'prettyplease' )
    +			return false;
    +		if (this.divName != null) {
    +			if (this.use_gebi) {
    +				document.getElementById(this.divName).style.visibility = "hidden";
    +			}
    +			else if (this.use_css) {
    +				document.all[this.divName].style.visibility = "hidden";
    +			}
    +			else if (this.use_layers) {
    +				document.layers[this.divName].visibility = "hidden";
    +			}
    +		}
    +		else {
    +			if (this.popupWindow && !this.popupWindow.closed) {
    +				this.popupWindow.close();
    +				this.popupWindow = null;
    +			}
    +		}
    +		return false;
    +	}
    +	function colorSelect(t,p) {
    +		if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" )
    +			cp.hidePopup('prettyplease');
    +		else {
    +			cp.p = p;
    +			cp.select(t,p);
    +		}
    +	}
    +	function PopupWindow_setSize(width,height) {
    +		this.width = 162;
    +		this.height = 210;
    +	}
    +
    +	var cp = new ColorPicker();
    +	function advUpdate(val, obj) {
    +		document.getElementById(obj).value = val;
    +		kUpdate(obj);
    +	}
    +	function kUpdate(oid) {
    +		if ( 'uppercolor' == oid || 'lowercolor' == oid ) {
    +			uc = document.getElementById('uppercolor').value.replace('#', '');
    +			lc = document.getElementById('lowercolor').value.replace('#', '');
    +			hi = document.getElementById('headerimage');
    +			hi.value = 'header-img.php?upper='+uc+'&lower='+lc;
    +			document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat';
    +			document.getElementById('advuppercolor').value = '#'+uc;
    +			document.getElementById('advlowercolor').value = '#'+lc;
    +		}
    +		if ( 'fontcolor' == oid ) {
    +			document.getElementById('header').style.color = document.getElementById('fontcolor').value;
    +			document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value;
    +		}
    +		if ( 'fontdisplay' == oid ) {
    +			document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    +		}
    +	}
    +	function toggleDisplay() {
    +		td = document.getElementById('fontdisplay');
    +		td.value = ( td.value == 'none' ) ? 'inline' : 'none';
    +		kUpdate('fontdisplay');
    +	}
    +	function toggleAdvanced() {
    +		a = document.getElementById('jsAdvanced');
    +		if ( a.style.display == 'none' )
    +			a.style.display = 'block';
    +		else
    +			a.style.display = 'none';
    +	}
    +	function kDefaults() {
    +		document.getElementById('headerimage').value = '';
    +		document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7';
    +		document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6';
    +		document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat';
    +		document.getElementById('header').style.color = '#FFFFFF';
    +		document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '';
    +		document.getElementById('fontdisplay').value = 'inline';
    +		document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    +	}
    +	function kRevert() {
    +		document.getElementById('headerimage').value = '<?php echo kubrick_header_image(); ?>';
    +		document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo kubrick_upper_color(); ?>';
    +		document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo kubrick_lower_color(); ?>';
    +		document.getElementById('header').style.background = 'url("<?php echo kubrick_header_image_url(); ?>") center no-repeat';
    +		document.getElementById('header').style.color = '';
    +		document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo kubrick_header_color_string(); ?>';
    +		document.getElementById('fontdisplay').value = '<?php echo kubrick_header_display_string(); ?>';
    +		document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
    +	}
    +	function kInit() {
    +		document.getElementById('jsForm').style.display = 'block';
    +		document.getElementById('nonJsForm').style.display = 'none';
    +	}
    +	addLoadEvent(kInit);
    +// ]]>
    +</script>
    +<style type='text/css'>
    +	#headwrap {
    +		text-align: center;
    +	}
    +	#kubrick-header {
    +		font-size: 80%;
    +	}
    +	#kubrick-header .hibrowser {
    +		width: 780px;
    +		height: 260px;
    +		overflow: scroll;
    +	}
    +	#kubrick-header #hitarget {
    +		display: none;
    +	}
    +	#kubrick-header #header h1 {
    +		font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
    +		font-weight: bold;
    +		font-size: 4em;
    +		text-align: center;
    +		padding-top: 70px;
    +		margin: 0;
    +	}
    +
    +	#kubrick-header #header .description {
    +		font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    +		font-size: 1.2em;
    +		text-align: center;
    +	}
    +	#kubrick-header #header {
    +		text-decoration: none;
    +		color: <?php echo kubrick_header_color_string(); ?>;
    +		padding: 0;
    +		margin: 0;
    +		height: 200px;
    +		text-align: center;
    +		background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat;
    +	}
    +	#kubrick-header #headerimg {
    +		margin: 0;
    +		height: 200px;
    +		width: 100%;
    +		display: <?php echo kubrick_header_display_string(); ?>;
    +	}
    +	#jsForm {
    +		display: none;
    +		text-align: center;
    +	}
    +	#jsForm input.submit, #jsForm input.button, #jsAdvanced input.button {
    +		padding: 0px;
    +		margin: 0px;
    +	}
    +	#advanced {
    +		text-align: center;
    +		width: 620px;
    +	}
    +	html>body #advanced {
    +		text-align: center;
    +		position: relative;
    +		left: 50%;
    +		margin-left: -380px;
    +	}
    +	#jsAdvanced {
    +		text-align: right;
    +	}
    +	#nonJsForm {
    +		position: relative;
    +		text-align: left;
    +		margin-left: -370px;
    +		left: 50%;
    +	}
    +	#nonJsForm label {
    +		padding-top: 6px;
    +		padding-right: 5px;
    +		float: left;
    +		width: 100px;
    +		text-align: right;
    +	}
    +	.defbutton {
    +		font-weight: bold;
    +	}
    +	.zerosize {
    +		width: 0px;
    +		height: 0px;
    +		overflow: hidden;
    +	}
    +	#colorPickerDiv a, #colorPickerDiv a:hover {
    +		padding: 1px;
    +		text-decoration: none;
    +		border-bottom: 0px;
    +	}
    +</style>
    +<?php
    +}
    +
    +function kubrick_theme_page() {
    +	if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>';
    +?>
    +<div class='wrap'>
    +	<div id="kubrick-header">
    +		<h2>Header Image and Color</h2>
    +		<div id="headwrap">
    +			<div id="header">
    +				<div id="headerimg">
    +					<h1><?php bloginfo('name'); ?></h1>
    +					<div class="description"><?php bloginfo('description'); ?></div>
    +				</div>
    +			</div>
    +		</div>
    +		<br />
    +		<div id="nonJsForm">
    +			<form method="post" action="">
    +				<div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>
    +				<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 />
    +				<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 />
    +				<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 />
    +				<input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" />
    +				<input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />
    +				<input type="submit" name="defaults" value="Use Defaults" />
    +				<input type="submit" class="defbutton" name="submitform" value="&#160;&#160;Save&#160;&#160;" />
    +				<input type="hidden" name="action" value="save" />
    +				<input type="hidden" name="njform" value="true" />
    +			</form>
    +		</div>
    +		<div id="jsForm">
    +			<form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
    +				<input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input>
    +				<input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input>
    +				<input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input>
    +				<input type="button" name="revert" value="Revert" onclick="kRevert()" />
    +				<input type="button" value="Advanced" onclick="toggleAdvanced()" />
    +				<input type="hidden" name="action" value="save" />
    +				<input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" />
    +				<input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo kubrick_header_color(); ?>" />
    +				<input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo kubrick_upper_color(); ?>" />
    +				<input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" />
    +				<input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" />
    +				<p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header &#187;'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
    +			</form>
    +			<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
    +			<div id="advanced">
    +				<form id="jsAdvanced" style="display:none;" action="">
    +					<label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br />
    +					<label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br />
    +					<label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br />
    +					<input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br />
    +					<input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br />
    +				</form>
    +			</div>
    +		</div>
    +	</div>
    +</div>
    +<?php } ?>
     
    66                <div class="post" id="post-<?php the_ID(); ?>">
    77                <h2><?php the_title(); ?></h2>
    88                        <div class="entry">
    9                                 <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
     9                                <?php the_content('<p class="serif">Read the rest of this page &#187;</p>'); ?>
    1010
    1111                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1212
  • wp-content/themes/default/single.php

     
    66
    77                <div class="navigation">
    88                        <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    9                         <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
     9                        <div class="alignright"><?php next_post_link('%link &#187;') ?></div>
    1010                </div>
    1111
    1212                <div class="post" id="post-<?php the_ID(); ?>">
    1313                        <h2><a 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                                <?php the_content('<p class="serif">Read the rest of this entry &#187;</p>'); ?>
    1717
    1818                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1919
  • wp-content/themes/default/archive.php

     
    2828
    2929                <div class="navigation">
    3030                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    31                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
     31                        <div class="alignright"><?php previous_posts_link('Next Entries &#187;') ?></div>
    3232                </div>
    3333
    3434                <?php while (have_posts()) : the_post(); ?>
     
    4848
    4949                <div class="navigation">
    5050                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    51                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
     51                        <div class="alignright"><?php previous_posts_link('Next Entries &#187;') ?></div>
    5252                </div>
    5353
    5454        <?php else : ?>
  • wp-content/themes/default/comments.php

     
    7373
    7474<?php if ( $user_ID ) : ?>
    7575
    76 <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">Logout &raquo;</a></p>
     76<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">Logout &#187;</a></p>
    7777
    7878<?php else : ?>
    7979
  • wp-content/themes/default/header.php

     
    44<head profile="http://gmpg.org/xfn/11">
    55<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    66
    7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
     7<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &#187; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    88
    99<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    1010
  • wp-content/themes/default/attachment.php

     
    55  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    66
    77                <div class="navigation">
    8                         <div class="alignleft">&nbsp;</div>
    9                         <div class="alignright">&nbsp;</div>
     8                        <div class="alignleft">&#160;</div>
     9                        <div class="alignright">&#160;</div>
    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 ?>
    1313                <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>
     14                        <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &#187; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    1515                        <div class="entry">
    1616                                <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
    1717
    18                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
     18                                <?php the_content('<p class="serif">Read the rest of this entry &#187;</p>'); ?>
    1919
    2020                                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    2121
  • readme.html

     
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    22<html xmlns="http://www.w3.org/1999/xhtml">
    33<head>
    4         <title>WordPress &rsaquo; ReadMe</title>
     4        <title>WordPress &#8250; ReadMe</title>
    55        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    66        <link rel="stylesheet" href="wp-admin/install.css" type="text/css" />
    77</head>
  • wp-admin/users.php

     
    8686                                'total' => ceil($this->total_users_for_query / $this->users_per_page),
    8787                                'current' => $this->page,
    8888                                'prev_text' => '&laquo; Previous Page',
    89                                 'next_text' => 'Next Page &raquo;',
     89                                'next_text' => 'Next Page &#187;',
    9090                                'base' => 'users.php?%_%',
    9191                                'format' => 'userspage=%#%',
    9292                                'add_args' => array( 'usersearch' => urlencode($this->search_term) )
     
    338338        <?php endif; ?>
    339339
    340340        <form action="" method="get" name="search" id="search">
    341                 <p><input type="text" name="usersearch" id="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search   users &raquo;'); ?>" class="button" /></p>
     341                <p><input type="text" name="usersearch" id="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search   users &#187;'); ?>" class="button" /></p>
    342342        </form>
    343343
    344344        <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
     
    419419        </ul>
    420420        <p class="submit" style="width: 420px">
    421421                <?php echo $referer; ?>
    422                 <input type="submit" value="<?php _e('Bulk Update &raquo;'); ?>" />
     422                <input type="submit" value="<?php _e('Bulk Update &#187;'); ?>" />
    423423        </p>
    424424</form>
    425425<?php endif; ?>
     
    498498</table>
    499499<p class="submit">
    500500        <?php echo $referer; ?>
    501         <input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User &raquo;') ?>" />
     501        <input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User &#187;') ?>" />
    502502</p>
    503503</form>
    504504
  • wp-admin/options-privacy.php

     
    2424</tr>
    2525</table>
    2626
    27 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     27<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    2828<input type="hidden" name="action" value="update" />
    2929<input type="hidden" name="page_options" value="blog_public" />
    3030</p>
  • wp-admin/edit-comments.php

     
    122122}
    123123if ( ( $page ) * 20 < $total || -1 == $total ) {
    124124        $args['apage'] = $page + 1;
    125         $r .=  '<a class="next" href="' . add_query_arg($args) . '">'. __('Next Page') .' &raquo;</a>' . "\n";
     125        $r .=  '<a class="next" href="' . add_query_arg($args) . '">'. __('Next Page') .' &#187;</a>' . "\n";
    126126}
    127127echo "<p>$r</p>";
    128128?>
     
    229229                <?php
    230230                } // end foreach
    231231        ?></table>
    232 <p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments &raquo;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to delete")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to delete %s comments permanently \n  'Cancel' to stop, 'OK' to delete.")), "' + numchecked + '"); ?>')" />
    233                         <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam &raquo;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to mark as spam")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to mark %s comments as spam \n  'Cancel' to stop, 'OK' to mark as spam.")), "' + numchecked + '"); ?>')" /></p>
     232<p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments &#187;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to delete")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to delete %s comments permanently \n  'Cancel' to stop, 'OK' to delete.")), "' + numchecked + '"); ?>')" />
     233                        <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam &#187;') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to mark as spam")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to mark %s comments as spam \n  'Cancel' to stop, 'OK' to mark as spam.")), "' + numchecked + '"); ?>')" /></p>
    234234  </form>
    235235<div id="ajax-response"></div>
    236236<?php
     
    269269}
    270270if ( ( $page ) * 20 < $total || -1 == $total ) {
    271271        $args['apage'] = $page + 1;
    272         $r .=  '<a class="next" href="' . add_query_arg($args) . '">'. __('Next Page') .' &raquo;</a>' . "\n";
     272        $r .=  '<a class="next" href="' . add_query_arg($args) . '">'. __('Next Page') .' &#187;</a>' . "\n";
    273273}
    274274echo "<p>$r</p>";
    275275?>
  • wp-admin/post-new.php

     
    2020}
    2121
    2222if ( isset($_GET['posted']) && $_GET['posted'] ) : ?>
    23 <div id="message" class="updated fade"><p><strong><?php _e('Post saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?> &raquo;</a></p></div>
     23<div id="message" class="updated fade"><p><strong><?php _e('Post saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?> &#187;</a></p></div>
    2424<?php
    2525endif;
    2626
     
    4141        }
    4242
    4343        if ( 15 < count($drafts) ) { ?>
    44                 , <a href="edit.php"><?php echo sprintf(__('and %s more'), (count($drafts) - 15) ); ?> &raquo;</a>
     44                , <a href="edit.php"><?php echo sprintf(__('and %s more'), (count($drafts) - 15) ); ?> &#187;</a>
    4545        <?php } ?>
    4646.</p>
    4747</div>
  • wp-admin/theme-editor.php

     
    9393        }
    9494?>
    9595 </select>
    96  <input type="submit" name="Submit" value="<?php _e('Select &raquo;') ?>" class="button" />
     96 <input type="submit" name="Submit" value="<?php _e('Select &#187;') ?>" class="button" />
    9797 </form>
    9898 </div>
    9999
     
    131131<?php if ( is_writeable($real_file) ) : ?>
    132132        <p class="submit">
    133133<?php
    134         echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />";
     134        echo "<input type='submit' name='submit' value='        " . __('Update File &#187;') . "' tabindex='2' />";
    135135?>
    136136</p>
    137137<?php else : ?>
     
    143143                echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
    144144        }
    145145        ?>
    146 <div class="clear"> &nbsp; </div>
     146<div class="clear"> &#160; </div>
    147147</div>
    148148<?php
    149149break;
  • wp-admin/templates.php

     
    126126<?php if ( is_writeable($real_file) ) : ?>
    127127        <p class="submit">
    128128<?php
    129         echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />";
     129        echo "<input type='submit' name='submit' value='        " . __('Update File &#187;') . "' tabindex='2' />";
    130130?>
    131131</p>
    132132<?php else : ?>
     
    138138                echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
    139139        }
    140140        ?>
    141 <div class="clear"> &nbsp; </div>
     141<div class="clear"> &#160; </div>
    142142</div>
    143143<div class="wrap">
    144144<h2><?php _e('Other Files') ?></h2>
     
    146146        <p><?php _e('To edit a file, type its name here. You can edit any file <a href="http://codex.wordpress.org/Changing_File_Permissions" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.') ?></p>
    147147        <form name="file" action="templates.php" method="get">
    148148                <input type="text" name="file" />
    149                 <input type="submit" name="submit"  value="<?php _e('Edit file &raquo;') ?>" />
     149                <input type="submit" name="submit"  value="<?php _e('Edit file &#187;') ?>" />
    150150        </form>
    151151
    152152        <p><?php _e('Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don&#8217;t have access to a text editor or FTP client.') ?></p>
  • wp-admin/admin-functions.php

     
    877877        global $post_ID;
    878878        // Exit if no meta
    879879        if (!$meta ) {
    880                 echo '<tbody id="the-list"><tr style="display: none;"><td>&nbsp;</td></tr></tbody>'; //TBODY needed for list-manipulation JS
     880                echo '<tbody id="the-list"><tr style="display: none;"><td>&#160;</td></tr></tbody>'; //TBODY needed for list-manipulation JS
    881881                return;
    882882        }
    883883        $count = 0;
     
    978978        </tr>
    979979
    980980</table>
    981 <p class="submit"><input type="submit" id="updatemetasub" name="updatemeta" tabindex="9" value="<?php _e( 'Add Custom Field &raquo;' ) ?>" /></p>
     981<p class="submit"><input type="submit" id="updatemetasub" name="updatemeta" tabindex="9" value="<?php _e( 'Add Custom Field &#187;' ) ?>" /></p>
    982982<?php
    983983
    984984}
     
    12401240                                        continue;
    12411241                                }
    12421242                        }
    1243                         $pad = str_repeat( '&nbsp;', $level * 3 );
     1243                        $pad = str_repeat( '&#160;', $level * 3 );
    12441244                        if ( $item->ID == $default)
    12451245                                $current = ' selected="selected"';
    12461246                        else
     
    18871887<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
    18881888</p>
    18891889<p class="submit">
    1890 <input type="submit" value="<?php _e( 'Upload file and import' ); ?> &raquo;" />
     1890<input type="submit" value="<?php _e( 'Upload file and import' ); ?> &#187;" />
    18911891</p>
    18921892</form>
    18931893<?php
  • wp-admin/upload-js.php

     
    8888                                h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
    8989                                h += "</a>";
    9090                        } else
    91                                 h += '&nbsp;';
     91                                h += '&#160;';
    9292                        h += "</div>";
    9393
    9494                        h += "<form name='uploadoptions' id='uploadoptions' class='alignleft'>";
     
    119119                        h += "</td></tr>";
    120120
    121121                        h += "<tr><td colspan='2'><p class='submit'>";
    122                         h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='<?php echo attribute_escape(__('Send to editor &raquo;')); ?>' />";
     122                        h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='<?php echo attribute_escape(__('Send to editor &#187;')); ?>' />";
    123123                        h += "</p></td></tr></table>";
    124124                        h += "</form>";
    125125
     
    166166                                h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
    167167                                h += "</a>";
    168168                        } else
    169                                 h += '&nbsp;';
     169                                h += '&#160;';
    170170                        h += "</div>";
    171171
    172172
     
    184184                        h += "<input type='hidden' name='action' id='action-value' value='save' />";
    185185                        h += "<input type='hidden' name='ID' value='" + id + "' />";
    186186                        h += "<input type='hidden' name='_wpnonce' value='" + this.nonce + "' />";
    187                         h += "<div class='submit'><input type='submit' value='<?php echo attribute_escape(__('Save &raquo;')); ?>' /></div>";
     187                        h += "<div class='submit'><input type='submit' value='<?php echo attribute_escape(__('Save &#187;')); ?>' /></div>";
    188188                        h += "</td></tr></table></form>";
    189189
    190190                        new Insertion.Top('upload-content', h);
  • wp-admin/custom-header.php

     
    165165<form method="post" action="<?php echo get_option('siteurl') ?>/wp-admin/themes.php?page=custom-header&amp;updated=true">
    166166<input type="button" value="<?php _e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
    167167<input type="button" value="<?php _e('Select a Text Color'); ?>" onclick="colorSelect($('textcolor'), 'pickcolor')" id="pickcolor" /><input type="button" value="<?php _e('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
    168 <input type="hidden" name="textcolor" id="textcolor" value="#<?php header_textcolor() ?>" /><input name="submit" type="submit" value="<?php _e('Save Changes'); ?> &raquo;" /></form>
     168<input type="hidden" name="textcolor" id="textcolor" value="#<?php header_textcolor() ?>" /><input name="submit" type="submit" value="<?php _e('Save Changes'); ?> &#187;" /></form>
    169169<?php } ?>
    170170
    171171<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
     
    178178<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    179179<input type="hidden" name="action" value="save" />
    180180<p class="submit">
    181 <input type="submit" value="<?php _e('Upload'); ?> &raquo;" />
     181<input type="submit" value="<?php _e('Upload'); ?> &#187;" />
    182182</p>
    183183</form>
    184184
     
    256256<input type="hidden" name="height" id="height" />
    257257<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo $id; ?>" />
    258258<input type="hidden" name="oitar" id="oitar" value="<?php echo $oitar; ?>" />
    259 <input type="submit" value="<?php _e('Crop Header &raquo;'); ?>" />
     259<input type="submit" value="<?php _e('Crop Header &#187;'); ?>" />
    260260</p>
    261261
    262262</form>
  • wp-admin/moderation.php

     
    131131?>
    132132<a href="<?php echo get_permalink($comment->comment_post_ID); ?>" title="<?php echo $post_title; ?>"><?php _e('View Post') ?></a> ] &#8212;
    133133 <?php _e('Bulk action:') ?>
    134         <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-approve" value="approve" /> <label for="comment-<?php echo $comment->comment_ID; ?>-approve"><?php _e('Approve') ?></label> &nbsp;
    135         <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-spam" value="spam" /> <label for="comment-<?php echo $comment->comment_ID; ?>-spam"><?php _e('Spam') ?></label> &nbsp;
    136         <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-delete" value="delete" /> <label for="comment-<?php echo $comment->comment_ID; ?>-delete"><?php _e('Delete') ?></label> &nbsp;
     134        <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-approve" value="approve" /> <label for="comment-<?php echo $comment->comment_ID; ?>-approve"><?php _e('Approve') ?></label> &#160;
     135        <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-spam" value="spam" /> <label for="comment-<?php echo $comment->comment_ID; ?>-spam"><?php _e('Spam') ?></label> &#160;
     136        <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-delete" value="delete" /> <label for="comment-<?php echo $comment->comment_ID; ?>-delete"><?php _e('Delete') ?></label> &#160;
    137137        <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-nothing" value="later" checked="checked" /> <label for="comment-<?php echo $comment->comment_ID; ?>-nothing"><?php _e('Defer until later') ?></label>
    138138        </p>
    139139
     
    145145
    146146<div id="ajax-response"></div>
    147147
    148 <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &raquo;') ?>" /></p>
     148<p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &#187;') ?>" /></p>
    149149<script type="text/javascript">
    150150// <![CDATA[
    151151function markAllForDelete() {
  • wp-admin/options-general.php

     
    1111<h2><?php _e('General Options') ?></h2>
    1212<form method="post" action="options.php">
    1313<?php wp_nonce_field('update-options') ?>
    14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" /></p>
    1515<table class="optiontable">
    1616<tr valign="top">
    1717<th scope="row"><?php _e('Weblog title:') ?></th>
     
    7878<?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td>
    7979</tr>
    8080<tr>
    81 <th scope="row">&nbsp;</th>
     81<th scope="row">&#160;</th>
    8282<td><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Update options" to update sample output.') ?> </td>
    8383</tr>
    8484<tr>
     
    9595</table>
    9696</fieldset>
    9797
    98 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     98<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    9999<input type="hidden" name="action" value="update" />
    100100<input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role" />
    101101</p>
  • wp-admin/index.php

     
    3939if ( $comments || $numcomments ) :
    4040?>
    4141<div>
    42 <h3><?php _e('Comments'); ?> <a href="edit-comments.php" title="<?php _e('More comments...'); ?>">&raquo;</a></h3>
     42<h3><?php _e('Comments'); ?> <a href="edit-comments.php" title="<?php _e('More comments...'); ?>">&#187;</a></h3>
    4343
    4444<?php if ( $numcomments ) : ?>
    45 <p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> &raquo;</a></strong></p>
     45<p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> &#187;</a></strong></p>
    4646<?php endif; ?>
    4747
    4848<ul>
     
    6363if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
    6464?>
    6565<div>
    66 <h3><?php _e('Posts'); ?> <a href="edit.php" title="<?php _e('More posts...'); ?>">&raquo;</a></h3>
     66<h3><?php _e('Posts'); ?> <a href="edit.php" title="<?php _e('More posts...'); ?>">&#187;</a></h3>
    6767<ul>
    6868<?php
    6969foreach ($recentposts as $post) {
     
    138138
    139139<div id="planetnews"></div>
    140140
    141 <div style="clear: both">&nbsp;
     141<div style="clear: both">&#160;
    142142<br clear="all" />
    143143</div>
    144144</div>
  • wp-admin/edit-link-form.php

     
    11<?php
    22if ( ! empty($link_id) ) {
    33        $heading = __('Edit Link');
    4         $submit_text = __('Save Changes &raquo;');
     4        $submit_text = __('Save Changes &#187;');
    55        $form = '<form name="editlink" id="editlink" method="post" action="link.php">';
    66        $nonce_action = 'update-bookmark_' . $link_id;
    77} else {
    88        $heading = __('Add Link');
    9         $submit_text = __('Add Link &raquo;');
     9        $submit_text = __('Add Link &#187;');
    1010        $form = '<form name="addlink" id="addlink" method="post" action="link.php">';
    1111        $nonce_action = 'add-bookmark';
    1212}
     
    237237                                        echo 'selected="selected"';
    238238                                echo('>'.$r.'</option>');
    239239                        }
    240                 ?></select>&nbsp;<?php _e('(Leave at 0 for no rating.)') ?>
     240                ?></select>&#160;<?php _e('(Leave at 0 for no rating.)') ?>
    241241                </td>
    242242        </tr>
    243243</table>
  • wp-admin/import/dotclear.php

     
    148148                echo '<p>'.__('Your DotClear Configuration settings are as follows:').'</p>';
    149149                echo '<form action="admin.php?import=dotclear&amp;step=1" method="post">';
    150150                $this->db_form();
    151                 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' &raquo;" /></p>';
     151                echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' &#187;" /></p>';
    152152                echo '</form></div>';
    153153        }
    154154
  • wp-admin/import/textpattern.php

     
    5757                echo '<p>'.__('Your Textpattern Configuration settings are as follows:').'</p>';
    5858                echo '<form action="admin.php?import=textpattern&amp;step=1" method="post">';
    5959                $this->db_form();
    60                 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' &raquo;" /></p>';
     60                echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Categories').' &#187;" /></p>';
    6161                echo '</form>';
    6262                echo '</div>';
    6363        }
  • wp-admin/import/greymatter.php

     
    2929<li><?php _e('Import gm-templates.') ?></li>
    3030<li><?php _e("Doesn't keep entries on top.")?></li>
    3131</ul>
    32 <p>&nbsp;</p>
     32<p>&#160;</p>
    3333
    3434<form name="stepOne" method="get">
    3535<input type="hidden" name="import" value="greymatter" />
     
    280280        }
    281281        ?>
    282282</ul><strong><?php _e('Done') ?></strong></li></ul>
    283 <p>&nbsp;</p>
     283<p>&#160;</p>
    284284<p><?php _e('Completed GreyMatter import!') ?></p>
    285285<?php
    286286        $this->footer();
  • wp-admin/options-misc.php

     
    1212<h2><?php _e('Miscellaneous Options') ?></h2>
    1313<form method="post" action="options.php">
    1414<?php wp_nonce_field('update-options') ?>
    15 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
     15<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" /></p>
    1616<fieldset class="options">
    1717<legend><?php _e('Uploading'); ?></legend>
    1818<table class="editform optiontable">
     
    4444<p class="submit">
    4545<input type="hidden" name="action" value="update" />
    4646<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path" />
    47 <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     47<input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    4848</p>
    4949</form>
    5050</div>
  • wp-admin/upload.php

     
    6262<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    6363<head>
    6464<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    65 <title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; WordPress</title>
     65<title><?php bloginfo('name') ?> &#8250; <?php _e('Uploads'); ?> &#8212; WordPress</title>
    6666<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    6767<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    6868<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     
    109109                                'total' => ceil($total / $per),
    110110                                'current' => $paged ? $paged : 1,
    111111                                'prev_text' => '&laquo;',
    112                                 'next_text' => '&raquo;'
     112                                'next_text' => '&#187;'
    113113                        ));
    114114                        if ( $page_links )
    115115                                $page_links = "<span id='current-tab-nav'>: $page_links</span>";
  • wp-admin/edit-form-comment.php

     
    11<?php
    2 $submitbutton_text = __('Edit Comment &raquo;');
     2$submitbutton_text = __('Edit Comment &#187;');
    33$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
    44$form_action = 'editedcomment';
    55$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='".$comment->comment_post_ID;
  • wp-admin/edit-form.php

     
    6262<?php endif; ?>
    6363
    6464<?php if ('bookmarklet' != $mode) {
    65                 echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing &raquo;') . '" />';
     65                echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing &#187;') . '" />';
    6666        } ?>
    6767        <input name="referredby" type="hidden" id="referredby" value="<?php if ( wp_get_referer() ) echo urlencode(wp_get_referer()); ?>" />
    6868</p>
  • wp-admin/upload-functions.php

     
    1515        $innerHTML = get_attachment_innerHTML( $id, false, $dims );
    1616        if ( $image_src = get_attachment_icon_src() ) {
    1717                $image_rel = wp_make_link_relative($image_src);
    18                 $innerHTML = '&nbsp;' . str_replace($image_src, $image_rel, $innerHTML);
     18                $innerHTML = '&#160;' . str_replace($image_src, $image_rel, $innerHTML);
    1919                $class = 'image';
    2020        }
    2121
     
    7070                                        echo '</a>';
    7171                        ?></h2>
    7272                        <span><?php
    73                                 echo '[&nbsp;';
     73                                echo '[&#160;';
    7474                                echo '<a href="' . get_permalink() . '">' . __('view') . '</a>';
    75                                 echo '&nbsp;|&nbsp;';
     75                                echo '&#160;|&#160;';
    7676                                        echo '<a href="' . attribute_escape(add_query_arg('action', 'edit')) . '" title="' . __('Edit this file') . '">' . __('edit') . '</a>';
    77                                 echo '&nbsp;|&nbsp;';
     77                                echo '&#160;|&#160;';
    7878                                echo '<a href="' . attribute_escape(remove_query_arg(array('action', 'ID'))) . '" title="' . __('Browse your files') . '">' . __('cancel') . '</a>';
    79                                 echo '&nbsp;]'; ?></span>
     79                                echo '&#160;]'; ?></span>
    8080                </div>
    8181
    8282                <div id="upload-file-view" class="alignleft">
     
    110110                                        echo '</a>';
    111111                        ?></h2>
    112112                        <span><?php
    113                                 echo '[&nbsp;';
     113                                echo '[&#160;';
    114114                                echo '<a href="' . get_permalink() . '">' . __('view') . '</a>';
    115                                 echo '&nbsp;|&nbsp;';
     115                                echo '&#160;|&#160;';
    116116                                        echo '<a href="' . attribute_escape(add_query_arg('action', 'view')) . '">' . __('links') . '</a>';
    117                                 echo '&nbsp;|&nbsp;';
     117                                echo '&#160;|&#160;';
    118118                                echo '<a href="' . attribute_escape(remove_query_arg(array('action','ID'))) . '" title="' . __('Browse your files') . '">' . __('cancel') . '</a>';
    119                                 echo '&nbsp;]'; ?></span>
     119                                echo '&#160;]'; ?></span>
    120120                </div>
    121121
    122122        <div id="upload-file-view" class="alignleft">
     
    161161<?php   endif; ?>
    162162                                        <?php wp_nonce_field( 'inlineuploading' ); ?>
    163163                                        <div class="submit">
    164                                                 <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?> &raquo;" />
     164                                                <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?> &#187;" />
    165165                                        </div>
    166166                                </td>
    167167                        </tr>
  • wp-admin/link-import.php

     
    5555?>
    5656</select></p>
    5757
    58 <p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File &raquo;') ?>" /></p>
     58<p class="submit"><input type="submit" name="submit" value="<?php _e('Import OPML File &#187;') ?>" /></p>
    5959</form>
    6060
    6161</div>
  • wp-admin/options-discussion.php

     
    1111<h2><?php _e('Discussion Options') ?></h2>
    1212<form method="post" action="options.php">
    1313<?php wp_nonce_field('update-options') ?>
    14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" /></p>
    1515<fieldset class="options">
    1616<legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend>
    1717<ul>
     
    7878<p class="submit">
    7979<input type="hidden" name="action" value="update" />
    8080<input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys" />
    81 <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     81<input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    8282</p>
    8383</form>
    8484</div>
  • wp-admin/admin-header.php

     
    1616<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    1717<head>
    1818<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    19 <title><?php bloginfo('name') ?> &rsaquo; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title>
     19<title><?php bloginfo('name') ?> &#8250; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title>
    2020<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2121<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    2222<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     
    4444</head>
    4545<body>
    4646<div id="wphead">
    47 <h1><?php echo wptexturize(get_option(('blogname'))); ?> <span>(<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('View site &raquo;') ?></a>)</span></h1>
     47<h1><?php echo wptexturize(get_option(('blogname'))); ?> <span>(<a href="<?php echo get_option('home') . '/'; ?>"><?php _e('View site &#187;') ?></a>)</span></h1>
    4848</div>
    4949<div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div>
    5050
  • wp-admin/edit.php

     
    7575
    7676<form name="searchform" id="searchform" action="" method="get">
    7777  <fieldset>
    78   <legend><?php _e('Search Posts&hellip;') ?></legend>
     78  <legend><?php _e('Search Posts&#8230;') ?></legend>
    7979  <input type="text" name="s" value="<?php if (isset($s)) echo attribute_escape($s); ?>" size="17" />
    8080  <input type="submit" name="submit" value="<?php _e('Search') ?>" class="button" />
    8181  </fieldset>
     
    8787
    8888<form name="viewarc" id="viewarc" action="" method="get">
    8989        <fieldset>
    90         <legend><?php _e('Browse Month&hellip;') ?></legend>
     90        <legend><?php _e('Browse Month&#8230;') ?></legend>
    9191        <select name='m'>
    9292        <?php
    9393                foreach ($arc_result as $arc_row) {
     
    114114
    115115<form name="viewcat" id="viewcat" action="" method="get">
    116116        <fieldset>
    117         <legend><?php _e('Browse Category&hellip;') ?></legend>
     117        <legend><?php _e('Browse Category&#8230;') ?></legend>
    118118        <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
    119119        <input type="submit" name="submit" value="<?php _e('Show Category') ?>" class="button" />
    120120        </fieldset>
     
    251251
    252252<div class="navigation">
    253253<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries')) ?></div>
    254 <div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;')) ?></div>
     254<div class="alignright"><?php previous_posts_link(__('Next Entries &#187;')) ?></div>
    255255</div>
    256256
    257257<?php
  • wp-admin/upgrade.php

     
    1717<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    1818<head>
    1919        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    20         <title><?php _e('WordPress &rsaquo; Upgrade'); ?></title>
     20        <title><?php _e('WordPress &#8250; Upgrade'); ?></title>
    2121        <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2222        <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    2323        <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     
    3131                $goback = attribute_escape(stripslashes(wp_get_referer()));
    3232?>
    3333<p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p>
    34 <h2 class="step"><a href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress &raquo;'); ?></a></h2>
     34<h2 class="step"><a href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress &#187;'); ?></a></h2>
    3535<?php
    3636                break;
    3737        case 1:
  • wp-admin/index-extra.php

     
    88$rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress');
    99if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results
    1010?>
    11 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More &raquo;'); ?></a></cite></h3>
     11<h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More &#187;'); ?></a></cite></h3>
    1212<ul>
    1313<?php
    1414$rss->items = array_slice($rss->items, 0, 10);
     
    5858        }
    5959?>
    6060</ul>
    61 <p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> &raquo;</a></p>
     61<p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> &#187;</a></p>
    6262<?php
    6363}
    6464break;
  • wp-admin/options.php

     
    120120  <form name="form" action="options.php" method="post" id="all-options">
    121121  <?php wp_nonce_field('update-options') ?>
    122122  <input type="hidden" name="action" value="update" />
    123         <p class="submit"><input type="submit" name="Update" value="<?php _e('Update Options &raquo;') ?>" /></p>
     123        <p class="submit"><input type="submit" name="Update" value="<?php _e('Update Options &#187;') ?>" /></p>
    124124  <table width="98%">
    125125<?php
    126126$options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name");
     
    158158?>
    159159  </table>
    160160<?php $options_to_update = implode(',', $options_to_update); ?>
    161 <p class="submit"><input type="hidden" name="page_options" value="<?php echo attribute_escape($options_to_update); ?>" /><input type="submit" name="Update" value="<?php _e('Update Options &raquo;') ?>" /></p>
     161<p class="submit"><input type="hidden" name="page_options" value="<?php echo attribute_escape($options_to_update); ?>" /><input type="submit" name="Update" value="<?php _e('Update Options &#187;') ?>" /></p>
    162162  </form>
    163163</div>
    164164
  • wp-admin/profile.php

     
    3737
    3838<?php do_action('profile_personal_options'); ?>
    3939
    40 <p class="submit"><input type="submit" value="<?php _e('Update Profile &raquo;') ?>" name="submit" /></p>
     40<p class="submit"><input type="submit" value="<?php _e('Update Profile &#187;') ?>" name="submit" /></p>
    4141
    4242<fieldset>
    4343<legend><?php _e('Name'); ?></legend>
     
    142142    endif;
    143143    ?>
    144144  </table>
    145 <p class="submit"><input type="submit" value="<?php _e('Update Profile &raquo;') ?>" name="submit" /></p>
     145<p class="submit"><input type="submit" value="<?php _e('Update Profile &#187;') ?>" name="submit" /></p>
    146146</form>
    147147
    148148</div>
  • wp-admin/edit-category-form.php

     
    11<?php
    22if ( ! empty($cat_ID) ) {
    33        $heading = __('Edit Category');
    4         $submit_text = __('Edit Category &raquo;');
     4        $submit_text = __('Edit Category &#187;');
    55        $form = '<form name="editcat" id="editcat" method="post" action="categories.php">';
    66        $action = 'editedcat';
    77        $nonce_action = 'update-category_' . $cat_ID;
    88        do_action('edit_category_form_pre', $category);
    99} else {
    1010        $heading = __('Add Category');
    11         $submit_text = __('Add Category &raquo;');
     11        $submit_text = __('Add Category &#187;');
    1212        $form = '<form name="addcat" id="addcat" method="post" action="categories.php">';
    1313        $action = 'addcat';
    1414        $nonce_action = 'add-category';
  • wp-admin/user-edit.php

     
    210210<p class="submit">
    211211        <input type="hidden" name="action" value="update" />
    212212        <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />
    213         <input type="submit" value="<?php _e('Update User &raquo;') ?>" name="submit" />
     213        <input type="submit" value="<?php _e('Update User &#187;') ?>" name="submit" />
    214214 </p>
    215215</form>
    216216</div>
  • wp-admin/options-reading.php

     
    1111<h2><?php _e('Reading Options') ?></h2>
    1212<form name="form1" method="post" action="options.php">
    1313<?php wp_nonce_field('update-options') ?>
    14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" /></p>
    1515<?php if ( get_pages() ): ?>
    1616<fieldset class="options">
    1717<legend><?php _e('Front Page') ?></legend>
     
    9191<p class="submit">
    9292<input type="hidden" name="action" value="update" />
    9393<input type="hidden" name="page_options" value="posts_per_page,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts" />
    94 <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     94<input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    9595</p>
    9696</form>
    9797</div>
  • wp-admin/setup-config.php

     
    1818<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1919<html xmlns="http://www.w3.org/1999/xhtml">
    2020<head>
    21 <title>WordPress &rsaquo; Setup Configuration File</title>
     21<title>WordPress &#8250; Setup Configuration File</title>
    2222<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    2323<style media="screen" type="text/css">
    2424        <!--
  • wp-admin/page-new.php

     
    99?>
    1010
    1111<?php if ( (isset($_GET['posted']) && $_GET['posted'])  || isset($_GET['saved'])  ) : ?>
    12 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?> &raquo;</a></p></div>
     12<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?> &#187;</a></p></div>
    1313<?php endif; ?>
    1414
    1515<?php
  • wp-admin/link-manager.php

     
    9292
    9393printf(__('Currently showing %1$s links ordered by %2$s'), $select_cat, $select_order);
    9494?>
    95 <input type="submit" name="action" value="<?php _e('Update &raquo;') ?>" /></p>
     95<input type="submit" name="action" value="<?php _e('Update &#187;') ?>" /></p>
    9696</form>
    9797<?php
    9898$link_columns = array(
     
    195195
    196196<div id="ajax-response"></div>
    197197
    198 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> &raquo;" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p>
     198<p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> &#187;" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p>
    199199</form>
    200200
    201201<?php } ?>
  • wp-admin/install.php

     
    22define('WP_INSTALLING', true);
    33if (!file_exists('../wp-config.php')) {
    44  require_once('../wp-includes/functions.php');
    5   wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
     5  wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &#8250; Error");
    66}
    77
    88require_once('../wp-config.php');
     
    1818<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    1919<head>
    2020        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    21         <title><?php _e('WordPress &rsaquo; Installation'); ?></title>
     21        <title><?php _e('WordPress &#8250; Installation'); ?></title>
    2222        <link rel="stylesheet" href="install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    2323        <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
    2424        <link rel="stylesheet" href="install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     
    3434        case 0:
    3535?>
    3636<p><?php printf(__('Welcome to WordPress installation. We&#8217;re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. You may want to peruse the <a href="%s">ReadMe documentation</a> at your leisure.'), '../readme.html'); ?></p>
    37 <h2 class="step"><a href="install.php?step=1"><?php _e('First Step &raquo;'); ?></a></h2>
     37<h2 class="step"><a href="install.php?step=1"><?php _e('First Step &#187;'); ?></a></h2>
    3838<?php
    3939                break;
    4040        case 1:
     
    5858                </tr>
    5959        </table>
    6060        <p><em><?php _e('Double-check that email address before continuing.'); ?></em></p>
    61         <h2 class="step"><input type="submit" name="Submit" value="<?php _e('Continue to Second Step &raquo;'); ?>" /></h2>
     61        <h2 class="step"><input type="submit" name="Submit" value="<?php _e('Continue to Second Step &#187;'); ?>" /></h2>
    6262</form>
    6363
    6464<?php
  • wp-admin/bookmarklet.php

     
    4949?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    5050<html xmlns="http://www.w3.org/1999/xhtml">
    5151<head>
    52 <title><?php bloginfo('name') ?> &rsaquo; Bookmarklet &#8212; WordPress</title>
     52<title><?php bloginfo('name') ?> &#8250; Bookmarklet &#8212; WordPress</title>
    5353<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    5454<link rel="stylesheet" href="wp-admin.css" type="text/css" />
    5555
  • wp-admin/options-permalink.php

     
    104104  <h2><?php _e('Customize Permalink Structure') ?></h2>
    105105<form name="form" action="options-permalink.php" method="post">
    106106<?php wp_nonce_field('update-permalink') ?>
    107 <p class="submit"><input type="submit" name="submit" value="<?php _e('Update Permalink Structure &raquo;') ?>" /></p>
     107<p class="submit"><input type="submit" name="submit" value="<?php _e('Update Permalink Structure &#187;') ?>" /></p>
    108108  <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p>
    109109
    110110<?php
     
    123123<p>
    124124        <label>
    125125<input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> />
    126 <?php _e('Default'); ?><br /> <span> &raquo; <code><?php echo get_option('home'); ?>/?p=123</code></span>
     126<?php _e('Default'); ?><br /> <span> &#187; <code><?php echo get_option('home'); ?>/?p=123</code></span>
    127127   </label>
    128128</p>
    129129<p>
    130130        <label>
    131131<input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> />
    132 <?php _e('Date and name based'); ?><br /> <span> &raquo; <code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span>
     132<?php _e('Date and name based'); ?><br /> <span> &#187; <code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span>
    133133   </label>
    134134</p>
    135135<p>
    136136        <label>
    137137<input name="selection" type="radio" value="<?php echo $structures[2]; ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> />
    138 <?php _e('Numeric'); ?><br /> <span> &raquo; <code><?php echo get_option('home') . $prefix  ; ?>/archives/123</code></span>
     138<?php _e('Numeric'); ?><br /> <span> &#187; <code><?php echo get_option('home') . $prefix  ; ?>/archives/123</code></span>
    139139   </label>
    140140</p>
    141141<p>
     
    161161  <?php _e('Category base'); ?>: <input name="category_base" type="text" class="code"  value="<?php echo attribute_escape($category_base); ?>" size="30" />
    162162     </p>
    163163    <p class="submit">
    164       <input type="submit" name="submit" value="<?php _e('Update Permalink Structure &raquo;') ?>" />
     164      <input type="submit" name="submit" value="<?php _e('Update Permalink Structure &#187;') ?>" />
    165165    </p>
    166166  </form>
    167167<?php if ( $permalink_structure && !$usingpi && !$writable ) : ?>
  • wp-admin/options-writing.php

     
    1111<h2><?php _e('Writing Options') ?></h2>
    1212<form method="post" action="options.php">
    1313<?php wp_nonce_field('update-options') ?>
    14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" /></p>
    1515<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">
    1616<tr valign="top">
    1717<th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th>
     
    112112<p class="submit">
    113113<input type="hidden" name="action" value="update" />
    114114<input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category,use_balanceTags,default_link_category" />
    115 <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     115<input type="submit" name="Submit" value="<?php _e('Update Options &#187;') ?>" />
    116116</p>
    117117</form>
    118118</div>
  • wp-admin/export.php

     
    3535</td>
    3636</tr>
    3737</table>
    38 <p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?> &raquo;" />
     38<p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?> &#187;" />
    3939<input type="hidden" name="download" value="true" />
    4040</p>
    4141</form>
  • wp-admin/plugin-editor.php

     
    9292<?php if ( is_writeable($real_file) ) : ?>
    9393        <p class="submit">
    9494        <?php
    95                 echo "<input type='submit' name='submit' value='        " . __('Update File &raquo;') . "' tabindex='2' />";
     95                echo "<input type='submit' name='submit' value='        " . __('Update File &#187;') . "' tabindex='2' />";
    9696        ?>
    9797        </p>
    9898<?php else : ?>
     
    104104                echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
    105105        }
    106106?>
    107 <div class="clear"> &nbsp; </div>
     107<div class="clear"> &#160; </div>
    108108</div>
    109109<?php
    110110break;
  • wp-admin/edit-pages.php

     
    88
    99<div class="wrap">
    1010<h2><?php _e('Page Management'); ?></h2>
    11 <p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page &raquo;'); ?></a></p>
     11<p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page &#187;'); ?></a></p>
    1212
    1313<form name="searchform" action="" method="get">
    1414        <fieldset>
    15         <legend><?php _e('Search Pages&hellip;') ?></legend>
     15        <legend><?php _e('Search Pages&#8230;') ?></legend>
    1616        <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
    1717        <input type="submit" name="submit" value="<?php _e('Search') ?>"  />
    1818        </fieldset>
     
    5555} // end if ($posts)
    5656?>
    5757
    58 <h3><a href="page-new.php"><?php _e('Create New Page &raquo;'); ?></a></h3>
     58<h3><a href="page-new.php"><?php _e('Create New Page &#187;'); ?></a></h3>
    5959
    6060</div>
    6161
  • wp-admin/themes.php

     
    2626<?php if ( ! validate_current_theme() ) : ?>
    2727<div id="message1" class="updated fade"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div>
    2828<?php elseif ( isset($_GET['activated']) ) : ?>
    29 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site &raquo;</a>'), get_bloginfo('home') . '/'); ?></p></div>
     29<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">View site &#187;</a>'), get_bloginfo('home') . '/'); ?></p></div>
    3030<?php endif; ?>
    3131
    3232<?php