Ticket #3569: safari-compat2.diff
| File safari-compat2.diff, 148.9 KB (added by , 20 years ago) |
|---|
-
wp-login.php
29 29 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 30 30 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 31 31 <head> 32 <title><?php bloginfo('name'); ?> & rsaquo; <?php echo $title; ?></title>32 <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title> 33 33 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 34 34 <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 35 35 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> … … 145 145 <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> 146 146 </p> 147 147 <?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 »'); ?>" tabindex="100" /></p> 149 149 </form> 150 150 </div> 151 151 … … 265 265 </p> 266 266 <?php do_action('register_form'); ?> 267 267 <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 »'); ?>" tabindex="100" /></p> 269 269 </form> 270 270 </div> 271 271 … … 353 353 <?php do_action('login_form'); ?> 354 354 <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p> 355 355 <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'); ?> »" tabindex="100" /> 357 357 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" /> 358 358 </p> 359 359 </form> -
wp-blog-header.php
6 6 else $path = 'wp-admin/'; 7 7 8 8 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 › Error"); 10 10 } 11 11 12 12 $wp_did_header = true; -
wp-includes/link-template.php
361 361 echo $format; 362 362 } 363 363 364 function next_post_link($format='%link & raquo;', $link='%title', $in_same_cat = false, $excluded_categories = '') {364 function next_post_link($format='%link »', $link='%title', $in_same_cat = false, $excluded_categories = '') { 365 365 $post = get_next_post($in_same_cat, $excluded_categories); 366 366 367 367 if ( !$post ) … … 458 458 } 459 459 } 460 460 461 function next_posts_link($label='Next Page & raquo;', $max_page=0) {461 function next_posts_link($label='Next Page »', $max_page=0) { 462 462 global $paged, $wpdb, $wp_query; 463 463 if ( !$max_page ) { 464 464 $max_page = $wp_query->max_num_pages; … … 495 495 } 496 496 } 497 497 498 function posts_nav_link($sep=' — ', $prelabel='« Previous Page', $nxtlabel='Next Page & raquo;') {498 function posts_nav_link($sep=' — ', $prelabel='« Previous Page', $nxtlabel='Next Page »') { 499 499 global $wp_query; 500 500 if ( !is_singular() ) { 501 501 $max_num_pages = $wp_query->max_num_pages; -
wp-includes/wp-db.php
369 369 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 370 370 <html xmlns="http://www.w3.org/1999/xhtml"> 371 371 <head> 372 <title>WordPress & rsaquo; Error</title>372 <title>WordPress › Error</title> 373 373 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 374 374 <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" /> 375 375 </head> -
wp-includes/general-template.php
146 146 } 147 147 148 148 149 function wp_title($sep = '& raquo;', $display = true) {149 function wp_title($sep = '»', $display = true) { 150 150 global $wpdb; 151 151 global $m, $year, $monthnum, $day, $category_name, $wp_locale, $posts; 152 152 … … 342 342 $url = get_month_link($arcresult->year, $arcresult->month); 343 343 $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year); 344 344 if ( $show_post_count ) 345 $after = '& nbsp;('.$arcresult->posts.')' . $afterafter;345 $after = ' ('.$arcresult->posts.')' . $afterafter; 346 346 echo get_archives_link($url, $text, $format, $before, $after); 347 347 } 348 348 } … … 354 354 $url = get_year_link($arcresult->year); 355 355 $text = sprintf('%d', $arcresult->year); 356 356 if ($show_post_count) 357 $after = '& nbsp;('.$arcresult->posts.')' . $afterafter;357 $after = ' ('.$arcresult->posts.')' . $afterafter; 358 358 echo get_archives_link($url, $text, $format, $before, $after); 359 359 } 360 360 } … … 367 367 $date = sprintf('%1$d-%2$02d-%3$02d 00:00:00', $arcresult->year, $arcresult->month, $arcresult->dayofmonth); 368 368 $text = mysql2date($archive_day_date_format, $date); 369 369 if ($show_post_count) 370 $after = '& nbsp;('.$arcresult->posts.')'.$afterafter;370 $after = ' ('.$arcresult->posts.')'.$afterafter; 371 371 echo get_archives_link($url, $text, $format, $before, $after); 372 372 } 373 373 } … … 387 387 $url = sprintf('%1$s/%2$s%3$sm%4$s%5$s%6$sw%7$s%8$d', get_option('home'), '', '?', '=', $arc_year, '&', '=', $arcresult->week); 388 388 $text = $arc_week_start . $archive_week_separator . $arc_week_end; 389 389 if ($show_post_count) 390 $after = '& nbsp;('.$arcresult->posts.')'.$afterafter;390 $after = ' ('.$arcresult->posts.')'.$afterafter; 391 391 echo get_archives_link($url, $text, $format, $before, $after); 392 392 } 393 393 } … … 512 512 get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month), 513 513 date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>'; 514 514 } 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"> </td>'; 516 516 } 517 517 518 echo "\n\t\t".'<td class="pad">& nbsp;</td>';518 echo "\n\t\t".'<td class="pad"> </td>'; 519 519 520 520 if ( $next ) { 521 521 echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' . 522 522 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)) . ' »</a></td>'; 524 524 } 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"> </td>'; 526 526 } 527 527 528 528 echo ' … … 576 576 // See how much we should pad in the beginning 577 577 $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins); 578 578 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"> </td>'; 580 580 581 581 $daysinmonth = intval(date('t', $unixmonth)); 582 582 for ( $day = 1; $day <= $daysinmonth; ++$day ) { … … 601 601 602 602 $pad = 7 - calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear))-$week_begins); 603 603 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.'"> </td>'; 605 605 606 606 echo "\n\t</tr>\n\t</tbody>\n\t</table>"; 607 607 … … 934 934 $show_all = false; 935 935 $prev_next = true; 936 936 $prev_text = __('« Previous'); 937 $next_text = __('Next & raquo;');937 $next_text = __('Next »'); 938 938 $end_size = 1; // How many numbers on either end including the end 939 939 $mid_size = 2; // How many numbers to either side of current not including current 940 940 $type = 'plain'; -
wp-includes/js/colorpicker.js
681 681 if ((i % width) == 0) { cp_contents += "<tr>"; } 682 682 if (use_highlight) { var mo = 'onMouseOver="'+windowRef+'ColorPicker_highlightColor(\''+colors[i]+'\',window.document)"'; } 683 683 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+'> </a></td>'; 685 685 if ( ((i+1)>=total) || (((i+1) % width) == 0)) { 686 686 cp_contents += "</tr>"; 687 687 } … … 690 690 if (document.getElementById) { 691 691 var width1 = Math.floor(width/2); 692 692 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'> </td><td colspan='"+width2+"' align='center' id='colorPickerSelectedColorValue'>#FFFFFF</td></tr>"; 694 694 } 695 695 cp_contents += "</table>"; 696 696 if (windowMode) { -
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
240 240 } 241 241 242 242 // Remove anonymous, empty paragraphs. 243 content = content.replace(new RegExp('<p>(\\s|& nbsp;)*</p>', 'mg'), '');243 content = content.replace(new RegExp('<p>(\\s| )*</p>', 'mg'), ''); 244 244 245 245 // Handle table badness. 246 246 content = content.replace(new RegExp('<(table( [^>]*)?)>.*?<((tr|thead)( [^>]*)?)>', 'mg'), '<$1><$3>'); … … 586 586 pee = pee.replace(new RegExp('\\s*\\n', 'gi'), "<br />\n"); 587 587 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"); 588 588 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 ');589 pee = pee.replace(new RegExp('^((?: )*)\\s', 'mg'), '$1 '); 590 590 //pee = pee.replace(new RegExp('(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' "); // Hmm... 591 591 return pee; 592 592 } -
wp-includes/js/tinymce/plugins/paste/editor_plugin.js
1 /**2 1 3 * $Id: editor_plugin_src.js 126 2006-10-22 16:19:55Z spocke $4 2 5 *6 3 7 * @author Moxiecode8 4 9 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.10 5 11 */12 6 13 14 7 15 /* Import plugin specific language pack */16 8 17 tinyMCE.importPluginLanguagePack('paste');18 9 19 20 10 21 var TinyMCE_PastePlugin = {22 11 23 getInfo : function() {24 12 25 return {26 13 27 longname : 'Paste text/word',28 14 29 author : 'Moxiecode Systems AB',30 15 31 authorurl : 'http://tinymce.moxiecode.com',32 16 33 infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_paste.html',34 17 35 version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion36 18 37 };38 19 39 },40 20 41 42 21 43 initInstance : function(inst) {44 22 45 if (tinyMCE.isMSIE && tinyMCE.getParam("paste_auto_cleanup_on_paste", false))46 23 47 tinyMCE.addEvent(inst.getBody(), "paste", TinyMCE_PastePlugin._handlePasteEvent);48 24 49 },50 25 51 52 26 53 getControlHTML : function(cn) {54 27 55 switch (cn) {56 28 57 case "pastetext":58 29 59 return tinyMCE.getButtonHTML(cn, 'lang_paste_text_desc', '{$pluginurl}/images/pastetext.gif', 'mcePasteText', true);60 30 61 62 31 63 case "pasteword":64 32 65 return tinyMCE.getButtonHTML(cn, 'lang_paste_word_desc', '{$pluginurl}/images/pasteword.gif', 'mcePasteWord', true);66 33 67 68 34 69 case "selectall":70 35 71 return tinyMCE.getButtonHTML(cn, 'lang_selectall_desc', '{$pluginurl}/images/selectall.gif', 'mceSelectAll', true);72 36 73 }74 37 75 76 38 77 return '';78 39 79 },80 40 81 82 41 83 execCommand : function(editor_id, element, command, user_interface, value) {84 42 85 switch (command) {86 43 87 case "mcePasteText":88 44 89 if (user_interface) {90 45 91 if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false))92 46 93 TinyMCE_PastePlugin._insertText(clipboardData.getData("Text"), true);94 47 95 else {96 48 97 var template = new Array();98 49 99 template['file'] = '../../plugins/paste/pastetext.htm'; // Relative to theme100 50 101 template['width'] = 450;102 51 103 template['height'] = 400;104 52 105 var plain_text = "";106 53 107 tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'});108 54 109 }110 55 111 } else112 56 113 TinyMCE_PastePlugin._insertText(value['html'], value['linebreaks']);114 57 115 116 58 117 return true;118 59 119 120 60 121 case "mcePasteWord":122 61 123 if (user_interface) {124 62 125 if ((tinyMCE.isMSIE && !tinyMCE.isOpera) && !tinyMCE.getParam('paste_use_dialog', false)) {126 63 127 TinyMCE_PastePlugin._insertWordContent(TinyMCE_PastePlugin._clipboardHTML());128 64 129 } else {130 65 131 var template = new Array();132 66 133 template['file'] = '../../plugins/paste/pasteword.htm'; // Relative to theme134 67 135 template['width'] = 450;136 68 137 template['height'] = 400;138 69 139 var plain_text = "";140 70 141 tinyMCE.openWindow(template, {editor_id : editor_id, plain_text: plain_text, resizable : "yes", scrollbars : "no", inline : "yes", mceDo : 'insert'});142 71 143 }144 72 145 } else146 73 147 TinyMCE_PastePlugin._insertWordContent(value);148 74 149 150 75 151 return true;152 76 153 154 77 155 case "mceSelectAll":156 78 157 tinyMCE.execInstanceCommand(editor_id, 'selectall');158 79 159 return true;160 80 161 162 81 163 }164 82 165 166 83 167 // Pass to next handler in chain168 84 169 return false;170 85 171 },172 86 173 174 87 175 // Private plugin internal methods176 88 177 178 89 179 _handlePasteEvent : function(e) {180 90 181 switch (e.type) {182 91 183 case "paste":184 92 185 var html = TinyMCE_PastePlugin._clipboardHTML();186 93 187 var r, inst = tinyMCE.selectedInstance;188 94 189 190 95 191 // Removes italic, strong etc, the if was needed due to bug #1437114192 96 193 if (inst && (r = inst.getRng()) && r.text.length > 0)194 97 195 tinyMCE.execCommand('delete');196 98 197 198 99 199 if (html && html.length > 0)200 100 201 tinyMCE.execCommand('mcePasteWord', false, html);202 101 203 204 102 205 tinyMCE.cancelEvent(e);206 103 207 return false;208 104 209 }210 105 211 212 106 213 return true;214 107 215 },216 108 217 218 109 219 _insertText : function(content, bLinebreaks) {220 110 221 if (content && content.length > 0) {222 111 223 if (bLinebreaks) {224 112 225 // Special paragraph treatment226 113 227 if (tinyMCE.getParam("paste_create_paragraphs", true)) {228 114 229 var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');230 115 231 for (var i=0; i<rl.length; i+=2)232 116 233 content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);234 117 235 236 118 237 content = tinyMCE.regexpReplace(content, "\r\n\r\n", "</p><p>", "gi");238 119 239 content = tinyMCE.regexpReplace(content, "\r\r", "</p><p>", "gi");240 120 241 content = tinyMCE.regexpReplace(content, "\n\n", "</p><p>", "gi");242 121 243 244 122 245 // Has paragraphs246 123 247 if ((pos = content.indexOf('</p><p>')) != -1) {248 124 249 tinyMCE.execCommand("Delete");250 125 251 252 126 253 var node = tinyMCE.selectedInstance.getFocusElement();254 127 255 256 128 257 // Get list of elements to break258 129 259 var breakElms = new Array();260 130 261 262 131 263 do {264 132 265 if (node.nodeType == 1) {266 133 267 // Don't break tables and break at body268 134 269 if (node.nodeName == "TD" || node.nodeName == "BODY")270 135 271 break;272 136 273 274 137 275 breakElms[breakElms.length] = node;276 138 277 }278 139 279 } while(node = node.parentNode);280 140 281 282 141 283 var before = "", after = "</p>";284 142 285 before += content.substring(0, pos);286 143 287 288 144 289 for (var i=0; i<breakElms.length; i++) {290 145 291 before += "</" + breakElms[i].nodeName + ">";292 146 293 after += "<" + breakElms[(breakElms.length-1)-i].nodeName + ">";294 147 295 }296 148 297 298 149 299 before += "<p>";300 150 301 content = before + content.substring(pos+7) + after;302 151 303 }304 152 305 }306 153 307 308 154 309 if (tinyMCE.getParam("paste_create_linebreaks", true)) {310 155 311 content = tinyMCE.regexpReplace(content, "\r\n", "<br />", "gi");312 156 313 content = tinyMCE.regexpReplace(content, "\r", "<br />", "gi");314 157 315 content = tinyMCE.regexpReplace(content, "\n", "<br />", "gi");316 158 317 }318 159 319 }320 160 321 322 161 323 tinyMCE.execCommand("mceInsertRawHTML", false, content);324 162 325 }326 163 327 },328 164 329 330 165 331 _insertWordContent : function(content) {332 166 333 if (content && content.length > 0) {334 167 335 // Cleanup Word content336 168 337 var bull = String.fromCharCode(8226);338 169 339 var middot = String.fromCharCode(183);340 170 341 var cb;342 171 343 344 172 345 if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")346 173 347 content = eval(cb + "('before', content)");348 174 349 350 175 351 var rl = tinyMCE.getParam("paste_replace_list", '\u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013|\u2014|\u2015|\u2212,-').split(',');352 176 353 for (var i=0; i<rl.length; i+=2)354 177 355 content = content.replace(new RegExp(rl[i], 'gi'), rl[i+1]);356 178 357 358 179 359 if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {360 180 361 content = content.replace(new RegExp('<p class=MsoHeading.*?>(.*?)<\/p>', 'gi'), '<p><b>$1</b></p>');362 181 363 }364 182 365 366 183 367 content = content.replace(new RegExp('tab-stops: list [0-9]+.0pt">', 'gi'), '">' + "--list--");368 184 369 content = content.replace(new RegExp(bull + "(.*?)<BR>", "gi"), "<p>" + middot + "$1</p>");370 185 371 content = content.replace(new RegExp('<SPAN style="mso-list: Ignore">', 'gi'), "<span>" + bull); // Covert to bull list372 186 373 content = content.replace(/<o:p><\/o:p>/gi, "");374 187 375 content = content.replace(new RegExp('<br style="page-break-before: always;.*>', 'gi'), '-- page break --'); // Replace pagebreaks376 188 377 content = content.replace(new RegExp('<(!--)([^>]*)(--)>', 'g'), ""); // Word comments378 189 379 380 190 381 if (tinyMCE.getParam("paste_remove_spans", true))382 191 383 content = content.replace(/<\/?span[^>]*>/gi, "");384 192 385 386 193 387 if (tinyMCE.getParam("paste_remove_styles", true))388 194 389 content = content.replace(new RegExp('<(\\w[^>]*) style="([^"]*)"([^>]*)', 'gi'), "<$1$3");390 195 391 392 196 393 content = content.replace(/<\/?font[^>]*>/gi, "");394 197 395 396 198 397 // Strips class attributes.398 199 399 switch (tinyMCE.getParam("paste_strip_class_attributes", "all")) {400 200 401 case "all":402 201 403 content = content.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");404 202 405 break;406 203 407 408 204 409 case "mso":410 205 411 content = content.replace(new RegExp('<(\\w[^>]*) class="?mso([^ |>]*)([^>]*)', 'gi'), "<$1$3");412 206 413 break;414 207 415 }416 208 417 418 209 419 content = content.replace(new RegExp('href="?' + TinyMCE_PastePlugin._reEscape("" + document.location) + '', 'gi'), 'href="' + tinyMCE.settings['document_base_url']);420 210 421 content = content.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");422 211 423 content = content.replace(/<\\?\?xml[^>]*>/gi, "");424 212 425 content = content.replace(/<\/?\w+:[^>]*>/gi, "");426 213 427 content = content.replace(/-- page break --\s*<p> <\/p>/gi, ""); // Remove pagebreaks428 214 429 content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks430 215 431 432 216 433 // content = content.replace(/\/? */gi, ""); 434 217 435 // content = content.replace(/<p> <\/p>/gi, '');436 218 437 438 219 439 if (!tinyMCE.settings['force_p_newlines']) {440 220 441 content = content.replace('', '' ,'gi');442 221 443 content = content.replace('</p>', '<br /><br />' ,'gi');444 222 445 }446 223 447 448 224 449 if (!tinyMCE.isMSIE && !tinyMCE.settings['force_p_newlines']) {450 225 451 content = content.replace(/<\/?p[^>]*>/gi, "");452 226 453 }454 227 455 456 228 457 content = content.replace(/<\/?div[^>]*>/gi, "");458 229 459 460 230 461 // Convert all middlot lists to UL lists462 231 463 if (tinyMCE.getParam("paste_convert_middot_lists", true)) {464 232 465 var div = document.createElement("div");466 233 467 div.innerHTML = content;468 234 469 470 235 471 // Convert all middot paragraphs to li elements472 236 473 var className = tinyMCE.getParam("paste_unindented_list_class", "unIndentedList");474 237 475 476 238 477 while (TinyMCE_PastePlugin._convertMiddots(div, "--list--")) ; // bull478 239 479 while (TinyMCE_PastePlugin._convertMiddots(div, middot, className)) ; // Middot480 240 481 while (TinyMCE_PastePlugin._convertMiddots(div, bull)) ; // bull482 241 483 484 242 485 content = div.innerHTML;486 243 487 }488 244 489 490 245 491 // Replace all headers with strong and fix some other issues492 246 493 if (tinyMCE.getParam("paste_convert_headers_to_strong", false)) {494 247 495 content = content.replace(/<h[1-6]> <\/h[1-6]>/gi, '<p> </p>');496 248 497 content = content.replace(/<h[1-6]>/gi, '<p><b>');498 249 499 content = content.replace(/<\/h[1-6]>/gi, '</b></p>');500 250 501 content = content.replace(/<b> <\/b>/gi, '<b> </b>');502 251 503 content = content.replace(/^( )*/gi, '');504 252 505 }506 253 507 508 254 509 content = content.replace(/--list--/gi, ""); // Remove --list--510 255 511 512 256 513 if ((cb = tinyMCE.getParam("paste_insert_word_content_callback", "")) != "")514 257 515 content = eval(cb + "('after', content)");516 258 517 518 259 519 // Insert cleaned content520 260 521 tinyMCE.execCommand("mceInsertContent", false, content);522 261 523 524 262 525 if (tinyMCE.getParam('paste_force_cleanup_wordpaste', true))526 263 527 window.setTimeout('tinyMCE.execCommand("mceCleanup");', 1); // Do normal cleanup detached from this thread528 264 529 }530 265 531 },532 266 533 534 267 535 _reEscape : function(s) {536 268 537 var l = "?.\\*[](){}+^$:";538 269 539 var o = "";540 270 541 542 271 543 for (var i=0; i<s.length; i++) {544 272 545 var c = s.charAt(i);546 273 547 548 274 549 if (l.indexOf(c) != -1)550 275 551 o += '\\' + c;552 276 553 else554 277 555 o += c;556 278 557 }558 279 559 560 280 561 return o;562 281 563 },564 282 565 566 283 567 _convertMiddots : function(div, search, class_name) {568 284 569 var mdot = String.fromCharCode(183);570 285 571 var bull = String.fromCharCode(8226);572 286 573 574 287 575 var nodes = div.getElementsByTagName("p");576 288 577 var prevul;578 289 579 for (var i=0; i<nodes.length; i++) {580 290 581 var p = nodes[i];582 291 583 584 292 585 // Is middot586 293 587 if (p.innerHTML.indexOf(search) == 0) {588 294 589 var ul = document.createElement("ul");590 295 591 592 296 593 if (class_name)594 297 595 ul.className = class_name;596 298 597 598 299 599 // Add the first one600 300 601 var li = document.createElement("li");602 301 603 li.innerHTML = p.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--| ', "gi"), '');604 302 605 ul.appendChild(li);606 303 607 608 304 609 // Add the rest610 305 611 var np = p.nextSibling;612 306 613 while (np) {614 307 615 // If the node is whitespace, then616 308 617 // ignore it and continue on.618 309 619 if (np.nodeType == 3 && new RegExp('^\\s$', 'm').test(np.nodeValue)) {620 310 621 np = np.nextSibling;622 311 623 continue;624 312 625 }626 313 627 628 314 629 if (search == mdot) {630 315 631 if (np.nodeType == 1 && new RegExp('^o(\\s+| )').test(np.innerHTML)) {632 316 633 // Second level of nesting634 317 635 if (!prevul) {636 318 637 prevul = ul;638 319 639 ul = document.createElement("ul");640 320 641 prevul.appendChild(ul);642 321 643 }644 322 645 np.innerHTML = np.innerHTML.replace(/^o/, '');646 323 647 } else {648 324 649 // Pop the stack if we're going back up to the first level650 325 651 if (prevul) {652 326 653 ul = prevul;654 327 655 prevul = null;656 328 657 }658 329 659 // Not element or middot paragraph660 330 661 if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)662 331 663 break;664 332 665 }666 333 667 } else {668 334 669 // Not element or middot paragraph670 335 671 if (np.nodeType != 1 || np.innerHTML.indexOf(search) != 0)672 336 673 break;674 337 675 }676 338 677 678 339 679 var cp = np.nextSibling;680 340 681 var li = document.createElement("li");682 341 683 li.innerHTML = np.innerHTML.replace(new RegExp('' + mdot + '|' + bull + '|--list--| ', "gi"), '');684 342 685 np.parentNode.removeChild(np);686 343 687 ul.appendChild(li);688 344 689 np = cp;690 345 691 }692 346 693 694 347 695 p.parentNode.replaceChild(ul, p);696 348 697 698 349 699 return true;700 350 701 }702 351 703 }704 352 705 706 353 707 return false;708 354 709 },710 355 711 712 356 713 _clipboardHTML : function() {714 357 715 var div = document.getElementById('_TinyMCE_clipboardHTML');716 358 717 718 359 719 if (!div) {720 360 721 var div = document.createElement('DIV');722 361 723 div.id = '_TinyMCE_clipboardHTML';724 362 725 726 363 727 with (div.style) {728 364 729 visibility = 'hidden';730 365 731 overflow = 'hidden';732 366 733 position = 'absolute';734 367 735 width = 1;736 368 737 height = 1;738 369 739 }740 370 741 742 371 743 document.body.appendChild(div);744 372 745 }746 373 747 748 374 749 div.innerHTML = '';750 375 751 var rng = document.body.createTextRange();752 376 753 rng.moveToElementText(div);754 377 755 rng.execCommand('Paste');756 378 757 var html = div.innerHTML;758 379 759 div.innerHTML = '';760 380 761 return html;762 381 763 }764 382 765 };766 383 767 768 384 769 tinyMCE.addPlugin("paste", TinyMCE_PastePlugin);770 385 -
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> <\/p>/gi, ""); // Remove pagebreaks + content = content.replace(/-- page break --/gi, ""); // Remove pagebreaks + + // content = content.replace(/\/? */gi, "");   + // content = content.replace(/<p> <\/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]> <\/h[1-6]>/gi, '<p>  </p>'); + content = content.replace(/<h[1-6]>/gi, '<p><b>'); + content = content.replace(/<\/h[1-6]>/gi, '</b></p>'); + content = content.replace(/<b> <\/b>/gi, '<b>  </b>'); + content = content.replace(/^( )*/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--| ', "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+| )').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--| ', "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);1223 1223 1224 1224 if (!elm.hasChildNodes() && !re.test(elm.nodeName)) { 1225 1225 if (dre.test(elm.nodeName)) 1226 elm.innerHTML = "& nbsp; ";1226 elm.innerHTML = "  "; 1227 1227 else 1228 elm.innerHTML = "& nbsp;";1228 elm.innerHTML = " "; 1229 1229 } 1230 1230 } 1231 1231 } … … 2059 2059 2060 2060 html = doc.body.innerHTML; 2061 2061 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> <\/o:p>", ""); 2063 2063 html = tinyMCE.regexpReplace(html, "<st1:.*?>", ""); 2064 2064 html = tinyMCE.regexpReplace(html, "<p><\/p>", ""); 2065 2065 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> <\/p>", "<br />"); 2067 2067 html = tinyMCE.regexpReplace(html, "<p>\s*(<p>\s*)?", "<p>"); 2068 2068 html = tinyMCE.regexpReplace(html, "<\/p>\s*(<\/p>\s*)?", "</p>"); 2069 2069 }*/ … … 3285 3285 3286 3286 if (tinyMCE.isGecko || tinyMCE.isOpera) { 3287 3287 try { 3288 // Is plain text or HTML, &, & nbsp; etc will be encoded wrong in FF3288 // Is plain text or HTML, &,   etc will be encoded wrong in FF 3289 3289 if (value.indexOf('<') == -1 && !value.match(/(&| |<|>)/g)) { 3290 3290 var r = this.getRng(); 3291 3291 var n = this.getDoc().createTextNode(tinyMCE.entityDecode(value)); … … 3878 3878 /* file:jscripts/tiny_mce/classes/TinyMCE_Cleanup.class.js */ 3879 3879 3880 3880 TinyMCE_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> </p>'); 3882 s = s.replace(new RegExp('<p>\\s*<\\/p>', 'gi'), '<p> </p>'); 3883 3883 3884 3884 // Fix close BR elements 3885 3885 s = s.replace(new RegExp('<br>\\s*<\\/br>', 'gi'), '<br />'); … … 4165 4165 4166 4166 if (!np) { 4167 4167 np = d.createElement('li'); 4168 np.innerHTML = '& nbsp;';4168 np.innerHTML = ' '; 4169 4169 np.appendChild(n); 4170 4170 p.insertBefore(np, p.firstChild); 4171 4171 } else … … 4244 4244 t3 = new Date().getTime(); 4245 4245 4246 4246 // Post processing 4247 nb = tinyMCE.getParam('entity_encoding') == 'numeric' ? ' ' : '& nbsp;';4247 nb = tinyMCE.getParam('entity_encoding') == 'numeric' ? ' ' : ' '; 4248 4248 h = h.replace(/<\/?(body|head|html)[^>]*>/gi, ''); 4249 4249 h = h.replace(new RegExp(' (rowspan="1"|colspan="1")', 'g'), ''); 4250 4250 h = h.replace(/<p><hr \/><\/p>/g, '<hr />'); 4251 h = h.replace(/<p>(& nbsp;| )<\/p><hr \/><p>( | )<\/p>/g, '<hr />');4251 h = h.replace(/<p>( | )<\/p><hr \/><p>( | )<\/p>/g, '<hr />'); 4252 4252 h = h.replace(/<td>\s*<br \/>\s*<\/td>/g, '<td>' + nb + '</td>'); 4253 4253 h = h.replace(/<p>\s*<br \/>\s*<\/p>/g, '<p>' + nb + '</p>'); 4254 4254 h = h.replace(/<br \/>$/, ''); // Remove last BR for Gecko 4255 4255 h = h.replace(/<br \/><\/p>/g, '</p>'); // Remove last BR in P tags for Gecko 4256 h = h.replace(/<p>\s*(& nbsp;| )\s*<br \/>\s*( | )\s*<\/p>/g, '<p>' + nb + '</p>');4257 h = h.replace(/<p>\s*(& nbsp;| )\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*( | )\s*<br \/>\s*( | )\s*<\/p>/g, '<p>' + nb + '</p>'); 4257 h = h.replace(/<p>\s*( | )\s*<br \/>\s*<\/p>/g, '<p>' + nb + '</p>'); 4258 h = h.replace(/<p>\s*<br \/>\s* \s*<\/p>/g, '<p>' + nb + '</p>'); 4259 4259 h = h.replace(new RegExp('<a>(.*?)<\\/a>', 'g'), '$1'); 4260 4260 h = h.replace(/<p([^>]*)>\s*<\/p>/g, '<p$1>' + nb + '</p>'); 4261 4261 4262 4262 // Clean body 4263 if (/^\s*(<br \/>|<p>& nbsp;<\/p>|<p> <\/p>|<p><\/p>)\s*$/.test(h))4263 if (/^\s*(<br \/>|<p> <\/p>|<p> <\/p>|<p><\/p>)\s*$/.test(h)) 4264 4264 h = ''; 4265 4265 4266 4266 // If preformatted … … 4277 4277 } 4278 4278 4279 4279 if (s.force_br_newlines) 4280 h = h.replace(/<p>(& nbsp;| )<\/p>/g, '<br />');4280 h = h.replace(/<p>( | )<\/p>/g, '<br />'); 4281 4281 4282 4282 // Call custom cleanup code 4283 4283 h = tinyMCE._customCleanup(inst, on_save ? "get_from_editor" : "insert_to_editor", h); … … 4378 4378 s.extended_valid_elements = ''; 4379 4379 } 4380 4380 4381 this.fillStr = s.entity_encoding == "named" ? "& nbsp;" : " ";4381 this.fillStr = s.entity_encoding == "named" ? " " : " "; 4382 4382 this.idCount = 0; 4383 4383 }, 4384 4384 … … 5112 5112 h = h.replace(/\s\/>/g, '>'); 5113 5113 5114 5114 // 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 paragraphs5116 h = h.replace(/<p([^>]*)>\s*& nbsp;\s*<\/p>/gi, '<p$1 mce_keep="true"> </p>'); // Keep empty paragraphs5117 h = h.replace(/<p([^>]*)>\s+<\/p>/gi, '<p$1 mce_keep="true">& nbsp;</p>'); // Keep empty paragraphs5115 h = h.replace(/<p([^>]*)>\u00A0?<\/p>/gi, '<p$1 mce_keep="true"> </p>'); // Keep empty paragraphs 5116 h = h.replace(/<p([^>]*)>\s* \s*<\/p>/gi, '<p$1 mce_keep="true"> </p>'); // Keep empty paragraphs 5117 h = h.replace(/<p([^>]*)>\s+<\/p>/gi, '<p$1 mce_keep="true"> </p>'); // Keep empty paragraphs 5118 5118 5119 5119 // Remove first comment 5120 5120 e.innerHTML = tinyMCE.uniqueTag + h; … … 6789 6789 6790 6790 // Check if it's a empty paragraph 6791 6791 if (isEmpty(paraBefore)) 6792 paraBefore.innerHTML = "& nbsp;";6792 paraBefore.innerHTML = " "; 6793 6793 6794 6794 // Check if it's a empty paragraph 6795 6795 if (isEmpty(paraAfter)) 6796 paraAfter.innerHTML = "& nbsp;";6796 paraAfter.innerHTML = " "; 6797 6797 6798 6798 // Delete old contents 6799 6799 rng.deleteContents(); … … 6815 6815 6816 6816 //tinyMCE.debug("1: ", paraBefore.innerHTML, paraAfter.innerHTML); 6817 6817 } else { 6818 body.innerHTML = "<" + blockName + ">& nbsp;</" + blockName + "><" + blockName + "> </" + blockName + ">";6818 body.innerHTML = "<" + blockName + "> </" + blockName + "><" + blockName + "> </" + blockName + ">"; 6819 6819 paraAfter = body.childNodes[1]; 6820 6820 } 6821 6821 … … 6853 6853 6854 6854 // Check if it's a empty paragraph 6855 6855 if (isEmpty(paraBefore)) 6856 paraBefore.innerHTML = "& nbsp;";6856 paraBefore.innerHTML = " "; 6857 6857 6858 6858 // Check if it's a empty paragraph 6859 6859 if (isEmpty(paraAfter)) 6860 paraAfter.innerHTML = "& nbsp;";6860 paraAfter.innerHTML = " "; 6861 6861 6862 6862 // Create a range around everything 6863 6863 rng = doc.createRange(); -
wp-includes/js/tinymce/wp-mce-help.php
155 155 <tr><th>k</th><td><strike><?php _e('Strikethrough') ?></strike></td><th>r</th><td class="align right"><?php _e('Align Right') ?></td></tr> 156 156 <tr><th>l</th><td><b>•</b> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert <span class="anchor">Anchor</span>') ?></td></tr> 157 157 <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>→<?php _e('Quote/Indent') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr> 159 <tr><th>w</th><td>←<?php _e('Unquote/Outdent') ?></td><th>t</th><td><?php _e('Insert "More" Tag') ?></td></tr> 160 160 <tr><th>u</th><td><?php _e('Undo') ?></td><th>e</th><td><?php _e('Edit HTML') ?></td></tr> 161 161 <tr><th>y</th><td><?php _e('Redo') ?></td><th>h</th><td><?php _e('Open Help') ?></td></tr> 162 162 </table> -
wp-includes/js/tinymce/themes/advanced/jscripts/charmap.js
292 292 if (cols % charsPerRow > 0) { 293 293 var padd = charsPerRow - (cols % charsPerRow); 294 294 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"> </td>'; 296 296 } 297 297 html += '</tr></table>'; 298 298 document.write(html); -
wp-includes/js/tinymce/themes/advanced/about.htm
34 34 <div id="plugintablecontainer"> 35 35 </div> 36 36 37 <p>& nbsp;</p>37 <p> </p> 38 38 </div> 39 39 </div> 40 40 -
wp-includes/js/tinymce/themes/advanced/charmap.htm
18 18 <td width="100" align="center" valign="top"> 19 19 <table border="0" cellpadding="0" cellspacing="0" width="100" style="height: 100px"> 20 20 <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"> </td> 22 22 </tr> 23 23 <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"> </td> 25 25 </tr> 26 26 </table> 27 27 </td> … … 33 33 <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">HTML-Code</td> 34 34 </tr> 35 35 <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"> </td> 37 37 </tr> 38 38 <tr> 39 <td style="font-size: 1px;">& nbsp;</td>39 <td style="font-size: 1px;"> </td> 40 40 </tr> 41 41 <tr> 42 42 <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">NUM-Code</td> 43 43 </tr> 44 44 <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"> </td> 46 46 </tr> 47 47 </table> 48 48 </td> -
wp-includes/js/tinymce/themes/advanced/link.htm
24 24 <td><table border="0" cellspacing="0" cellpadding="0"> 25 25 <tr> 26 26 <td><input id="href" name="href" type="text" value="" style="width: 200px" /></td> 27 <td id="hrefbrowsercontainer">& nbsp;</td>27 <td id="hrefbrowsercontainer"> </td> 28 28 </tr> 29 29 </table></td> 30 30 </tr> -
wp-includes/js/tinymce/themes/advanced/image.htm
23 23 <td><table border="0" cellspacing="0" cellpadding="0"> 24 24 <tr> 25 25 <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"> </td> 27 27 </tr> 28 28 </table></td> 29 29 </tr> -
wp-includes/js/tinymce/themes/advanced/editor_template.js
909 909 html += '<a title="' + nodeData + '" href="javascript:' + cmd + '" onclick="' + cmd + 'return false;" onmousedown="return false;" target="_self" class="mcePathItem">' + nodeName + '</a>'; 910 910 911 911 if (i > 0) { 912 html += " & raquo; ";912 html += " » "; 913 913 } 914 914 } 915 915 -
wp-includes/classes.php
536 536 var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); //TODO: decouple this 537 537 538 538 function start_el($output, $page, $depth, $args) { 539 $pad = str_repeat('& nbsp;', $depth * 3);539 $pad = str_repeat(' ', $depth * 3); 540 540 541 541 $output .= "\t<option value=\"$page->ID\""; 542 542 if ( $page->ID == $args['selected'] ) … … 651 651 var $db_fields = array ('parent' => 'category_parent', 'id' => 'cat_ID'); //TODO: decouple this 652 652 653 653 function start_el($output, $category, $depth, $args) { 654 $pad = str_repeat('& nbsp;', $depth * 3);654 $pad = str_repeat(' ', $depth * 3); 655 655 656 656 $cat_name = apply_filters('list_cats', $category->cat_name, $category); 657 657 $output .= "\t<option value=\"".$category->cat_ID."\""; … … 660 660 $output .= '>'; 661 661 $output .= $pad.$cat_name; 662 662 if ( $args['show_count'] ) 663 $output .= '& nbsp; ('. $category->category_count .')';663 $output .= '  ('. $category->category_count .')'; 664 664 if ( $args['show_last_update'] ) { 665 665 $format = 'Y-m-d'; 666 $output .= '& nbsp; ' . gmdate($format, $category->last_update_timestamp);666 $output .= '  ' . gmdate($format, $category->last_update_timestamp); 667 667 } 668 668 $output .= "</option>\n"; 669 669 -
wp-includes/functions.php
1207 1207 header('Content-Type: text/html; charset=utf-8'); 1208 1208 1209 1209 if ( empty($title) ) 1210 $title = __('WordPress & rsaquo; Error');1210 $title = __('WordPress › Error'); 1211 1211 1212 1212 if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) 1213 1213 $admin_dir = ''; -
wp-content/themes/classic/comments.php
4 4 5 5 <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> 6 6 <?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"); ?>">»</a> 8 8 <?php endif; ?> 9 9 </h2> 10 10 … … 42 42 43 43 <?php if ( $user_ID ) : ?> 44 44 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 »</a></p> 46 46 47 47 <?php else : ?> 48 48 -
wp-content/themes/classic/index.php
27 27 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> 28 28 <?php endif; ?> 29 29 30 <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page & raquo;')); ?>30 <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?> 31 31 32 32 <?php get_footer(); ?> -
wp-content/themes/default/search.php
8 8 9 9 <div class="navigation"> 10 10 <div class="alignleft"><?php next_posts_link('« 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 »') ?></div> 12 12 </div> 13 13 14 14 … … 25 25 26 26 <div class="navigation"> 27 27 <div class="alignleft"><?php next_posts_link('« 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 »') ?></div> 29 29 </div> 30 30 31 31 <?php else : ?> -
wp-content/themes/default/index.php
11 11 <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> 12 12 13 13 <div class="entry"> 14 <?php the_content('Read the rest of this entry & raquo;'); ?>14 <?php the_content('Read the rest of this entry »'); ?> 15 15 </div> 16 16 17 17 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> … … 21 21 22 22 <div class="navigation"> 23 23 <div class="alignleft"><?php next_posts_link('« 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 »') ?></div> 25 25 </div> 26 26 27 27 <?php else : ?> -
wp-content/themes/default/functions.php
1 <?php2 1 3 4 2 5 function kubrick_head() {6 3 7 $head = "<style type='text/css'>\n<!--";8 4 9 $output = '';10 5 11 if ( kubrick_header_image() ) {12 6 13 $url = kubrick_header_image_url() ;14 7 15 $output .= "#header { background: url('$url') no-repeat bottom center; }\n";16 8 17 }18 9 19 if ( false !== ( $color = kubrick_header_color() ) ) {20 10 21 $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";22 11 23 }24 12 25 if ( false !== ( $display = kubrick_header_display() ) ) {26 13 27 $output .= "#headerimg { display: $display }\n";28 14 29 }30 15 31 $foot = "--></style>\n";32 16 33 if ( '' != $output )34 17 35 echo $head . $output . $foot;36 18 37 }38 19 39 40 20 41 add_action('wp_head', 'kubrick_head');42 21 43 44 22 45 function kubrick_header_image() {46 23 47 return apply_filters('kubrick_header_image', get_option('kubrick_header_image'));48 24 49 }50 25 51 52 26 53 function kubrick_upper_color() {54 27 55 if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {56 28 57 parse_str(substr($url, strpos($url, '?') + 1), $q);58 29 59 return $q['upper'];60 30 61 } else62 31 63 return '69aee7';64 32 65 }66 33 67 68 34 69 function kubrick_lower_color() {70 35 71 if ( strstr( $url = kubrick_header_image_url(), 'header-img.php?' ) ) {72 36 73 parse_str(substr($url, strpos($url, '?') + 1), $q);74 37 75 return $q['lower'];76 38 77 } else78 39 79 return '4180b6';80 40 81 }82 41 83 84 42 85 function kubrick_header_image_url() {86 43 87 if ( $image = kubrick_header_image() )88 44 89 $url = get_template_directory_uri() . '/images/' . $image;90 45 91 else92 46 93 $url = get_template_directory_uri() . '/images/kubrickheader.jpg';94 47 95 96 48 97 return $url;98 49 99 }100 50 101 102 51 103 function kubrick_header_color() {104 52 105 return apply_filters('kubrick_header_color', get_option('kubrick_header_color'));106 53 107 }108 54 109 110 55 111 function kubrick_header_color_string() {112 56 113 $color = kubrick_header_color();114 57 115 if ( false === $color )116 58 117 return 'white';118 59 119 120 60 121 return $color;122 61 123 }124 62 125 126 63 127 function kubrick_header_display() {128 64 129 return apply_filters('kubrick_header_display', get_option('kubrick_header_display'));130 65 131 }132 66 133 134 67 135 function kubrick_header_display_string() {136 68 137 $display = kubrick_header_display();138 69 139 return $display ? $display : 'inline';140 70 141 }142 71 143 144 72 145 add_action('admin_menu', 'kubrick_add_theme_page');146 73 147 148 74 149 function kubrick_add_theme_page() {150 75 151 if ( $_GET['page'] == basename(__FILE__) ) {152 76 153 if ( 'save' == $_REQUEST['action'] ) {154 77 155 if ( isset($_REQUEST['njform']) ) {156 78 157 if ( isset($_REQUEST['defaults']) ) {158 79 159 delete_option('kubrick_header_image');160 80 161 delete_option('kubrick_header_color');162 81 163 delete_option('kubrick_header_display');164 82 165 } else {166 83 167 if ( '' == $_REQUEST['njfontcolor'] )168 84 169 delete_option('kubrick_header_color');170 85 171 else172 86 173 update_option('kubrick_header_color', $_REQUEST['njfontcolor']);174 87 175 176 88 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) ) {178 89 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];180 90 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];182 91 183 update_option('kubrick_header_image', "header-img.php?upper=$uc&lower=$lc");184 92 185 }186 93 187 188 94 189 if ( isset($_REQUEST['toggledisplay']) ) {190 95 191 if ( false === get_option('kubrick_header_display') )192 96 193 update_option('kubrick_header_display', 'none');194 97 195 else196 98 197 delete_option('kubrick_header_display');198 99 199 }200 100 201 }202 101 203 } else {204 102 205 206 103 207 if ( isset($_REQUEST['headerimage']) ) {208 104 209 if ( '' == $_REQUEST['headerimage'] )210 105 211 delete_option('kubrick_header_image');212 106 213 else214 107 215 update_option('kubrick_header_image', $_REQUEST['headerimage']);216 108 217 }218 109 219 220 110 221 if ( isset($_REQUEST['fontcolor']) ) {222 111 223 if ( '' == $_REQUEST['fontcolor'] )224 112 225 delete_option('kubrick_header_color');226 113 227 else228 114 229 update_option('kubrick_header_color', $_REQUEST['fontcolor']);230 115 231 }232 116 233 234 117 235 if ( isset($_REQUEST['fontdisplay']) ) {236 118 237 if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )238 119 239 delete_option('kubrick_header_display');240 120 241 else242 121 243 update_option('kubrick_header_display', 'none');244 122 245 }246 123 247 }248 124 249 //print_r($_REQUEST);250 125 251 wp_redirect("themes.php?page=functions.php&saved=true");252 126 253 die;254 127 255 }256 128 257 add_action('admin_head', 'kubrick_theme_page_head');258 129 259 }260 130 261 add_theme_page('Customize Header', 'Header Image and Color', 'edit_themes', basename(__FILE__), 'kubrick_theme_page');262 131 263 }264 132 265 266 133 267 function kubrick_theme_page_head() {268 134 269 ?>270 135 271 <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>272 136 273 <script type='text/javascript'>274 137 275 // <![CDATA[276 138 277 function pickColor(color) {278 139 279 ColorPicker_targetInput.value = color;280 140 281 kUpdate(ColorPicker_targetInput.id);282 141 283 }284 142 285 function PopupWindow_populate(contents) {286 143 287 contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" value="Close Color Picker" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';288 144 289 this.contents = contents;290 145 291 this.populated = false;292 146 293 }294 147 295 function PopupWindow_hidePopup(magicword) {296 148 297 if ( magicword != 'prettyplease' )298 149 299 return false;300 150 301 if (this.divName != null) {302 151 303 if (this.use_gebi) {304 152 305 document.getElementById(this.divName).style.visibility = "hidden";306 153 307 }308 154 309 else if (this.use_css) {310 155 311 document.all[this.divName].style.visibility = "hidden";312 156 313 }314 157 315 else if (this.use_layers) {316 158 317 document.layers[this.divName].visibility = "hidden";318 159 319 }320 160 321 }322 161 323 else {324 162 325 if (this.popupWindow && !this.popupWindow.closed) {326 163 327 this.popupWindow.close();328 164 329 this.popupWindow = null;330 165 331 }332 166 333 }334 167 335 return false;336 168 337 }338 169 339 function colorSelect(t,p) {340 170 341 if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" )342 171 343 cp.hidePopup('prettyplease');344 172 345 else {346 173 347 cp.p = p;348 174 349 cp.select(t,p);350 175 351 }352 176 353 }354 177 355 function PopupWindow_setSize(width,height) {356 178 357 this.width = 162;358 179 359 this.height = 210;360 180 361 }362 181 363 364 182 365 var cp = new ColorPicker();366 183 367 function advUpdate(val, obj) {368 184 369 document.getElementById(obj).value = val;370 185 371 kUpdate(obj);372 186 373 }374 187 375 function kUpdate(oid) {376 188 377 if ( 'uppercolor' == oid || 'lowercolor' == oid ) {378 189 379 uc = document.getElementById('uppercolor').value.replace('#', '');380 190 381 lc = document.getElementById('lowercolor').value.replace('#', '');382 191 383 hi = document.getElementById('headerimage');384 192 385 hi.value = 'header-img.php?upper='+uc+'&lower='+lc;386 193 387 document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat';388 194 389 document.getElementById('advuppercolor').value = '#'+uc;390 195 391 document.getElementById('advlowercolor').value = '#'+lc;392 196 393 }394 197 395 if ( 'fontcolor' == oid ) {396 198 397 document.getElementById('header').style.color = document.getElementById('fontcolor').value;398 199 399 document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value;400 200 401 }402 201 403 if ( 'fontdisplay' == oid ) {404 202 405 document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;406 203 407 }408 204 409 }410 205 411 function toggleDisplay() {412 206 413 td = document.getElementById('fontdisplay');414 207 415 td.value = ( td.value == 'none' ) ? 'inline' : 'none';416 208 417 kUpdate('fontdisplay');418 209 419 }420 210 421 function toggleAdvanced() {422 211 423 a = document.getElementById('jsAdvanced');424 212 425 if ( a.style.display == 'none' )426 213 427 a.style.display = 'block';428 214 429 else430 215 431 a.style.display = 'none';432 216 433 }434 217 435 function kDefaults() {436 218 437 document.getElementById('headerimage').value = '';438 219 439 document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7';440 220 441 document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6';442 221 443 document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat';444 222 445 document.getElementById('header').style.color = '#FFFFFF';446 223 447 document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '';448 224 449 document.getElementById('fontdisplay').value = 'inline';450 225 451 document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;452 226 453 }454 227 455 function kRevert() {456 228 457 document.getElementById('headerimage').value = '<?php echo kubrick_header_image(); ?>';458 229 459 document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo kubrick_upper_color(); ?>';460 230 461 document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo kubrick_lower_color(); ?>';462 231 463 document.getElementById('header').style.background = 'url("<?php echo kubrick_header_image_url(); ?>") center no-repeat';464 232 465 document.getElementById('header').style.color = '';466 233 467 document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo kubrick_header_color_string(); ?>';468 234 469 document.getElementById('fontdisplay').value = '<?php echo kubrick_header_display_string(); ?>';470 235 471 document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;472 236 473 }474 237 475 function kInit() {476 238 477 document.getElementById('jsForm').style.display = 'block';478 239 479 document.getElementById('nonJsForm').style.display = 'none';480 240 481 }482 241 483 addLoadEvent(kInit);484 242 485 // ]]>486 243 487 </script>488 244 489 <style type='text/css'>490 245 491 #headwrap {492 246 493 text-align: center;494 247 495 }496 248 497 #kubrick-header {498 249 499 font-size: 80%;500 250 501 }502 251 503 #kubrick-header .hibrowser {504 252 505 width: 780px;506 253 507 height: 260px;508 254 509 overflow: scroll;510 255 511 }512 256 513 #kubrick-header #hitarget {514 257 515 display: none;516 258 517 }518 259 519 #kubrick-header #header h1 {520 260 521 font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;522 261 523 font-weight: bold;524 262 525 font-size: 4em;526 263 527 text-align: center;528 264 529 padding-top: 70px;530 265 531 margin: 0;532 266 533 }534 267 535 536 268 537 #kubrick-header #header .description {538 269 539 font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;540 270 541 font-size: 1.2em;542 271 543 text-align: center;544 272 545 }546 273 547 #kubrick-header #header {548 274 549 text-decoration: none;550 275 551 color: <?php echo kubrick_header_color_string(); ?>;552 276 553 padding: 0;554 277 555 margin: 0;556 278 557 height: 200px;558 279 559 text-align: center;560 280 561 background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat;562 281 563 }564 282 565 #kubrick-header #headerimg {566 283 567 margin: 0;568 284 569 height: 200px;570 285 571 width: 100%;572 286 573 display: <?php echo kubrick_header_display_string(); ?>;574 287 575 }576 288 577 #jsForm {578 289 579 display: none;580 290 581 text-align: center;582 291 583 }584 292 585 #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button {586 293 587 padding: 0px;588 294 589 margin: 0px;590 295 591 }592 296 593 #advanced {594 297 595 text-align: center;596 298 597 width: 620px;598 299 599 }600 300 601 html>body #advanced {602 301 603 text-align: center;604 302 605 position: relative;606 303 607 left: 50%;608 304 609 margin-left: -380px;610 305 611 }612 306 613 #jsAdvanced {614 307 615 text-align: right;616 308 617 }618 309 619 #nonJsForm {620 310 621 position: relative;622 311 623 text-align: left;624 312 625 margin-left: -370px;626 313 627 left: 50%;628 314 629 }630 315 631 #nonJsForm label {632 316 633 padding-top: 6px;634 317 635 padding-right: 5px;636 318 637 float: left;638 319 639 width: 100px;640 320 641 text-align: right;642 321 643 }644 322 645 .defbutton {646 323 647 font-weight: bold;648 324 649 }650 325 651 .zerosize {652 326 653 width: 0px;654 327 655 height: 0px;656 328 657 overflow: hidden;658 329 659 }660 330 661 #colorPickerDiv a, #colorPickerDiv a:hover {662 331 663 padding: 1px;664 332 665 text-decoration: none;666 333 667 border-bottom: 0px;668 334 669 }670 335 671 </style>672 336 673 <?php674 337 675 }676 338 677 678 339 679 function kubrick_theme_page() {680 340 681 if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>';682 341 683 ?>684 342 685 <div class='wrap'>686 343 687 <div id="kubrick-header">688 344 689 <h2>Header Image and Color</h2>690 345 691 <div id="headwrap">692 346 693 <div id="header">694 347 695 <div id="headerimg">696 348 697 <h1><?php bloginfo('name'); ?></h1>698 349 699 <div class="description"><?php bloginfo('description'); ?></div>700 350 701 </div>702 351 703 </div>704 352 705 </div>706 353 707 <br />708 354 709 <div id="nonJsForm">710 355 711 <form method="post" action="">712 356 713 <div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>714 357 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 />716 358 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 />718 359 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 />720 360 721 <input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" />722 361 723 <input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />724 362 725 <input type="submit" name="defaults" value="Use Defaults" />726 363 727 <input type="submit" class="defbutton" name="submitform" value=" Save " />728 364 729 <input type="hidden" name="action" value="save" />730 365 731 <input type="hidden" name="njform" value="true" />732 366 733 </form>734 367 735 </div>736 368 737 <div id="jsForm">738 369 739 <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo $_SERVER['REQUEST_URI']; ?>">740 370 741 <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input>742 371 743 <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input>744 372 745 <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input>746 373 747 <input type="button" name="revert" value="Revert" onclick="kRevert()" />748 374 749 <input type="button" value="Advanced" onclick="toggleAdvanced()" />750 375 751 <input type="hidden" name="action" value="save" />752 376 753 <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" />754 377 755 <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo kubrick_header_color(); ?>" />756 378 757 <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo kubrick_upper_color(); ?>" />758 379 759 <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" />760 380 761 <input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" />762 381 763 <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header »'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>764 382 765 </form>766 383 767 <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>768 384 769 <div id="advanced">770 385 771 <form id="jsAdvanced" style="display:none;" action="">772 386 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 />774 387 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 />776 388 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 />778 389 779 <input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br />780 390 781 <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br />782 391 783 </form>784 392 785 </div>786 393 787 </div>788 394 789 </div>790 395 791 </div>792 396 793 <?php } ?>794 397 -
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&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="  Save  " /> + <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 »'); ?>" 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 } ?>6 6 <div class="post" id="post-<?php the_ID(); ?>"> 7 7 <h2><?php the_title(); ?></h2> 8 8 <div class="entry"> 9 <?php the_content('<p class="serif">Read the rest of this page & raquo;</p>'); ?>9 <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> 10 10 11 11 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 12 12 -
wp-content/themes/default/single.php
6 6 7 7 <div class="navigation"> 8 8 <div class="alignleft"><?php previous_post_link('« %link') ?></div> 9 <div class="alignright"><?php next_post_link('%link & raquo;') ?></div>9 <div class="alignright"><?php next_post_link('%link »') ?></div> 10 10 </div> 11 11 12 12 <div class="post" id="post-<?php the_ID(); ?>"> 13 13 <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 14 14 15 15 <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 »</p>'); ?> 17 17 18 18 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 19 19 -
wp-content/themes/default/archive.php
28 28 29 29 <div class="navigation"> 30 30 <div class="alignleft"><?php next_posts_link('« 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 »') ?></div> 32 32 </div> 33 33 34 34 <?php while (have_posts()) : the_post(); ?> … … 48 48 49 49 <div class="navigation"> 50 50 <div class="alignleft"><?php next_posts_link('« 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 »') ?></div> 52 52 </div> 53 53 54 54 <?php else : ?> -
wp-content/themes/default/comments.php
73 73 74 74 <?php if ( $user_ID ) : ?> 75 75 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 »</a></p> 77 77 78 78 <?php else : ?> 79 79 -
wp-content/themes/default/header.php
4 4 <head profile="http://gmpg.org/xfn/11"> 5 5 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 6 6 7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> & raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>7 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> 8 8 9 9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> 10 10 -
wp-content/themes/default/attachment.php
5 5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 6 6 7 7 <div class="navigation"> 8 <div class="alignleft">& nbsp;</div>9 <div class="alignright">& nbsp;</div>8 <div class="alignleft"> </div> 9 <div class="alignright"> </div> 10 10 </div> 11 11 <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?> 12 12 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?> 13 13 <div class="post" id="post-<?php the_ID(); ?>"> 14 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> & raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>14 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> 15 15 <div class="entry"> 16 16 <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> 17 17 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 »</p>'); ?> 19 19 20 20 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> 21 21 -
readme.html
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 <title>WordPress & rsaquo; ReadMe</title>4 <title>WordPress › ReadMe</title> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 6 <link rel="stylesheet" href="wp-admin/install.css" type="text/css" /> 7 7 </head> -
wp-admin/users.php
86 86 'total' => ceil($this->total_users_for_query / $this->users_per_page), 87 87 'current' => $this->page, 88 88 'prev_text' => '« Previous Page', 89 'next_text' => 'Next Page & raquo;',89 'next_text' => 'Next Page »', 90 90 'base' => 'users.php?%_%', 91 91 'format' => 'userspage=%#%', 92 92 'add_args' => array( 'usersearch' => urlencode($this->search_term) ) … … 338 338 <?php endif; ?> 339 339 340 340 <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 »'); ?>" class="button" /></p> 342 342 </form> 343 343 344 344 <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?> … … 419 419 </ul> 420 420 <p class="submit" style="width: 420px"> 421 421 <?php echo $referer; ?> 422 <input type="submit" value="<?php _e('Bulk Update & raquo;'); ?>" />422 <input type="submit" value="<?php _e('Bulk Update »'); ?>" /> 423 423 </p> 424 424 </form> 425 425 <?php endif; ?> … … 498 498 </table> 499 499 <p class="submit"> 500 500 <?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 »') ?>" /> 502 502 </p> 503 503 </form> 504 504 -
wp-admin/options-privacy.php
24 24 </tr> 25 25 </table> 26 26 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 »') ?>" /> 28 28 <input type="hidden" name="action" value="update" /> 29 29 <input type="hidden" name="page_options" value="blog_public" /> 30 30 </p> -
wp-admin/edit-comments.php
122 122 } 123 123 if ( ( $page ) * 20 < $total || -1 == $total ) { 124 124 $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') .' »</a>' . "\n"; 126 126 } 127 127 echo "<p>$r</p>"; 128 128 ?> … … 229 229 <?php 230 230 } // end foreach 231 231 ?></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 »') ?>" 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 »') ?>" 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> 234 234 </form> 235 235 <div id="ajax-response"></div> 236 236 <?php … … 269 269 } 270 270 if ( ( $page ) * 20 < $total || -1 == $total ) { 271 271 $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') .' »</a>' . "\n"; 273 273 } 274 274 echo "<p>$r</p>"; 275 275 ?> -
wp-admin/post-new.php
20 20 } 21 21 22 22 if ( 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'); ?> »</a></p></div> 24 24 <?php 25 25 endif; 26 26 … … 41 41 } 42 42 43 43 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) ); ?> »</a> 45 45 <?php } ?> 46 46 .</p> 47 47 </div> -
wp-admin/theme-editor.php
93 93 } 94 94 ?> 95 95 </select> 96 <input type="submit" name="Submit" value="<?php _e('Select & raquo;') ?>" class="button" />96 <input type="submit" name="Submit" value="<?php _e('Select »') ?>" class="button" /> 97 97 </form> 98 98 </div> 99 99 … … 131 131 <?php if ( is_writeable($real_file) ) : ?> 132 132 <p class="submit"> 133 133 <?php 134 echo "<input type='submit' name='submit' value=' " . __('Update File & raquo;') . "' tabindex='2' />";134 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' tabindex='2' />"; 135 135 ?> 136 136 </p> 137 137 <?php else : ?> … … 143 143 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; 144 144 } 145 145 ?> 146 <div class="clear"> & nbsp; </div>146 <div class="clear">   </div> 147 147 </div> 148 148 <?php 149 149 break; -
wp-admin/templates.php
126 126 <?php if ( is_writeable($real_file) ) : ?> 127 127 <p class="submit"> 128 128 <?php 129 echo "<input type='submit' name='submit' value=' " . __('Update File & raquo;') . "' tabindex='2' />";129 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' tabindex='2' />"; 130 130 ?> 131 131 </p> 132 132 <?php else : ?> … … 138 138 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; 139 139 } 140 140 ?> 141 <div class="clear"> & nbsp; </div>141 <div class="clear">   </div> 142 142 </div> 143 143 <div class="wrap"> 144 144 <h2><?php _e('Other Files') ?></h2> … … 146 146 <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> 147 147 <form name="file" action="templates.php" method="get"> 148 148 <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 »') ?>" /> 150 150 </form> 151 151 152 152 <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’t have access to a text editor or FTP client.') ?></p> -
wp-admin/admin-functions.php
877 877 global $post_ID; 878 878 // Exit if no meta 879 879 if (!$meta ) { 880 echo '<tbody id="the-list"><tr style="display: none;"><td>& nbsp;</td></tr></tbody>'; //TBODY needed for list-manipulation JS880 echo '<tbody id="the-list"><tr style="display: none;"><td> </td></tr></tbody>'; //TBODY needed for list-manipulation JS 881 881 return; 882 882 } 883 883 $count = 0; … … 978 978 </tr> 979 979 980 980 </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 »' ) ?>" /></p> 982 982 <?php 983 983 984 984 } … … 1240 1240 continue; 1241 1241 } 1242 1242 } 1243 $pad = str_repeat( '& nbsp;', $level * 3 );1243 $pad = str_repeat( ' ', $level * 3 ); 1244 1244 if ( $item->ID == $default) 1245 1245 $current = ' selected="selected"'; 1246 1246 else … … 1887 1887 <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /> 1888 1888 </p> 1889 1889 <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' ); ?> »" /> 1891 1891 </p> 1892 1892 </form> 1893 1893 <?php -
wp-admin/upload-js.php
88 88 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 89 89 h += "</a>"; 90 90 } else 91 h += '& nbsp;';91 h += ' '; 92 92 h += "</div>"; 93 93 94 94 h += "<form name='uploadoptions' id='uploadoptions' class='alignleft'>"; … … 119 119 h += "</td></tr>"; 120 120 121 121 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 »')); ?>' />"; 123 123 h += "</p></td></tr></table>"; 124 124 h += "</form>"; 125 125 … … 166 166 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 167 167 h += "</a>"; 168 168 } else 169 h += '& nbsp;';169 h += ' '; 170 170 h += "</div>"; 171 171 172 172 … … 184 184 h += "<input type='hidden' name='action' id='action-value' value='save' />"; 185 185 h += "<input type='hidden' name='ID' value='" + id + "' />"; 186 186 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 »')); ?>' /></div>"; 188 188 h += "</td></tr></table></form>"; 189 189 190 190 new Insertion.Top('upload-content', h); -
wp-admin/custom-header.php
165 165 <form method="post" action="<?php echo get_option('siteurl') ?>/wp-admin/themes.php?page=custom-header&updated=true"> 166 166 <input type="button" value="<?php _e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" /> 167 167 <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'); ?> »" /></form> 169 169 <?php } ?> 170 170 171 171 <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> … … 178 178 <label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 179 179 <input type="hidden" name="action" value="save" /> 180 180 <p class="submit"> 181 <input type="submit" value="<?php _e('Upload'); ?> & raquo;" />181 <input type="submit" value="<?php _e('Upload'); ?> »" /> 182 182 </p> 183 183 </form> 184 184 … … 256 256 <input type="hidden" name="height" id="height" /> 257 257 <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo $id; ?>" /> 258 258 <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 »'); ?>" /> 260 260 </p> 261 261 262 262 </form> -
wp-admin/moderation.php
131 131 ?> 132 132 <a href="<?php echo get_permalink($comment->comment_post_ID); ?>" title="<?php echo $post_title; ?>"><?php _e('View Post') ?></a> ] — 133 133 <?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>   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>   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>   137 137 <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> 138 138 </p> 139 139 … … 145 145 146 146 <div id="ajax-response"></div> 147 147 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 »') ?>" /></p> 149 149 <script type="text/javascript"> 150 150 // <![CDATA[ 151 151 function markAllForDelete() { -
wp-admin/options-general.php
11 11 <h2><?php _e('General Options') ?></h2> 12 12 <form method="post" action="options.php"> 13 13 <?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 »') ?>" /></p> 15 15 <table class="optiontable"> 16 16 <tr valign="top"> 17 17 <th scope="row"><?php _e('Weblog title:') ?></th> … … 78 78 <?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td> 79 79 </tr> 80 80 <tr> 81 <th scope="row">& nbsp;</th>81 <th scope="row"> </th> 82 82 <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> 83 83 </tr> 84 84 <tr> … … 95 95 </table> 96 96 </fieldset> 97 97 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 »') ?>" /> 99 99 <input type="hidden" name="action" value="update" /> 100 100 <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" /> 101 101 </p> -
wp-admin/index.php
39 39 if ( $comments || $numcomments ) : 40 40 ?> 41 41 <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...'); ?>">»</a></h3> 43 43 44 44 <?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) ); ?> »</a></strong></p> 46 46 <?php endif; ?> 47 47 48 48 <ul> … … 63 63 if ( $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") ) : 64 64 ?> 65 65 <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...'); ?>">»</a></h3> 67 67 <ul> 68 68 <?php 69 69 foreach ($recentposts as $post) { … … 138 138 139 139 <div id="planetnews"></div> 140 140 141 <div style="clear: both">& nbsp;141 <div style="clear: both">  142 142 <br clear="all" /> 143 143 </div> 144 144 </div> -
wp-admin/edit-link-form.php
1 1 <?php 2 2 if ( ! empty($link_id) ) { 3 3 $heading = __('Edit Link'); 4 $submit_text = __('Save Changes & raquo;');4 $submit_text = __('Save Changes »'); 5 5 $form = '<form name="editlink" id="editlink" method="post" action="link.php">'; 6 6 $nonce_action = 'update-bookmark_' . $link_id; 7 7 } else { 8 8 $heading = __('Add Link'); 9 $submit_text = __('Add Link & raquo;');9 $submit_text = __('Add Link »'); 10 10 $form = '<form name="addlink" id="addlink" method="post" action="link.php">'; 11 11 $nonce_action = 'add-bookmark'; 12 12 } … … 237 237 echo 'selected="selected"'; 238 238 echo('>'.$r.'</option>'); 239 239 } 240 ?></select>& nbsp;<?php _e('(Leave at 0 for no rating.)') ?>240 ?></select> <?php _e('(Leave at 0 for no rating.)') ?> 241 241 </td> 242 242 </tr> 243 243 </table> -
wp-admin/import/dotclear.php
148 148 echo '<p>'.__('Your DotClear Configuration settings are as follows:').'</p>'; 149 149 echo '<form action="admin.php?import=dotclear&step=1" method="post">'; 150 150 $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').' »" /></p>'; 152 152 echo '</form></div>'; 153 153 } 154 154 -
wp-admin/import/textpattern.php
57 57 echo '<p>'.__('Your Textpattern Configuration settings are as follows:').'</p>'; 58 58 echo '<form action="admin.php?import=textpattern&step=1" method="post">'; 59 59 $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').' »" /></p>'; 61 61 echo '</form>'; 62 62 echo '</div>'; 63 63 } -
wp-admin/import/greymatter.php
29 29 <li><?php _e('Import gm-templates.') ?></li> 30 30 <li><?php _e("Doesn't keep entries on top.")?></li> 31 31 </ul> 32 <p>& nbsp;</p>32 <p> </p> 33 33 34 34 <form name="stepOne" method="get"> 35 35 <input type="hidden" name="import" value="greymatter" /> … … 280 280 } 281 281 ?> 282 282 </ul><strong><?php _e('Done') ?></strong></li></ul> 283 <p>& nbsp;</p>283 <p> </p> 284 284 <p><?php _e('Completed GreyMatter import!') ?></p> 285 285 <?php 286 286 $this->footer(); -
wp-admin/options-misc.php
12 12 <h2><?php _e('Miscellaneous Options') ?></h2> 13 13 <form method="post" action="options.php"> 14 14 <?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 »') ?>" /></p> 16 16 <fieldset class="options"> 17 17 <legend><?php _e('Uploading'); ?></legend> 18 18 <table class="editform optiontable"> … … 44 44 <p class="submit"> 45 45 <input type="hidden" name="action" value="update" /> 46 46 <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 »') ?>" /> 48 48 </p> 49 49 </form> 50 50 </div> -
wp-admin/upload.php
62 62 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 63 63 <head> 64 64 <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'); ?> — WordPress</title>65 <title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — WordPress</title> 66 66 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 67 67 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 68 68 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> … … 109 109 'total' => ceil($total / $per), 110 110 'current' => $paged ? $paged : 1, 111 111 'prev_text' => '«', 112 'next_text' => '& raquo;'112 'next_text' => '»' 113 113 )); 114 114 if ( $page_links ) 115 115 $page_links = "<span id='current-tab-nav'>: $page_links</span>"; -
wp-admin/edit-form-comment.php
1 1 <?php 2 $submitbutton_text = __('Edit Comment & raquo;');2 $submitbutton_text = __('Edit Comment »'); 3 3 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID); 4 4 $form_action = 'editedcomment'; 5 5 $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
62 62 <?php endif; ?> 63 63 64 64 <?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 »') . '" />'; 66 66 } ?> 67 67 <input name="referredby" type="hidden" id="referredby" value="<?php if ( wp_get_referer() ) echo urlencode(wp_get_referer()); ?>" /> 68 68 </p> -
wp-admin/upload-functions.php
15 15 $innerHTML = get_attachment_innerHTML( $id, false, $dims ); 16 16 if ( $image_src = get_attachment_icon_src() ) { 17 17 $image_rel = wp_make_link_relative($image_src); 18 $innerHTML = '& nbsp;' . str_replace($image_src, $image_rel, $innerHTML);18 $innerHTML = ' ' . str_replace($image_src, $image_rel, $innerHTML); 19 19 $class = 'image'; 20 20 } 21 21 … … 70 70 echo '</a>'; 71 71 ?></h2> 72 72 <span><?php 73 echo '[& nbsp;';73 echo '[ '; 74 74 echo '<a href="' . get_permalink() . '">' . __('view') . '</a>'; 75 echo '& nbsp;| ';75 echo ' | '; 76 76 echo '<a href="' . attribute_escape(add_query_arg('action', 'edit')) . '" title="' . __('Edit this file') . '">' . __('edit') . '</a>'; 77 echo '& nbsp;| ';77 echo ' | '; 78 78 echo '<a href="' . attribute_escape(remove_query_arg(array('action', 'ID'))) . '" title="' . __('Browse your files') . '">' . __('cancel') . '</a>'; 79 echo '& nbsp;]'; ?></span>79 echo ' ]'; ?></span> 80 80 </div> 81 81 82 82 <div id="upload-file-view" class="alignleft"> … … 110 110 echo '</a>'; 111 111 ?></h2> 112 112 <span><?php 113 echo '[& nbsp;';113 echo '[ '; 114 114 echo '<a href="' . get_permalink() . '">' . __('view') . '</a>'; 115 echo '& nbsp;| ';115 echo ' | '; 116 116 echo '<a href="' . attribute_escape(add_query_arg('action', 'view')) . '">' . __('links') . '</a>'; 117 echo '& nbsp;| ';117 echo ' | '; 118 118 echo '<a href="' . attribute_escape(remove_query_arg(array('action','ID'))) . '" title="' . __('Browse your files') . '">' . __('cancel') . '</a>'; 119 echo '& nbsp;]'; ?></span>119 echo ' ]'; ?></span> 120 120 </div> 121 121 122 122 <div id="upload-file-view" class="alignleft"> … … 161 161 <?php endif; ?> 162 162 <?php wp_nonce_field( 'inlineuploading' ); ?> 163 163 <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'); ?> »" /> 165 165 </div> 166 166 </td> 167 167 </tr> -
wp-admin/link-import.php
55 55 ?> 56 56 </select></p> 57 57 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 »') ?>" /></p> 59 59 </form> 60 60 61 61 </div> -
wp-admin/options-discussion.php
11 11 <h2><?php _e('Discussion Options') ?></h2> 12 12 <form method="post" action="options.php"> 13 13 <?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 »') ?>" /></p> 15 15 <fieldset class="options"> 16 16 <legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend> 17 17 <ul> … … 78 78 <p class="submit"> 79 79 <input type="hidden" name="action" value="update" /> 80 80 <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 »') ?>" /> 82 82 </p> 83 83 </form> 84 84 </div> -
wp-admin/admin-header.php
16 16 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 17 17 <head> 18 18 <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 ) ); ?> — WordPress</title>19 <title><?php bloginfo('name') ?> › <?php echo wp_specialchars( strip_tags( $title ) ); ?> — WordPress</title> 20 20 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 21 21 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 22 22 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> … … 44 44 </head> 45 45 <body> 46 46 <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 »') ?></a>)</span></h1> 48 48 </div> 49 49 <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> 50 50 -
wp-admin/edit.php
75 75 76 76 <form name="searchform" id="searchform" action="" method="get"> 77 77 <fieldset> 78 <legend><?php _e('Search Posts& hellip;') ?></legend>78 <legend><?php _e('Search Posts…') ?></legend> 79 79 <input type="text" name="s" value="<?php if (isset($s)) echo attribute_escape($s); ?>" size="17" /> 80 80 <input type="submit" name="submit" value="<?php _e('Search') ?>" class="button" /> 81 81 </fieldset> … … 87 87 88 88 <form name="viewarc" id="viewarc" action="" method="get"> 89 89 <fieldset> 90 <legend><?php _e('Browse Month& hellip;') ?></legend>90 <legend><?php _e('Browse Month…') ?></legend> 91 91 <select name='m'> 92 92 <?php 93 93 foreach ($arc_result as $arc_row) { … … 114 114 115 115 <form name="viewcat" id="viewcat" action="" method="get"> 116 116 <fieldset> 117 <legend><?php _e('Browse Category& hellip;') ?></legend>117 <legend><?php _e('Browse Category…') ?></legend> 118 118 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> 119 119 <input type="submit" name="submit" value="<?php _e('Show Category') ?>" class="button" /> 120 120 </fieldset> … … 251 251 252 252 <div class="navigation"> 253 253 <div class="alignleft"><?php next_posts_link(__('« 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 »')) ?></div> 255 255 </div> 256 256 257 257 <?php -
wp-admin/upgrade.php
17 17 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 18 18 <head> 19 19 <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 › Upgrade'); ?></title> 21 21 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 22 22 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 23 23 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> … … 31 31 $goback = attribute_escape(stripslashes(wp_get_referer())); 32 32 ?> 33 33 <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&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress & raquo;'); ?></a></h2>34 <h2 class="step"><a href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress »'); ?></a></h2> 35 35 <?php 36 36 break; 37 37 case 1: -
wp-admin/index-extra.php
8 8 $rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress'); 9 9 if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results 10 10 ?> 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 »'); ?></a></cite></h3> 12 12 <ul> 13 13 <?php 14 14 $rss->items = array_slice($rss->items, 0, 10); … … 58 58 } 59 59 ?> 60 60 </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'); ?> »</a></p> 62 62 <?php 63 63 } 64 64 break; -
wp-admin/options.php
120 120 <form name="form" action="options.php" method="post" id="all-options"> 121 121 <?php wp_nonce_field('update-options') ?> 122 122 <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 »') ?>" /></p> 124 124 <table width="98%"> 125 125 <?php 126 126 $options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name"); … … 158 158 ?> 159 159 </table> 160 160 <?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 »') ?>" /></p> 162 162 </form> 163 163 </div> 164 164 -
wp-admin/profile.php
37 37 38 38 <?php do_action('profile_personal_options'); ?> 39 39 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 »') ?>" name="submit" /></p> 41 41 42 42 <fieldset> 43 43 <legend><?php _e('Name'); ?></legend> … … 142 142 endif; 143 143 ?> 144 144 </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 »') ?>" name="submit" /></p> 146 146 </form> 147 147 148 148 </div> -
wp-admin/edit-category-form.php
1 1 <?php 2 2 if ( ! empty($cat_ID) ) { 3 3 $heading = __('Edit Category'); 4 $submit_text = __('Edit Category & raquo;');4 $submit_text = __('Edit Category »'); 5 5 $form = '<form name="editcat" id="editcat" method="post" action="categories.php">'; 6 6 $action = 'editedcat'; 7 7 $nonce_action = 'update-category_' . $cat_ID; 8 8 do_action('edit_category_form_pre', $category); 9 9 } else { 10 10 $heading = __('Add Category'); 11 $submit_text = __('Add Category & raquo;');11 $submit_text = __('Add Category »'); 12 12 $form = '<form name="addcat" id="addcat" method="post" action="categories.php">'; 13 13 $action = 'addcat'; 14 14 $nonce_action = 'add-category'; -
wp-admin/user-edit.php
210 210 <p class="submit"> 211 211 <input type="hidden" name="action" value="update" /> 212 212 <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 »') ?>" name="submit" /> 214 214 </p> 215 215 </form> 216 216 </div> -
wp-admin/options-reading.php
11 11 <h2><?php _e('Reading Options') ?></h2> 12 12 <form name="form1" method="post" action="options.php"> 13 13 <?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 »') ?>" /></p> 15 15 <?php if ( get_pages() ): ?> 16 16 <fieldset class="options"> 17 17 <legend><?php _e('Front Page') ?></legend> … … 91 91 <p class="submit"> 92 92 <input type="hidden" name="action" value="update" /> 93 93 <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 »') ?>" /> 95 95 </p> 96 96 </form> 97 97 </div> -
wp-admin/setup-config.php
18 18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 19 19 <html xmlns="http://www.w3.org/1999/xhtml"> 20 20 <head> 21 <title>WordPress & rsaquo; Setup Configuration File</title>21 <title>WordPress › Setup Configuration File</title> 22 22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 23 23 <style media="screen" type="text/css"> 24 24 <!-- -
wp-admin/page-new.php
9 9 ?> 10 10 11 11 <?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') ; ?> »</a></p></div> 13 13 <?php endif; ?> 14 14 15 15 <?php -
wp-admin/link-manager.php
92 92 93 93 printf(__('Currently showing %1$s links ordered by %2$s'), $select_cat, $select_order); 94 94 ?> 95 <input type="submit" name="action" value="<?php _e('Update & raquo;') ?>" /></p>95 <input type="submit" name="action" value="<?php _e('Update »') ?>" /></p> 96 96 </form> 97 97 <?php 98 98 $link_columns = array( … … 195 195 196 196 <div id="ajax-response"></div> 197 197 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') ?> »" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p> 199 199 </form> 200 200 201 201 <?php } ?> -
wp-admin/install.php
2 2 define('WP_INSTALLING', true); 3 3 if (!file_exists('../wp-config.php')) { 4 4 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 › Error"); 6 6 } 7 7 8 8 require_once('../wp-config.php'); … … 18 18 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 19 19 <head> 20 20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 21 <title><?php _e('WordPress & rsaquo; Installation'); ?></title>21 <title><?php _e('WordPress › Installation'); ?></title> 22 22 <link rel="stylesheet" href="install.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 23 23 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 24 24 <link rel="stylesheet" href="install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> … … 34 34 case 0: 35 35 ?> 36 36 <p><?php printf(__('Welcome to WordPress installation. We’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 »'); ?></a></h2> 38 38 <?php 39 39 break; 40 40 case 1: … … 58 58 </tr> 59 59 </table> 60 60 <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 »'); ?>" /></h2> 62 62 </form> 63 63 64 64 <?php -
wp-admin/bookmarklet.php
49 49 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 50 50 <html xmlns="http://www.w3.org/1999/xhtml"> 51 51 <head> 52 <title><?php bloginfo('name') ?> & rsaquo; Bookmarklet — WordPress</title>52 <title><?php bloginfo('name') ?> › Bookmarklet — WordPress</title> 53 53 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 54 54 <link rel="stylesheet" href="wp-admin.css" type="text/css" /> 55 55 -
wp-admin/options-permalink.php
104 104 <h2><?php _e('Customize Permalink Structure') ?></h2> 105 105 <form name="form" action="options-permalink.php" method="post"> 106 106 <?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 »') ?>" /></p> 108 108 <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> 109 109 110 110 <?php … … 123 123 <p> 124 124 <label> 125 125 <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> » <code><?php echo get_option('home'); ?>/?p=123</code></span> 127 127 </label> 128 128 </p> 129 129 <p> 130 130 <label> 131 131 <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> » <code><?php echo get_option('home') . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></span> 133 133 </label> 134 134 </p> 135 135 <p> 136 136 <label> 137 137 <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> » <code><?php echo get_option('home') . $prefix ; ?>/archives/123</code></span> 139 139 </label> 140 140 </p> 141 141 <p> … … 161 161 <?php _e('Category base'); ?>: <input name="category_base" type="text" class="code" value="<?php echo attribute_escape($category_base); ?>" size="30" /> 162 162 </p> 163 163 <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 »') ?>" /> 165 165 </p> 166 166 </form> 167 167 <?php if ( $permalink_structure && !$usingpi && !$writable ) : ?> -
wp-admin/options-writing.php
11 11 <h2><?php _e('Writing Options') ?></h2> 12 12 <form method="post" action="options.php"> 13 13 <?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 »') ?>" /></p> 15 15 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 16 16 <tr valign="top"> 17 17 <th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th> … … 112 112 <p class="submit"> 113 113 <input type="hidden" name="action" value="update" /> 114 114 <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 »') ?>" /> 116 116 </p> 117 117 </form> 118 118 </div> -
wp-admin/export.php
35 35 </td> 36 36 </tr> 37 37 </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'); ?> »" /> 39 39 <input type="hidden" name="download" value="true" /> 40 40 </p> 41 41 </form> -
wp-admin/plugin-editor.php
92 92 <?php if ( is_writeable($real_file) ) : ?> 93 93 <p class="submit"> 94 94 <?php 95 echo "<input type='submit' name='submit' value=' " . __('Update File & raquo;') . "' tabindex='2' />";95 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' tabindex='2' />"; 96 96 ?> 97 97 </p> 98 98 <?php else : ?> … … 104 104 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; 105 105 } 106 106 ?> 107 <div class="clear"> & nbsp; </div>107 <div class="clear">   </div> 108 108 </div> 109 109 <?php 110 110 break; -
wp-admin/edit-pages.php
8 8 9 9 <div class="wrap"> 10 10 <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 »'); ?></a></p> 12 12 13 13 <form name="searchform" action="" method="get"> 14 14 <fieldset> 15 <legend><?php _e('Search Pages& hellip;') ?></legend>15 <legend><?php _e('Search Pages…') ?></legend> 16 16 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" /> 17 17 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 18 18 </fieldset> … … 55 55 } // end if ($posts) 56 56 ?> 57 57 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 »'); ?></a></h3> 59 59 60 60 </div> 61 61 -
wp-admin/themes.php
26 26 <?php if ( ! validate_current_theme() ) : ?> 27 27 <div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 28 28 <?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 »</a>'), get_bloginfo('home') . '/'); ?></p></div> 30 30 <?php endif; ?> 31 31 32 32 <?php
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)