PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress3.4.2/wp-includes/js/tinymce/wp-mce-help.php

https://bitbucket.org/ch3tag/mothers
PHP | 292 lines | 244 code | 28 blank | 20 comment | 10 complexity | 04be26e41e7bf4bc3a44f4c2855bd8f1 MD5 | raw file
  1. <?php
  2. /**
  3. * @package TinyMCE
  4. * @author Moxiecode
  5. * @copyright Copyright © 2005-2006, Moxiecode Systems AB, All rights reserved.
  6. */
  7. /** @ignore */
  8. require_once('../../../wp-load.php');
  9. header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
  10. ?>
  11. <!DOCTYPE html>
  12. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  13. <head>
  14. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
  15. <title><?php _e('Rich Editor Help') ?></title>
  16. <script type="text/javascript" src="tiny_mce_popup.js?ver=342"></script>
  17. <?php
  18. wp_admin_css( 'wp-admin', true );
  19. ?>
  20. <style type="text/css">
  21. body {
  22. min-width: 0;
  23. }
  24. #wphead {
  25. font-size: 80%;
  26. border-top: 0;
  27. color: #555;
  28. background-color: #f1f1f1;
  29. }
  30. #wphead h1 {
  31. font-size: 24px;
  32. color: #555;
  33. margin: 0;
  34. padding: 10px;
  35. }
  36. #tabs {
  37. padding: 15px 15px 3px;
  38. background-color: #f1f1f1;
  39. border-bottom: 1px solid #dfdfdf;
  40. margin: 0;
  41. }
  42. #tabs li {
  43. display: inline;
  44. }
  45. #tabs a.current {
  46. background-color: #fff;
  47. border-color: #dfdfdf;
  48. border-bottom-color: #fff;
  49. color: #d54e21;
  50. }
  51. #tabs a {
  52. color: #2583AD;
  53. padding: 6px;
  54. border-width: 1px 1px 0;
  55. border-style: solid solid none;
  56. border-color: #f1f1f1;
  57. text-decoration: none;
  58. }
  59. #tabs a:hover {
  60. color: #d54e21;
  61. }
  62. .wrap h2 {
  63. border-bottom-color: #dfdfdf;
  64. color: #555;
  65. margin: 5px 0;
  66. padding: 0;
  67. font-size: 18px;
  68. }
  69. #user_info {
  70. right: 5%;
  71. top: 5px;
  72. }
  73. h3 {
  74. font-size: 1.1em;
  75. margin-top: 10px;
  76. margin-bottom: 0px;
  77. }
  78. #flipper {
  79. margin: 0;
  80. padding: 5px 20px 10px;
  81. background-color: #fff;
  82. border-left: 1px solid #dfdfdf;
  83. border-bottom: 1px solid #dfdfdf;
  84. }
  85. * html {
  86. overflow-x: hidden;
  87. overflow-y: scroll;
  88. }
  89. #flipper div p {
  90. margin-top: 0.4em;
  91. margin-bottom: 0.8em;
  92. text-align: justify;
  93. }
  94. th {
  95. text-align: center;
  96. }
  97. .top th {
  98. text-decoration: underline;
  99. }
  100. .top .key {
  101. text-align: center;
  102. width: 5em;
  103. }
  104. .top .action {
  105. text-align: left;
  106. }
  107. .align {
  108. border-left: 3px double #333;
  109. border-right: 3px double #333;
  110. }
  111. .keys {
  112. margin-bottom: 15px;
  113. }
  114. .keys p {
  115. display: inline-block;
  116. margin: 0px;
  117. padding: 0px;
  118. }
  119. .keys .left { text-align: left; }
  120. .keys .center { text-align: center; }
  121. .keys .right { text-align: right; }
  122. td b {
  123. font-family: "Times New Roman" Times serif;
  124. }
  125. #buttoncontainer {
  126. text-align: center;
  127. margin-bottom: 20px;
  128. }
  129. #buttoncontainer a, #buttoncontainer a:hover {
  130. border-bottom: 0px;
  131. }
  132. .mac,
  133. .macos .win {
  134. display: none;
  135. }
  136. .macos span.mac {
  137. display: inline;
  138. }
  139. .macwebkit tr.mac {
  140. display: table-row;
  141. }
  142. </style>
  143. <?php if ( is_rtl() ) : ?>
  144. <style type="text/css">
  145. #wphead, #tabs {
  146. padding-left: auto;
  147. padding-right: 15px;
  148. }
  149. #flipper {
  150. margin: 5px 0 3px 10px;
  151. }
  152. .keys .left, .top, .action { text-align: right; }
  153. .keys .right { text-align: left; }
  154. td b { font-family: Tahoma, "Times New Roman", Times, serif }
  155. </style>
  156. <?php endif; ?>
  157. <script type="text/javascript">
  158. function d(id) { return document.getElementById(id); }
  159. function flipTab(n) {
  160. for (i=1;i<=4;i++) {
  161. c = d('content'+i.toString());
  162. t = d('tab'+i.toString());
  163. if ( n == i ) {
  164. c.className = '';
  165. t.className = 'current';
  166. } else {
  167. c.className = 'hidden';
  168. t.className = '';
  169. }
  170. }
  171. }
  172. tinyMCEPopup.onInit.add(function() {
  173. var win = tinyMCEPopup.getWin();
  174. document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
  175. document.getElementById('date').innerHTML = tinymce.releaseDate;
  176. if ( win.fullscreen && win.fullscreen.settings.visible ) {
  177. d('content1').className = 'hidden';
  178. d('tabs').className = 'hidden';
  179. d('content3').className = 'dfw';
  180. }
  181. if ( tinymce.isMac )
  182. document.body.className = 'macos';
  183. if ( tinymce.isMac && tinymce.isWebKit )
  184. document.body.className = 'macos macwebkit';
  185. });
  186. </script>
  187. </head>
  188. <body>
  189. <ul id="tabs">
  190. <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>
  191. <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>
  192. <li><a id="tab3" href="javascript:flipTab(3)" title="<?php esc_attr_e('Hotkeys') ?>" accesskey="3" tabindex="3"><?php _e('Hotkeys') ?></a></li>
  193. <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>
  194. </ul>
  195. <div id="flipper" class="wrap">
  196. <div id="content1">
  197. <h2><?php _e('Rich Editing Basics') ?></h2>
  198. <p><?php _e('<em>Rich editing</em>, also called WYSIWYG for What You See Is What You Get, means your text is formatted as you type. The rich editor creates HTML code behind the scenes while you concentrate on writing. Font styles, links and images all appear approximately as they will on the internet.') ?></p>
  199. <p><?php _e('WordPress includes a rich HTML editor that works well in all major web browsers used today. However editing HTML is not the same as typing text. Each web page has two major components: the structure, which is the actual HTML code and is produced by the editor as you type, and the display, that is applied to it by the currently selected WordPress theme and is defined in style.css. WordPress is producing valid XHTML 1.0 which means that inserting multiple line breaks (BR tags) after a paragraph would not produce white space on the web page. The BR tags will be removed as invalid by the internal HTML correcting functions.') ?></p>
  200. <p><?php _e('While using the editor, most basic keyboard shortcuts work like in any other text editor. For example: Shift+Enter inserts line break, Ctrl+C = copy, Ctrl+X = cut, Ctrl+Z = undo, Ctrl+Y = redo, Ctrl+A = select all, etc. (on Mac use the Command key instead of Ctrl). See the Hotkeys tab for all available keyboard shortcuts.') ?></p>
  201. <p><?php _e('If you do not like the way the rich editor works, you may turn it off from Your Profile submenu, under Users in the admin menu.') ?></p>
  202. </div>
  203. <div id="content2" class="hidden">
  204. <h2><?php _e('Advanced Rich Editing') ?></h2>
  205. <h3><?php _e('Images and Attachments') ?></h3>
  206. <p><?php _e('There is a button in the editor toolbar for inserting images that are already hosted somewhere on the internet. If you have a URL for an image, click this button and enter the URL in the box which appears.') ?></p>
  207. <p><?php _e('If you need to upload an image or another media file from your computer, you can use the Media Library buttons above the editor. The media library will attempt to create a thumbnail-sized copy from each uploaded image. To insert your image into the post, first click on the thumbnail to reveal a menu of options. When you have selected the options you like, click "Send to Editor" and your image or file will appear in the post you are editing. If you are inserting a movie, there are additional options in the "Media" dialog that can be opened from the second toolbar row.') ?></p>
  208. <h3><?php _e('HTML in the Rich Editor') ?></h3>
  209. <p><?php _e('Any HTML entered directly into the rich editor will show up as text when the post is viewed. What you see is what you get. When you want to include HTML elements that cannot be generated with the toolbar buttons, you must enter it by hand in the HTML editor. Examples are tables and &lt;code&gt;. To do this, click the HTML tab and edit the code, then switch back to Visual mode. If the code is valid and understood by the editor, you should see it rendered immediately.') ?></p>
  210. <h3><?php _e('Pasting in the Rich Editor') ?></h3>
  211. <p><?php _e('When pasting content from another web page the results can be inconsistent and depend on your browser and on the web page you are pasting from. The editor tries to correct any invalid HTML code that was pasted, but for best results try using the HTML tab or one of the paste buttons that are on the second row. Alternatively try pasting paragraph by paragraph. In most browsers to select one paragraph at a time, triple-click on it.') ?></p>
  212. <p><?php _e('Pasting content from another application, like Word or Excel, is best done with the Paste from Word button on the second row, or in HTML mode.') ?></p>
  213. </div>
  214. <div id="content3" class="hidden">
  215. <h2><?php _e('Writing at Full Speed') ?></h2>
  216. <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>
  217. <table class="keys" width="100%" style="border: 0 none;">
  218. <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>
  219. <tr><th>c</th><td><?php _e('Copy') ?></td><th>v</th><td><?php _e('Paste') ?></td></tr>
  220. <tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr>
  221. <tr><th>z</th><td><?php _e('Undo') ?></td><th>y</th><td><?php _e('Redo') ?></td></tr>
  222. <tr class="win"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
  223. <tr class="win"><th>u</th><td><?php _e('Underline') ?></td><th>1</th><td><?php _e('Heading 1') ?></td></tr>
  224. <tr class="win"><th>2</th><td><?php _e('Heading 2') ?></td><th>3</th><td><?php _e('Heading 3') ?></td></tr>
  225. <tr class="win"><th>4</th><td><?php _e('Heading 4') ?></td><th>5</th><td><?php _e('Heading 5') ?></td></tr>
  226. <tr class="win"><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>
  227. </table>
  228. <p><?php _e('The following shortcuts use different access keys: Alt + Shift + letter.') ?></p>
  229. <table class="keys" width="100%" style="border: 0 none;">
  230. <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>
  231. <tr class="mac"><th>b</th><td><?php _e('Bold') ?></td><th>i</th><td><?php _e('Italic') ?></td></tr>
  232. <tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>
  233. <tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr>
  234. <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>
  235. <tr><th>u</th><td><strong>&bull;</strong> <?php _e('List') ?></td><th>a</th><td><?php _e('Insert link') ?></td></tr>
  236. <tr><th>o</th><td>1. <?php _e('List') ?></td><th>s</th><td><?php _e('Remove link') ?></td></tr>
  237. <tr><th>q</th><td><?php _e('Quote') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr>
  238. <tr><th>g</th><td><?php _e('Full Screen') ?></td><th>t</th><td><?php _e('Insert More Tag') ?></td></tr>
  239. <tr><th>p</th><td><?php _e('Insert Page Break tag') ?></td><th>h</th><td><?php _e('Help') ?></td></tr>
  240. <tr><th>e</th><td colspan="3"><?php _e('Switch to HTML mode') ?></td></tr>
  241. <tr><th colspan="4" style="font-weight: normal;padding: 15px 10px 10px;"><?php _e('Editor width in Distraction-free writing mode:'); ?></th></tr>
  242. <tr><th><span class="win">Alt +</span><span class="mac">Ctrl +</span></th><td><?php _e('Wider') ?></td>
  243. <th><span class="win">Alt -</span><span class="mac">Ctrl -</span></th><td><?php _e('Narrower') ?></td></tr>
  244. <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>
  245. </table>
  246. </div>
  247. <div id="content4" class="hidden">
  248. <h2><?php _e('About TinyMCE'); ?></h2>
  249. <p><?php _e('Version:'); ?> <span id="version"></span> (<span id="date"></span>)</p>
  250. <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>
  251. <p><?php _e('Copyright &copy; 2003-2011, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.') ?></p>
  252. <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p>
  253. <div id="buttoncontainer">
  254. <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>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="mceActionPanel">
  259. <div style="margin: 8px auto; text-align: center;padding-bottom: 10px;">
  260. <input type="button" id="cancel" name="cancel" value="<?php esc_attr_e('Close'); ?>" title="<?php esc_attr_e('Close'); ?>" onclick="tinyMCEPopup.close();" />
  261. </div>
  262. </div>
  263. </body>
  264. </html>