web/wp-includes/js/tinymce/wp-mce-help.php
changeset 194 32102edaa81b
parent 136 bde1974c263b
child 204 09a1c134465b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
     7 
     7 
     8 /** @ignore */
     8 /** @ignore */
     9 require_once('../../../wp-load.php');
     9 require_once('../../../wp-load.php');
    10 header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    10 header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    11 ?>
    11 ?>
    12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    12 <!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    13 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    14 <head>
    14 <head>
    15 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    15 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    16 <title><?php _e('Rich Editor Help') ?></title>
    16 <title><?php _e('Rich Editor Help') ?></title>
    17 <script type="text/javascript" src="tiny_mce_popup.js?ver=3223"></script>
    17 <script type="text/javascript" src="tiny_mce_popup.js?ver=342"></script>
    18 <?php
    18 <?php
    19 wp_admin_css( 'global', true );
       
    20 wp_admin_css( 'wp-admin', true );
    19 wp_admin_css( 'wp-admin', true );
    21 ?>
    20 ?>
    22 <style type="text/css">
    21 <style type="text/css">
       
    22 	body {
       
    23 		min-width: 0;
       
    24 	}
    23 	#wphead {
    25 	#wphead {
    24 		font-size: 80%;
    26 		font-size: 80%;
    25 		border-top: 0;
    27 		border-top: 0;
    26 		color: #555;
    28 		color: #555;
    27 		background-color: #f1f1f1;
    29 		background-color: #f1f1f1;
    34 	}
    36 	}
    35 	#tabs {
    37 	#tabs {
    36 		padding: 15px 15px 3px;
    38 		padding: 15px 15px 3px;
    37 		background-color: #f1f1f1;
    39 		background-color: #f1f1f1;
    38 		border-bottom: 1px solid #dfdfdf;
    40 		border-bottom: 1px solid #dfdfdf;
       
    41 		margin: 0;
    39 	}
    42 	}
    40 	#tabs li {
    43 	#tabs li {
    41 		display: inline;
    44 		display: inline;
    42 	}
    45 	}
    43 	#tabs a.current {
    46 	#tabs a.current {
   125 		margin-bottom: 20px;
   128 		margin-bottom: 20px;
   126 	}
   129 	}
   127 	#buttoncontainer a, #buttoncontainer a:hover {
   130 	#buttoncontainer a, #buttoncontainer a:hover {
   128 		border-bottom: 0px;
   131 		border-bottom: 0px;
   129 	}
   132 	}
       
   133 
       
   134 	.mac,
       
   135 	.macos .win {
       
   136 		display: none;
       
   137 	}
       
   138 
       
   139 	.macos span.mac {
       
   140 		display: inline;
       
   141 	}
       
   142 
       
   143 	.macwebkit tr.mac {
       
   144 		display: table-row;
       
   145 	}
       
   146 
   130 </style>
   147 </style>
   131 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
   148 <?php if ( is_rtl() ) : ?>
   132 <style type="text/css">
   149 <style type="text/css">
   133 	#wphead, #tabs {
   150 	#wphead, #tabs {
   134 		padding-left: auto;
   151 		padding-left: auto;
   135 		padding-right: 15px;
   152 		padding-right: 15px;
   136 	}
   153 	}
   157 				t.className = '';
   174 				t.className = '';
   158 			}
   175 			}
   159 		}
   176 		}
   160 	}
   177 	}
   161 
   178 
   162     function init() {
   179     tinyMCEPopup.onInit.add(function() {
   163         document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
   180         var win = tinyMCEPopup.getWin();
       
   181 
       
   182 		document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
   164         document.getElementById('date').innerHTML = tinymce.releaseDate;
   183         document.getElementById('date').innerHTML = tinymce.releaseDate;
   165     }
   184 
   166     tinyMCEPopup.onInit.add(init);
   185 		if ( win.fullscreen && win.fullscreen.settings.visible ) {
       
   186 			d('content1').className = 'hidden';
       
   187 			d('tabs').className = 'hidden';
       
   188 			d('content3').className = 'dfw';
       
   189 		}
       
   190 
       
   191 		if ( tinymce.isMac )
       
   192 			document.body.className = 'macos';
       
   193 
       
   194 		if ( tinymce.isMac && tinymce.isWebKit )
       
   195 			document.body.className = 'macos macwebkit';
       
   196 
       
   197     });
   167 </script>
   198 </script>
   168 </head>
   199 </head>
   169 <body>
   200 <body>
   170 
   201 
   171 <div id="wphead"><h1><?php echo get_bloginfo('blogtitle'); ?></h1></div>
       
   172 
       
   173 <ul id="tabs">
   202 <ul id="tabs">
   174 	<li><a id="tab1" href="javascript:flipTab(1)" title="<?php _e('Basics of Rich Editing') ?>" accesskey="1" tabindex="1" class="current"><?php _e('Basics') ?></a></li>
   203 	<li><a id="tab1" href="javascript:flipTab(1)" title="<?php esc_attr_e('Basics of Rich Editing') ?>" accesskey="1" tabindex="1" class="current"><?php _e('Basics') ?></a></li>
   175 	<li><a id="tab2" href="javascript:flipTab(2)" title="<?php _e('Advanced use of the Rich Editor') ?>" accesskey="2" tabindex="2"><?php _e('Advanced') ?></a></li>
   204 	<li><a id="tab2" href="javascript:flipTab(2)" title="<?php esc_attr_e('Advanced use of the Rich Editor') ?>" accesskey="2" tabindex="2"><?php _e('Advanced') ?></a></li>
   176 	<li><a id="tab3" href="javascript:flipTab(3)" title="<?php _e('Hotkeys') ?>" accesskey="3" tabindex="3"><?php _e('Hotkeys') ?></a></li>
   205 	<li><a id="tab3" href="javascript:flipTab(3)" title="<?php esc_attr_e('Hotkeys') ?>" accesskey="3" tabindex="3"><?php _e('Hotkeys') ?></a></li>
   177 	<li><a id="tab4" href="javascript:flipTab(4)" title="<?php _e('About the software') ?>" accesskey="4" tabindex="4"><?php _e('About') ?></a></li>
   206 	<li><a id="tab4" href="javascript:flipTab(4)" title="<?php esc_attr_e('About the software') ?>" accesskey="4" tabindex="4"><?php _e('About') ?></a></li>
   178 </ul>
   207 </ul>
   179 
   208 
   180 <div id="flipper" class="wrap">
   209 <div id="flipper" class="wrap">
   181 
   210 
   182 <div id="content1">
   211 <div id="content1">
   200 </div>
   229 </div>
   201 
   230 
   202 <div id="content3" class="hidden">
   231 <div id="content3" class="hidden">
   203 	<h2><?php _e('Writing at Full Speed') ?></h2>
   232 	<h2><?php _e('Writing at Full Speed') ?></h2>
   204     <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Ctrl + letter. Macintosh uses Command + letter.') ?></p>
   233     <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Ctrl + letter. Macintosh uses Command + letter.') ?></p>
       
   234 
   205 	<table class="keys" width="100%" style="border: 0 none;">
   235 	<table class="keys" width="100%" style="border: 0 none;">
   206 		<tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
   236 		<tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
   207 		<tr><th>c</th><td><?php _e('Copy') ?></td><th>v</th><td><?php _e('Paste') ?></td></tr>
   237 		<tr><th>c</th><td><?php _e('Copy') ?></td><th>v</th><td><?php _e('Paste') ?></td></tr>
   208 		<tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr>
   238 		<tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr>
   209 		<tr><th>z</th><td><?php _e('Undo') ?></td><th>y</th><td><?php _e('Redo') ?></td></tr>
   239 		<tr><th>z</th><td><?php _e('Undo') ?></td><th>y</th><td><?php _e('Redo') ?></td></tr>
   210 		<script type="text/javascript">
   240 
   211 		if ( ! tinymce.isWebKit )
   241 		<tr class="win"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
   212 			document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>"+
   242 		<tr class="win"><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>
   213 			"<tr><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Header 1') ?></td></tr>"+
   243 		<tr class="win"><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>
   214 			"<tr><th>2</th><td><?php _e('Header 2') ?></td><th>3</th><td><?php _e('Header 3') ?></td></tr>"+
   244 		<tr class="win"><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>
   215 			"<tr><th>4</th><td><?php _e('Header 4') ?></td><th>5</th><td><?php _e('Header 5') ?></td></tr>"+
   245 		<tr class="win"><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>
   216 			"<tr><th>6</th><td><?php _e('Header 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>")
       
   217 		</script>
       
   218 	</table>
   246 	</table>
   219 
   247 
   220 	<p><?php _e('The following shortcuts use different access keys: Alt + Shift + letter.') ?></p>
   248 	<p><?php _e('The following shortcuts use different access keys: Alt + Shift + letter.') ?></p>
   221 	<table class="keys" width="100%" style="border: 0 none;">
   249 	<table class="keys" width="100%" style="border: 0 none;">
   222 		<tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
   250 		<tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
   223 		<script type="text/javascript">
   251 		<tr class="mac"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
   224 		if ( tinymce.isWebKit )
   252 
   225 			document.write("<tr><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>")
       
   226 		</script>
       
   227 		<tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>
   253 		<tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>
   228 		<tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr>
   254 		<tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr>
   229 		<tr><th>d</th><td><span style="text-decoration: line-through;"><?php _e('Strikethrough') ?></span></td><th>r</th><td><?php _e('Align Right') ?></td></tr>
   255 		<tr><th>d</th><td><span style="text-decoration: line-through;"><?php _e('Strikethrough') ?></span></td><th>r</th><td><?php _e('Align Right') ?></td></tr>
   230 		<tr><th>u</th><td><strong>&bull;</strong> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert link') ?></td></tr>
   256 		<tr><th>u</th><td><strong>&bull;</strong> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert link') ?></td></tr>
   231 		<tr><th>o</th><td>1. <?php _e('List') ?></td><th>s</th><td><?php _e('Remove link') ?></td></tr>
   257 		<tr><th>o</th><td>1. <?php _e('List') ?></td><th>s</th><td><?php _e('Remove link') ?></td></tr>
   232 		<tr><th>q</th><td><?php _e('Quote') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
   258 		<tr><th>q</th><td><?php _e('Quote') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
   233 		<tr><th>g</th><td><?php _e('Full Screen') ?></td><th>t</th><td><?php _e('Insert More Tag') ?></td></tr>
   259 		<tr><th>g</th><td><?php _e('Full Screen') ?></td><th>t</th><td><?php _e('Insert More Tag') ?></td></tr>
   234 		<tr><th>p</th><td><?php _e('Insert Page Break tag') ?></td><th>h</th><td><?php _e('Help') ?></td></tr>
   260 		<tr><th>p</th><td><?php _e('Insert Page Break tag') ?></td><th>h</th><td><?php _e('Help') ?></td></tr>
   235 		<tr><th>e</th><td colspan="3"><?php _e('Switch to HTML mode') ?></td></tr>
   261 		<tr><th>e</th><td colspan="3"><?php _e('Switch to HTML mode') ?></td></tr>
       
   262 
       
   263 		<tr><th colspan="4" style="font-weight: normal;padding: 15px 10px 10px;"><?php _e('Editor width in Distraction-free writing mode:'); ?></th></tr>
       
   264 		<tr><th><span class="win">Alt +</span><span class="mac">Ctrl +</span></th><td><?php _e('Wider') ?></td>
       
   265 			<th><span class="win">Alt -</span><span class="mac">Ctrl -</span></th><td><?php _e('Narrower') ?></td></tr>
       
   266 		<tr><th><span class="win">Alt 0</span><span class="mac">Ctrl 0</span></th><td><?php _e('Default width') ?></td><th></th><td></td></tr>
   236 	</table>
   267 	</table>
   237 </div>
   268 </div>
   238 
   269 
   239 <div id="content4" class="hidden">
   270 <div id="content4" class="hidden">
   240 	<h2><?php _e('About TinyMCE'); ?></h2>
   271 	<h2><?php _e('About TinyMCE'); ?></h2>
   241 
   272 
   242     <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p>
   273     <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p>
   243 	<p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under %sLGPL</a>	by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.get_bloginfo('url').'/wp-includes/js/tinymce/license.txt" target="_blank" title="'.__('GNU Library General Public Licence').'">') ?></p>
   274 	<p><?php printf(__('TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor released as Open Source under %sLGPL</a>	by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.'), '<a href="'.home_url('/wp-includes/js/tinymce/license.txt').'" target="_blank" title="'.esc_attr__('GNU Library General Public Licence').'">') ?></p>
   244 	<p><?php _e('Copyright &copy; 2003-2007, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
   275 	<p><?php _e('Copyright &copy; 2003-2011, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
   245 	<p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
   276 	<p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
   246 
   277 
   247 	<div id="buttoncontainer">
   278 	<div id="buttoncontainer">
   248 		<a href="http://www.moxiecode.com" target="_blank"><img src="themes/advanced/img/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" style="border: none;" /></a>
   279 		<a href="http://www.moxiecode.com" target="_blank"><img src="themes/advanced/img/gotmoxie.png" alt="<?php esc_attr_e('Got Moxie?') ?>" style="border: 0" /></a>
   249 		<a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="themes/advanced/img/sflogo.png" alt="<?php _e('Hosted By Sourceforge') ?>" style="border: none;" /></a>
       
   250 		<a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="themes/advanced/img/fm.gif" alt="<?php _e('Also on freshmeat') ?>" style="border: none;" /></a>
       
   251 	</div>
   280 	</div>
   252 
   281 
   253 </div>
   282 </div>
   254 </div>
   283 </div>
   255 
   284 
   256 <div class="mceActionPanel">
   285 <div class="mceActionPanel">
   257 	<div style="margin: 8px auto; text-align: center;padding-bottom: 10px;">
   286 	<div style="margin: 8px auto; text-align: center;padding-bottom: 10px;">
   258 		<input type="button" id="cancel" name="cancel" value="<?php _e('Close'); ?>" title="<?php _e('Close'); ?>" onclick="tinyMCEPopup.close();" />
   287 		<input type="button" id="cancel" name="cancel" value="<?php esc_attr_e('Close'); ?>" title="<?php esc_attr_e('Close'); ?>" onclick="tinyMCEPopup.close();" />
   259 	</div>
   288 	</div>
   260 </div>
   289 </div>
   261 
   290 
   262 </body>
   291 </body>
   263 </html>
   292 </html>