Code Snippets - Version 2.8.2

Version Description

Fixed fatal error preventing activated snippets from saving

Download this release

Release Info

Developer bungeshea
Plugin Icon Code Snippets
Version 2.8.2
Comparing to
See all releases

Code changes from version 2.8.1 to 2.8.2

Files changed (114) hide show
  1. code-snippets.php +4 -4
  2. languages/code-snippets.pot +38 -38
  3. php/admin-menus/class-edit-menu.php +0 -29
  4. php/class-admin.php +28 -0
  5. readme.txt +7 -1
  6. trunk/code-snippets.php +108 -0
  7. trunk/css/font/code-snippets.eot +0 -0
  8. trunk/css/font/code-snippets.svg +11 -0
  9. trunk/css/font/code-snippets.ttf +0 -0
  10. trunk/css/font/code-snippets.woff +0 -0
  11. trunk/css/min/cmthemes/3024-day.css +1 -0
  12. trunk/css/min/cmthemes/3024-night.css +1 -0
  13. trunk/css/min/cmthemes/abcdef.css +1 -0
  14. trunk/css/min/cmthemes/ambiance-mobile.css +1 -0
  15. trunk/css/min/cmthemes/ambiance.css +1 -0
  16. trunk/css/min/cmthemes/base16-dark.css +1 -0
  17. trunk/css/min/cmthemes/base16-light.css +1 -0
  18. trunk/css/min/cmthemes/bespin.css +1 -0
  19. trunk/css/min/cmthemes/blackboard.css +1 -0
  20. trunk/css/min/cmthemes/cobalt.css +1 -0
  21. trunk/css/min/cmthemes/colorforth.css +1 -0
  22. trunk/css/min/cmthemes/dracula.css +1 -0
  23. trunk/css/min/cmthemes/duotone-dark.css +1 -0
  24. trunk/css/min/cmthemes/duotone-light.css +1 -0
  25. trunk/css/min/cmthemes/eclipse.css +1 -0
  26. trunk/css/min/cmthemes/elegant.css +1 -0
  27. trunk/css/min/cmthemes/erlang-dark.css +1 -0
  28. trunk/css/min/cmthemes/hopscotch.css +1 -0
  29. trunk/css/min/cmthemes/icecoder.css +1 -0
  30. trunk/css/min/cmthemes/isotope.css +1 -0
  31. trunk/css/min/cmthemes/lesser-dark.css +1 -0
  32. trunk/css/min/cmthemes/liquibyte.css +1 -0
  33. trunk/css/min/cmthemes/material.css +1 -0
  34. trunk/css/min/cmthemes/mbo.css +1 -0
  35. trunk/css/min/cmthemes/mdn-like.css +1 -0
  36. trunk/css/min/cmthemes/midnight.css +1 -0
  37. trunk/css/min/cmthemes/monokai.css +1 -0
  38. trunk/css/min/cmthemes/neat.css +1 -0
  39. trunk/css/min/cmthemes/neo.css +1 -0
  40. trunk/css/min/cmthemes/night.css +1 -0
  41. trunk/css/min/cmthemes/panda-syntax.css +1 -0
  42. trunk/css/min/cmthemes/paraiso-dark.css +1 -0
  43. trunk/css/min/cmthemes/paraiso-light.css +1 -0
  44. trunk/css/min/cmthemes/pastel-on-dark.css +1 -0
  45. trunk/css/min/cmthemes/railscasts.css +1 -0
  46. trunk/css/min/cmthemes/rubyblue.css +1 -0
  47. trunk/css/min/cmthemes/seti.css +1 -0
  48. trunk/css/min/cmthemes/solarized.css +1 -0
  49. trunk/css/min/cmthemes/the-matrix.css +1 -0
  50. trunk/css/min/cmthemes/tomorrow-night-bright.css +1 -0
  51. trunk/css/min/cmthemes/tomorrow-night-eighties.css +1 -0
  52. trunk/css/min/cmthemes/ttcn.css +1 -0
  53. trunk/css/min/cmthemes/twilight.css +1 -0
  54. trunk/css/min/cmthemes/vibrant-ink.css +1 -0
  55. trunk/css/min/cmthemes/xq-dark.css +1 -0
  56. trunk/css/min/cmthemes/xq-light.css +1 -0
  57. trunk/css/min/cmthemes/yeti.css +1 -0
  58. trunk/css/min/cmthemes/zenburn.css +1 -0
  59. trunk/css/min/codemirror.css +1 -0
  60. trunk/css/min/edit.css +1 -0
  61. trunk/css/min/manage.css +1 -0
  62. trunk/css/min/menu-icon.css +1 -0
  63. trunk/css/min/settings.css +1 -0
  64. trunk/css/min/tagit.css +1 -0
  65. trunk/js/min/codemirror.js +7 -0
  66. trunk/js/min/tag-it.js +1 -0
  67. trunk/languages/code-snippets-de_DE.mo +0 -0
  68. trunk/languages/code-snippets-de_DE.po +1253 -0
  69. trunk/languages/code-snippets-fr_FR.mo +0 -0
  70. trunk/languages/code-snippets-fr_FR.po +821 -0
  71. trunk/languages/code-snippets-it_IT.mo +0 -0
  72. trunk/languages/code-snippets-it_IT.po +502 -0
  73. trunk/languages/code-snippets-ja_JP.mo +0 -0
  74. trunk/languages/code-snippets-ja_JP.po +569 -0
  75. trunk/languages/code-snippets-nl_NL.mo +0 -0
  76. trunk/languages/code-snippets-nl_NL.po +912 -0
  77. trunk/languages/code-snippets-ru_RU.mo +0 -0
  78. trunk/languages/code-snippets-ru_RU.po +874 -0
  79. trunk/languages/code-snippets-sk_SK.mo +0 -0
  80. trunk/languages/code-snippets-sk_SK.po +596 -0
  81. trunk/languages/code-snippets-sr_RS.mo +0 -0
  82. trunk/languages/code-snippets-sr_RS.po +571 -0
  83. trunk/languages/code-snippets-zh_CN.mo +0 -0
  84. trunk/languages/code-snippets-zh_CN.po +517 -0
  85. trunk/languages/code-snippets.mo +0 -0
  86. trunk/languages/code-snippets.po +419 -0
  87. trunk/languages/code-snippets.pot +820 -0
  88. trunk/license.txt +7 -0
  89. trunk/php/admin-menus/class-admin-menu.php +109 -0
  90. trunk/php/admin-menus/class-edit-menu.php +501 -0
  91. trunk/php/admin-menus/class-import-menu.php +116 -0
  92. trunk/php/admin-menus/class-manage-menu.php +112 -0
  93. trunk/php/admin-menus/class-settings-menu.php +55 -0
  94. trunk/php/class-admin.php +229 -0
  95. trunk/php/class-code-snippets.php +227 -0
  96. trunk/php/class-contextual-help.php +131 -0
  97. trunk/php/class-db.php +135 -0
  98. trunk/php/class-export.php +242 -0
  99. trunk/php/class-list-table.php +999 -0
  100. trunk/php/class-shortcode.php +71 -0
  101. trunk/php/class-snippet.php +247 -0
  102. trunk/php/editor.php +105 -0
  103. trunk/php/functions.php +75 -0
  104. trunk/php/settings/editor-preview.php +159 -0
  105. trunk/php/settings/render-fields.php +72 -0
  106. trunk/php/settings/settings-fields.php +173 -0
  107. trunk/php/settings/settings.php +181 -0
  108. trunk/php/snippet-ops.php +487 -0
  109. trunk/php/upgrade.php +68 -0
  110. trunk/php/views/edit.php +164 -0
  111. trunk/php/views/import.php +43 -0
  112. trunk/php/views/manage.php +45 -0
  113. trunk/readme.txt +526 -0
  114. trunk/uninstall.php +74 -0
code-snippets.php CHANGED
@@ -8,9 +8,9 @@
8
  *
9
  * @package Code_Snippets
10
  * @author Shea Bunge <shea@bungeshea.com>
11
- * @copyright 2012-2016 Shea Bunge
12
  * @license MIT http://opensource.org/licenses/MIT
13
- * @version 2.8.1
14
  * @link https://github.com/sheabunge/code-snippets
15
  */
16
 
@@ -20,7 +20,7 @@ Plugin URI: https://github.com/sheabunge/code-snippets
20
  Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
21
  Author: Shea Bunge
22
  Author URI: https://bungeshea.com
23
- Version: 2.8.1
24
  License: MIT
25
  License URI: license.txt
26
  Text Domain: code-snippets
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  * @since 2.0
43
  * @var string A PHP-standardized version number string
44
  */
45
- define( 'CODE_SNIPPETS_VERSION', '2.8.1' );
46
 
47
  /**
48
  * The full path to the main file of this plugin
8
  *
9
  * @package Code_Snippets
10
  * @author Shea Bunge <shea@bungeshea.com>
11
+ * @copyright 2012-2017 Shea Bunge
12
  * @license MIT http://opensource.org/licenses/MIT
13
+ * @version 2.8.2
14
  * @link https://github.com/sheabunge/code-snippets
15
  */
16
 
20
  Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
21
  Author: Shea Bunge
22
  Author URI: https://bungeshea.com
23
+ Version: 2.8.2
24
  License: MIT
25
  License URI: license.txt
26
  Text Domain: code-snippets
42
  * @since 2.0
43
  * @var string A PHP-standardized version number string
44
  */
45
+ define( 'CODE_SNIPPETS_VERSION', '2.8.2' );
46
 
47
  /**
48
  * The full path to the main file of this plugin
languages/code-snippets.pot CHANGED
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: code-snippets 2.8.1\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-02-25 20:30+1100\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -27,109 +27,109 @@ msgstr ""
27
  msgid "Edit Snippet"
28
  msgstr ""
29
 
30
- #: php/admin-menus/class-edit-menu.php:44
31
  msgctxt "menu label"
32
  msgid "Add New"
33
  msgstr ""
34
 
35
- #: php/admin-menus/class-edit-menu.php:45 php/views/edit.php:31
36
  msgid "Add New Snippet"
37
  msgstr ""
38
 
39
- #: php/admin-menus/class-edit-menu.php:185
40
  msgid "Don't Panic"
41
  msgstr ""
42
 
43
- #: php/admin-menus/class-edit-menu.php:186
44
  #, php-format
45
  msgid ""
46
  "The code snippet you are trying to save produced a fatal error on line %d:"
47
  msgstr ""
48
 
49
- #: php/admin-menus/class-edit-menu.php:188
50
  msgid ""
51
  "The previous version of the snippet is unchanged, and the rest of this site "
52
  "should be functioning normally as before."
53
  msgstr ""
54
 
55
- #: php/admin-menus/class-edit-menu.php:189
56
  msgid ""
57
  "Please use the back button in your browser to return to the previous page "
58
  "and try to fix the code error."
59
  msgstr ""
60
 
61
- #: php/admin-menus/class-edit-menu.php:190
62
  msgid ""
63
  "If you prefer, you can close this page and discard the changes you just "
64
  "made. No changes will be made to this site."
65
  msgstr ""
66
 
67
- #: php/admin-menus/class-edit-menu.php:310 php/class-list-table.php:324
68
  msgid "Description"
69
  msgstr ""
70
 
71
- #: php/admin-menus/class-edit-menu.php:341 php/class-list-table.php:325
72
  msgid "Tags"
73
  msgstr ""
74
 
75
- #: php/admin-menus/class-edit-menu.php:345
76
  msgid "Enter a list of tags; separated by commas"
77
  msgstr ""
78
 
79
- #: php/admin-menus/class-edit-menu.php:365
80
  msgid "Run snippet everywhere"
81
  msgstr ""
82
 
83
- #: php/admin-menus/class-edit-menu.php:366
84
  msgid "Only run in administration area"
85
  msgstr ""
86
 
87
- #: php/admin-menus/class-edit-menu.php:367
88
  msgid "Only run on site front-end"
89
  msgstr ""
90
 
91
- #: php/admin-menus/class-edit-menu.php:371
92
  msgid "Scope"
93
  msgstr ""
94
 
95
- #: php/admin-menus/class-edit-menu.php:391
96
  msgid "Sharing"
97
  msgstr ""
98
 
99
- #: php/admin-menus/class-edit-menu.php:395
100
  msgid "Allow this snippet to be activated on individual sites on the network"
101
  msgstr ""
102
 
103
- #: php/admin-menus/class-edit-menu.php:455
104
  #, php-format
105
  msgid "The snippet has been deactivated due to an error on line %d:"
106
  msgstr ""
107
 
108
- #: php/admin-menus/class-edit-menu.php:460
109
  msgid "The snippet has been deactivated due to an error in the code."
110
  msgstr ""
111
 
112
- #: php/admin-menus/class-edit-menu.php:467
113
  msgid "An error occurred when saving the snippet."
114
  msgstr ""
115
 
116
- #: php/admin-menus/class-edit-menu.php:472
117
  msgid "Snippet <strong>added</strong>."
118
  msgstr ""
119
 
120
- #: php/admin-menus/class-edit-menu.php:473
121
  msgid "Snippet <strong>updated</strong>."
122
  msgstr ""
123
 
124
- #: php/admin-menus/class-edit-menu.php:474
125
  msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
126
  msgstr ""
127
 
128
- #: php/admin-menus/class-edit-menu.php:475
129
  msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
130
  msgstr ""
131
 
132
- #: php/admin-menus/class-edit-menu.php:476
133
  msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
134
  msgstr ""
135
 
@@ -171,8 +171,8 @@ msgid "All Snippets"
171
  msgstr ""
172
 
173
  #: php/admin-menus/class-manage-menu.php:23
174
- #: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:57
175
- #: php/class-admin.php:116 php/views/manage.php:19
176
  msgid "Snippets"
177
  msgstr ""
178
 
@@ -226,46 +226,46 @@ msgstr ""
226
  msgid "Settings"
227
  msgstr ""
228
 
229
- #: php/class-admin.php:115
230
  msgid "Manage your existing snippets"
231
  msgstr ""
232
 
233
- #: php/class-admin.php:146
234
  msgid "Visit the WordPress.org plugin page"
235
  msgstr ""
236
 
237
- #: php/class-admin.php:147
238
  msgid "About"
239
  msgstr ""
240
 
241
- #: php/class-admin.php:151
242
  msgid "Visit the support forums"
243
  msgstr ""
244
 
245
- #: php/class-admin.php:152
246
  msgid "Support"
247
  msgstr ""
248
 
249
- #: php/class-admin.php:156
250
  msgid "Support this plugin's development"
251
  msgstr ""
252
 
253
- #: php/class-admin.php:157
254
  msgid "Donate"
255
  msgstr ""
256
 
257
- #: php/class-admin.php:188
258
  msgid ""
259
  "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
260
  "answer a short survey on how you use this plugin and what you'd like to see "
261
  "changed or added in the future."
262
  msgstr ""
263
 
264
- #: php/class-admin.php:192
265
  msgid "Take the survey now"
266
  msgstr ""
267
 
268
- #: php/class-admin.php:195
269
  msgid "Dismiss"
270
  msgstr ""
271
 
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: code-snippets 2.8.2\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2017-02-27 23:06+1100\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
27
  msgid "Edit Snippet"
28
  msgstr ""
29
 
30
+ #: php/admin-menus/class-edit-menu.php:39
31
  msgctxt "menu label"
32
  msgid "Add New"
33
  msgstr ""
34
 
35
+ #: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:31
36
  msgid "Add New Snippet"
37
  msgstr ""
38
 
39
+ #: php/admin-menus/class-edit-menu.php:156
40
  msgid "Don't Panic"
41
  msgstr ""
42
 
43
+ #: php/admin-menus/class-edit-menu.php:157
44
  #, php-format
45
  msgid ""
46
  "The code snippet you are trying to save produced a fatal error on line %d:"
47
  msgstr ""
48
 
49
+ #: php/admin-menus/class-edit-menu.php:159
50
  msgid ""
51
  "The previous version of the snippet is unchanged, and the rest of this site "
52
  "should be functioning normally as before."
53
  msgstr ""
54
 
55
+ #: php/admin-menus/class-edit-menu.php:160
56
  msgid ""
57
  "Please use the back button in your browser to return to the previous page "
58
  "and try to fix the code error."
59
  msgstr ""
60
 
61
+ #: php/admin-menus/class-edit-menu.php:161
62
  msgid ""
63
  "If you prefer, you can close this page and discard the changes you just "
64
  "made. No changes will be made to this site."
65
  msgstr ""
66
 
67
+ #: php/admin-menus/class-edit-menu.php:281 php/class-list-table.php:324
68
  msgid "Description"
69
  msgstr ""
70
 
71
+ #: php/admin-menus/class-edit-menu.php:312 php/class-list-table.php:325
72
  msgid "Tags"
73
  msgstr ""
74
 
75
+ #: php/admin-menus/class-edit-menu.php:316
76
  msgid "Enter a list of tags; separated by commas"
77
  msgstr ""
78
 
79
+ #: php/admin-menus/class-edit-menu.php:336
80
  msgid "Run snippet everywhere"
81
  msgstr ""
82
 
83
+ #: php/admin-menus/class-edit-menu.php:337
84
  msgid "Only run in administration area"
85
  msgstr ""
86
 
87
+ #: php/admin-menus/class-edit-menu.php:338
88
  msgid "Only run on site front-end"
89
  msgstr ""
90
 
91
+ #: php/admin-menus/class-edit-menu.php:342
92
  msgid "Scope"
93
  msgstr ""
94
 
95
+ #: php/admin-menus/class-edit-menu.php:362
96
  msgid "Sharing"
97
  msgstr ""
98
 
99
+ #: php/admin-menus/class-edit-menu.php:366
100
  msgid "Allow this snippet to be activated on individual sites on the network"
101
  msgstr ""
102
 
103
+ #: php/admin-menus/class-edit-menu.php:426
104
  #, php-format
105
  msgid "The snippet has been deactivated due to an error on line %d:"
106
  msgstr ""
107
 
108
+ #: php/admin-menus/class-edit-menu.php:431
109
  msgid "The snippet has been deactivated due to an error in the code."
110
  msgstr ""
111
 
112
+ #: php/admin-menus/class-edit-menu.php:438
113
  msgid "An error occurred when saving the snippet."
114
  msgstr ""
115
 
116
+ #: php/admin-menus/class-edit-menu.php:443
117
  msgid "Snippet <strong>added</strong>."
118
  msgstr ""
119
 
120
+ #: php/admin-menus/class-edit-menu.php:444
121
  msgid "Snippet <strong>updated</strong>."
122
  msgstr ""
123
 
124
+ #: php/admin-menus/class-edit-menu.php:445
125
  msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
126
  msgstr ""
127
 
128
+ #: php/admin-menus/class-edit-menu.php:446
129
  msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
130
  msgstr ""
131
 
132
+ #: php/admin-menus/class-edit-menu.php:447
133
  msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
134
  msgstr ""
135
 
171
  msgstr ""
172
 
173
  #: php/admin-menus/class-manage-menu.php:23
174
+ #: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:61
175
+ #: php/class-admin.php:144 php/views/manage.php:19
176
  msgid "Snippets"
177
  msgstr ""
178
 
226
  msgid "Settings"
227
  msgstr ""
228
 
229
+ #: php/class-admin.php:143
230
  msgid "Manage your existing snippets"
231
  msgstr ""
232
 
233
+ #: php/class-admin.php:174
234
  msgid "Visit the WordPress.org plugin page"
235
  msgstr ""
236
 
237
+ #: php/class-admin.php:175
238
  msgid "About"
239
  msgstr ""
240
 
241
+ #: php/class-admin.php:179
242
  msgid "Visit the support forums"
243
  msgstr ""
244
 
245
+ #: php/class-admin.php:180
246
  msgid "Support"
247
  msgstr ""
248
 
249
+ #: php/class-admin.php:184
250
  msgid "Support this plugin's development"
251
  msgstr ""
252
 
253
+ #: php/class-admin.php:185
254
  msgid "Donate"
255
  msgstr ""
256
 
257
+ #: php/class-admin.php:216
258
  msgid ""
259
  "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
260
  "answer a short survey on how you use this plugin and what you'd like to see "
261
  "changed or added in the future."
262
  msgstr ""
263
 
264
+ #: php/class-admin.php:220
265
  msgid "Take the survey now"
266
  msgstr ""
267
 
268
+ #: php/class-admin.php:223
269
  msgid "Dismiss"
270
  msgstr ""
271
 
php/admin-menus/class-edit-menu.php CHANGED
@@ -21,11 +21,6 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
21
  public function run() {
22
  parent::run();
23
  $this->remove_debug_bar_codemirror();
24
-
25
- if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
26
- add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
27
- }
28
-
29
  }
30
 
31
  /**
@@ -46,30 +41,6 @@ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
46
  );
47
  }
48
 
49
- /**
50
- * Prevent the snippet currently being saved from being executed
51
- * so it is not run twice (once normally, once
52
- *
53
- * @param bool $exec Whether the snippet will be executed
54
- * @param int $exec_id The ID of the snippet being executed
55
- *
56
- * @return bool Whether the snippet will be executed
57
- */
58
- function prevent_exec_on_save( $exec, $exec_id ) {
59
-
60
- if ( ! isset( $_POST['save_snippet'], $_POST['snippet_id'] ) ) {
61
- return $exec;
62
- }
63
-
64
- $id = intval( $_POST['snippet_id'] );
65
-
66
- if ( $id == $exec_id ) {
67
- return false;
68
- }
69
-
70
- return $exec;
71
- }
72
-
73
  /**
74
  * Executed when the menu is loaded
75
  */
21
  public function run() {
22
  parent::run();
23
  $this->remove_debug_bar_codemirror();
 
 
 
 
 
24
  }
25
 
26
  /**
41
  );
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  /**
45
  * Executed when the menu is loaded
46
  */
php/class-admin.php CHANGED
@@ -38,6 +38,10 @@ class Code_Snippets_Admin {
38
  add_filter( 'plugin_action_links_' . plugin_basename( CODE_SNIPPETS_FILE ), array( $this, 'plugin_settings_link' ) );
39
  add_filter( 'plugin_row_meta', array( $this, 'plugin_meta_links' ), 10, 2 );
40
  add_action( 'code_snippets/admin/manage', array( $this, 'survey_message' ) );
 
 
 
 
41
  }
42
 
43
  /**
@@ -99,6 +103,30 @@ class Code_Snippets_Admin {
99
  );
100
  }
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  /**
103
  * Adds a link pointing to the Manage Snippets page
104
  *
38
  add_filter( 'plugin_action_links_' . plugin_basename( CODE_SNIPPETS_FILE ), array( $this, 'plugin_settings_link' ) );
39
  add_filter( 'plugin_row_meta', array( $this, 'plugin_meta_links' ), 10, 2 );
40
  add_action( 'code_snippets/admin/manage', array( $this, 'survey_message' ) );
41
+
42
+ if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
43
+ add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
44
+ }
45
  }
46
 
47
  /**
103
  );
104
  }
105
 
106
+ /**
107
+ * Prevent the snippet currently being saved from being executed
108
+ * so it is not run twice (once normally, once
109
+ *
110
+ * @param bool $exec Whether the snippet will be executed
111
+ * @param int $exec_id The ID of the snippet being executed
112
+ *
113
+ * @return bool Whether the snippet will be executed
114
+ */
115
+ function prevent_exec_on_save( $exec, $exec_id ) {
116
+
117
+ if ( ! isset( $_POST['save_snippet'], $_POST['snippet_id'] ) ) {
118
+ return $exec;
119
+ }
120
+
121
+ $id = intval( $_POST['snippet_id'] );
122
+
123
+ if ( $id == $exec_id ) {
124
+ return false;
125
+ }
126
+
127
+ return $exec;
128
+ }
129
+
130
  /**
131
  * Adds a link pointing to the Manage Snippets page
132
  *
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://bungeshea.com/donate/
4
  Tags: code-snippets, snippets, code, php, network, multisite
5
  Requires at least: 3.6
6
  Tested up to: 4.7.2
7
- Stable tag: 2.8.1
8
  License: MIT
9
  License URI: license.txt
10
 
@@ -108,6 +108,9 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
108
 
109
  == Changelog ==
110
 
 
 
 
111
  = 2.8.1 (25 Feb 2017) =
112
  * Updated German translation
113
  * Fixed admin menu items not translating
@@ -433,6 +436,9 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co
433
 
434
  == Upgrade Notice ==
435
 
 
 
 
436
  = 2.8.0 =
437
  Interface tweaks
438
 
4
  Tags: code-snippets, snippets, code, php, network, multisite
5
  Requires at least: 3.6
6
  Tested up to: 4.7.2
7
+ Stable tag: 2.8.2
8
  License: MIT
9
  License URI: license.txt
10
 
108
 
109
  == Changelog ==
110
 
111
+ = 2.8.2 (27 Feb 2017) =
112
+ * Fix bug introduced in 2.8.1 that broke code verification functionality by executing code twice
113
+
114
  = 2.8.1 (25 Feb 2017) =
115
  * Updated German translation
116
  * Fixed admin menu items not translating
436
 
437
  == Upgrade Notice ==
438
 
439
+ = 2.8.2 =
440
+ Fixed fatal error preventing activated snippets from saving
441
+
442
  = 2.8.0 =
443
  Interface tweaks
444
 
trunk/code-snippets.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Code Snippets - An easy, clean and simple way to add code snippets to your site.
5
+ *
6
+ * If you're interested in helping to develop Code Snippets, or perhaps contribute
7
+ * to the localization, please see https://github.com/sheabunge/code-snippets
8
+ *
9
+ * @package Code_Snippets
10
+ * @author Shea Bunge <shea@bungeshea.com>
11
+ * @copyright 2012-2017 Shea Bunge
12
+ * @license MIT http://opensource.org/licenses/MIT
13
+ * @version 2.8.2
14
+ * @link https://github.com/sheabunge/code-snippets
15
+ */
16
+
17
+ /*
18
+ Plugin Name: Code Snippets
19
+ Plugin URI: https://github.com/sheabunge/code-snippets
20
+ Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!
21
+ Author: Shea Bunge
22
+ Author URI: https://bungeshea.com
23
+ Version: 2.8.2
24
+ License: MIT
25
+ License URI: license.txt
26
+ Text Domain: code-snippets
27
+ Domain Path: /languages
28
+ */
29
+
30
+ /* Exit if accessed directly */
31
+ if ( ! defined( 'ABSPATH' ) ) {
32
+ exit;
33
+ }
34
+
35
+ /**
36
+ * The version number for this release of the plugin.
37
+ * This will later be used for upgrades and enqueuing files
38
+ *
39
+ * This should be set to the 'Plugin Version' value,
40
+ * as defined above in the plugin header
41
+ *
42
+ * @since 2.0
43
+ * @var string A PHP-standardized version number string
44
+ */
45
+ define( 'CODE_SNIPPETS_VERSION', '2.8.2' );
46
+
47
+ /**
48
+ * The full path to the main file of this plugin
49
+ *
50
+ * This can later be passed to functions such as
51
+ * plugin_dir_path(), plugins_url() and plugin_basename()
52
+ * to retrieve information about plugin paths
53
+ *
54
+ * @since 2.0
55
+ * @var string
56
+ */
57
+ define( 'CODE_SNIPPETS_FILE', __FILE__ );
58
+
59
+ /**
60
+ * Enable autoloading of plugin classes
61
+ * @param $class_name
62
+ */
63
+ function code_snippets_autoload( $class_name ) {
64
+
65
+ /* Only autoload classes from this plugin */
66
+ if ( 'Snippet' !== $class_name && 'Code_Snippets' !== substr( $class_name, 0, 13 ) ) {
67
+ return;
68
+ }
69
+
70
+ /* Remove namespace from class name */
71
+ $class_file = str_replace( 'Code_Snippets_', '', $class_name );
72
+
73
+ /* Convert class name format to file name format */
74
+ $class_file = strtolower( $class_file );
75
+ $class_file = str_replace( '_', '-', $class_file );
76
+
77
+ $class_path = dirname( __FILE__ ) . '/php/';
78
+
79
+ if ( 'Menu' === substr( $class_name, -4, 4 ) ) {
80
+ $class_path .= 'admin-menus/';
81
+ }
82
+
83
+ /* Load the class */
84
+ require_once $class_path . "class-{$class_file}.php";
85
+ }
86
+
87
+ spl_autoload_register( 'code_snippets_autoload' );
88
+
89
+ /**
90
+ * Retrieve the instance of the main plugin class
91
+ *
92
+ * @since 2.6.0
93
+ * @return Code_Snippets
94
+ */
95
+ function code_snippets() {
96
+ static $plugin;
97
+
98
+ if ( is_null( $plugin ) ) {
99
+ $plugin = new Code_Snippets( CODE_SNIPPETS_VERSION, __FILE__ );
100
+ }
101
+
102
+ return $plugin;
103
+ }
104
+
105
+ code_snippets()->load_plugin();
106
+
107
+ /* Execute the snippets once the plugins are loaded */
108
+ add_action( 'plugins_loaded', 'execute_active_snippets', 1 );
trunk/css/font/code-snippets.eot ADDED
Binary file
trunk/css/font/code-snippets.svg ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="code-snippets" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" d="" horiz-adv-x="512" />
10
+ <glyph unicode="&#xe600;" d="M191.968 495.776h158.912c23.68 0 42.656-19.2 42.656-42.656 0-11.488-4.48-21.984-11.968-29.632l0.192-0.448-108.768-108.736c-75.104-75.136-75.104-196.512 0-271.584 74.88-74.848 196.448-74.848 271.552 0 74.88 75.104 74.88 196.48 0 271.584-21.76 21.504-47.36 37.12-74.464 46.272l28.608 28.576h365.248c87.040 0 157.856 74.016 159.968 166.4 0 1.472 0.224 2.752 0 4.256-2.112 23.904-22.368 42.656-46.912 42.656h-264.96l191.328 191.328c17.504 17.504 18.56 45.024 3.2 63.36-1.024 1.28-2.080 2.144-3.2 3.2-66.528 63.552-169.152 65.92-230.56 4.48l-262.368-262.368h-46.528c12.8 25.6 20.032 54.624 20.032 85.344 0 106.016-85.952 192-192 192-106.016 0-191.968-85.984-191.968-192 0.032-106.080 85.984-192.032 192-192.032zM277.312 687.744c0-47.136-38.176-85.344-85.344-85.344-47.136 0-85.312 38.176-85.312 85.344s38.176 85.344 85.312 85.344c47.168 0 85.344-38.208 85.344-85.344zM469.088 238.688c33.28-33.248 33.28-87.264 0-120.512-33.28-33.472-87.264-33.472-120.736 0-33.28 33.248-33.28 87.264 0 120.512 33.472 33.504 87.456 33.504 120.736 0z" />
11
+ </font></defs></svg>
trunk/css/font/code-snippets.ttf ADDED
Binary file
trunk/css/font/code-snippets.woff ADDED
Binary file
trunk/css/min/cmthemes/3024-day.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-3024-day.CodeMirror{background:#f7f7f7;color:#3a3432}.cm-s-3024-day div.CodeMirror-selected{background:#d6d5d4}.cm-s-3024-day .CodeMirror-line::selection,.cm-s-3024-day .CodeMirror-line>span::selection,.cm-s-3024-day .CodeMirror-line>span>span::selection{background:#d6d5d4}.cm-s-3024-day .CodeMirror-line::-moz-selection,.cm-s-3024-day .CodeMirror-line>span::-moz-selection,.cm-s-3024-day .CodeMirror-line>span>span::selection{background:#d9d9d9}.cm-s-3024-day .CodeMirror-gutters{background:#f7f7f7;border-right:0}.cm-s-3024-day .CodeMirror-guttermarker{color:#db2d20}.cm-s-3024-day .CodeMirror-guttermarker-subtle,.cm-s-3024-day .CodeMirror-linenumber{color:#807d7c}.cm-s-3024-day .CodeMirror-cursor{border-left:1px solid #5c5855}.cm-s-3024-day span.cm-comment{color:#cdab53}.cm-s-3024-day span.cm-atom,.cm-s-3024-day span.cm-number{color:#a16a94}.cm-s-3024-day span.cm-attribute,.cm-s-3024-day span.cm-property{color:#01a252}.cm-s-3024-day span.cm-keyword{color:#db2d20}.cm-s-3024-day span.cm-string{color:#fded02}.cm-s-3024-day span.cm-variable{color:#01a252}.cm-s-3024-day span.cm-variable-2{color:#01a0e4}.cm-s-3024-day span.cm-def{color:#e8bbd0}.cm-s-3024-day span.cm-bracket{color:#3a3432}.cm-s-3024-day span.cm-tag{color:#db2d20}.cm-s-3024-day span.cm-link{color:#a16a94}.cm-s-3024-day span.cm-error{background:#db2d20;color:#5c5855}.cm-s-3024-day .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-3024-day .CodeMirror-matchingbracket{text-decoration:underline;color:#a16a94!important}
trunk/css/min/cmthemes/3024-night.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-3024-night.CodeMirror{background:#090300;color:#d6d5d4}.cm-s-3024-night div.CodeMirror-selected{background:#3a3432}.cm-s-3024-night .CodeMirror-line::selection,.cm-s-3024-night .CodeMirror-line>span::selection,.cm-s-3024-night .CodeMirror-line>span>span::selection{background:rgba(58,52,50,.99)}.cm-s-3024-night .CodeMirror-line::-moz-selection,.cm-s-3024-night .CodeMirror-line>span::-moz-selection,.cm-s-3024-night .CodeMirror-line>span>span::-moz-selection{background:rgba(58,52,50,.99)}.cm-s-3024-night .CodeMirror-gutters{background:#090300;border-right:0}.cm-s-3024-night .CodeMirror-guttermarker{color:#db2d20}.cm-s-3024-night .CodeMirror-guttermarker-subtle,.cm-s-3024-night .CodeMirror-linenumber{color:#5c5855}.cm-s-3024-night .CodeMirror-cursor{border-left:1px solid #807d7c}.cm-s-3024-night span.cm-comment{color:#cdab53}.cm-s-3024-night span.cm-atom,.cm-s-3024-night span.cm-number{color:#a16a94}.cm-s-3024-night span.cm-attribute,.cm-s-3024-night span.cm-property{color:#01a252}.cm-s-3024-night span.cm-keyword{color:#db2d20}.cm-s-3024-night span.cm-string{color:#fded02}.cm-s-3024-night span.cm-variable{color:#01a252}.cm-s-3024-night span.cm-variable-2{color:#01a0e4}.cm-s-3024-night span.cm-def{color:#e8bbd0}.cm-s-3024-night span.cm-bracket{color:#d6d5d4}.cm-s-3024-night span.cm-tag{color:#db2d20}.cm-s-3024-night span.cm-link{color:#a16a94}.cm-s-3024-night span.cm-error{background:#db2d20;color:#807d7c}.cm-s-3024-night .CodeMirror-activeline-background{background:#2f2f2f}.cm-s-3024-night .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/abcdef.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-abcdef.CodeMirror{background:#0f0f0f;color:#defdef}.cm-s-abcdef div.CodeMirror-selected{background:#515151}.cm-s-abcdef .CodeMirror-line::selection,.cm-s-abcdef .CodeMirror-line>span::selection,.cm-s-abcdef .CodeMirror-line>span>span::selection{background:rgba(56,56,56,.99)}.cm-s-abcdef .CodeMirror-line::-moz-selection,.cm-s-abcdef .CodeMirror-line>span::-moz-selection,.cm-s-abcdef .CodeMirror-line>span>span::-moz-selection{background:rgba(56,56,56,.99)}.cm-s-abcdef .CodeMirror-gutters{background:#555;border-right:2px solid #314151}.cm-s-abcdef .CodeMirror-guttermarker{color:#222}.cm-s-abcdef .CodeMirror-guttermarker-subtle{color:azure}.cm-s-abcdef .CodeMirror-linenumber{color:#fff}.cm-s-abcdef .CodeMirror-cursor{border-left:1px solid #0f0}.cm-s-abcdef span.cm-keyword{color:#b8860b;font-weight:700}.cm-s-abcdef span.cm-atom{color:#77f}.cm-s-abcdef span.cm-number{color:violet}.cm-s-abcdef span.cm-def{color:#fffabc}.cm-s-abcdef span.cm-variable{color:#abcdef}.cm-s-abcdef span.cm-variable-2{color:#cacbcc}.cm-s-abcdef span.cm-variable-3{color:#def}.cm-s-abcdef span.cm-property{color:#fedcba}.cm-s-abcdef span.cm-operator{color:#ff0}.cm-s-abcdef span.cm-comment{color:#7a7b7c;font-style:italic}.cm-s-abcdef span.cm-string{color:#2b4}.cm-s-abcdef span.cm-meta{color:#c9f}.cm-s-abcdef span.cm-qualifier{color:#fff700}.cm-s-abcdef span.cm-builtin{color:#30aabc}.cm-s-abcdef span.cm-bracket{color:#8a8a8a}.cm-s-abcdef span.cm-tag{color:#fd4}.cm-s-abcdef span.cm-attribute{color:#df0}.cm-s-abcdef span.cm-error{color:red}.cm-s-abcdef span.cm-header{color:#7fffd4;font-weight:700}.cm-s-abcdef span.cm-link{color:#8a2be2}.cm-s-abcdef .CodeMirror-activeline-background{background:#314151}
trunk/css/min/cmthemes/ambiance-mobile.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-ambiance.CodeMirror{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}
trunk/css/min/cmthemes/ambiance.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-ambiance .cm-header{color:#00f}.cm-s-ambiance .cm-quote{color:#24c2c7}.cm-s-ambiance .cm-keyword{color:#cda869}.cm-s-ambiance .cm-atom{color:#cf7ea9}.cm-s-ambiance .cm-number{color:#78cf8a}.cm-s-ambiance .cm-def{color:#aac6e3}.cm-s-ambiance .cm-variable{color:#ffb795}.cm-s-ambiance .cm-variable-2{color:#eed1b3}.cm-s-ambiance .cm-variable-3{color:#faded3}.cm-s-ambiance .cm-property{color:#eed1b3}.cm-s-ambiance .cm-operator{color:#fa8d6a}.cm-s-ambiance .cm-comment{color:#555;font-style:italic}.cm-s-ambiance .cm-string{color:#8f9d6a}.cm-s-ambiance .cm-string-2{color:#9d937c}.cm-s-ambiance .cm-meta{color:#d2a8a1}.cm-s-ambiance .cm-qualifier{color:#ff0}.cm-s-ambiance .cm-builtin{color:#99c}.cm-s-ambiance .cm-bracket{color:#24c2c7}.cm-s-ambiance .cm-tag{color:#fee4ff}.cm-s-ambiance .cm-attribute{color:#9b859d}.cm-s-ambiance .cm-hr{color:pink}.cm-s-ambiance .cm-link{color:#f4c20b}.cm-s-ambiance .cm-special{color:#ff9d00}.cm-s-ambiance .cm-error{color:#af2018}.cm-s-ambiance .CodeMirror-matchingbracket{color:#0f0}.cm-s-ambiance .CodeMirror-nonmatchingbracket{color:#f22}.cm-s-ambiance div.CodeMirror-selected{background:rgba(255,255,255,.15)}.cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-ambiance .CodeMirror-line::selection,.cm-s-ambiance .CodeMirror-line>span::selection,.cm-s-ambiance .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-ambiance .CodeMirror-line::-moz-selection,.cm-s-ambiance .CodeMirror-line>span::-moz-selection,.cm-s-ambiance .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-ambiance.CodeMirror{line-height:1.4em;color:#e6e1dc;background-color:#202020;-webkit-box-shadow:inset 0 0 10px #000;-moz-box-shadow:inset 0 0 10px #000;box-shadow:inset 0 0 10px #000}.cm-s-ambiance .CodeMirror-gutters{background:#3d3d3d;border-right:1px solid #4d4d4d;box-shadow:0 10px 20px #000}.cm-s-ambiance .CodeMirror-linenumber{text-shadow:0 1px 1px #4d4d4d;color:#111;padding:0 5px}.cm-s-ambiance .CodeMirror-guttermarker{color:#aaa}.cm-s-ambiance .CodeMirror-guttermarker-subtle{color:#111}.cm-s-ambiance .CodeMirror-cursor{border-left:1px solid #7991e8}.cm-s-ambiance .CodeMirror-activeline-background{background:0% 0% rgba(255,255,255,.031)}.cm-s-ambiance .CodeMirror-gutters,.cm-s-ambiance.CodeMirror{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC)}
trunk/css/min/cmthemes/base16-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-base16-dark.CodeMirror{background:#151515;color:#e0e0e0}.cm-s-base16-dark div.CodeMirror-selected{background:#303030}.cm-s-base16-dark .CodeMirror-line::selection,.cm-s-base16-dark .CodeMirror-line>span::selection,.cm-s-base16-dark .CodeMirror-line>span>span::selection{background:rgba(48,48,48,.99)}.cm-s-base16-dark .CodeMirror-line::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span::-moz-selection,.cm-s-base16-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(48,48,48,.99)}.cm-s-base16-dark .CodeMirror-gutters{background:#151515;border-right:0}.cm-s-base16-dark .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-dark .CodeMirror-guttermarker-subtle,.cm-s-base16-dark .CodeMirror-linenumber{color:#505050}.cm-s-base16-dark .CodeMirror-cursor{border-left:1px solid #b0b0b0}.cm-s-base16-dark span.cm-comment{color:#8f5536}.cm-s-base16-dark span.cm-atom,.cm-s-base16-dark span.cm-number{color:#aa759f}.cm-s-base16-dark span.cm-attribute,.cm-s-base16-dark span.cm-property{color:#90a959}.cm-s-base16-dark span.cm-keyword{color:#ac4142}.cm-s-base16-dark span.cm-string{color:#f4bf75}.cm-s-base16-dark span.cm-variable{color:#90a959}.cm-s-base16-dark span.cm-variable-2{color:#6a9fb5}.cm-s-base16-dark span.cm-def{color:#d28445}.cm-s-base16-dark span.cm-bracket{color:#e0e0e0}.cm-s-base16-dark span.cm-tag{color:#ac4142}.cm-s-base16-dark span.cm-link{color:#aa759f}.cm-s-base16-dark span.cm-error{background:#ac4142;color:#b0b0b0}.cm-s-base16-dark .CodeMirror-activeline-background{background:#202020}.cm-s-base16-dark .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/base16-light.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::selection,.cm-s-base16-light .CodeMirror-line>span::selection,.cm-s-base16-light .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::-moz-selection,.cm-s-base16-light .CodeMirror-line>span::-moz-selection,.cm-s-base16-light .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light .CodeMirror-guttermarker-subtle,.cm-s-base16-light .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light span.cm-comment{color:#8f5536}.cm-s-base16-light span.cm-atom,.cm-s-base16-light span.cm-number{color:#aa759f}.cm-s-base16-light span.cm-attribute,.cm-s-base16-light span.cm-property{color:#90a959}.cm-s-base16-light span.cm-keyword{color:#ac4142}.cm-s-base16-light span.cm-string{color:#f4bf75}.cm-s-base16-light span.cm-variable{color:#90a959}.cm-s-base16-light span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light span.cm-def{color:#d28445}.cm-s-base16-light span.cm-bracket{color:#202020}.cm-s-base16-light span.cm-tag{color:#ac4142}.cm-s-base16-light span.cm-link{color:#aa759f}.cm-s-base16-light span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/bespin.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-bespin.CodeMirror{background:#28211c;color:#9d9b97}.cm-s-bespin div.CodeMirror-selected{background:#36312e!important}.cm-s-bespin .CodeMirror-gutters{background:#28211c;border-right:0}.cm-s-bespin .CodeMirror-linenumber{color:#666}.cm-s-bespin .CodeMirror-cursor{border-left:1px solid #797977!important}.cm-s-bespin span.cm-comment{color:#937121}.cm-s-bespin span.cm-atom,.cm-s-bespin span.cm-number{color:#9b859d}.cm-s-bespin span.cm-attribute,.cm-s-bespin span.cm-property{color:#54be0d}.cm-s-bespin span.cm-keyword{color:#cf6a4c}.cm-s-bespin span.cm-string{color:#f9ee98}.cm-s-bespin span.cm-variable{color:#54be0d}.cm-s-bespin span.cm-variable-2{color:#5ea6ea}.cm-s-bespin span.cm-def{color:#cf7d34}.cm-s-bespin span.cm-error{background:#cf6a4c;color:#797977}.cm-s-bespin span.cm-bracket{color:#9d9b97}.cm-s-bespin span.cm-tag{color:#cf6a4c}.cm-s-bespin span.cm-link{color:#9b859d}.cm-s-bespin .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-bespin .CodeMirror-activeline-background{background:#404040}
trunk/css/min/cmthemes/blackboard.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-blackboard.CodeMirror{background:#0c1021;color:#f8f8f8}.cm-s-blackboard div.CodeMirror-selected{background:#253b76}.cm-s-blackboard .CodeMirror-line::selection,.cm-s-blackboard .CodeMirror-line>span::selection,.cm-s-blackboard .CodeMirror-line>span>span::selection{background:rgba(37,59,118,.99)}.cm-s-blackboard .CodeMirror-line::-moz-selection,.cm-s-blackboard .CodeMirror-line>span::-moz-selection,.cm-s-blackboard .CodeMirror-line>span>span::-moz-selection{background:rgba(37,59,118,.99)}.cm-s-blackboard .CodeMirror-gutters{background:#0c1021;border-right:0}.cm-s-blackboard .CodeMirror-guttermarker{color:#fbde2d}.cm-s-blackboard .CodeMirror-guttermarker-subtle,.cm-s-blackboard .CodeMirror-linenumber{color:#888}.cm-s-blackboard .CodeMirror-cursor{border-left:1px solid #a7a7a7}.cm-s-blackboard .cm-keyword{color:#fbde2d}.cm-s-blackboard .cm-atom,.cm-s-blackboard .cm-number{color:#d8fa3c}.cm-s-blackboard .cm-def{color:#8da6ce}.cm-s-blackboard .cm-variable{color:#ff6400}.cm-s-blackboard .cm-operator{color:#fbde2d}.cm-s-blackboard .cm-comment{color:#aeaeae}.cm-s-blackboard .cm-string,.cm-s-blackboard .cm-string-2{color:#61ce3c}.cm-s-blackboard .cm-meta{color:#d8fa3c}.cm-s-blackboard .cm-attribute,.cm-s-blackboard .cm-builtin,.cm-s-blackboard .cm-tag{color:#8da6ce}.cm-s-blackboard .cm-header{color:#ff6400}.cm-s-blackboard .cm-hr{color:#aeaeae}.cm-s-blackboard .cm-link{color:#8da6ce}.cm-s-blackboard .cm-error{background:#9d1e15;color:#f8f8f8}.cm-s-blackboard .CodeMirror-activeline-background{background:#3c3636}.cm-s-blackboard .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/cobalt.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-cobalt.CodeMirror{background:#002240;color:#fff}.cm-s-cobalt div.CodeMirror-selected{background:#b36539}.cm-s-cobalt .CodeMirror-line::selection,.cm-s-cobalt .CodeMirror-line>span::selection,.cm-s-cobalt .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-line::-moz-selection,.cm-s-cobalt .CodeMirror-line>span::-moz-selection,.cm-s-cobalt .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-cobalt .CodeMirror-guttermarker{color:#ffee80}.cm-s-cobalt .CodeMirror-guttermarker-subtle,.cm-s-cobalt .CodeMirror-linenumber{color:#d0d0d0}.cm-s-cobalt .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-cobalt span.cm-comment{color:#08f}.cm-s-cobalt span.cm-atom{color:#845dc4}.cm-s-cobalt span.cm-attribute,.cm-s-cobalt span.cm-number{color:#ff80e1}.cm-s-cobalt span.cm-keyword{color:#ffee80}.cm-s-cobalt span.cm-string{color:#3ad900}.cm-s-cobalt span.cm-meta{color:#ff9d00}.cm-s-cobalt span.cm-tag,.cm-s-cobalt span.cm-variable-2{color:#9effff}.cm-s-cobalt span.cm-def,.cm-s-cobalt span.cm-variable-3{color:#fff}.cm-s-cobalt span.cm-bracket{color:#d8d8d8}.cm-s-cobalt span.cm-builtin,.cm-s-cobalt span.cm-special{color:#ff9e59}.cm-s-cobalt span.cm-link{color:#845dc4}.cm-s-cobalt span.cm-error{color:#9d1e15}.cm-s-cobalt .CodeMirror-activeline-background{background:#002d57}.cm-s-cobalt .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/colorforth.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-colorforth.CodeMirror{background:#000;color:#f8f8f8}.cm-s-colorforth .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-colorforth .CodeMirror-guttermarker{color:#ffbd40}.cm-s-colorforth .CodeMirror-guttermarker-subtle{color:#78846f}.cm-s-colorforth .CodeMirror-linenumber{color:#bababa}.cm-s-colorforth .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-colorforth span.cm-comment{color:#ededed}.cm-s-colorforth span.cm-def{color:#ff1c1c;font-weight:700}.cm-s-colorforth span.cm-keyword{color:#ffd900}.cm-s-colorforth span.cm-builtin{color:#00d95a}.cm-s-colorforth span.cm-variable{color:#73ff00}.cm-s-colorforth span.cm-string{color:#007bff}.cm-s-colorforth span.cm-number{color:#00c4ff}.cm-s-colorforth span.cm-atom{color:#606060}.cm-s-colorforth span.cm-variable-2{color:#eee}.cm-s-colorforth span.cm-variable-3{color:#ddd}.cm-s-colorforth span.cm-meta{color:#ff0}.cm-s-colorforth span.cm-qualifier{color:#fff700}.cm-s-colorforth span.cm-bracket{color:#cc7}.cm-s-colorforth span.cm-tag{color:#ffbd40}.cm-s-colorforth span.cm-attribute{color:#fff700}.cm-s-colorforth span.cm-error{color:red}.cm-s-colorforth div.CodeMirror-selected{background:#333d53}.cm-s-colorforth span.cm-compilation{background:rgba(255,255,255,.12)}.cm-s-colorforth .CodeMirror-activeline-background{background:#253540}
trunk/css/min/cmthemes/dracula.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-dracula .CodeMirror-gutters,.cm-s-dracula.CodeMirror{background-color:#282a36!important;color:#f8f8f2!important;border:none}.cm-s-dracula .CodeMirror-gutters{}.cm-s-dracula .CodeMirror-cursor{border-left:solid thin #f8f8f0}.cm-s-dracula .CodeMirror-linenumber{color:#6d8a88}.cm-s-dracula .CodeMirror-activeline-background,.cm-s-dracula .CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-dracula span.cm-comment{color:#6272a4}.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2{color:#f1fa8c}.cm-s-dracula span.cm-number{color:#bd93f9}.cm-s-dracula span.cm-variable{color:#50fa7b}.cm-s-dracula span.cm-variable-2{color:#fff}.cm-s-dracula span.cm-def{color:#ffb86c}.cm-s-dracula span.cm-keyword,.cm-s-dracula span.cm-operator{color:#ff79c6}.cm-s-dracula span.cm-atom{color:#bd93f9}.cm-s-dracula span.cm-meta{color:#f8f8f2}.cm-s-dracula span.cm-tag{color:#ff79c6}.cm-s-dracula span.cm-attribute,.cm-s-dracula span.cm-qualifier{color:#50fa7b}.cm-s-dracula span.cm-property{color:#66d9ef}.cm-s-dracula span.cm-builtin,.cm-s-dracula span.cm-variable-3{color:#50fa7b}.cm-s-dracula .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/duotone-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-duotone-dark.CodeMirror{background:#2a2734;color:#6c6783}.cm-s-duotone-dark div.CodeMirror-selected{background:#545167!important}.cm-s-duotone-dark .CodeMirror-gutters{background:#2a2734;border-right:0}.cm-s-duotone-dark .CodeMirror-linenumber{color:#545167}.cm-s-duotone-dark .CodeMirror-cursor{border-left:1px solid #ffad5c;border-right:.5em solid #ffad5c;opacity:.5}.cm-s-duotone-dark .CodeMirror-activeline-background{background:#363342;opacity:.5}.cm-s-duotone-dark .cm-fat-cursor .CodeMirror-cursor{background:#ffad5c;opacity:.5}.cm-s-duotone-dark span.cm-atom,.cm-s-duotone-dark span.cm-attribute,.cm-s-duotone-dark span.cm-hr,.cm-s-duotone-dark span.cm-keyword,.cm-s-duotone-dark span.cm-link,.cm-s-duotone-dark span.cm-number,.cm-s-duotone-dark span.cm-quote,.cm-s-duotone-dark span.cm-variable{color:#fc9}.cm-s-duotone-dark span.cm-property{color:#9a86fd}.cm-s-duotone-dark span.cm-negative,.cm-s-duotone-dark span.cm-punctuation,.cm-s-duotone-dark span.cm-unit{color:#e09142}.cm-s-duotone-dark span.cm-string{color:#ffb870}.cm-s-duotone-dark span.cm-operator{color:#ffad5c}.cm-s-duotone-dark span.cm-positive{color:#6a51e6}.cm-s-duotone-dark span.cm-string-2,.cm-s-duotone-dark span.cm-url,.cm-s-duotone-dark span.cm-variable-2,.cm-s-duotone-dark span.cm-variable-3{color:#7a63ee}.cm-s-duotone-dark span.cm-builtin,.cm-s-duotone-dark span.cm-def,.cm-s-duotone-dark span.cm-em,.cm-s-duotone-dark span.cm-header,.cm-s-duotone-dark span.cm-qualifier,.cm-s-duotone-dark span.cm-tag{color:#eeebff}.cm-s-duotone-dark span.cm-bracket,.cm-s-duotone-dark span.cm-comment{color:#6c6783}.cm-s-duotone-dark span.cm-error,.cm-s-duotone-dark span.cm-invalidchar{color:red}.cm-s-duotone-dark span.cm-header{font-weight:400}.cm-s-duotone-dark .CodeMirror-matchingbracket{text-decoration:underline;color:#eeebff!important}
trunk/css/min/cmthemes/duotone-light.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-duotone-light.CodeMirror{background:#faf8f5;color:#b29762}.cm-s-duotone-light div.CodeMirror-selected{background:#e3dcce!important}.cm-s-duotone-light .CodeMirror-gutters{background:#faf8f5;border-right:0}.cm-s-duotone-light .CodeMirror-linenumber{color:#cdc4b1}.cm-s-duotone-light .CodeMirror-cursor{border-left:1px solid #93abdc;border-right:.5em solid #93abdc;opacity:.5}.cm-s-duotone-light .CodeMirror-activeline-background{background:#e3dcce;opacity:.5}.cm-s-duotone-light .cm-fat-cursor .CodeMirror-cursor{background:#93abdc;opacity:.5}.cm-s-duotone-light span.cm-atom,.cm-s-duotone-light span.cm-attribute,.cm-s-duotone-light span.cm-keyword,.cm-s-duotone-light span.cm-number,.cm-s-duotone-light span.cm-quote,.cm-s-duotone-light span.cm-variable,.cm-s-duotone-light-light span.cm-hr,.cm-s-duotone-light-light span.cm-link{color:#063289}.cm-s-duotone-light span.cm-property{color:#b29762}.cm-s-duotone-light span.cm-negative,.cm-s-duotone-light span.cm-punctuation,.cm-s-duotone-light span.cm-unit{color:#063289}.cm-s-duotone-light span.cm-operator,.cm-s-duotone-light span.cm-string{color:#1659df}.cm-s-duotone-light span.cm-positive,.cm-s-duotone-light span.cm-string-2,.cm-s-duotone-light span.cm-url,.cm-s-duotone-light span.cm-variable-2,.cm-s-duotone-light span.cm-variable-3{color:#896724}.cm-s-duotone-light span.cm-builtin,.cm-s-duotone-light span.cm-def,.cm-s-duotone-light span.cm-em,.cm-s-duotone-light span.cm-header,.cm-s-duotone-light span.cm-qualifier,.cm-s-duotone-light span.cm-tag{color:#2d2006}.cm-s-duotone-light span.cm-bracket,.cm-s-duotone-light span.cm-comment{color:#b6ad9a}.cm-s-duotone-light span.cm-error,.cm-s-duotone-light span.cm-invalidchar{color:red}.cm-s-duotone-light span.cm-header{font-weight:400}.cm-s-duotone-light .CodeMirror-matchingbracket{text-decoration:underline;color:#faf8f5!important}
trunk/css/min/cmthemes/eclipse.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-eclipse span.cm-meta{color:#ff1717}.cm-s-eclipse span.cm-keyword{line-height:1em;font-weight:700;color:#7f0055}.cm-s-eclipse span.cm-atom{color:#219}.cm-s-eclipse span.cm-number{color:#164}.cm-s-eclipse span.cm-def{color:#00f}.cm-s-eclipse span.cm-variable{color:#000}.cm-s-eclipse span.cm-variable-2,.cm-s-eclipse span.cm-variable-3{color:#0000c0}.cm-s-eclipse span.cm-operator,.cm-s-eclipse span.cm-property{color:#000}.cm-s-eclipse span.cm-comment{color:#3f7f5f}.cm-s-eclipse span.cm-string{color:#2a00ff}.cm-s-eclipse span.cm-string-2{color:#f50}.cm-s-eclipse span.cm-qualifier{color:#555}.cm-s-eclipse span.cm-builtin{color:#30a}.cm-s-eclipse span.cm-bracket{color:#cc7}.cm-s-eclipse span.cm-tag{color:#170}.cm-s-eclipse span.cm-attribute{color:#00c}.cm-s-eclipse span.cm-link{color:#219}.cm-s-eclipse span.cm-error{color:red}.cm-s-eclipse .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-eclipse .CodeMirror-matchingbracket{outline:1px solid gray;color:#000!important}
trunk/css/min/cmthemes/elegant.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-elegant span.cm-atom,.cm-s-elegant span.cm-number,.cm-s-elegant span.cm-string{color:#762}.cm-s-elegant span.cm-comment,.cm-s-elegant span.cm-meta{color:#262;font-style:italic;line-height:1em}.cm-s-elegant span.cm-meta{color:#555}.cm-s-elegant span.cm-variable{color:#000}.cm-s-elegant span.cm-variable-2{color:#b11}.cm-s-elegant span.cm-qualifier{color:#555}.cm-s-elegant span.cm-keyword{color:#730}.cm-s-elegant span.cm-builtin{color:#30a}.cm-s-elegant span.cm-link{color:#762}.cm-s-elegant span.cm-error{background-color:#fdd}.cm-s-elegant .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-elegant .CodeMirror-matchingbracket{outline:1px solid gray;color:#000!important}
trunk/css/min/cmthemes/erlang-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-erlang-dark.CodeMirror{background:#002240;color:#fff}.cm-s-erlang-dark div.CodeMirror-selected{background:#b36539}.cm-s-erlang-dark .CodeMirror-line::selection,.cm-s-erlang-dark .CodeMirror-line>span::selection,.cm-s-erlang-dark .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-line::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-erlang-dark .CodeMirror-guttermarker{color:#fff}.cm-s-erlang-dark .CodeMirror-guttermarker-subtle,.cm-s-erlang-dark .CodeMirror-linenumber{color:#d0d0d0}.cm-s-erlang-dark .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-erlang-dark span.cm-quote{color:#ccc}.cm-s-erlang-dark span.cm-atom{color:#f133f1}.cm-s-erlang-dark span.cm-attribute{color:#ff80e1}.cm-s-erlang-dark span.cm-bracket{color:#ff9d00}.cm-s-erlang-dark span.cm-builtin{color:#eaa}.cm-s-erlang-dark span.cm-comment{color:#77f}.cm-s-erlang-dark span.cm-def{color:#e7a}.cm-s-erlang-dark span.cm-keyword{color:#ffee80}.cm-s-erlang-dark span.cm-meta{color:#50fefe}.cm-s-erlang-dark span.cm-number{color:#ffd0d0}.cm-s-erlang-dark span.cm-operator{color:#d55}.cm-s-erlang-dark span.cm-property,.cm-s-erlang-dark span.cm-qualifier{color:#ccc}.cm-s-erlang-dark span.cm-special{color:#fbb}.cm-s-erlang-dark span.cm-string{color:#3ad900}.cm-s-erlang-dark span.cm-string-2{color:#ccc}.cm-s-erlang-dark span.cm-tag{color:#9effff}.cm-s-erlang-dark span.cm-variable{color:#50fe50}.cm-s-erlang-dark span.cm-variable-2{color:#e0e}.cm-s-erlang-dark span.cm-variable-3{color:#ccc}.cm-s-erlang-dark span.cm-error{color:#9d1e15}.cm-s-erlang-dark .CodeMirror-activeline-background{background:#013461}.cm-s-erlang-dark .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/hopscotch.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-hopscotch.CodeMirror{background:#322931;color:#d5d3d5}.cm-s-hopscotch div.CodeMirror-selected{background:#433b42!important}.cm-s-hopscotch .CodeMirror-gutters{background:#322931;border-right:0}.cm-s-hopscotch .CodeMirror-linenumber{color:#797379}.cm-s-hopscotch .CodeMirror-cursor{border-left:1px solid #989498!important}.cm-s-hopscotch span.cm-comment{color:#b33508}.cm-s-hopscotch span.cm-atom,.cm-s-hopscotch span.cm-number{color:#c85e7c}.cm-s-hopscotch span.cm-attribute,.cm-s-hopscotch span.cm-property{color:#8fc13e}.cm-s-hopscotch span.cm-keyword{color:#dd464c}.cm-s-hopscotch span.cm-string{color:#fdcc59}.cm-s-hopscotch span.cm-variable{color:#8fc13e}.cm-s-hopscotch span.cm-variable-2{color:#1290bf}.cm-s-hopscotch span.cm-def{color:#fd8b19}.cm-s-hopscotch span.cm-error{background:#dd464c;color:#989498}.cm-s-hopscotch span.cm-bracket{color:#d5d3d5}.cm-s-hopscotch span.cm-tag{color:#dd464c}.cm-s-hopscotch span.cm-link{color:#c85e7c}.cm-s-hopscotch .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-hopscotch .CodeMirror-activeline-background{background:#302020}
trunk/css/min/cmthemes/icecoder.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-icecoder{color:#666;background:#1d1d1b}.cm-s-icecoder span.cm-keyword{color:#eee;font-weight:700}.cm-s-icecoder span.cm-atom{color:#e1c76e}.cm-s-icecoder span.cm-number{color:#6cb5d9}.cm-s-icecoder span.cm-def{color:#b9ca4a}.cm-s-icecoder span.cm-variable{color:#6cb5d9}.cm-s-icecoder span.cm-variable-2{color:#cc1e5c}.cm-s-icecoder span.cm-variable-3{color:#f9602c}.cm-s-icecoder span.cm-property{color:#eee}.cm-s-icecoder span.cm-operator{color:#9179bb}.cm-s-icecoder span.cm-comment{color:#97a3aa}.cm-s-icecoder span.cm-string{color:#b9ca4a}.cm-s-icecoder span.cm-string-2{color:#6cb5d9}.cm-s-icecoder span.cm-meta,.cm-s-icecoder span.cm-qualifier{color:#555}.cm-s-icecoder span.cm-builtin{color:#214e7b}.cm-s-icecoder span.cm-bracket{color:#cc7}.cm-s-icecoder span.cm-tag{color:#e8e8e8}.cm-s-icecoder span.cm-attribute{color:#099}.cm-s-icecoder span.cm-header{color:#6a0d6a}.cm-s-icecoder span.cm-quote{color:#186718}.cm-s-icecoder span.cm-hr{color:#888}.cm-s-icecoder span.cm-link{color:#e1c76e}.cm-s-icecoder span.cm-error{color:#d00}.cm-s-icecoder .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-icecoder div.CodeMirror-selected{color:#fff;background:#037}.cm-s-icecoder .CodeMirror-gutters{background:#1d1d1b;min-width:41px;border-right:0}.cm-s-icecoder .CodeMirror-linenumber{color:#555;cursor:default}.cm-s-icecoder .CodeMirror-matchingbracket{color:#fff!important;background:#555!important}.cm-s-icecoder .CodeMirror-activeline-background{background:#000}
trunk/css/min/cmthemes/isotope.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-isotope.CodeMirror{background:#000;color:#e0e0e0}.cm-s-isotope div.CodeMirror-selected{background:#404040!important}.cm-s-isotope .CodeMirror-gutters{background:#000;border-right:0}.cm-s-isotope .CodeMirror-linenumber{color:gray}.cm-s-isotope .CodeMirror-cursor{border-left:1px solid silver!important}.cm-s-isotope span.cm-comment{color:#30f}.cm-s-isotope span.cm-atom,.cm-s-isotope span.cm-number{color:#c0f}.cm-s-isotope span.cm-attribute,.cm-s-isotope span.cm-property{color:#3f0}.cm-s-isotope span.cm-keyword{color:red}.cm-s-isotope span.cm-string{color:#f09}.cm-s-isotope span.cm-variable{color:#3f0}.cm-s-isotope span.cm-variable-2{color:#06f}.cm-s-isotope span.cm-def{color:#f90}.cm-s-isotope span.cm-error{background:red;color:silver}.cm-s-isotope span.cm-bracket{color:#e0e0e0}.cm-s-isotope span.cm-tag{color:red}.cm-s-isotope span.cm-link{color:#c0f}.cm-s-isotope .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-isotope .CodeMirror-activeline-background{background:#202020}
trunk/css/min/cmthemes/lesser-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-lesser-dark{line-height:1.3em}.cm-s-lesser-dark.CodeMirror{background:#262626;color:#ebefe7;text-shadow:0 -1px 1px #262626}.cm-s-lesser-dark div.CodeMirror-selected{background:#45443b}.cm-s-lesser-dark .CodeMirror-line::selection,.cm-s-lesser-dark .CodeMirror-line>span::selection,.cm-s-lesser-dark .CodeMirror-line>span>span::selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-line::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-lesser-dark pre{padding:0 8px}.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket{color:#7efc7e}.cm-s-lesser-dark .CodeMirror-gutters{background:#262626;border-right:1px solid #aaa}.cm-s-lesser-dark .CodeMirror-guttermarker{color:#599eff}.cm-s-lesser-dark .CodeMirror-guttermarker-subtle,.cm-s-lesser-dark .CodeMirror-linenumber{color:#777}.cm-s-lesser-dark span.cm-header{color:#a0a}.cm-s-lesser-dark span.cm-quote{color:#090}.cm-s-lesser-dark span.cm-keyword{color:#599eff}.cm-s-lesser-dark span.cm-atom{color:#c2b470}.cm-s-lesser-dark span.cm-number{color:#b35e4d}.cm-s-lesser-dark span.cm-def{color:#fff}.cm-s-lesser-dark span.cm-variable{color:#d9bf8c}.cm-s-lesser-dark span.cm-variable-2{color:#669199}.cm-s-lesser-dark span.cm-variable-3{color:#fff}.cm-s-lesser-dark span.cm-operator,.cm-s-lesser-dark span.cm-property{color:#92a75c}.cm-s-lesser-dark span.cm-comment{color:#666}.cm-s-lesser-dark span.cm-string{color:#bcd279}.cm-s-lesser-dark span.cm-string-2{color:#f50}.cm-s-lesser-dark span.cm-meta{color:#738c73}.cm-s-lesser-dark span.cm-qualifier{color:#555}.cm-s-lesser-dark span.cm-builtin{color:#ff9e59}.cm-s-lesser-dark span.cm-bracket{color:#ebefe7}.cm-s-lesser-dark span.cm-tag{color:#669199}.cm-s-lesser-dark span.cm-attribute{color:#00c}.cm-s-lesser-dark span.cm-hr{color:#999}.cm-s-lesser-dark span.cm-link{color:#00c}.cm-s-lesser-dark span.cm-error{color:#9d1e15}.cm-s-lesser-dark .CodeMirror-activeline-background{background:#3c3a3a}.cm-s-lesser-dark .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/liquibyte.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-liquibyte.CodeMirror{background-color:#000;color:#fff;line-height:1.2em;font-size:1em}.cm-s-liquibyte .CodeMirror-focused .cm-matchhighlight{text-decoration:underline;text-decoration-color:#0f0;text-decoration-style:wavy}.cm-s-liquibyte .cm-tab,.cm-s-liquibyte .cm-trailingspace{text-decoration:line-through;text-decoration-color:red;text-decoration-style:dotted}.cm-s-liquibyte .cm-tab{text-decoration-color:#404040}.cm-s-liquibyte .CodeMirror-gutters{background-color:#262626;border-right:1px solid #505050;padding-right:.8em}.cm-s-liquibyte .CodeMirror-gutter-elt div{font-size:1.2em}.cm-s-liquibyte .CodeMirror-linenumber{color:#606060;padding-left:0}.cm-s-liquibyte .CodeMirror-cursor{border-left:1px solid #eee}.cm-s-liquibyte span.cm-comment{color:green}.cm-s-liquibyte span.cm-def{color:#ffaf40;font-weight:700}.cm-s-liquibyte span.cm-keyword{color:#c080ff;font-weight:700}.cm-s-liquibyte span.cm-builtin{color:#ffaf40;font-weight:700}.cm-s-liquibyte span.cm-variable{color:#5967ff;font-weight:700}.cm-s-liquibyte span.cm-string{color:#ff8000}.cm-s-liquibyte .CodeMirror span.CodeMirror-matchingbracket,.cm-s-liquibyte span.cm-number{color:#0f0;font-weight:700}.cm-s-liquibyte span.cm-atom{color:#bf3030;font-weight:700}.cm-s-liquibyte span.cm-variable-2{color:#007f7f;font-weight:700}.cm-s-liquibyte span.cm-variable-3{color:#c080ff;font-weight:700}.cm-s-liquibyte span.cm-property{color:#999;font-weight:700}.cm-s-liquibyte span.cm-operator{color:#fff}.cm-s-liquibyte span.cm-meta{color:#0f0}.cm-s-liquibyte span.cm-qualifier{color:#fff700;font-weight:700}.cm-s-liquibyte span.cm-bracket{color:#cc7}.cm-s-liquibyte span.cm-tag{color:#ff0;font-weight:700}.cm-s-liquibyte span.cm-attribute{color:#c080ff;font-weight:700}.cm-s-liquibyte span.cm-error{color:red}.cm-s-liquibyte div.CodeMirror-selected{background-color:rgba(255,0,0,.25)}.cm-s-liquibyte span.cm-compilation{background-color:rgba(255,255,255,.12)}.cm-s-liquibyte .CodeMirror-activeline-background{background-color:rgba(0,255,0,.15)}.cm-s-liquibyte .CodeMirror span.CodeMirror-nonmatchingbracket{color:red;font-weight:700}.CodeMirror-matchingtag{background-color:rgba(150,255,0,.3)}.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div:hover,div.CodeMirror-simplescroll-vertical div:hover{background-color:rgba(80,80,80,.7)}.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div,div.CodeMirror-simplescroll-vertical div{background-color:rgba(80,80,80,.3);border:1px solid #404040;border-radius:5px}.cm-s-liquibyte div.CodeMirror-simplescroll-vertical div{border-top:1px solid #404040;border-bottom:1px solid #404040}.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal div{border-left:1px solid #404040;border-right:1px solid #404040}.cm-s-liquibyte div.CodeMirror-simplescroll-vertical{background-color:#262626}.cm-s-liquibyte div.CodeMirror-simplescroll-horizontal{background-color:#262626;border-top:1px solid #404040}.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div,div.CodeMirror-overlayscroll-vertical div{background-color:#404040;border-radius:5px}.cm-s-liquibyte div.CodeMirror-overlayscroll-horizontal div,.cm-s-liquibyte div.CodeMirror-overlayscroll-vertical div{border:1px solid #404040}
trunk/css/min/cmthemes/material.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-material{background-color:#263238;color:#e9eded}.cm-s-material .CodeMirror-gutters{background:#263238;color:#537f7e;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#537f7e}.cm-s-material .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-material div.CodeMirror-selected{background:rgba(255,255,255,.15)}.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,0)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#e9eded}.cm-s-material .cm-variable-2{color:#80cbc4}.cm-s-material .cm-builtin{color:#decb6b}.cm-s-material .cm-atom,.cm-s-material .cm-number{color:#f77669}.cm-s-material .cm-def{color:#e9eded}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#80cbc4}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#82b1ff}.cm-s-material .cm-meta{color:#80cbc4}.cm-s-material .cm-attribute{color:#ffcb6b}.cm-s-material .cm-property{color:#80cbae}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-error{color:#fff;background-color:#ec5f67}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/mbo.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-mbo.CodeMirror{background:#2c2c2c;color:#ffffec}.cm-s-mbo div.CodeMirror-selected{background:#716c62}.cm-s-mbo .CodeMirror-line::selection,.cm-s-mbo .CodeMirror-line>span::selection,.cm-s-mbo .CodeMirror-line>span>span::selection{background:rgba(113,108,98,.99)}.cm-s-mbo .CodeMirror-line::-moz-selection,.cm-s-mbo .CodeMirror-line>span::-moz-selection,.cm-s-mbo .CodeMirror-line>span>span::-moz-selection{background:rgba(113,108,98,.99)}.cm-s-mbo .CodeMirror-gutters{background:#4e4e4e;border-right:0}.cm-s-mbo .CodeMirror-guttermarker{color:#fff}.cm-s-mbo .CodeMirror-guttermarker-subtle{color:gray}.cm-s-mbo .CodeMirror-linenumber{color:#dadada}.cm-s-mbo .CodeMirror-cursor{border-left:1px solid #ffffec}.cm-s-mbo span.cm-comment{color:#95958a}.cm-s-mbo span.cm-atom,.cm-s-mbo span.cm-number{color:#00a8c6}.cm-s-mbo span.cm-attribute,.cm-s-mbo span.cm-property{color:#9ddfe9}.cm-s-mbo span.cm-keyword{color:#ffb928}.cm-s-mbo span.cm-string{color:#ffcf6c}.cm-s-mbo span.cm-string.cm-property,.cm-s-mbo span.cm-variable{color:#ffffec}.cm-s-mbo span.cm-variable-2{color:#00a8c6}.cm-s-mbo span.cm-def{color:#ffffec}.cm-s-mbo span.cm-bracket{color:#fffffc;font-weight:700}.cm-s-mbo span.cm-tag{color:#9ddfe9}.cm-s-mbo span.cm-link{color:#f54b07}.cm-s-mbo span.cm-error{border-bottom:#636363;color:#ffffec}.cm-s-mbo span.cm-qualifier{color:#ffffec}.cm-s-mbo .CodeMirror-activeline-background{background:#494b41}.cm-s-mbo .CodeMirror-matchingbracket{color:#ffb928!important}.cm-s-mbo .CodeMirror-matchingtag{background:rgba(255,255,255,.37)}
trunk/css/min/cmthemes/mdn-like.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-mdn-like.CodeMirror{color:#999;background-color:#fff}.cm-s-mdn-like div.CodeMirror-selected{background:#cfc}.cm-s-mdn-like .CodeMirror-line::selection,.cm-s-mdn-like .CodeMirror-line>span::selection,.cm-s-mdn-like .CodeMirror-line>span>span::selection{background:#cfc}.cm-s-mdn-like .CodeMirror-line::-moz-selection,.cm-s-mdn-like .CodeMirror-line>span::-moz-selection,.cm-s-mdn-like .CodeMirror-line>span>span::-moz-selection{background:#cfc}.cm-s-mdn-like .CodeMirror-gutters{background:#f8f8f8;border-left:6px solid rgba(0,83,159,.65);color:#333}.cm-s-mdn-like .CodeMirror-linenumber{color:#aaa;padding-left:8px}.cm-s-mdn-like .CodeMirror-cursor{border-left:2px solid #222}.cm-s-mdn-like .cm-keyword{color:#6262ff}.cm-s-mdn-like .cm-atom{color:#f90}.cm-s-mdn-like .cm-number{color:#ca7841}.cm-s-mdn-like .cm-def{color:#8da6ce}.cm-s-mdn-like span.cm-tag,.cm-s-mdn-like span.cm-variable-2{color:#690}.cm-s-mdn-like .cm-variable,.cm-s-mdn-like span.cm-def,.cm-s-mdn-like span.cm-variable-3{color:#07a}.cm-s-mdn-like .cm-property{color:#905}.cm-s-mdn-like .cm-qualifier{color:#690}.cm-s-mdn-like .cm-operator{color:#cda869}.cm-s-mdn-like .cm-comment{color:#777;font-weight:400}.cm-s-mdn-like .cm-string{color:#07a;font-style:italic}.cm-s-mdn-like .cm-string-2{color:#bd6b18}.cm-s-mdn-like .cm-meta{color:#000}.cm-s-mdn-like .cm-builtin{color:#9b7536}.cm-s-mdn-like .cm-tag{color:#997643}.cm-s-mdn-like .cm-attribute{color:#d6bb6d}.cm-s-mdn-like .cm-header{color:#ff6400}.cm-s-mdn-like .cm-hr{color:#aeaeae}.cm-s-mdn-like .cm-link{color:#ad9361;font-style:italic;text-decoration:none}.cm-s-mdn-like .cm-error{border-bottom:1px solid red}div.cm-s-mdn-like .CodeMirror-activeline-background{background:#efefff}div.cm-s-mdn-like span.CodeMirror-matchingbracket{outline:1px solid gray;color:inherit}.cm-s-mdn-like.CodeMirror{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=)}
trunk/css/min/cmthemes/midnight.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-midnight span.CodeMirror-matchhighlight{background:#494949}.cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight{background:#314d67!important}.cm-s-midnight .CodeMirror-activeline-background{background:#253540}.cm-s-midnight.CodeMirror{background:#0f192a;color:#d1edff;border-top:1px solid #000;border-bottom:1px solid #000}.cm-s-midnight div.CodeMirror-selected{background:#314d67}.cm-s-midnight .CodeMirror-line::selection,.cm-s-midnight .CodeMirror-line>span::selection,.cm-s-midnight .CodeMirror-line>span>span::selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-line::-moz-selection,.cm-s-midnight .CodeMirror-line>span::-moz-selection,.cm-s-midnight .CodeMirror-line>span>span::-moz-selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-gutters{background:#0f192a;border-right:1px solid}.cm-s-midnight .CodeMirror-guttermarker{color:#fff}.cm-s-midnight .CodeMirror-guttermarker-subtle,.cm-s-midnight .CodeMirror-linenumber{color:#d0d0d0}.cm-s-midnight .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-midnight span.cm-comment{color:#428bdd}.cm-s-midnight span.cm-atom{color:#ae81ff}.cm-s-midnight span.cm-number{color:#d1edff}.cm-s-midnight span.cm-attribute,.cm-s-midnight span.cm-property{color:#a6e22e}.cm-s-midnight span.cm-keyword{color:#e83737}.cm-s-midnight span.cm-string{color:#1dc116}.cm-s-midnight span.cm-variable,.cm-s-midnight span.cm-variable-2{color:#ffaa3e}.cm-s-midnight span.cm-def{color:#4dd}.cm-s-midnight span.cm-bracket{color:#d1edff}.cm-s-midnight span.cm-tag{color:#449}.cm-s-midnight span.cm-link{color:#ae81ff}.cm-s-midnight span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-midnight .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/monokai.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-monokai.CodeMirror{background:#272822;color:#f8f8f2}.cm-s-monokai div.CodeMirror-selected{background:#49483e}.cm-s-monokai .CodeMirror-line::selection,.cm-s-monokai .CodeMirror-line>span::selection,.cm-s-monokai .CodeMirror-line>span>span::selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-line::-moz-selection,.cm-s-monokai .CodeMirror-line>span::-moz-selection,.cm-s-monokai .CodeMirror-line>span>span::-moz-selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-gutters{background:#272822;border-right:0}.cm-s-monokai .CodeMirror-guttermarker{color:#fff}.cm-s-monokai .CodeMirror-guttermarker-subtle,.cm-s-monokai .CodeMirror-linenumber{color:#d0d0d0}.cm-s-monokai .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-monokai span.cm-comment{color:#75715e}.cm-s-monokai span.cm-atom,.cm-s-monokai span.cm-number{color:#ae81ff}.cm-s-monokai span.cm-attribute,.cm-s-monokai span.cm-property{color:#a6e22e}.cm-s-monokai span.cm-keyword{color:#f92672}.cm-s-monokai span.cm-builtin{color:#66d9ef}.cm-s-monokai span.cm-string{color:#e6db74}.cm-s-monokai span.cm-variable{color:#f8f8f2}.cm-s-monokai span.cm-variable-2{color:#9effff}.cm-s-monokai span.cm-variable-3{color:#66d9ef}.cm-s-monokai span.cm-def{color:#fd971f}.cm-s-monokai span.cm-bracket{color:#f8f8f2}.cm-s-monokai span.cm-tag{color:#f92672}.cm-s-monokai span.cm-header,.cm-s-monokai span.cm-link{color:#ae81ff}.cm-s-monokai span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-monokai .CodeMirror-activeline-background{background:#373831}.cm-s-monokai .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/neat.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin,.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid gray;color:#000!important}
trunk/css/min/cmthemes/neo.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-neo.CodeMirror{background-color:#fff;color:#2e383c;line-height:1.4375}.cm-s-neo .cm-comment{color:#75787b}.cm-s-neo .cm-keyword,.cm-s-neo .cm-property{color:#1d75b3}.cm-s-neo .cm-atom,.cm-s-neo .cm-number{color:#75438a}.cm-s-neo .cm-node,.cm-s-neo .cm-tag{color:#9c3328}.cm-s-neo .cm-string{color:#b35e14}.cm-s-neo .cm-qualifier,.cm-s-neo .cm-variable{color:#047d65}.cm-s-neo pre{padding:0}.cm-s-neo .CodeMirror-gutters{border:none;border-right:10px solid transparent;background-color:transparent}.cm-s-neo .CodeMirror-linenumber{padding:0;color:#e0e2e5}.cm-s-neo .CodeMirror-guttermarker{color:#1d75b3}.cm-s-neo .CodeMirror-guttermarker-subtle{color:#e0e2e5}.cm-s-neo .CodeMirror-cursor{width:auto;border:0;background:rgba(155,157,162,.37);z-index:1}
trunk/css/min/cmthemes/night.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-night.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-night div.CodeMirror-selected{background:#447}.cm-s-night .CodeMirror-line::selection,.cm-s-night .CodeMirror-line>span::selection,.cm-s-night .CodeMirror-line>span>span::selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-line::-moz-selection,.cm-s-night .CodeMirror-line>span::-moz-selection,.cm-s-night .CodeMirror-line>span>span::-moz-selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-night .CodeMirror-guttermarker{color:#fff}.cm-s-night .CodeMirror-guttermarker-subtle{color:#bbb}.cm-s-night .CodeMirror-linenumber{color:#f8f8f8}.cm-s-night .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-night span.cm-comment{color:#8900d1}.cm-s-night span.cm-atom{color:#845dc4}.cm-s-night span.cm-attribute,.cm-s-night span.cm-number{color:#ffd500}.cm-s-night span.cm-keyword{color:#599eff}.cm-s-night span.cm-string{color:#37f14a}.cm-s-night span.cm-meta{color:#7678e2}.cm-s-night span.cm-tag,.cm-s-night span.cm-variable-2{color:#99b2ff}.cm-s-night span.cm-def,.cm-s-night span.cm-variable-3{color:#fff}.cm-s-night span.cm-bracket{color:#8da6ce}.cm-s-night span.cm-builtin,.cm-s-night span.cm-special{color:#ff9e59}.cm-s-night span.cm-link{color:#845dc4}.cm-s-night span.cm-error{color:#9d1e15}.cm-s-night .CodeMirror-activeline-background{background:#1c005a}.cm-s-night .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/panda-syntax.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-panda-syntax{background:#292a2b;color:#e6e6e6;line-height:1.5;font-family:'Operator Mono','Source Sans Pro',Menlo,Monaco,Consolas,Courier New,monospace}.cm-s-panda-syntax .CodeMirror-cursor{border-color:#ff2c6d}.cm-s-panda-syntax .CodeMirror-activeline-background{background:rgba(99,123,156,.1)}.cm-s-panda-syntax .CodeMirror-selected{background:#fff}.cm-s-panda-syntax .cm-comment{font-style:italic;color:#676b79}.cm-s-panda-syntax .cm-operator{color:#f3f3f3}.cm-s-panda-syntax .cm-string{color:#19f9d8}.cm-s-panda-syntax .cm-string-2{color:#ffb86c}.cm-s-panda-syntax .cm-tag{color:#ff2c6d}.cm-s-panda-syntax .cm-meta{color:#b084eb}.cm-s-panda-syntax .cm-number{color:#ffb86c}.cm-s-panda-syntax .cm-atom{color:#ff2c6d}.cm-s-panda-syntax .cm-keyword{color:#ff75b5}.cm-s-panda-syntax .cm-variable{color:#ffb86c}.cm-s-panda-syntax .cm-variable-2,.cm-s-panda-syntax .cm-variable-3{color:#ff9ac1}.cm-s-panda-syntax .cm-def{color:#e6e6e6}.cm-s-panda-syntax .cm-property{color:#f3f3f3}.cm-s-panda-syntax .cm-attribute,.cm-s-panda-syntax .cm-unit{color:#ffb86c}.cm-s-panda-syntax .CodeMirror-matchingbracket{border-bottom:1px dotted #19f9d8;padding-bottom:2px;color:#e6e6e6}.cm-s-panda-syntax .CodeMirror-gutters{background:#292a2b;border-right-color:rgba(255,255,255,.1)}.cm-s-panda-syntax .CodeMirror-linenumber{color:#e6e6e6;opacity:.6}
trunk/css/min/cmthemes/paraiso-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-paraiso-dark.CodeMirror{background:#2f1e2e;color:#b9b6b0}.cm-s-paraiso-dark div.CodeMirror-selected{background:#41323f}.cm-s-paraiso-dark .CodeMirror-line::selection,.cm-s-paraiso-dark .CodeMirror-line>span::selection,.cm-s-paraiso-dark .CodeMirror-line>span>span::selection{background:rgba(65,50,63,.99)}.cm-s-paraiso-dark .CodeMirror-line::-moz-selection,.cm-s-paraiso-dark .CodeMirror-line>span::-moz-selection,.cm-s-paraiso-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(65,50,63,.99)}.cm-s-paraiso-dark .CodeMirror-gutters{background:#2f1e2e;border-right:0}.cm-s-paraiso-dark .CodeMirror-guttermarker{color:#ef6155}.cm-s-paraiso-dark .CodeMirror-guttermarker-subtle,.cm-s-paraiso-dark .CodeMirror-linenumber{color:#776e71}.cm-s-paraiso-dark .CodeMirror-cursor{border-left:1px solid #8d8687}.cm-s-paraiso-dark span.cm-comment{color:#e96ba8}.cm-s-paraiso-dark span.cm-atom,.cm-s-paraiso-dark span.cm-number{color:#815ba4}.cm-s-paraiso-dark span.cm-attribute,.cm-s-paraiso-dark span.cm-property{color:#48b685}.cm-s-paraiso-dark span.cm-keyword{color:#ef6155}.cm-s-paraiso-dark span.cm-string{color:#fec418}.cm-s-paraiso-dark span.cm-variable{color:#48b685}.cm-s-paraiso-dark span.cm-variable-2{color:#06b6ef}.cm-s-paraiso-dark span.cm-def{color:#f99b15}.cm-s-paraiso-dark span.cm-bracket{color:#b9b6b0}.cm-s-paraiso-dark span.cm-tag{color:#ef6155}.cm-s-paraiso-dark span.cm-link{color:#815ba4}.cm-s-paraiso-dark span.cm-error{background:#ef6155;color:#8d8687}.cm-s-paraiso-dark .CodeMirror-activeline-background{background:#4d344a}.cm-s-paraiso-dark .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/paraiso-light.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-paraiso-light.CodeMirror{background:#e7e9db;color:#41323f}.cm-s-paraiso-light div.CodeMirror-selected{background:#b9b6b0}.cm-s-paraiso-light .CodeMirror-line::selection,.cm-s-paraiso-light .CodeMirror-line>span::selection,.cm-s-paraiso-light .CodeMirror-line>span>span::selection{background:#b9b6b0}.cm-s-paraiso-light .CodeMirror-line::-moz-selection,.cm-s-paraiso-light .CodeMirror-line>span::-moz-selection,.cm-s-paraiso-light .CodeMirror-line>span>span::-moz-selection{background:#b9b6b0}.cm-s-paraiso-light .CodeMirror-gutters{background:#e7e9db;border-right:0}.cm-s-paraiso-light .CodeMirror-guttermarker{color:#000}.cm-s-paraiso-light .CodeMirror-guttermarker-subtle,.cm-s-paraiso-light .CodeMirror-linenumber{color:#8d8687}.cm-s-paraiso-light .CodeMirror-cursor{border-left:1px solid #776e71}.cm-s-paraiso-light span.cm-comment{color:#e96ba8}.cm-s-paraiso-light span.cm-atom,.cm-s-paraiso-light span.cm-number{color:#815ba4}.cm-s-paraiso-light span.cm-attribute,.cm-s-paraiso-light span.cm-property{color:#48b685}.cm-s-paraiso-light span.cm-keyword{color:#ef6155}.cm-s-paraiso-light span.cm-string{color:#fec418}.cm-s-paraiso-light span.cm-variable{color:#48b685}.cm-s-paraiso-light span.cm-variable-2{color:#06b6ef}.cm-s-paraiso-light span.cm-def{color:#f99b15}.cm-s-paraiso-light span.cm-bracket{color:#41323f}.cm-s-paraiso-light span.cm-tag{color:#ef6155}.cm-s-paraiso-light span.cm-link{color:#815ba4}.cm-s-paraiso-light span.cm-error{background:#ef6155;color:#776e71}.cm-s-paraiso-light .CodeMirror-activeline-background{background:#cfd1c4}.cm-s-paraiso-light .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/pastel-on-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-pastel-on-dark.CodeMirror{background:#2c2827;color:#8f938f;line-height:1.5}.cm-s-pastel-on-dark div.CodeMirror-selected{background:rgba(221,240,255,.2)}.cm-s-pastel-on-dark .CodeMirror-line::selection,.cm-s-pastel-on-dark .CodeMirror-line>span::selection,.cm-s-pastel-on-dark .CodeMirror-line>span>span::selection{background:rgba(221,240,255,.2)}.cm-s-pastel-on-dark .CodeMirror-line::-moz-selection,.cm-s-pastel-on-dark .CodeMirror-line>span::-moz-selection,.cm-s-pastel-on-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(221,240,255,.2)}.cm-s-pastel-on-dark .CodeMirror-gutters{background:#34302f;border-right:0;padding:0 3px}.cm-s-pastel-on-dark .CodeMirror-guttermarker{color:#fff}.cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle,.cm-s-pastel-on-dark .CodeMirror-linenumber{color:#8f938f}.cm-s-pastel-on-dark .CodeMirror-cursor{border-left:1px solid #a7a7a7}.cm-s-pastel-on-dark span.cm-comment{color:#a6c6ff}.cm-s-pastel-on-dark span.cm-atom{color:#de8e30}.cm-s-pastel-on-dark span.cm-number{color:#ccc}.cm-s-pastel-on-dark span.cm-property{color:#8f938f}.cm-s-pastel-on-dark span.cm-attribute{color:#a6e22e}.cm-s-pastel-on-dark span.cm-keyword{color:#aeb2f8}.cm-s-pastel-on-dark span.cm-string{color:#66a968}.cm-s-pastel-on-dark span.cm-variable{color:#aeb2f8}.cm-s-pastel-on-dark span.cm-variable-2{color:#bebf55}.cm-s-pastel-on-dark span.cm-variable-3{color:#de8e30}.cm-s-pastel-on-dark span.cm-def{color:#757ad8}.cm-s-pastel-on-dark span.cm-bracket{color:#f8f8f2}.cm-s-pastel-on-dark span.cm-tag{color:#c1c144}.cm-s-pastel-on-dark span.cm-link{color:#ae81ff}.cm-s-pastel-on-dark span.cm-builtin,.cm-s-pastel-on-dark span.cm-qualifier{color:#c1c144}.cm-s-pastel-on-dark span.cm-error{background:#757ad8;color:#f8f8f0}.cm-s-pastel-on-dark .CodeMirror-activeline-background{background:rgba(255,255,255,.031)}.cm-s-pastel-on-dark .CodeMirror-matchingbracket{border:1px solid rgba(255,255,255,.25);color:#8f938f!important;margin:-1px -1px 0}
trunk/css/min/cmthemes/railscasts.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-railscasts.CodeMirror{background:#2b2b2b;color:#f4f1ed}.cm-s-railscasts div.CodeMirror-selected{background:#272935!important}.cm-s-railscasts .CodeMirror-gutters{background:#2b2b2b;border-right:0}.cm-s-railscasts .CodeMirror-linenumber{color:#5a647e}.cm-s-railscasts .CodeMirror-cursor{border-left:1px solid #d4cfc9!important}.cm-s-railscasts span.cm-comment{color:#bc9458}.cm-s-railscasts span.cm-atom,.cm-s-railscasts span.cm-number{color:#b6b3eb}.cm-s-railscasts span.cm-attribute,.cm-s-railscasts span.cm-property{color:#a5c261}.cm-s-railscasts span.cm-keyword{color:#da4939}.cm-s-railscasts span.cm-string{color:#ffc66d}.cm-s-railscasts span.cm-variable{color:#a5c261}.cm-s-railscasts span.cm-variable-2{color:#6d9cbe}.cm-s-railscasts span.cm-def{color:#cc7833}.cm-s-railscasts span.cm-error{background:#da4939;color:#d4cfc9}.cm-s-railscasts span.cm-bracket{color:#f4f1ed}.cm-s-railscasts span.cm-tag{color:#da4939}.cm-s-railscasts span.cm-link{color:#b6b3eb}.cm-s-railscasts .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-railscasts .CodeMirror-activeline-background{background:#303040}
trunk/css/min/cmthemes/rubyblue.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-rubyblue.CodeMirror{background:#112435;color:#fff}.cm-s-rubyblue div.CodeMirror-selected{background:#38566f}.cm-s-rubyblue .CodeMirror-line::selection,.cm-s-rubyblue .CodeMirror-line>span::selection,.cm-s-rubyblue .CodeMirror-line>span>span::selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-line::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span>span::-moz-selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-gutters{background:#1f4661;border-right:7px solid #3e7087}.cm-s-rubyblue .CodeMirror-guttermarker{color:#fff}.cm-s-rubyblue .CodeMirror-guttermarker-subtle{color:#3e7087}.cm-s-rubyblue .CodeMirror-linenumber{color:#fff}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-rubyblue span.cm-comment{color:#999;font-style:italic;line-height:1em}.cm-s-rubyblue span.cm-atom{color:#f4c20b}.cm-s-rubyblue span.cm-attribute,.cm-s-rubyblue span.cm-number{color:#82c6e0}.cm-s-rubyblue span.cm-keyword{color:#f0f}.cm-s-rubyblue span.cm-string{color:#f08047}.cm-s-rubyblue span.cm-meta{color:#f0f}.cm-s-rubyblue span.cm-tag,.cm-s-rubyblue span.cm-variable-2{color:#7bd827}.cm-s-rubyblue span.cm-def,.cm-s-rubyblue span.cm-variable-3{color:#fff}.cm-s-rubyblue span.cm-bracket{color:#f0f}.cm-s-rubyblue span.cm-link{color:#f4c20b}.cm-s-rubyblue span.CodeMirror-matchingbracket{color:#f0f!important}.cm-s-rubyblue span.cm-builtin,.cm-s-rubyblue span.cm-special{color:#ff9d00}.cm-s-rubyblue span.cm-error{color:#af2018}.cm-s-rubyblue .CodeMirror-activeline-background{background:#173047}
trunk/css/min/cmthemes/seti.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-seti.CodeMirror{background-color:#151718!important;color:#cfd2d1!important;border:none}.cm-s-seti .CodeMirror-gutters{color:#404b53;background-color:#0e1112;border:none}.cm-s-seti .CodeMirror-cursor{border-left:solid thin #f8f8f0}.cm-s-seti .CodeMirror-linenumber{color:#6d8a88}.cm-s-seti.CodeMirror-focused div.CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-seti .CodeMirror-line::selection,.cm-s-seti .CodeMirror-line>span::selection,.cm-s-seti .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-seti .CodeMirror-line::-moz-selection,.cm-s-seti .CodeMirror-line>span::-moz-selection,.cm-s-seti .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-seti span.cm-comment{color:#41535b}.cm-s-seti span.cm-string,.cm-s-seti span.cm-string-2{color:#55b5db}.cm-s-seti span.cm-number{color:#cd3f45}.cm-s-seti span.cm-variable{color:#55b5db}.cm-s-seti span.cm-variable-2{color:#a074c4}.cm-s-seti span.cm-def{color:#55b5db}.cm-s-seti span.cm-operator{color:#9fca56}.cm-s-seti span.cm-keyword{color:#e6cd69}.cm-s-seti span.cm-atom{color:#cd3f45}.cm-s-seti span.cm-meta,.cm-s-seti span.cm-tag{color:#55b5db}.cm-s-seti span.cm-attribute,.cm-s-seti span.cm-qualifier{color:#9fca56}.cm-s-seti span.cm-property{color:#a074c4}.cm-s-seti span.cm-builtin,.cm-s-seti span.cm-variable-3{color:#9fca56}.cm-s-seti .CodeMirror-activeline-background{background:#101213}.cm-s-seti .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/solarized.css ADDED
@@ -0,0 +1 @@
 
1
+ .solarized.base03{color:#002b36}.solarized.base02{color:#073642}.solarized.base01{color:#586e75}.solarized.base00{color:#657b83}.solarized.base0{color:#839496}.solarized.base1{color:#93a1a1}.solarized.base2{color:#eee8d5}.solarized.base3{color:#fdf6e3}.solarized.solar-yellow{color:#b58900}.solarized.solar-orange{color:#cb4b16}.solarized.solar-red{color:#dc322f}.solarized.solar-magenta{color:#d33682}.solarized.solar-violet{color:#6c71c4}.solarized.solar-blue{color:#268bd2}.solarized.solar-cyan{color:#2aa198}.solarized.solar-green{color:#859900}.cm-s-solarized{line-height:1.45em;color-profile:sRGB;rendering-intent:auto}.cm-s-solarized.cm-s-dark{color:#839496;background-color:#002b36;text-shadow:#002b36 0 1px}.cm-s-solarized.cm-s-light{background-color:#fdf6e3;color:#657b83;text-shadow:#eee8d5 0 1px}.cm-s-solarized .CodeMirror-widget{text-shadow:none}.cm-s-solarized .cm-header{color:#586e75}.cm-s-solarized .cm-quote{color:#93a1a1}.cm-s-solarized .cm-keyword{color:#cb4b16}.cm-s-solarized .cm-atom,.cm-s-solarized .cm-number{color:#d33682}.cm-s-solarized .cm-def{color:#2aa198}.cm-s-solarized .cm-variable{color:#839496}.cm-s-solarized .cm-variable-2{color:#b58900}.cm-s-solarized .cm-variable-3{color:#6c71c4}.cm-s-solarized .cm-property{color:#2aa198}.cm-s-solarized .cm-operator{color:#6c71c4}.cm-s-solarized .cm-comment{color:#586e75;font-style:italic}.cm-s-solarized .cm-string{color:#859900}.cm-s-solarized .cm-string-2{color:#b58900}.cm-s-solarized .cm-meta{color:#859900}.cm-s-solarized .cm-qualifier{color:#b58900}.cm-s-solarized .cm-builtin{color:#d33682}.cm-s-solarized .cm-bracket{color:#cb4b16}.cm-s-solarized .CodeMirror-matchingbracket{color:#859900}.cm-s-solarized .CodeMirror-nonmatchingbracket{color:#dc322f}.cm-s-solarized .cm-tag{color:#93a1a1}.cm-s-solarized .cm-attribute{color:#2aa198}.cm-s-solarized .cm-hr{color:transparent;border-top:1px solid #586e75;display:block}.cm-s-solarized .cm-link{color:#93a1a1;cursor:pointer}.cm-s-solarized .cm-special{color:#6c71c4}.cm-s-solarized .cm-em{color:#999;text-decoration:underline;text-decoration-style:dotted}.cm-s-solarized .cm-strong{color:#eee}.cm-s-solarized .cm-error,.cm-s-solarized .cm-invalidchar{color:#586e75;border-bottom:1px dotted #dc322f}.cm-s-solarized.cm-s-dark div.CodeMirror-selected{background:#073642}.cm-s-solarized.cm-s-dark.CodeMirror ::selection{background:rgba(7,54,66,.99)}.cm-s-dark .CodeMirror-line>span::-moz-selection,.cm-s-dark .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection{background:rgba(7,54,66,.99)}.cm-s-solarized.cm-s-light div.CodeMirror-selected{background:#eee8d5}.cm-s-light .CodeMirror-line>span::selection,.cm-s-light .CodeMirror-line>span>span::selection,.cm-s-solarized.cm-s-light .CodeMirror-line::selection{background:#eee8d5}.cm-s-ligh .CodeMirror-line>span::-moz-selection,.cm-s-ligh .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection{background:#eee8d5}.cm-s-solarized.CodeMirror{-moz-box-shadow:inset 7px 0 12px -6px #000;-webkit-box-shadow:inset 7px 0 12px -6px #000;box-shadow:inset 7px 0 12px -6px #000}.cm-s-solarized .CodeMirror-gutters{border-right:0}.cm-s-solarized.cm-s-dark .CodeMirror-gutters{background-color:#073642}.cm-s-solarized.cm-s-dark .CodeMirror-linenumber{color:#586e75;text-shadow:#021014 0 -1px}.cm-s-solarized.cm-s-light .CodeMirror-gutters{background-color:#eee8d5}.cm-s-solarized.cm-s-light .CodeMirror-linenumber{color:#839496}.cm-s-solarized .CodeMirror-linenumber{padding:0 5px}.cm-s-solarized .CodeMirror-guttermarker-subtle{color:#586e75}.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker{color:#ddd}.cm-s-solarized.cm-s-light .CodeMirror-guttermarker{color:#cb4b16}.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text{color:#586e75}.cm-s-solarized .CodeMirror-cursor{border-left:1px solid #819090}.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor{background:#7e7}.cm-s-solarized.cm-s-light .cm-animate-fat-cursor{background-color:#7e7}.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor{background:#586e75}.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor{background-color:#586e75}.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background{background:rgba(255,255,255,.06)}.cm-s-solarized.cm-s-light .CodeMirror-activeline-background{background:rgba(0,0,0,.06)}
trunk/css/min/cmthemes/the-matrix.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-the-matrix.CodeMirror{background:#000;color:#0f0}.cm-s-the-matrix div.CodeMirror-selected{background:#2d2d2d}.cm-s-the-matrix .CodeMirror-line::selection,.cm-s-the-matrix .CodeMirror-line>span::selection,.cm-s-the-matrix .CodeMirror-line>span>span::selection{background:rgba(45,45,45,.99)}.cm-s-the-matrix .CodeMirror-line::-moz-selection,.cm-s-the-matrix .CodeMirror-line>span::-moz-selection,.cm-s-the-matrix .CodeMirror-line>span>span::-moz-selection{background:rgba(45,45,45,.99)}.cm-s-the-matrix .CodeMirror-gutters{background:#060;border-right:2px solid #0f0}.cm-s-the-matrix .CodeMirror-guttermarker{color:#0f0}.cm-s-the-matrix .CodeMirror-guttermarker-subtle,.cm-s-the-matrix .CodeMirror-linenumber{color:#fff}.cm-s-the-matrix .CodeMirror-cursor{border-left:1px solid #0f0}.cm-s-the-matrix span.cm-keyword{color:#008803;font-weight:700}.cm-s-the-matrix span.cm-atom{color:#3ff}.cm-s-the-matrix span.cm-number{color:#ffb94f}.cm-s-the-matrix span.cm-def{color:#99c}.cm-s-the-matrix span.cm-variable{color:#f6c}.cm-s-the-matrix span.cm-variable-2{color:#c6f}.cm-s-the-matrix span.cm-variable-3{color:#96f}.cm-s-the-matrix span.cm-property{color:#62ffa0}.cm-s-the-matrix span.cm-operator{color:#999}.cm-s-the-matrix span.cm-comment{color:#ccc}.cm-s-the-matrix span.cm-string{color:#39c}.cm-s-the-matrix span.cm-meta{color:#c9f}.cm-s-the-matrix span.cm-qualifier{color:#fff700}.cm-s-the-matrix span.cm-builtin{color:#30a}.cm-s-the-matrix span.cm-bracket{color:#cc7}.cm-s-the-matrix span.cm-tag{color:#ffbd40}.cm-s-the-matrix span.cm-attribute{color:#fff700}.cm-s-the-matrix span.cm-error{color:red}.cm-s-the-matrix .CodeMirror-activeline-background{background:#040}
trunk/css/min/cmthemes/tomorrow-night-bright.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-tomorrow-night-bright.CodeMirror{background:#000;color:#eaeaea}.cm-s-tomorrow-night-bright div.CodeMirror-selected{background:#424242}.cm-s-tomorrow-night-bright .CodeMirror-gutters{background:#000;border-right:0}.cm-s-tomorrow-night-bright .CodeMirror-guttermarker{color:#e78c45}.cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle{color:#777}.cm-s-tomorrow-night-bright .CodeMirror-linenumber{color:#424242}.cm-s-tomorrow-night-bright .CodeMirror-cursor{border-left:1px solid #6a6a6a}.cm-s-tomorrow-night-bright span.cm-comment{color:#d27b53}.cm-s-tomorrow-night-bright span.cm-atom,.cm-s-tomorrow-night-bright span.cm-number{color:#a16a94}.cm-s-tomorrow-night-bright span.cm-attribute,.cm-s-tomorrow-night-bright span.cm-property{color:#9c9}.cm-s-tomorrow-night-bright span.cm-keyword{color:#d54e53}.cm-s-tomorrow-night-bright span.cm-string{color:#e7c547}.cm-s-tomorrow-night-bright span.cm-variable{color:#b9ca4a}.cm-s-tomorrow-night-bright span.cm-variable-2{color:#7aa6da}.cm-s-tomorrow-night-bright span.cm-def{color:#e78c45}.cm-s-tomorrow-night-bright span.cm-bracket{color:#eaeaea}.cm-s-tomorrow-night-bright span.cm-tag{color:#d54e53}.cm-s-tomorrow-night-bright span.cm-link{color:#a16a94}.cm-s-tomorrow-night-bright span.cm-error{background:#d54e53;color:#6a6a6a}.cm-s-tomorrow-night-bright .CodeMirror-activeline-background{background:#2a2a2a}.cm-s-tomorrow-night-bright .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/tomorrow-night-eighties.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-tomorrow-night-eighties.CodeMirror{background:#000;color:#ccc}.cm-s-tomorrow-night-eighties div.CodeMirror-selected{background:#2d2d2d}.cm-s-tomorrow-night-eighties .CodeMirror-line::selection,.cm-s-tomorrow-night-eighties .CodeMirror-line>span::selection,.cm-s-tomorrow-night-eighties .CodeMirror-line>span>span::selection{background:rgba(45,45,45,.99)}.cm-s-tomorrow-night-eighties .CodeMirror-line::-moz-selection,.cm-s-tomorrow-night-eighties .CodeMirror-line>span::-moz-selection,.cm-s-tomorrow-night-eighties .CodeMirror-line>span>span::-moz-selection{background:rgba(45,45,45,.99)}.cm-s-tomorrow-night-eighties .CodeMirror-gutters{background:#000;border-right:0}.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker{color:#f2777a}.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle{color:#777}.cm-s-tomorrow-night-eighties .CodeMirror-linenumber{color:#515151}.cm-s-tomorrow-night-eighties .CodeMirror-cursor{border-left:1px solid #6a6a6a}.cm-s-tomorrow-night-eighties span.cm-comment{color:#d27b53}.cm-s-tomorrow-night-eighties span.cm-atom,.cm-s-tomorrow-night-eighties span.cm-number{color:#a16a94}.cm-s-tomorrow-night-eighties span.cm-attribute,.cm-s-tomorrow-night-eighties span.cm-property{color:#9c9}.cm-s-tomorrow-night-eighties span.cm-keyword{color:#f2777a}.cm-s-tomorrow-night-eighties span.cm-string{color:#fc6}.cm-s-tomorrow-night-eighties span.cm-variable{color:#9c9}.cm-s-tomorrow-night-eighties span.cm-variable-2{color:#69c}.cm-s-tomorrow-night-eighties span.cm-def{color:#f99157}.cm-s-tomorrow-night-eighties span.cm-bracket{color:#ccc}.cm-s-tomorrow-night-eighties span.cm-tag{color:#f2777a}.cm-s-tomorrow-night-eighties span.cm-link{color:#a16a94}.cm-s-tomorrow-night-eighties span.cm-error{background:#f2777a;color:#6a6a6a}.cm-s-tomorrow-night-eighties .CodeMirror-activeline-background{background:#343600}.cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
trunk/css/min/cmthemes/ttcn.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-ttcn .cm-quote{color:#090}.cm-strong{font-weight:700}.cm-s-ttcn .cm-header{color:#00f;font-weight:700}.cm-s-ttcn .cm-atom{color:#219}.cm-s-ttcn .cm-attribute{color:#00c}.cm-s-ttcn .cm-bracket{color:#997}.cm-s-ttcn .cm-comment{color:#333}.cm-s-ttcn .cm-def{color:#00f}.cm-s-ttcn .cm-em{font-style:italic}.cm-s-ttcn .cm-error{color:red}.cm-s-ttcn .cm-hr{color:#999}.cm-s-ttcn .cm-keyword{font-weight:700}.cm-s-ttcn .cm-link{color:#00c;text-decoration:underline}.cm-s-ttcn .cm-meta{color:#555}.cm-s-ttcn .cm-negative{color:#d44}.cm-s-ttcn .cm-positive{color:#292}.cm-s-ttcn .cm-qualifier{color:#555}.cm-s-ttcn .cm-strikethrough{text-decoration:line-through}.cm-s-ttcn .cm-string{color:#006400}.cm-s-ttcn .cm-string-2{color:#f50}.cm-s-ttcn .cm-strong{font-weight:700}.cm-s-ttcn .cm-tag{color:#170}.cm-s-ttcn .cm-variable{color:#8b2252}.cm-s-ttcn .cm-variable-2{color:#05a}.cm-s-ttcn .cm-variable-3{color:#085}.cm-s-ttcn .cm-invalidchar{color:red}.cm-s-ttcn .cm-accessTypes,.cm-s-ttcn .cm-compareTypes{color:#27408b}.cm-s-ttcn .cm-cmipVerbs{color:#8b2252}.cm-s-ttcn .cm-modifier{color:#d2691e}.cm-s-ttcn .cm-status{color:#8b4545}.cm-s-ttcn .cm-storage{color:#a020f0}.cm-s-ttcn .cm-tags{color:#006400}.cm-s-ttcn .cm-externalCommands{color:#8b4545;font-weight:700}.cm-s-ttcn .cm-fileNCtrlMaskOptions,.cm-s-ttcn .cm-sectionTitle{color:#2e8b57;font-weight:700}.cm-s-ttcn .cm-booleanConsts,.cm-s-ttcn .cm-otherConsts,.cm-s-ttcn .cm-verdictConsts{color:#006400}.cm-s-ttcn .cm-configOps,.cm-s-ttcn .cm-functionOps,.cm-s-ttcn .cm-portOps,.cm-s-ttcn .cm-sutOps,.cm-s-ttcn .cm-timerOps,.cm-s-ttcn .cm-verdictOps{color:#00f}.cm-s-ttcn .cm-preprocessor,.cm-s-ttcn .cm-templateMatch,.cm-s-ttcn .cm-ttcn3Macros{color:#27408b}.cm-s-ttcn .cm-types{color:brown;font-weight:700}.cm-s-ttcn .cm-visibilityModifiers{font-weight:700}
trunk/css/min/cmthemes/twilight.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-twilight.CodeMirror{background:#141414;color:#f7f7f7}.cm-s-twilight div.CodeMirror-selected{background:#323232}.cm-s-twilight .CodeMirror-line::selection,.cm-s-twilight .CodeMirror-line>span::selection,.cm-s-twilight .CodeMirror-line>span>span::selection{background:rgba(50,50,50,.99)}.cm-s-twilight .CodeMirror-line::-moz-selection,.cm-s-twilight .CodeMirror-line>span::-moz-selection,.cm-s-twilight .CodeMirror-line>span>span::-moz-selection{background:rgba(50,50,50,.99)}.cm-s-twilight .CodeMirror-gutters{background:#222;border-right:1px solid #aaa}.cm-s-twilight .CodeMirror-guttermarker{color:#fff}.cm-s-twilight .CodeMirror-guttermarker-subtle,.cm-s-twilight .CodeMirror-linenumber{color:#aaa}.cm-s-twilight .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-twilight .cm-keyword{color:#f9ee98}.cm-s-twilight .cm-atom{color:#fc0}.cm-s-twilight .cm-number{color:#ca7841}.cm-s-twilight .cm-def{color:#8da6ce}.cm-s-twilight span.cm-def,.cm-s-twilight span.cm-tag,.cm-s-twilight span.cm-variable-2,.cm-s-twilight span.cm-variable-3{color:#607392}.cm-s-twilight .cm-operator{color:#cda869}.cm-s-twilight .cm-comment{color:#777;font-style:italic;font-weight:400}.cm-s-twilight .cm-string{color:#8f9d6a;font-style:italic}.cm-s-twilight .cm-string-2{color:#bd6b18}.cm-s-twilight .cm-meta{background-color:#141414;color:#f7f7f7}.cm-s-twilight .cm-builtin{color:#cda869}.cm-s-twilight .cm-tag{color:#997643}.cm-s-twilight .cm-attribute{color:#d6bb6d}.cm-s-twilight .cm-header{color:#ff6400}.cm-s-twilight .cm-hr{color:#aeaeae}.cm-s-twilight .cm-link{color:#ad9361;font-style:italic;text-decoration:none}.cm-s-twilight .cm-error{border-bottom:1px solid red}.cm-s-twilight .CodeMirror-activeline-background{background:#27282e}.cm-s-twilight .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/vibrant-ink.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-vibrant-ink.CodeMirror{background:#000;color:#fff}.cm-s-vibrant-ink div.CodeMirror-selected{background:#35493c}.cm-s-vibrant-ink .CodeMirror-line::selection,.cm-s-vibrant-ink .CodeMirror-line>span::selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::selection{background:rgba(53,73,60,.99)}.cm-s-vibrant-ink .CodeMirror-line::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::-moz-selection{background:rgba(53,73,60,.99)}.cm-s-vibrant-ink .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-vibrant-ink .CodeMirror-guttermarker{color:#fff}.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle,.cm-s-vibrant-ink .CodeMirror-linenumber{color:#d0d0d0}.cm-s-vibrant-ink .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-vibrant-ink .cm-keyword{color:#cc7832}.cm-s-vibrant-ink .cm-atom{color:#fc0}.cm-s-vibrant-ink .cm-number{color:#ffee98}.cm-s-vibrant-ink .cm-def{color:#8da6ce}.cm-s-vibrant span.cm-def,.cm-s-vibrant span.cm-tag,.cm-s-vibrant-ink span.cm-variable-2,.cm-s-vibrant-ink span.cm-variable-3{color:#ffc66d}.cm-s-vibrant-ink .cm-operator{color:#888}.cm-s-vibrant-ink .cm-comment{color:gray;font-weight:700}.cm-s-vibrant-ink .cm-string{color:#a5c25c}.cm-s-vibrant-ink .cm-string-2{color:red}.cm-s-vibrant-ink .cm-meta{color:#d8fa3c}.cm-s-vibrant-ink .cm-attribute,.cm-s-vibrant-ink .cm-builtin,.cm-s-vibrant-ink .cm-tag{color:#8da6ce}.cm-s-vibrant-ink .cm-header{color:#ff6400}.cm-s-vibrant-ink .cm-hr{color:#aeaeae}.cm-s-vibrant-ink .cm-link{color:#00f}.cm-s-vibrant-ink .cm-error{border-bottom:1px solid red}.cm-s-vibrant-ink .CodeMirror-activeline-background{background:#27282e}.cm-s-vibrant-ink .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/xq-dark.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-xq-dark.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-xq-dark div.CodeMirror-selected{background:#27007a}.cm-s-xq-dark .CodeMirror-line::selection,.cm-s-xq-dark .CodeMirror-line>span::selection,.cm-s-xq-dark .CodeMirror-line>span>span::selection{background:rgba(39,0,122,.99)}.cm-s-xq-dark .CodeMirror-line::-moz-selection,.cm-s-xq-dark .CodeMirror-line>span::-moz-selection,.cm-s-xq-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(39,0,122,.99)}.cm-s-xq-dark .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-xq-dark .CodeMirror-guttermarker,.cm-s-xq-dark span.cm-keyword{color:#ffbd40}.cm-s-xq-dark .CodeMirror-guttermarker-subtle,.cm-s-xq-dark .CodeMirror-linenumber{color:#f8f8f8}.cm-s-xq-dark .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-xq-dark span.cm-atom{color:#6c8cd5}.cm-s-xq-dark span.cm-number{color:#164}.cm-s-xq-dark span.cm-def{color:#fff;text-decoration:underline}.cm-s-xq-dark span.cm-variable{color:#fff}.cm-s-xq-dark span.cm-variable-2{color:#eee}.cm-s-xq-dark span.cm-variable-3{color:#ddd}.cm-s-xq-dark span.cm-comment{color:gray}.cm-s-xq-dark span.cm-string{color:#9fee00}.cm-s-xq-dark span.cm-meta{color:#ff0}.cm-s-xq-dark span.cm-qualifier{color:#fff700}.cm-s-xq-dark span.cm-builtin{color:#30a}.cm-s-xq-dark span.cm-bracket{color:#cc7}.cm-s-xq-dark span.cm-tag{color:#ffbd40}.cm-s-xq-dark span.cm-attribute{color:#fff700}.cm-s-xq-dark span.cm-error{color:red}.cm-s-xq-dark .CodeMirror-activeline-background{background:#27282e}.cm-s-xq-dark .CodeMirror-matchingbracket{outline:1px solid gray;color:#fff!important}
trunk/css/min/cmthemes/xq-light.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:gray}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid gray;color:#000!important;background:#ff0}
trunk/css/min/cmthemes/yeti.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-yeti.CodeMirror{background-color:#eceae8!important;color:#d1c9c0!important;border:none}.cm-s-yeti .CodeMirror-gutters{color:#adaba6;background-color:#e5e1db;border:none}.cm-s-yeti .CodeMirror-cursor{border-left:solid thin #d1c9c0}.cm-s-yeti .CodeMirror-linenumber{color:#adaba6}.cm-s-yeti.CodeMirror-focused div.CodeMirror-selected{background:#dcd8d2}.cm-s-yeti .CodeMirror-line::selection,.cm-s-yeti .CodeMirror-line>span::selection,.cm-s-yeti .CodeMirror-line>span>span::selection{background:#dcd8d2}.cm-s-yeti .CodeMirror-line::-moz-selection,.cm-s-yeti .CodeMirror-line>span::-moz-selection,.cm-s-yeti .CodeMirror-line>span>span::-moz-selection{background:#dcd8d2}.cm-s-yeti span.cm-comment{color:#d4c8be}.cm-s-yeti span.cm-string,.cm-s-yeti span.cm-string-2{color:#96c0d8}.cm-s-yeti span.cm-number{color:#a074c4}.cm-s-yeti span.cm-variable{color:#55b5db}.cm-s-yeti span.cm-variable-2{color:#a074c4}.cm-s-yeti span.cm-def{color:#55b5db}.cm-s-yeti span.cm-keyword,.cm-s-yeti span.cm-operator{color:#9fb96e}.cm-s-yeti span.cm-atom{color:#a074c4}.cm-s-yeti span.cm-meta,.cm-s-yeti span.cm-tag{color:#96c0d8}.cm-s-yeti span.cm-attribute{color:#9fb96e}.cm-s-yeti span.cm-qualifier{color:#96c0d8}.cm-s-yeti span.cm-builtin,.cm-s-yeti span.cm-property{color:#a074c4}.cm-s-yeti span.cm-variable-3{color:#96c0d8}.cm-s-yeti .CodeMirror-activeline-background{background:#e7e4e0}.cm-s-yeti .CodeMirror-matchingbracket{text-decoration:underline}
trunk/css/min/cmthemes/zenburn.css ADDED
@@ -0,0 +1 @@
 
1
+ .cm-s-zenburn .CodeMirror-gutters{background:#3f3f3f!important}.CodeMirror-foldgutter-folded,.cm-s-zenburn .CodeMirror-foldgutter-open{color:#999}.cm-s-zenburn .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn span.cm-comment{color:#7f9f7f}.cm-s-zenburn span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn span.cm-atom{color:#bfebbf}.cm-s-zenburn span.cm-def{color:#dcdccc}.cm-s-zenburn span.cm-variable{color:#dfaf8f}.cm-s-zenburn span.cm-variable-2{color:#dcdccc}.cm-s-zenburn span.cm-string,.cm-s-zenburn span.cm-string-2{color:#cc9393}.cm-s-zenburn span.cm-number{color:#dcdccc}.cm-s-zenburn span.cm-tag{color:#93e0e3}.cm-s-zenburn span.cm-attribute,.cm-s-zenburn span.cm-property{color:#dfaf8f}.cm-s-zenburn span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn span.cm-meta{color:#f0dfaf}.cm-s-zenburn span.cm-header,.cm-s-zenburn span.cm-operator{color:#f0efd0}.cm-s-zenburn span.CodeMirror-matchingbracket{box-sizing:border-box;background:0 0;border-bottom:1px solid}.cm-s-zenburn span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:0 0}.cm-s-zenburn .CodeMirror-activeline,.cm-s-zenburn .CodeMirror-activeline-background{background:#000}.cm-s-zenburn div.CodeMirror-selected{background:#545454}.cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}
trunk/css/min/codemirror.css ADDED
@@ -0,0 +1 @@
 
1
+ .CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:none;font-variant-ligatures:none}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0}
trunk/css/min/edit.css ADDED
@@ -0,0 +1 @@
 
1
+ .form-table th{width:auto}h3{margin:1em 0}label{cursor:auto}label[for=snippet_description] h3 div{position:absolute}ul.tagit{background-color:#fff!important}.submit .button{margin-right:.5em}.snippet-scope div{margin-right:30px;display:inline-block}.CodeMirror{width:100%;height:auto!important;border:1px solid #dfdfdf;border-radius:3px;background-color:#fff}.CodeMirror-code{outline:none;direction:ltr;text-align:left}.CodeMirror-sizer{min-height:300px!important}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}
trunk/css/min/manage.css ADDED
@@ -0,0 +1 @@
 
1
+ .admin-scope .column-name>a:after,.frontend-scope .column-name>a:after{padding-left:5px;font-family:"dashicons";vertical-align:top}.admin-scope .column-name>a:after{font-size:14px;content:"\f111"}.frontend-scope .column-name>a:after{font-size:16px;content:"\f177"}.snippets .badge{margin-left:4px;padding:3px 6px;text-decoration:none;border:medium none;border-radius:2px;background:#e0e0e0;font-size:smaller}.clear-filters{vertical-align:bottom}.snippets td,.snippets th{color:#000}.snippets tr{background:#fff}.snippets .row-actions{color:#ddd}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th{border-top:none!important}.snippets tfoot th.check-column{padding:13px 0 0 3px}.snippets .inactive th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-left:5px}.snippets .column-description p{color:#333}.snippets .inactive a{color:#579}.snippets .active td,.snippets .active th,.snippets .inactive td,.snippets .inactive th{padding:10px 9px;border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.snippets .active td,.snippets .active th{background-color:rgba(120,200,230,.06)}.snippets .active th.check-column{border-left:2px solid #2ea2cc}.snippets tr.active+tr.inactive td,.snippets tr.active+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-bottom:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}
trunk/css/min/menu-icon.css ADDED
@@ -0,0 +1 @@
 
1
+ @font-face{font-family:'code-snippets';src:url(../font/code-snippets.eot);src:url(../font/code-snippets.eot?#iefix) format('embedded-opentype'),url(../font/code-snippets.ttf) format('truetype'),url(../font/code-snippets.woff) format('woff'),url(../font/code-snippets.svg#code-snippets) format('svg');font-weight:400;font-style:normal}#toplevel_page_snippets div.wp-menu-image:before{font-family:'code-snippets'!important;content:'\e600'}
trunk/css/min/settings.css ADDED
@@ -0,0 +1 @@
 
1
+ .form-table th{font-weight:400}#code_snippets_editor_preview .CodeMirror{height:auto}
trunk/css/min/tagit.css ADDED
@@ -0,0 +1 @@
 
1
+ ul.tagit{padding:1px 5px;overflow:auto;margin-left:inherit;margin-right:inherit;border-style:solid;border-width:1px;border-color:#c6c6c6;background:inherit}ul.tagit li,ul.tagit li.tagit-choice input{display:block;float:left;margin:2px 5px 2px 0}ul.tagit li.tagit-choice{position:relative;line-height:inherit}input.tagit-hidden-field{display:none}ul.tagit li.tagit-choice-read-only{padding:.2em .5em}ul.tagit li.tagit-choice-editable{padding:.2em 18px .2em .5em}ul.tagit li.tagit-new{padding:.25em 4px .25em 0}ul.tagit li.tagit-choice a.tagit-label{cursor:pointer;text-decoration:none}ul.tagit li.tagit-choice .tagit-close{cursor:pointer;position:absolute;top:50%;margin-top:-8px;line-height:17px;right:.4em}ul.tagit input[type=text]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;border:none;margin:0;padding:0;width:inherit;background-color:inherit;outline:none;color:#333;background:0 0}ul.tagit li.tagit-choice{-moz-border-radius:6px;border-radius:6px;-webkit-border-radius:6px;border:1px solid #cad8f3;background:0 0;background-color:#dee7f8;font-weight:400}ul.tagit li.tagit-choice .tagit-label:not(a){color:#555}ul.tagit li.tagit-choice a.tagit-close{text-decoration:none}ul.tagit li.tagit-choice .ui-icon{display:none}ul.tagit li.tagit-choice .tagit-close .text-icon{display:inline;font-family:arial,sans-serif;font-size:16px;line-height:16px;color:#777}ul.tagit li.tagit-choice.remove,ul.tagit li.tagit-choice:hover{background-color:#bbcef1;border-color:#6d95e0}ul.tagit li.tagit-choice a.tagLabel:hover,ul.tagit li.tagit-choice a.tagit-close .text-icon:hover{color:#222}.ui-widget{font-size:1.1em}.tagit-autocomplete.ui-autocomplete{position:absolute;cursor:default}* html .tagit-autocomplete.ui-autocomplete{width:1px}.tagit-autocomplete.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left}.tagit-autocomplete.ui-menu .ui-menu{margin-top:-3px}.tagit-autocomplete.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%}.tagit-autocomplete.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-active,.tagit-autocomplete .ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.tagit-autocomplete.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}.tagit-autocomplete .ui-corner-all,.tagit-autocomplete.ui-corner-all{-moz-border-radius:4px;-webkit-border-radius:4px;-khtml-border-radius:4px;border-radius:4px}.tagit-autocomplete .ui-state-focus,.tagit-autocomplete .ui-state-hover{border:1px solid #999;background:#dadada;font-weight:400;color:#212121}.tagit-autocomplete .ui-state-active,.tagit-autocomplete .ui-widget-content{border:1px solid #aaa}.tagit .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px,1px,1px,1px)}
trunk/js/min/codemirror.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.CodeMirror=b()}(this,function(){"use strict";function a(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}function b(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function c(a,c){return b(a).appendChild(c)}function d(a,b,c,d){var e=document.createElement(a);if(c&&(e.className=c),d&&(e.style.cssText=d),"string"==typeof b)e.appendChild(document.createTextNode(b));else if(b)for(var f=0;f<b.length;++f)e.appendChild(b[f]);return e}function e(a,b){if(3==b.nodeType&&(b=b.parentNode),a.contains)return a.contains(b);do if(11==b.nodeType&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function f(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.root&&a.root.activeElement;)a=a.root.activeElement;return a}function g(b,c){var d=b.className;a(c).test(d)||(b.className+=(d?" ":"")+c)}function h(b,c){for(var d=b.split(" "),e=0;e<d.length;e++)d[e]&&!a(d[e]).test(c)&&(c+=" "+d[e]);return c}function i(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function j(a,b,c){b||(b={});for(var d in a)!a.hasOwnProperty(d)||c===!1&&b.hasOwnProperty(d)||(b[d]=a[d]);return b}function k(a,b,c,d,e){null==b&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var f=d||0,g=e||0;;){var h=a.indexOf("\t",f);if(h<0||h>=b)return g+(b-f);g+=h-f,g+=c-g%c,f=h+1}}function l(){this.id=null}function m(a,b){for(var c=0;c<a.length;++c)if(a[c]==b)return c;return-1}function n(a,b,c){for(var d=0,e=0;;){var f=a.indexOf("\t",d);f==-1&&(f=a.length);var g=f-d;if(f==a.length||e+g>=b)return d+Math.min(g,b-e);if(e+=f-d,e+=c-e%c,d=f+1,e>=b)return d}}function o(a){for(;Hg.length<=a;)Hg.push(p(Hg)+" ");return Hg[a]}function p(a){return a[a.length-1]}function q(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d);return c}function r(a,b,c){for(var d=0,e=c(b);d<a.length&&c(a[d])<=e;)d++;a.splice(d,0,b)}function s(){}function t(a,b){var c;return Object.create?c=Object.create(a):(s.prototype=a,c=new s),b&&j(b,c),c}function u(a){return/\w/.test(a)||a>"€"&&(a.toUpperCase()!=a.toLowerCase()||Ig.test(a))}function v(a,b){return b?!!(b.source.indexOf("\\w")>-1&&u(a))||b.test(a):u(a)}function w(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}function x(a){return a.charCodeAt(0)>=768&&Jg.test(a)}function y(a,b,c){var e=this;this.input=c,e.scrollbarFiller=d("div",null,"CodeMirror-scrollbar-filler"),e.scrollbarFiller.setAttribute("cm-not-content","true"),e.gutterFiller=d("div",null,"CodeMirror-gutter-filler"),e.gutterFiller.setAttribute("cm-not-content","true"),e.lineDiv=d("div",null,"CodeMirror-code"),e.selectionDiv=d("div",null,null,"position: relative; z-index: 1"),e.cursorDiv=d("div",null,"CodeMirror-cursors"),e.measure=d("div",null,"CodeMirror-measure"),e.lineMeasure=d("div",null,"CodeMirror-measure"),e.lineSpace=d("div",[e.measure,e.lineMeasure,e.selectionDiv,e.cursorDiv,e.lineDiv],null,"position: relative; outline: none"),e.mover=d("div",[d("div",[e.lineSpace],"CodeMirror-lines")],null,"position: relative"),e.sizer=d("div",[e.mover],"CodeMirror-sizer"),e.sizerWidth=null,e.heightForcer=d("div",null,null,"position: absolute; height: "+Cg+"px; width: 1px;"),e.gutters=d("div",null,"CodeMirror-gutters"),e.lineGutter=null,e.scroller=d("div",[e.sizer,e.heightForcer,e.gutters],"CodeMirror-scroll"),e.scroller.setAttribute("tabIndex","-1"),e.wrapper=d("div",[e.scrollbarFiller,e.gutterFiller,e.scroller],"CodeMirror"),gg&&hg<8&&(e.gutters.style.zIndex=-1,e.scroller.style.paddingRight=0),ig||dg&&qg||(e.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(e.wrapper):a(e.wrapper)),e.viewFrom=e.viewTo=b.first,e.reportedViewFrom=e.reportedViewTo=b.first,e.view=[],e.renderedView=null,e.externalMeasured=null,e.viewOffset=0,e.lastWrapHeight=e.lastWrapWidth=0,e.updateLineNumbers=null,e.nativeBarWidth=e.barHeight=e.barWidth=0,e.scrollbarsClipped=!1,e.lineNumWidth=e.lineNumInnerWidth=e.lineNumChars=null,e.alignWidgets=!1,e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.maxLine=null,e.maxLineLength=0,e.maxLineChanged=!1,e.wheelDX=e.wheelDY=e.wheelStartX=e.wheelStartY=null,e.shift=!1,e.selForContextMenu=null,e.activeTouch=null,c.init(e)}function z(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var c=a;!c.lines;)for(var d=0;;++d){var e=c.children[d],f=e.chunkSize();if(b<f){c=e;break}b-=f}return c.lines[b]}function A(a,b,c){var d=[],e=b.line;return a.iter(b.line,c.line+1,function(a){var f=a.text;e==c.line&&(f=f.slice(0,c.ch)),e==b.line&&(f=f.slice(b.ch)),d.push(f),++e}),d}function B(a,b,c){var d=[];return a.iter(b,c,function(a){d.push(a.text)}),d}function C(a,b){var c=b-a.height;if(c)for(var d=a;d;d=d.parent)d.height+=c}function D(a){if(null==a.parent)return null;for(var b=a.parent,c=m(b.lines,a),d=b.parent;d;b=d,d=d.parent)for(var e=0;d.children[e]!=b;++e)c+=d.children[e].chunkSize();return c+b.first}function E(a,b){var c=a.first;a:do{for(var d=0;d<a.children.length;++d){var e=a.children[d],f=e.height;if(b<f){a=e;continue a}b-=f,c+=e.chunkSize()}return c}while(!a.lines);for(var g=0;g<a.lines.length;++g){var h=a.lines[g],i=h.height;if(b<i)break;b-=i}return c+g}function F(a,b){return b>=a.first&&b<a.first+a.size}function G(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function H(a,b){return this instanceof H?(this.line=a,void(this.ch=b)):new H(a,b)}function I(a,b){return a.line-b.line||a.ch-b.ch}function J(a){return H(a.line,a.ch)}function K(a,b){return I(a,b)<0?b:a}function L(a,b){return I(a,b)<0?a:b}function M(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function N(a,b){if(b.line<a.first)return H(a.first,0);var c=a.first+a.size-1;return b.line>c?H(c,z(a,c).text.length):O(b,z(a,b.line).text.length)}function O(a,b){var c=a.ch;return null==c||c>b?H(a.line,b):c<0?H(a.line,0):a}function P(a,b){for(var c=[],d=0;d<b.length;d++)c[d]=N(a,b[d]);return c}function Q(){Kg=!0}function R(){Lg=!0}function S(a,b,c){this.marker=a,this.from=b,this.to=c}function T(a,b){if(a)for(var c=0;c<a.length;++c){var d=a[c];if(d.marker==b)return d}}function U(a,b){for(var c,d=0;d<a.length;++d)a[d]!=b&&(c||(c=[])).push(a[d]);return c}function V(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function W(a,b,c){var d;if(a)for(var e=0;e<a.length;++e){var f=a[e],g=f.marker,h=null==f.from||(g.inclusiveLeft?f.from<=b:f.from<b);if(h||f.from==b&&"bookmark"==g.type&&(!c||!f.marker.insertLeft)){var i=null==f.to||(g.inclusiveRight?f.to>=b:f.to>b);(d||(d=[])).push(new S(g,f.from,i?null:f.to))}}return d}function X(a,b,c){var d;if(a)for(var e=0;e<a.length;++e){var f=a[e],g=f.marker,h=null==f.to||(g.inclusiveRight?f.to>=b:f.to>b);if(h||f.from==b&&"bookmark"==g.type&&(!c||f.marker.insertLeft)){var i=null==f.from||(g.inclusiveLeft?f.from<=b:f.from<b);(d||(d=[])).push(new S(g,i?null:f.from-b,null==f.to?null:f.to-b))}}return d}function Y(a,b){if(b.full)return null;var c=F(a,b.from.line)&&z(a,b.from.line).markedSpans,d=F(a,b.to.line)&&z(a,b.to.line).markedSpans;if(!c&&!d)return null;var e=b.from.ch,f=b.to.ch,g=0==I(b.from,b.to),h=W(c,e,g),i=X(d,f,g),j=1==b.text.length,k=p(b.text).length+(j?e:0);if(h)for(var l=0;l<h.length;++l){var m=h[l];if(null==m.to){var n=T(i,m.marker);n?j&&(m.to=null==n.to?null:n.to+k):m.to=e}}if(i)for(var o=0;o<i.length;++o){var q=i[o];if(null!=q.to&&(q.to+=k),null==q.from){var r=T(h,q.marker);r||(q.from=k,j&&(h||(h=[])).push(q))}else q.from+=k,j&&(h||(h=[])).push(q)}h&&(h=Z(h)),i&&i!=h&&(i=Z(i));var s=[h];if(!j){var t,u=b.text.length-2;if(u>0&&h)for(var v=0;v<h.length;++v)null==h[v].to&&(t||(t=[])).push(new S(h[v].marker,null,null));for(var w=0;w<u;++w)s.push(t);s.push(i)}return s}function Z(a){for(var b=0;b<a.length;++b){var c=a[b];null!=c.from&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function $(a,b,c){var d=null;if(a.iter(b.line,c.line+1,function(a){if(a.markedSpans)for(var b=0;b<a.markedSpans.length;++b){var c=a.markedSpans[b].marker;!c.readOnly||d&&m(d,c)!=-1||(d||(d=[])).push(c)}}),!d)return null;for(var e=[{from:b,to:c}],f=0;f<d.length;++f)for(var g=d[f],h=g.find(0),i=0;i<e.length;++i){var j=e[i];if(!(I(j.to,h.from)<0||I(j.from,h.to)>0)){var k=[i,1],l=I(j.from,h.from),n=I(j.to,h.to);(l<0||!g.inclusiveLeft&&!l)&&k.push({from:j.from,to:h.from}),(n>0||!g.inclusiveRight&&!n)&&k.push({from:h.to,to:j.to}),e.splice.apply(e,k),i+=k.length-1}}return e}function _(a){var b=a.markedSpans;if(b){for(var c=0;c<b.length;++c)b[c].marker.detachLine(a);a.markedSpans=null}}function aa(a,b){if(b){for(var c=0;c<b.length;++c)b[c].marker.attachLine(a);a.markedSpans=b}}function ba(a){return a.inclusiveLeft?-1:0}function ca(a){return a.inclusiveRight?1:0}function da(a,b){var c=a.lines.length-b.lines.length;if(0!=c)return c;var d=a.find(),e=b.find(),f=I(d.from,e.from)||ba(a)-ba(b);if(f)return-f;var g=I(d.to,e.to)||ca(a)-ca(b);return g?g:b.id-a.id}function ea(a,b){var c,d=Lg&&a.markedSpans;if(d)for(var e=void 0,f=0;f<d.length;++f)e=d[f],e.marker.collapsed&&null==(b?e.from:e.to)&&(!c||da(c,e.marker)<0)&&(c=e.marker);return c}function fa(a){return ea(a,!0)}function ga(a){return ea(a,!1)}function ha(a,b,c,d,e){var f=z(a,b),g=Lg&&f.markedSpans;if(g)for(var h=0;h<g.length;++h){var i=g[h];if(i.marker.collapsed){var j=i.marker.find(0),k=I(j.from,c)||ba(i.marker)-ba(e),l=I(j.to,d)||ca(i.marker)-ca(e);if(!(k>=0&&l<=0||k<=0&&l>=0)&&(k<=0&&(i.marker.inclusiveRight&&e.inclusiveLeft?I(j.to,c)>=0:I(j.to,c)>0)||k>=0&&(i.marker.inclusiveRight&&e.inclusiveLeft?I(j.from,d)<=0:I(j.from,d)<0)))return!0}}}function ia(a){for(var b;b=fa(a);)a=b.find(-1,!0).line;return a}function ja(a){for(var b,c;b=ga(a);)a=b.find(1,!0).line,(c||(c=[])).push(a);return c}function ka(a,b){var c=z(a,b),d=ia(c);return c==d?b:D(d)}function la(a,b){if(b>a.lastLine())return b;var c,d=z(a,b);if(!ma(a,d))return b;for(;c=ga(d);)d=c.find(1,!0).line;return D(d)+1}function ma(a,b){var c=Lg&&b.markedSpans;if(c)for(var d=void 0,e=0;e<c.length;++e)if(d=c[e],d.marker.collapsed){if(null==d.from)return!0;if(!d.marker.widgetNode&&0==d.from&&d.marker.inclusiveLeft&&na(a,b,d))return!0}}function na(a,b,c){if(null==c.to){var d=c.marker.find(1,!0);return na(a,d.line,T(d.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==b.text.length)return!0;for(var e=void 0,f=0;f<b.markedSpans.length;++f)if(e=b.markedSpans[f],e.marker.collapsed&&!e.marker.widgetNode&&e.from==c.to&&(null==e.to||e.to!=c.from)&&(e.marker.inclusiveLeft||c.marker.inclusiveRight)&&na(a,b,e))return!0}function oa(a){a=ia(a);for(var b=0,c=a.parent,d=0;d<c.lines.length;++d){var e=c.lines[d];if(e==a)break;b+=e.height}for(var f=c.parent;f;c=f,f=c.parent)for(var g=0;g<f.children.length;++g){var h=f.children[g];if(h==c)break;b+=h.height}return b}function pa(a){if(0==a.height)return 0;for(var b,c=a.text.length,d=a;b=fa(d);){var e=b.find(0,!0);d=e.from.line,c+=e.from.ch-e.to.ch}for(d=a;b=ga(d);){var f=b.find(0,!0);c-=d.text.length-f.from.ch,d=f.to.line,c+=d.text.length-f.to.ch}return c}function qa(a){var b=a.display,c=a.doc;b.maxLine=z(c,c.first),b.maxLineLength=pa(b.maxLine),b.maxLineChanged=!0,c.iter(function(a){var c=pa(a);c>b.maxLineLength&&(b.maxLineLength=c,b.maxLine=a)})}function ra(a,b,c,d){if(!a)return d(b,c,"ltr");for(var e=!1,f=0;f<a.length;++f){var g=a[f];(g.from<c&&g.to>b||b==c&&g.to==b)&&(d(Math.max(g.from,b),Math.min(g.to,c),1==g.level?"rtl":"ltr"),e=!0)}e||d(b,c,"ltr")}function sa(a){return a.level%2?a.to:a.from}function ta(a){return a.level%2?a.from:a.to}function ua(a){var b=Ba(a);return b?sa(b[0]):0}function va(a){var b=Ba(a);return b?ta(p(b)):a.text.length}function wa(a,b,c){var d=a[0].level;return b==d||c!=d&&b<c}function xa(a,b){var c;Mg=null;for(var d=0;d<a.length;++d){var e=a[d];if(e.from<b&&e.to>b)return d;if(e.from==b||e.to==b){if(null!=c)return wa(a,e.level,a[c].level)?(e.from!=e.to&&(Mg=c),d):(e.from!=e.to&&(Mg=d),c);c=d}}return c}function ya(a,b,c,d){if(!d)return b+c;do b+=c;while(b>0&&x(a.text.charAt(b)));return b}function za(a,b,c,d){var e=Ba(a);if(!e)return Aa(a,b,c,d);for(var f=xa(e,b),g=e[f],h=ya(a,b,g.level%2?-c:c,d);;){if(h>g.from&&h<g.to)return h;if(h==g.from||h==g.to)return xa(e,h)==f?h:(g=e[f+=c],c>0==g.level%2?g.to:g.from);if(g=e[f+=c],!g)return null;h=c>0==g.level%2?ya(a,g.to,-1,d):ya(a,g.from,1,d)}}function Aa(a,b,c,d){var e=b+c;if(d)for(;e>0&&x(a.text.charAt(e));)e+=c;return e<0||e>a.text.length?null:e}function Ba(a){var b=a.order;return null==b&&(b=a.order=Ng(a.text)),b}function Ca(a,b){return a._handlers&&a._handlers[b]||Og}function Da(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,!1);else if(a.detachEvent)a.detachEvent("on"+b,c);else{var d=a._handlers,e=d&&d[b];if(e){var f=m(e,c);f>-1&&(d[b]=e.slice(0,f).concat(e.slice(f+1)))}}}function Ea(a,b){var c=Ca(a,b);if(c.length)for(var d=Array.prototype.slice.call(arguments,2),e=0;e<c.length;++e)c[e].apply(null,d)}function Fa(a,b,c){return"string"==typeof b&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),Ea(a,c||b.type,a,b),La(b)||b.codemirrorIgnore}function Ga(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var c=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),d=0;d<b.length;++d)m(c,b[d])==-1&&c.push(b[d])}function Ha(a,b){return Ca(a,b).length>0}function Ia(a){a.prototype.on=function(a,b){Pg(this,a,b)},a.prototype.off=function(a,b){Da(this,a,b)}}function Ja(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ka(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function La(a){return null!=a.defaultPrevented?a.defaultPrevented:0==a.returnValue}function Ma(a){Ja(a),Ka(a)}function Na(a){return a.target||a.srcElement}function Oa(a){var b=a.which;return null==b&&(1&a.button?b=1:2&a.button?b=3:4&a.button&&(b=2)),rg&&a.ctrlKey&&1==b&&(b=3),b}function Pa(a){if(null==Ag){var b=d("span","​");c(a,d("span",[b,document.createTextNode("x")])),0!=a.firstChild.offsetHeight&&(Ag=b.offsetWidth<=1&&b.offsetHeight>2&&!(gg&&hg<8))}var e=Ag?d("span","​"):d("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return e.setAttribute("cm-text",""),e}function Qa(a){if(null!=Bg)return Bg;var d=c(a,document.createTextNode("AخA")),e=vg(d,0,1).getBoundingClientRect(),f=vg(d,1,2).getBoundingClientRect();return b(a),!(!e||e.left==e.right)&&(Bg=f.right-e.right<3)}function Ra(a){if(null!=Ug)return Ug;var b=c(a,d("span","x")),e=b.getBoundingClientRect(),f=vg(b,0,1).getBoundingClientRect();return Ug=Math.abs(e.left-f.left)>1}function Sa(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Vg[a]=b}function Ta(a,b){Wg[a]=b}function Ua(a){if("string"==typeof a&&Wg.hasOwnProperty(a))a=Wg[a];else if(a&&"string"==typeof a.name&&Wg.hasOwnProperty(a.name)){var b=Wg[a.name];"string"==typeof b&&(b={name:b}),a=t(b,a),a.name=b.name}else{if("string"==typeof a&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Ua("application/xml");if("string"==typeof a&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Ua("application/json")}return"string"==typeof a?{name:a}:a||{name:"null"}}function Va(a,b){b=Ua(b);var c=Vg[b.name];if(!c)return Va(a,"text/plain");var d=c(a,b);if(Xg.hasOwnProperty(b.name)){var e=Xg[b.name];for(var f in e)e.hasOwnProperty(f)&&(d.hasOwnProperty(f)&&(d["_"+f]=d[f]),d[f]=e[f])}if(d.name=b.name,b.helperType&&(d.helperType=b.helperType),b.modeProps)for(var g in b.modeProps)d[g]=b.modeProps[g];return d}function Wa(a,b){var c=Xg.hasOwnProperty(a)?Xg[a]:Xg[a]={};j(b,c)}function Xa(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var c={};for(var d in b){var e=b[d];e instanceof Array&&(e=e.concat([])),c[d]=e}return c}function Ya(a,b){for(var c;a.innerMode&&(c=a.innerMode(b),c&&c.mode!=a);)b=c.state,a=c.mode;return c||{mode:a,state:b}}function Za(a,b,c){return!a.startState||a.startState(b,c)}function $a(a,b,c,d){var e=[a.state.modeGen],f={};gb(a,b.text,a.doc.mode,c,function(a,b){return e.push(a,b)},f,d);for(var g=function(c){var d=a.state.overlays[c],g=1,h=0;gb(a,b.text,d.mode,!0,function(a,b){for(var c=g;h<a;){var f=e[g];f>a&&e.splice(g,1,a,e[g+1],f),g+=2,h=Math.min(a,f)}if(b)if(d.opaque)e.splice(c,g-c,a,"overlay "+b),g=c+2;else for(;c<g;c+=2){var i=e[c+1];e[c+1]=(i?i+" ":"")+"overlay "+b}},f)},h=0;h<a.state.overlays.length;++h)g(h);return{styles:e,classes:f.bgClass||f.textClass?f:null}}function _a(a,b,c){if(!b.styles||b.styles[0]!=a.state.modeGen){var d=ab(a,D(b)),e=$a(a,b,b.text.length>a.options.maxHighlightLength?Xa(a.doc.mode,d):d);b.stateAfter=d,b.styles=e.styles,e.classes?b.styleClasses=e.classes:b.styleClasses&&(b.styleClasses=null),c===a.doc.frontier&&a.doc.frontier++}return b.styles}function ab(a,b,c){var d=a.doc,e=a.display;if(!d.mode.startState)return!0;var f=hb(a,b,c),g=f>d.first&&z(d,f-1).stateAfter;return g=g?Xa(d.mode,g):Za(d.mode),d.iter(f,b,function(c){bb(a,c.text,g);var h=f==b-1||f%5==0||f>=e.viewFrom&&f<e.viewTo;c.stateAfter=h?Xa(d.mode,g):null,++f}),c&&(d.frontier=f),g}function bb(a,b,c,d){var e=a.doc.mode,f=new Yg(b,a.options.tabSize);for(f.start=f.pos=d||0,""==b&&cb(e,c);!f.eol();)db(e,f,c),f.start=f.pos}function cb(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var c=Ya(a,b);return c.mode.blankLine?c.mode.blankLine(c.state):void 0}}function db(a,b,c,d){for(var e=0;e<10;e++){d&&(d[0]=Ya(a,c).mode);var f=a.token(b,c);if(b.pos>b.start)return f}throw new Error("Mode "+a.name+" failed to advance stream.")}function eb(a,b,c,d){var e,f=function(a){return{start:l.start,end:l.pos,string:l.current(),type:e||null,state:a?Xa(g.mode,k):k}},g=a.doc,h=g.mode;b=N(g,b);var i,j=z(g,b.line),k=ab(a,b.line,c),l=new Yg(j.text,a.options.tabSize);for(d&&(i=[]);(d||l.pos<b.ch)&&!l.eol();)l.start=l.pos,e=db(h,l,k),d&&i.push(f(!0));return d?i:f()}function fb(a,b){if(a)for(;;){var c=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;a=a.slice(0,c.index)+a.slice(c.index+c[0].length);var d=c[1]?"bgClass":"textClass";null==b[d]?b[d]=c[2]:new RegExp("(?:^|s)"+c[2]+"(?:$|s)").test(b[d])||(b[d]+=" "+c[2])}return a}function gb(a,b,c,d,e,f,g){var h=c.flattenSpans;null==h&&(h=a.options.flattenSpans);var i,j=0,k=null,l=new Yg(b,a.options.tabSize),m=a.options.addModeClass&&[null];for(""==b&&fb(cb(c,d),f);!l.eol();){if(l.pos>a.options.maxHighlightLength?(h=!1,g&&bb(a,b,d,l.pos),l.pos=b.length,i=null):i=fb(db(c,l,d,m),f),m){var n=m[0].name;n&&(i="m-"+(i?n+" "+i:n))}if(!h||k!=i){for(;j<l.start;)j=Math.min(l.start,j+5e3),e(j,k);k=i}l.start=l.pos}for(;j<l.pos;){var o=Math.min(l.pos,j+5e3);e(o,k),j=o}}function hb(a,b,c){for(var d,e,f=a.doc,g=c?-1:b-(a.doc.mode.innerMode?1e3:100),h=b;h>g;--h){if(h<=f.first)return f.first;var i=z(f,h-1);if(i.stateAfter&&(!c||h<=f.frontier))return h;var j=k(i.text,null,a.options.tabSize);(null==e||d>j)&&(e=h-1,d=j)}return e}function ib(a,b,c){this.text=a,aa(this,b),this.height=c?c(this):1}function jb(a,b,c,d){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),null!=a.order&&(a.order=null),_(a),aa(a,c);var e=d?d(a):1;e!=a.height&&C(a,e)}function kb(a){a.parent=null,_(a)}function lb(a,b){if(!a||/^\s*$/.test(a))return null;var c=b.addModeClass?_g:$g;return c[a]||(c[a]=a.replace(/\S+/g,"cm-$&"))}function mb(a,b){var c=d("span",null,null,ig?"padding-right: .1px":null),e={pre:d("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:(gg||ig)&&a.getOption("lineWrapping")};b.measure={};for(var f=0;f<=(b.rest?b.rest.length:0);f++){var g=f?b.rest[f-1]:b.line,i=void 0;e.pos=0,e.addToken=ob,Qa(a.display.measure)&&(i=Ba(g))&&(e.addToken=qb(e.addToken,i)),e.map=[];var j=b!=a.display.externalMeasured&&D(g);sb(g,e,_a(a,g,j)),g.styleClasses&&(g.styleClasses.bgClass&&(e.bgClass=h(g.styleClasses.bgClass,e.bgClass||"")),g.styleClasses.textClass&&(e.textClass=h(g.styleClasses.textClass,e.textClass||""))),0==e.map.length&&e.map.push(0,0,e.content.appendChild(Pa(a.display.measure))),0==f?(b.measure.map=e.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(e.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(ig){var k=e.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(e.content.className="cm-tab-wrap-hack")}return Ea(a,"renderLine",a,b.line,e.pre),e.pre.className&&(e.textClass=h(e.pre.className,e.textClass||"")),e}function nb(a){var b=d("span","•","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function ob(a,b,c,e,f,g,h){if(b){var i,j=a.splitSpaces?pb(b,a.trailingSpace):b,k=a.cm.state.specialChars,l=!1;if(k.test(b)){i=document.createDocumentFragment();for(var m=0;;){k.lastIndex=m;var n=k.exec(b),p=n?n.index-m:b.length-m;if(p){var q=document.createTextNode(j.slice(m,m+p));gg&&hg<9?i.appendChild(d("span",[q])):i.appendChild(q),a.map.push(a.pos,a.pos+p,q),a.col+=p,a.pos+=p}if(!n)break;m+=p+1;var r=void 0;if("\t"==n[0]){var s=a.cm.options.tabSize,t=s-a.col%s;r=i.appendChild(d("span",o(t),"cm-tab")),r.setAttribute("role","presentation"),r.setAttribute("cm-text","\t"),a.col+=t}else"\r"==n[0]||"\n"==n[0]?(r=i.appendChild(d("span","\r"==n[0]?"␍":"␤","cm-invalidchar")),r.setAttribute("cm-text",n[0]),a.col+=1):(r=a.cm.options.specialCharPlaceholder(n[0]),r.setAttribute("cm-text",n[0]),gg&&hg<9?i.appendChild(d("span",[r])):i.appendChild(r),a.col+=1);a.map.push(a.pos,a.pos+1,r),a.pos++}}else a.col+=b.length,i=document.createTextNode(j),a.map.push(a.pos,a.pos+b.length,i),gg&&hg<9&&(l=!0),a.pos+=b.length;if(a.trailingSpace=32==j.charCodeAt(b.length-1),c||e||f||l||h){var u=c||"";e&&(u+=e),f&&(u+=f);var v=d("span",[i],u,h);return g&&(v.title=g),a.content.appendChild(v)}a.content.appendChild(i)}}function pb(a,b){if(a.length>1&&!/ /.test(a))return a;for(var c=b,d="",e=0;e<a.length;e++){var f=a.charAt(e);" "!=f||!c||e!=a.length-1&&32!=a.charCodeAt(e+1)||(f=" "),d+=f,c=" "==f}return d}function qb(a,b){return function(c,d,e,f,g,h,i){e=e?e+" cm-force-border":"cm-force-border";for(var j=c.pos,k=j+d.length;;){for(var l=void 0,m=0;m<b.length&&(l=b[m],!(l.to>j&&l.from<=j));m++);if(l.to>=k)return a(c,d,e,f,g,h,i);a(c,d.slice(0,l.to-j),e,f,null,h,i),f=null,d=d.slice(l.to-j),j=l.to}}}function rb(a,b,c,d){var e=!d&&c.widgetNode;e&&a.map.push(a.pos,a.pos+b,e),!d&&a.cm.display.input.needsContentAttribute&&(e||(e=a.content.appendChild(document.createElement("span"))),e.setAttribute("cm-marker",c.id)),e&&(a.cm.display.input.setUneditable(e),a.content.appendChild(e)),a.pos+=b,a.trailingSpace=!1}function sb(a,b,c){var d=a.markedSpans,e=a.text,f=0;if(d)for(var g,h,i,j,k,l,m,n=e.length,o=0,p=1,q="",r=0;;){if(r==o){i=j=k=l=h="",m=null,r=1/0;for(var s=[],t=void 0,u=0;u<d.length;++u){var v=d[u],w=v.marker;"bookmark"==w.type&&v.from==o&&w.widgetNode?s.push(w):v.from<=o&&(null==v.to||v.to>o||w.collapsed&&v.to==o&&v.from==o)?(null!=v.to&&v.to!=o&&r>v.to&&(r=v.to,j=""),w.className&&(i+=" "+w.className),w.css&&(h=(h?h+";":"")+w.css),w.startStyle&&v.from==o&&(k+=" "+w.startStyle),w.endStyle&&v.to==r&&(t||(t=[])).push(w.endStyle,v.to),w.title&&!l&&(l=w.title),w.collapsed&&(!m||da(m.marker,w)<0)&&(m=v)):v.from>o&&r>v.from&&(r=v.from)}if(t)for(var x=0;x<t.length;x+=2)t[x+1]==r&&(j+=" "+t[x]);if(!m||m.from==o)for(var y=0;y<s.length;++y)rb(b,0,s[y]);if(m&&(m.from||0)==o){if(rb(b,(null==m.to?n+1:m.to)-o,m.marker,null==m.from),null==m.to)return;m.to==o&&(m=!1)}}if(o>=n)break;for(var z=Math.min(n,r);;){if(q){var A=o+q.length;if(!m){var B=A>z?q.slice(0,z-o):q;b.addToken(b,B,g?g+i:i,k,o+B.length==r?j:"",l,h)}if(A>=z){q=q.slice(z-o),o=z;break}o=A,k=""}q=e.slice(f,f=c[p++]),g=lb(c[p++],b.cm.options)}}else for(var C=1;C<c.length;C+=2)b.addToken(b,e.slice(f,f=c[C]),lb(c[C+1],b.cm.options))}function tb(a,b,c){this.line=b,this.rest=ja(b),this.size=this.rest?D(p(this.rest))-c+1:1,this.node=this.text=null,this.hidden=ma(a,b)}function ub(a,b,c){for(var d,e=[],f=b;f<c;f=d){var g=new tb(a.doc,z(a.doc,f),f);d=f+g.size,e.push(g)}return e}function vb(a){ah?ah.ops.push(a):a.ownsGroup=ah={ops:[a],delayedCallbacks:[]}}function wb(a){var b=a.delayedCallbacks,c=0;do{for(;c<b.length;c++)b[c].call(null);for(var d=0;d<a.ops.length;d++){var e=a.ops[d];if(e.cursorActivityHandlers)for(;e.cursorActivityCalled<e.cursorActivityHandlers.length;)e.cursorActivityHandlers[e.cursorActivityCalled++].call(null,e.cm)}}while(c<b.length)}function xb(a,b){var c=a.ownsGroup;if(c)try{wb(c)}finally{ah=null,b(c)}}function yb(a,b){var c=Ca(a,b);if(c.length){var d,e=Array.prototype.slice.call(arguments,2);ah?d=ah.delayedCallbacks:bh?d=bh:(d=bh=[],setTimeout(zb,0));for(var f=function(a){d.push(function(){return c[a].apply(null,e)})},g=0;g<c.length;++g)f(g)}}function zb(){var a=bh;bh=null;for(var b=0;b<a.length;++b)a[b]()}function Ab(a,b,c,d){for(var e=0;e<b.changes.length;e++){var f=b.changes[e];"text"==f?Eb(a,b):"gutter"==f?Gb(a,b,c,d):"class"==f?Fb(b):"widget"==f&&Hb(a,b,d)}b.changes=null}function Bb(a){return a.node==a.text&&(a.node=d("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),gg&&hg<8&&(a.node.style.zIndex=2)),a.node}function Cb(a){var b=a.bgClass?a.bgClass+" "+(a.line.bgClass||""):a.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),a.background)b?a.background.className=b:(a.background.parentNode.removeChild(a.background),a.background=null);else if(b){var c=Bb(a);a.background=c.insertBefore(d("div",null,b),c.firstChild)}}function Db(a,b){var c=a.display.externalMeasured;return c&&c.line==b.line?(a.display.externalMeasured=null,b.measure=c.measure,c.built):mb(a,b)}function Eb(a,b){var c=b.text.className,d=Db(a,b);b.text==b.node&&(b.node=d.pre),b.text.parentNode.replaceChild(d.pre,b.text),b.text=d.pre,d.bgClass!=b.bgClass||d.textClass!=b.textClass?(b.bgClass=d.bgClass,b.textClass=d.textClass,Fb(b)):c&&(b.text.className=c)}function Fb(a){Cb(a),a.line.wrapClass?Bb(a).className=a.line.wrapClass:a.node!=a.text&&(a.node.className="");var b=a.textClass?a.textClass+" "+(a.line.textClass||""):a.line.textClass;a.text.className=b||""}function Gb(a,b,c,e){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var f=Bb(b);b.gutterBackground=d("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?e.fixedPos:-e.gutterTotalWidth)+"px; width: "+e.gutterTotalWidth+"px"),f.insertBefore(b.gutterBackground,b.text)}var g=b.line.gutterMarkers;if(a.options.lineNumbers||g){var h=Bb(b),i=b.gutter=d("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?e.fixedPos:-e.gutterTotalWidth)+"px");if(a.display.input.setUneditable(i),h.insertBefore(i,b.text),b.line.gutterClass&&(i.className+=" "+b.line.gutterClass),!a.options.lineNumbers||g&&g["CodeMirror-linenumbers"]||(b.lineNumber=i.appendChild(d("div",G(a.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+e.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),g)for(var j=0;j<a.options.gutters.length;++j){var k=a.options.gutters[j],l=g.hasOwnProperty(k)&&g[k];l&&i.appendChild(d("div",[l],"CodeMirror-gutter-elt","left: "+e.gutterLeft[k]+"px; width: "+e.gutterWidth[k]+"px"))}}}function Hb(a,b,c){b.alignable&&(b.alignable=null);for(var d=b.node.firstChild,e=void 0;d;d=e)e=d.nextSibling,"CodeMirror-linewidget"==d.className&&b.node.removeChild(d);Jb(a,b,c)}function Ib(a,b,c,d){var e=Db(a,b);return b.text=b.node=e.pre,e.bgClass&&(b.bgClass=e.bgClass),e.textClass&&(b.textClass=e.textClass),Fb(b),Gb(a,b,c,d),Jb(a,b,d),b.node}function Jb(a,b,c){if(Kb(a,b.line,b,c,!0),b.rest)for(var d=0;d<b.rest.length;d++)Kb(a,b.rest[d],b,c,!1)}function Kb(a,b,c,e,f){if(b.widgets)for(var g=Bb(c),h=0,i=b.widgets;h<i.length;++h){var j=i[h],k=d("div",[j.node],"CodeMirror-linewidget");j.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),Lb(j,k,c,e),a.display.input.setUneditable(k),f&&j.above?g.insertBefore(k,c.gutter||c.text):g.appendChild(k),yb(j,"redraw")}}function Lb(a,b,c,d){if(a.noHScroll){(c.alignable||(c.alignable=[])).push(b);var e=d.wrapperWidth;b.style.left=d.fixedPos+"px",a.coverGutter||(e-=d.gutterTotalWidth,b.style.paddingLeft=d.gutterTotalWidth+"px"),b.style.width=e+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-d.gutterTotalWidth+"px"))}function Mb(a){if(null!=a.height)return a.height;var b=a.doc.cm;if(!b)return 0;if(!e(document.body,a.node)){var f="position: relative;";a.coverGutter&&(f+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(f+="width: "+b.display.wrapper.clientWidth+"px;"),c(b.display.measure,d("div",[a.node],null,f))}return a.height=a.node.parentNode.offsetHeight}function Nb(a,b){for(var c=Na(b);c!=a.wrapper;c=c.parentNode)if(!c||1==c.nodeType&&"true"==c.getAttribute("cm-ignore-events")||c.parentNode==a.sizer&&c!=a.mover)return!0}function Ob(a){return a.lineSpace.offsetTop}function Pb(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qb(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=c(a.measure,d("pre","x")),e=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,f={left:parseInt(e.paddingLeft),right:parseInt(e.paddingRight)};return isNaN(f.left)||isNaN(f.right)||(a.cachedPaddingH=f),f}function Rb(a){return Cg-a.display.nativeBarWidth}function Sb(a){return a.display.scroller.clientWidth-Rb(a)-a.display.barWidth}function Tb(a){return a.display.scroller.clientHeight-Rb(a)-a.display.barHeight}function Ub(a,b,c){var d=a.options.lineWrapping,e=d&&Sb(a);if(!b.measure.heights||d&&b.measure.width!=e){var f=b.measure.heights=[];if(d){b.measure.width=e;for(var g=b.text.firstChild.getClientRects(),h=0;h<g.length-1;h++){var i=g[h],j=g[h+1];Math.abs(i.bottom-j.bottom)>2&&f.push((i.bottom+j.top)/2-c.top)}}f.push(c.bottom-c.top)}}function Vb(a,b,c){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var d=0;d<a.rest.length;d++)if(a.rest[d]==b)return{map:a.measure.maps[d],cache:a.measure.caches[d]};for(var e=0;e<a.rest.length;e++)if(D(a.rest[e])>c)return{map:a.measure.maps[e],cache:a.measure.caches[e],before:!0}}function Wb(a,b){b=ia(b);var d=D(b),e=a.display.externalMeasured=new tb(a.doc,b,d);e.lineN=d;var f=e.built=mb(a,e);return e.text=f.pre,c(a.display.lineMeasure,f.pre),e}function Xb(a,b,c,d){return $b(a,Zb(a,b),c,d)}function Yb(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[xc(a,b)];var c=a.display.externalMeasured;return c&&b>=c.lineN&&b<c.lineN+c.size?c:void 0}function Zb(a,b){var c=D(b),d=Yb(a,c);d&&!d.text?d=null:d&&d.changes&&(Ab(a,d,c,sc(a)),a.curOp.forceUpdate=!0),d||(d=Wb(a,b));var e=Vb(d,b,c);return{line:b,view:d,rect:null,map:e.map,cache:e.cache,before:e.before,hasHeights:!1}}function $b(a,b,c,d,e){b.before&&(c=-1);var f,g=c+(d||"");return b.cache.hasOwnProperty(g)?f=b.cache[g]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Ub(a,b.view,b.rect),b.hasHeights=!0),f=bc(a,b,c,d),f.bogus||(b.cache[g]=f)),{left:f.left,right:f.right,top:e?f.rtop:f.top,bottom:e?f.rbottom:f.bottom}}function _b(a,b,c){for(var d,e,f,g,h,i,j=0;j<a.length;j+=3)if(h=a[j],i=a[j+1],b<h?(e=0,f=1,g="left"):b<i?(e=b-h,f=e+1):(j==a.length-3||b==i&&a[j+3]>b)&&(f=i-h,e=f-1,b>=i&&(g="right")),null!=e){if(d=a[j+2],h==i&&c==(d.insertLeft?"left":"right")&&(g=c),"left"==c&&0==e)for(;j&&a[j-2]==a[j-3]&&a[j-1].insertLeft;)d=a[(j-=3)+2],g="left";if("right"==c&&e==i-h)for(;j<a.length-3&&a[j+3]==a[j+4]&&!a[j+5].insertLeft;)d=a[(j+=3)+2],g="right";break}return{node:d,start:e,end:f,collapse:g,coverStart:h,coverEnd:i}}function ac(a,b){var c=ch;if("left"==b)for(var d=0;d<a.length&&(c=a[d]).left==c.right;d++);else for(var e=a.length-1;e>=0&&(c=a[e]).left==c.right;e--);return c}function bc(a,b,c,d){var e,f=_b(b.map,c,d),g=f.node,h=f.start,i=f.end,j=f.collapse;if(3==g.nodeType){for(var k=0;k<4;k++){for(;h&&x(b.line.text.charAt(f.coverStart+h));)--h;for(;f.coverStart+i<f.coverEnd&&x(b.line.text.charAt(f.coverStart+i));)++i;if(e=gg&&hg<9&&0==h&&i==f.coverEnd-f.coverStart?g.parentNode.getBoundingClientRect():ac(vg(g,h,i).getClientRects(),d),
2
+ e.left||e.right||0==h)break;i=h,h-=1,j="right"}gg&&hg<11&&(e=cc(a.display.measure,e))}else{h>0&&(j=d="right");var l;e=a.options.lineWrapping&&(l=g.getClientRects()).length>1?l["right"==d?l.length-1:0]:g.getBoundingClientRect()}if(gg&&hg<9&&!h&&(!e||!e.left&&!e.right)){var m=g.parentNode.getClientRects()[0];e=m?{left:m.left,right:m.left+rc(a.display),top:m.top,bottom:m.bottom}:ch}for(var n=e.top-b.rect.top,o=e.bottom-b.rect.top,p=(n+o)/2,q=b.view.measure.heights,r=0;r<q.length-1&&!(p<q[r]);r++);var s=r?q[r-1]:0,t=q[r],u={left:("right"==j?e.right:e.left)-b.rect.left,right:("left"==j?e.left:e.right)-b.rect.left,top:s,bottom:t};return e.left||e.right||(u.bogus=!0),a.options.singleCursorHeightPerLine||(u.rtop=n,u.rbottom=o),u}function cc(a,b){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ra(a))return b;var c=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*c,right:b.right*c,top:b.top*d,bottom:b.bottom*d}}function dc(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function ec(a){a.display.externalMeasure=null,b(a.display.lineMeasure);for(var c=0;c<a.display.view.length;c++)dc(a.display.view[c])}function fc(a){ec(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function gc(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hc(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function ic(a,b,c,d,e){if(!e&&b.widgets)for(var f=0;f<b.widgets.length;++f)if(b.widgets[f].above){var g=Mb(b.widgets[f]);c.top+=g,c.bottom+=g}if("line"==d)return c;d||(d="local");var h=oa(b);if("local"==d?h+=Ob(a.display):h-=a.display.viewOffset,"page"==d||"window"==d){var i=a.display.lineSpace.getBoundingClientRect();h+=i.top+("window"==d?0:hc());var j=i.left+("window"==d?0:gc());c.left+=j,c.right+=j}return c.top+=h,c.bottom+=h,c}function jc(a,b,c){if("div"==c)return b;var d=b.left,e=b.top;if("page"==c)d-=gc(),e-=hc();else if("local"==c||!c){var f=a.display.sizer.getBoundingClientRect();d+=f.left,e+=f.top}var g=a.display.lineSpace.getBoundingClientRect();return{left:d-g.left,top:e-g.top}}function kc(a,b,c,d,e){return d||(d=z(a.doc,b.line)),ic(a,d,Xb(a,d,b.ch,e),c)}function lc(a,b,c,d,e,f){function g(b,g){var h=$b(a,e,b,g?"right":"left",f);return g?h.left=h.right:h.right=h.left,ic(a,d,h,c)}function h(a,b){var c=i[b],d=c.level%2;return a==sa(c)&&b&&c.level<i[b-1].level?(c=i[--b],a=ta(c)-(c.level%2?0:1),d=!0):a==ta(c)&&b<i.length-1&&c.level<i[b+1].level&&(c=i[++b],a=sa(c)-c.level%2,d=!1),d&&a==c.to&&a>c.from?g(a-1):g(a,d)}d=d||z(a.doc,b.line),e||(e=Zb(a,d));var i=Ba(d),j=b.ch;if(!i)return g(j);var k=xa(i,j),l=h(j,k);return null!=Mg&&(l.other=h(j,Mg)),l}function mc(a,b){var c=0;b=N(a.doc,b),a.options.lineWrapping||(c=rc(a.display)*b.ch);var d=z(a.doc,b.line),e=oa(d)+Ob(a.display);return{left:c,right:c,top:e,bottom:e+d.height}}function nc(a,b,c,d){var e=H(a,b);return e.xRel=d,c&&(e.outside=!0),e}function oc(a,b,c){var d=a.doc;if(c+=a.display.viewOffset,c<0)return nc(d.first,0,!0,-1);var e=E(d,c),f=d.first+d.size-1;if(e>f)return nc(d.first+d.size-1,z(d,f).text.length,!0,1);b<0&&(b=0);for(var g=z(d,e);;){var h=pc(a,g,e,b,c),i=ga(g),j=i&&i.find(0,!0);if(!i||!(h.ch>j.from.ch||h.ch==j.from.ch&&h.xRel>0))return h;e=D(g=j.to.line)}}function pc(a,b,c,d,e){function f(d){var e=lc(a,H(c,d),"line",b,j);return h=!0,g>e.bottom?e.left-i:g<e.top?e.left+i:(h=!1,e.left)}var g=e-oa(b),h=!1,i=2*a.display.wrapper.clientWidth,j=Zb(a,b),k=Ba(b),l=b.text.length,m=ua(b),n=va(b),o=f(m),p=h,q=f(n),r=h;if(d>q)return nc(c,n,r,1);for(;;){if(k?n==m||n==za(b,m,1):n-m<=1){var s=d<o||d-o<=q-d?m:n,t=s==m?p:r,u=d-(s==m?o:q);if(r&&!k&&!/\s/.test(b.text.charAt(s))&&u>0&&s<b.text.length&&j.view.measure.heights.length>1){var v=$b(a,j,s,"right");g<=v.bottom&&g>=v.top&&Math.abs(d-v.right)<u&&(t=!1,s++,u=d-v.right)}for(;x(b.text.charAt(s));)++s;var w=nc(c,s,t,u<-1?-1:u>1?1:0);return w}var y=Math.ceil(l/2),z=m+y;if(k){z=m;for(var A=0;A<y;++A)z=za(b,z,1)}var B=f(z);B>d?(n=z,q=B,(r=h)&&(q+=1e3),l=y):(m=z,o=B,p=h,l-=y)}}function qc(a){if(null!=a.cachedTextHeight)return a.cachedTextHeight;if(null==Zg){Zg=d("pre");for(var e=0;e<49;++e)Zg.appendChild(document.createTextNode("x")),Zg.appendChild(d("br"));Zg.appendChild(document.createTextNode("x"))}c(a.measure,Zg);var f=Zg.offsetHeight/50;return f>3&&(a.cachedTextHeight=f),b(a.measure),f||1}function rc(a){if(null!=a.cachedCharWidth)return a.cachedCharWidth;var b=d("span","xxxxxxxxxx"),e=d("pre",[b]);c(a.measure,e);var f=b.getBoundingClientRect(),g=(f.right-f.left)/10;return g>2&&(a.cachedCharWidth=g),g||10}function sc(a){for(var b=a.display,c={},d={},e=b.gutters.clientLeft,f=b.gutters.firstChild,g=0;f;f=f.nextSibling,++g)c[a.options.gutters[g]]=f.offsetLeft+f.clientLeft+e,d[a.options.gutters[g]]=f.clientWidth;return{fixedPos:tc(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:c,gutterWidth:d,wrapperWidth:b.wrapper.clientWidth}}function tc(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function uc(a){var b=qc(a.display),c=a.options.lineWrapping,d=c&&Math.max(5,a.display.scroller.clientWidth/rc(a.display)-3);return function(e){if(ma(a.doc,e))return 0;var f=0;if(e.widgets)for(var g=0;g<e.widgets.length;g++)e.widgets[g].height&&(f+=e.widgets[g].height);return c?f+(Math.ceil(e.text.length/d)||1)*b:f+b}}function vc(a){var b=a.doc,c=uc(a);b.iter(function(a){var b=c(a);b!=a.height&&C(a,b)})}function wc(a,b,c,d){var e=a.display;if(!c&&"true"==Na(b).getAttribute("cm-not-content"))return null;var f,g,h=e.lineSpace.getBoundingClientRect();try{f=b.clientX-h.left,g=b.clientY-h.top}catch(b){return null}var i,j=oc(a,f,g);if(d&&1==j.xRel&&(i=z(a.doc,j.line).text).length==j.ch){var l=k(i,i.length,a.options.tabSize)-i.length;j=H(j.line,Math.max(0,Math.round((f-Qb(a.display).left)/rc(a.display))-l))}return j}function xc(a,b){if(b>=a.display.viewTo)return null;if(b-=a.display.viewFrom,b<0)return null;for(var c=a.display.view,d=0;d<c.length;d++)if(b-=c[d].size,b<0)return d}function yc(a){a.display.input.showSelection(a.display.input.prepareSelection())}function zc(a,b){for(var c=a.doc,d={},e=d.cursors=document.createDocumentFragment(),f=d.selection=document.createDocumentFragment(),g=0;g<c.sel.ranges.length;g++)if(b!==!1||g!=c.sel.primIndex){var h=c.sel.ranges[g];if(!(h.from().line>=a.display.viewTo||h.to().line<a.display.viewFrom)){var i=h.empty();(i||a.options.showCursorWhenSelecting)&&Ac(a,h.head,e),i||Bc(a,h,f)}}return d}function Ac(a,b,c){var e=lc(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),f=c.appendChild(d("div"," ","CodeMirror-cursor"));if(f.style.left=e.left+"px",f.style.top=e.top+"px",f.style.height=Math.max(0,e.bottom-e.top)*a.options.cursorHeight+"px",e.other){var g=c.appendChild(d("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=e.other.left+"px",g.style.top=e.other.top+"px",g.style.height=.85*(e.other.bottom-e.other.top)+"px"}}function Bc(a,b,c){function e(a,b,c,e){b<0&&(b=0),b=Math.round(b),e=Math.round(e),i.appendChild(d("div",null,"CodeMirror-selected","position: absolute; left: "+a+"px;\n top: "+b+"px; width: "+(null==c?l-a:c)+"px;\n height: "+(e-b)+"px"))}function f(b,c,d){function f(c,d){return kc(a,H(b,c),"div",j,d)}var g,i,j=z(h,b),m=j.text.length;return ra(Ba(j),c||0,null==d?m:d,function(a,b,h){var j,n,o,p=f(a,"left");if(a==b)j=p,n=o=p.left;else{if(j=f(b-1,"right"),"rtl"==h){var q=p;p=j,j=q}n=p.left,o=j.right}null==c&&0==a&&(n=k),j.top-p.top>3&&(e(n,p.top,null,p.bottom),n=k,p.bottom<j.top&&e(n,p.bottom,null,j.top)),null==d&&b==m&&(o=l),(!g||p.top<g.top||p.top==g.top&&p.left<g.left)&&(g=p),(!i||j.bottom>i.bottom||j.bottom==i.bottom&&j.right>i.right)&&(i=j),n<k+1&&(n=k),e(n,j.top,o-n,j.bottom)}),{start:g,end:i}}var g=a.display,h=a.doc,i=document.createDocumentFragment(),j=Qb(a.display),k=j.left,l=Math.max(g.sizerWidth,Sb(a)-g.sizer.offsetLeft)-j.right,m=b.from(),n=b.to();if(m.line==n.line)f(m.line,m.ch,n.ch);else{var o=z(h,m.line),p=z(h,n.line),q=ia(o)==ia(p),r=f(m.line,m.ch,q?o.text.length+1:null).end,s=f(n.line,q?0:null,n.ch).start;q&&(r.top<s.top-2?(e(r.right,r.top,null,r.bottom),e(k,s.top,s.left,s.bottom)):e(r.right,r.top,s.left-r.right,r.bottom)),r.bottom<s.top&&e(k,r.bottom,null,s.top)}c.appendChild(i)}function Cc(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var c=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){return b.cursorDiv.style.visibility=(c=!c)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Dc(a){a.state.focused||(a.display.input.focus(),Fc(a))}function Ec(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Gc(a))},100)}function Fc(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),"nocursor"!=a.options.readOnly&&(a.state.focused||(Ea(a,"focus",a,b),a.state.focused=!0,g(a.display.wrapper,"CodeMirror-focused"),a.curOp||a.display.selForContextMenu==a.doc.sel||(a.display.input.reset(),ig&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Cc(a))}function Gc(a,b){a.state.delayingBlurEvent||(a.state.focused&&(Ea(a,"blur",a,b),a.state.focused=!1,yg(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Hc(a){var b=a.display,c=b.view;if(b.alignWidgets||b.gutters.firstChild&&a.options.fixedGutter){for(var d=tc(b)-b.scroller.scrollLeft+a.doc.scrollLeft,e=b.gutters.offsetWidth,f=d+"px",g=0;g<c.length;g++)if(!c[g].hidden){a.options.fixedGutter&&(c[g].gutter&&(c[g].gutter.style.left=f),c[g].gutterBackground&&(c[g].gutterBackground.style.left=f));var h=c[g].alignable;if(h)for(var i=0;i<h.length;i++)h[i].style.left=f}a.options.fixedGutter&&(b.gutters.style.left=d+e+"px")}}function Ic(a){if(!a.options.lineNumbers)return!1;var b=a.doc,c=G(a.options,b.first+b.size-1),e=a.display;if(c.length!=e.lineNumChars){var f=e.measure.appendChild(d("div",[d("div",c)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,h=f.offsetWidth-g;return e.lineGutter.style.width="",e.lineNumInnerWidth=Math.max(g,e.lineGutter.offsetWidth-h)+1,e.lineNumWidth=e.lineNumInnerWidth+h,e.lineNumChars=e.lineNumInnerWidth?c.length:-1,e.lineGutter.style.width=e.lineNumWidth+"px",Cd(a),!0}return!1}function Jc(a){for(var b=a.display,c=b.lineDiv.offsetTop,d=0;d<b.view.length;d++){var e=b.view[d],f=void 0;if(!e.hidden){if(gg&&hg<8){var g=e.node.offsetTop+e.node.offsetHeight;f=g-c,c=g}else{var h=e.node.getBoundingClientRect();f=h.bottom-h.top}var i=e.line.height-f;if(f<2&&(f=qc(b)),(i>.001||i<-.001)&&(C(e.line,f),Kc(e.line),e.rest))for(var j=0;j<e.rest.length;j++)Kc(e.rest[j])}}}function Kc(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b)a.widgets[b].height=a.widgets[b].node.parentNode.offsetHeight}function Lc(a,b,c){var d=c&&null!=c.top?Math.max(0,c.top):a.scroller.scrollTop;d=Math.floor(d-Ob(a));var e=c&&null!=c.bottom?c.bottom:d+a.wrapper.clientHeight,f=E(b,d),g=E(b,e);if(c&&c.ensure){var h=c.ensure.from.line,i=c.ensure.to.line;h<f?(f=h,g=E(b,oa(z(b,h))+a.wrapper.clientHeight)):Math.min(i,b.lastLine())>=g&&(f=E(b,oa(z(b,i))-a.wrapper.clientHeight),g=i)}return{from:f,to:Math.max(g,f+1)}}function Mc(a,b){Math.abs(a.doc.scrollTop-b)<2||(a.doc.scrollTop=b,dg||Ad(a,{top:b}),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b),a.display.scrollbars.setScrollTop(b),dg&&Ad(a),ud(a,100))}function Nc(a,b,c){(c?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)||(b=Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth),a.doc.scrollLeft=b,Hc(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Oc(a){var b=a.wheelDeltaX,c=a.wheelDeltaY;return null==b&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),null==c&&a.detail&&a.axis==a.VERTICAL_AXIS?c=a.detail:null==c&&(c=a.wheelDelta),{x:b,y:c}}function Pc(a){var b=Oc(a);return b.x*=eh,b.y*=eh,b}function Qc(a,b){var c=Oc(b),d=c.x,e=c.y,f=a.display,g=f.scroller,h=g.scrollWidth>g.clientWidth,i=g.scrollHeight>g.clientHeight;if(d&&h||e&&i){if(e&&rg&&ig)a:for(var j=b.target,k=f.view;j!=g;j=j.parentNode)for(var l=0;l<k.length;l++)if(k[l].node==j){a.display.currentWheelTarget=j;break a}if(d&&!dg&&!lg&&null!=eh)return e&&i&&Mc(a,Math.max(0,Math.min(g.scrollTop+e*eh,g.scrollHeight-g.clientHeight))),Nc(a,Math.max(0,Math.min(g.scrollLeft+d*eh,g.scrollWidth-g.clientWidth))),(!e||e&&i)&&Ja(b),void(f.wheelStartX=null);if(e&&null!=eh){var m=e*eh,n=a.doc.scrollTop,o=n+f.wrapper.clientHeight;m<0?n=Math.max(0,n+m-50):o=Math.min(a.doc.height,o+m+50),Ad(a,{top:n,bottom:o})}dh<20&&(null==f.wheelStartX?(f.wheelStartX=g.scrollLeft,f.wheelStartY=g.scrollTop,f.wheelDX=d,f.wheelDY=e,setTimeout(function(){if(null!=f.wheelStartX){var a=g.scrollLeft-f.wheelStartX,b=g.scrollTop-f.wheelStartY,c=b&&f.wheelDY&&b/f.wheelDY||a&&f.wheelDX&&a/f.wheelDX;f.wheelStartX=f.wheelStartY=null,c&&(eh=(eh*dh+c)/(dh+1),++dh)}},200)):(f.wheelDX+=d,f.wheelDY+=e))}}function Rc(a){var b=a.display,c=b.gutters.offsetWidth,d=Math.round(a.doc.height+Pb(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?c:0,docHeight:d,scrollHeight:d+Rb(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:c}}function Sc(a,b,c){this.cm=c;var e=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a(e),a(f),Pg(e,"scroll",function(){e.clientHeight&&b(e.scrollTop,"vertical")}),Pg(f,"scroll",function(){f.clientWidth&&b(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,gg&&hg<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function Tc(){}function Uc(a,b){b||(b=Rc(a));var c=a.display.barWidth,d=a.display.barHeight;Vc(a,b);for(var e=0;e<4&&c!=a.display.barWidth||d!=a.display.barHeight;e++)c!=a.display.barWidth&&a.options.lineWrapping&&Jc(a),Vc(a,Rc(a)),c=a.display.barWidth,d=a.display.barHeight}function Vc(a,b){var c=a.display,d=c.scrollbars.update(b);c.sizer.style.paddingRight=(c.barWidth=d.right)+"px",c.sizer.style.paddingBottom=(c.barHeight=d.bottom)+"px",c.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=d.bottom+"px",c.scrollbarFiller.style.width=d.right+"px"):c.scrollbarFiller.style.display="",d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=d.bottom+"px",c.gutterFiller.style.width=b.gutterWidth+"px"):c.gutterFiller.style.display=""}function Wc(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&yg(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new fh[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Pg(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,c){"horizontal"==c?Nc(a,b):Mc(a,b)},a),a.display.scrollbars.addClass&&g(a.display.wrapper,a.display.scrollbars.addClass)}function Xc(a,b){if(!Fa(a,"scrollCursorIntoView")){var c=a.display,e=c.sizer.getBoundingClientRect(),f=null;if(b.top+e.top<0?f=!0:b.bottom+e.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),null!=f&&!og){var g=d("div","​",null,"position: absolute;\n top: "+(b.top-c.viewOffset-Ob(a.display))+"px;\n height: "+(b.bottom-b.top+Rb(a)+c.barHeight)+"px;\n left: "+b.left+"px; width: 2px;");a.display.lineSpace.appendChild(g),g.scrollIntoView(f),a.display.lineSpace.removeChild(g)}}}function Yc(a,b,c,d){null==d&&(d=0);for(var e,f=0;f<5;f++){var g=!1;e=lc(a,b);var h=c&&c!=b?lc(a,c):e,i=$c(a,Math.min(e.left,h.left),Math.min(e.top,h.top)-d,Math.max(e.left,h.left),Math.max(e.bottom,h.bottom)+d),j=a.doc.scrollTop,k=a.doc.scrollLeft;if(null!=i.scrollTop&&(Mc(a,i.scrollTop),Math.abs(a.doc.scrollTop-j)>1&&(g=!0)),null!=i.scrollLeft&&(Nc(a,i.scrollLeft),Math.abs(a.doc.scrollLeft-k)>1&&(g=!0)),!g)break}return e}function Zc(a,b,c,d,e){var f=$c(a,b,c,d,e);null!=f.scrollTop&&Mc(a,f.scrollTop),null!=f.scrollLeft&&Nc(a,f.scrollLeft)}function $c(a,b,c,d,e){var f=a.display,g=qc(a.display);c<0&&(c=0);var h=a.curOp&&null!=a.curOp.scrollTop?a.curOp.scrollTop:f.scroller.scrollTop,i=Tb(a),j={};e-c>i&&(e=c+i);var k=a.doc.height+Pb(f),l=c<g,m=e>k-g;if(c<h)j.scrollTop=l?0:c;else if(e>h+i){var n=Math.min(c,(m?k:e)-i);n!=h&&(j.scrollTop=n)}var o=a.curOp&&null!=a.curOp.scrollLeft?a.curOp.scrollLeft:f.scroller.scrollLeft,p=Sb(a)-(a.options.fixedGutter?f.gutters.offsetWidth:0),q=d-b>p;return q&&(d=b+p),b<10?j.scrollLeft=0:b<o?j.scrollLeft=Math.max(0,b-(q?0:10)):d>p+o-3&&(j.scrollLeft=d+(q?0:10)-p),j}function _c(a,b,c){null==b&&null==c||bd(a),null!=b&&(a.curOp.scrollLeft=(null==a.curOp.scrollLeft?a.doc.scrollLeft:a.curOp.scrollLeft)+b),null!=c&&(a.curOp.scrollTop=(null==a.curOp.scrollTop?a.doc.scrollTop:a.curOp.scrollTop)+c)}function ad(a){bd(a);var b=a.getCursor(),c=b,d=b;a.options.lineWrapping||(c=b.ch?H(b.line,b.ch-1):b,d=H(b.line,b.ch+1)),a.curOp.scrollToPos={from:c,to:d,margin:a.options.cursorScrollMargin,isCursor:!0}}function bd(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var c=mc(a,b.from),d=mc(a,b.to),e=$c(a,Math.min(c.left,d.left),Math.min(c.top,d.top)-b.margin,Math.max(c.right,d.right),Math.max(c.bottom,d.bottom)+b.margin);a.scrollTo(e.scrollLeft,e.scrollTop)}}function cd(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++gh},vb(a.curOp)}function dd(a){var b=a.curOp;xb(b,function(a){for(var b=0;b<a.ops.length;b++)a.ops[b].cm.curOp=null;ed(a)})}function ed(a){for(var b=a.ops,c=0;c<b.length;c++)fd(b[c]);for(var d=0;d<b.length;d++)gd(b[d]);for(var e=0;e<b.length;e++)hd(b[e]);for(var f=0;f<b.length;f++)id(b[f]);for(var g=0;g<b.length;g++)jd(b[g])}function fd(a){var b=a.cm,c=b.display;xd(b),a.updateMaxLine&&qa(b),a.mustUpdate=a.viewChanged||a.forceUpdate||null!=a.scrollTop||a.scrollToPos&&(a.scrollToPos.from.line<c.viewFrom||a.scrollToPos.to.line>=c.viewTo)||c.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new wd(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function gd(a){a.updatedDisplay=a.mustUpdate&&yd(a.cm,a.update)}function hd(a){var b=a.cm,c=b.display;a.updatedDisplay&&Jc(b),a.barMeasure=Rc(b),c.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Xb(b,c.maxLine,c.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(c.scroller.clientWidth,c.sizer.offsetLeft+a.adjustWidthTo+Rb(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,c.sizer.offsetLeft+a.adjustWidthTo-Sb(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=c.input.prepareSelection(a.focus))}function id(a){var b=a.cm;null!=a.adjustWidthTo&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Nc(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var c=a.focus&&a.focus==f()&&(!document.hasFocus||document.hasFocus());a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,c),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Uc(b,a.barMeasure),a.updatedDisplay&&Dd(b,a.barMeasure),a.selectionChanged&&Cc(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),c&&Dc(a.cm)}function jd(a){var b=a.cm,c=b.display,d=b.doc;if(a.updatedDisplay&&zd(b,a.update),null==c.wheelStartX||null==a.scrollTop&&null==a.scrollLeft&&!a.scrollToPos||(c.wheelStartX=c.wheelStartY=null),null==a.scrollTop||c.scroller.scrollTop==a.scrollTop&&!a.forceScroll||(d.scrollTop=Math.max(0,Math.min(c.scroller.scrollHeight-c.scroller.clientHeight,a.scrollTop)),c.scrollbars.setScrollTop(d.scrollTop),c.scroller.scrollTop=d.scrollTop),null==a.scrollLeft||c.scroller.scrollLeft==a.scrollLeft&&!a.forceScroll||(d.scrollLeft=Math.max(0,Math.min(c.scroller.scrollWidth-c.scroller.clientWidth,a.scrollLeft)),c.scrollbars.setScrollLeft(d.scrollLeft),c.scroller.scrollLeft=d.scrollLeft,Hc(b)),a.scrollToPos){var e=Yc(b,N(d,a.scrollToPos.from),N(d,a.scrollToPos.to),a.scrollToPos.margin);a.scrollToPos.isCursor&&b.state.focused&&Xc(b,e)}var f=a.maybeHiddenMarkers,g=a.maybeUnhiddenMarkers;if(f)for(var h=0;h<f.length;++h)f[h].lines.length||Ea(f[h],"hide");if(g)for(var i=0;i<g.length;++i)g[i].lines.length&&Ea(g[i],"unhide");c.wrapper.offsetHeight&&(d.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&Ea(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function kd(a,b){if(a.curOp)return b();cd(a);try{return b()}finally{dd(a)}}function ld(a,b){return function(){if(a.curOp)return b.apply(a,arguments);cd(a);try{return b.apply(a,arguments)}finally{dd(a)}}}function md(a){return function(){if(this.curOp)return a.apply(this,arguments);cd(this);try{return a.apply(this,arguments)}finally{dd(this)}}}function nd(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);cd(b);try{return a.apply(this,arguments)}finally{dd(b)}}}function od(a,b,c,d){null==b&&(b=a.doc.first),null==c&&(c=a.doc.first+a.doc.size),d||(d=0);var e=a.display;if(d&&c<e.viewTo&&(null==e.updateLineNumbers||e.updateLineNumbers>b)&&(e.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=e.viewTo)Lg&&ka(a.doc,b)<e.viewTo&&qd(a);else if(c<=e.viewFrom)Lg&&la(a.doc,c+d)>e.viewFrom?qd(a):(e.viewFrom+=d,e.viewTo+=d);else if(b<=e.viewFrom&&c>=e.viewTo)qd(a);else if(b<=e.viewFrom){var f=rd(a,c,c+d,1);f?(e.view=e.view.slice(f.index),e.viewFrom=f.lineN,e.viewTo+=d):qd(a)}else if(c>=e.viewTo){var g=rd(a,b,b,-1);g?(e.view=e.view.slice(0,g.index),e.viewTo=g.lineN):qd(a)}else{var h=rd(a,b,b,-1),i=rd(a,c,c+d,1);h&&i?(e.view=e.view.slice(0,h.index).concat(ub(a,h.lineN,i.lineN)).concat(e.view.slice(i.index)),e.viewTo+=d):qd(a)}var j=e.externalMeasured;j&&(c<j.lineN?j.lineN+=d:b<j.lineN+j.size&&(e.externalMeasured=null))}function pd(a,b,c){a.curOp.viewChanged=!0;var d=a.display,e=a.display.externalMeasured;if(e&&b>=e.lineN&&b<e.lineN+e.size&&(d.externalMeasured=null),!(b<d.viewFrom||b>=d.viewTo)){var f=d.view[xc(a,b)];if(null!=f.node){var g=f.changes||(f.changes=[]);m(g,c)==-1&&g.push(c)}}}function qd(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function rd(a,b,c,d){var e,f=xc(a,b),g=a.display.view;if(!Lg||c==a.doc.first+a.doc.size)return{index:f,lineN:c};for(var h=a.display.viewFrom,i=0;i<f;i++)h+=g[i].size;if(h!=b){if(d>0){if(f==g.length-1)return null;e=h+g[f].size-b,f++}else e=h-b;b+=e,c+=e}for(;ka(a.doc,c)!=c;){if(f==(d<0?0:g.length-1))return null;c+=d*g[f-(d<0?1:0)].size,f+=d}return{index:f,lineN:c}}function sd(a,b,c){var d=a.display,e=d.view;0==e.length||b>=d.viewTo||c<=d.viewFrom?(d.view=ub(a,b,c),d.viewFrom=b):(d.viewFrom>b?d.view=ub(a,b,d.viewFrom).concat(d.view):d.viewFrom<b&&(d.view=d.view.slice(xc(a,b))),d.viewFrom=b,d.viewTo<c?d.view=d.view.concat(ub(a,d.viewTo,c)):d.viewTo>c&&(d.view=d.view.slice(0,xc(a,c)))),d.viewTo=c}function td(a){for(var b=a.display.view,c=0,d=0;d<b.length;d++){var e=b[d];e.hidden||e.node&&!e.changes||++c}return c}function ud(a,b){a.doc.mode.startState&&a.doc.frontier<a.display.viewTo&&a.state.highlight.set(b,i(vd,a))}function vd(a){var b=a.doc;if(b.frontier<b.first&&(b.frontier=b.first),!(b.frontier>=a.display.viewTo)){var c=+new Date+a.options.workTime,d=Xa(b.mode,ab(a,b.frontier)),e=[];b.iter(b.frontier,Math.min(b.first+b.size,a.display.viewTo+500),function(f){if(b.frontier>=a.display.viewFrom){var g=f.styles,h=f.text.length>a.options.maxHighlightLength,i=$a(a,f,h?Xa(b.mode,d):d,!0);f.styles=i.styles;var j=f.styleClasses,k=i.classes;k?f.styleClasses=k:j&&(f.styleClasses=null);for(var l=!g||g.length!=f.styles.length||j!=k&&(!j||!k||j.bgClass!=k.bgClass||j.textClass!=k.textClass),m=0;!l&&m<g.length;++m)l=g[m]!=f.styles[m];l&&e.push(b.frontier),f.stateAfter=h?d:Xa(b.mode,d)}else f.text.length<=a.options.maxHighlightLength&&bb(a,f.text,d),f.stateAfter=b.frontier%5==0?Xa(b.mode,d):null;if(++b.frontier,+new Date>c)return ud(a,a.options.workDelay),!0}),e.length&&kd(a,function(){for(var b=0;b<e.length;b++)pd(a,e[b],"text")})}}function wd(a,b,c){var d=a.display;this.viewport=b,this.visible=Lc(d,a.doc,b),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=Sb(a),this.force=c,this.dims=sc(a),this.events=[]}function xd(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Rb(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Rb(a)+"px",b.scrollbarsClipped=!0)}function yd(a,c){var d=a.display,e=a.doc;if(c.editorIsHidden)return qd(a),!1;if(!c.force&&c.visible.from>=d.viewFrom&&c.visible.to<=d.viewTo&&(null==d.updateLineNumbers||d.updateLineNumbers>=d.viewTo)&&d.renderedView==d.view&&0==td(a))return!1;Ic(a)&&(qd(a),c.dims=sc(a));var g=e.first+e.size,h=Math.max(c.visible.from-a.options.viewportMargin,e.first),i=Math.min(g,c.visible.to+a.options.viewportMargin);d.viewFrom<h&&h-d.viewFrom<20&&(h=Math.max(e.first,d.viewFrom)),d.viewTo>i&&d.viewTo-i<20&&(i=Math.min(g,d.viewTo)),Lg&&(h=ka(a.doc,h),i=la(a.doc,i));var j=h!=d.viewFrom||i!=d.viewTo||d.lastWrapHeight!=c.wrapperHeight||d.lastWrapWidth!=c.wrapperWidth;sd(a,h,i),d.viewOffset=oa(z(a.doc,d.viewFrom)),a.display.mover.style.top=d.viewOffset+"px";var k=td(a);if(!j&&0==k&&!c.force&&d.renderedView==d.view&&(null==d.updateLineNumbers||d.updateLineNumbers>=d.viewTo))return!1;var l=f();return k>4&&(d.lineDiv.style.display="none"),Bd(a,d.updateLineNumbers,c.dims),k>4&&(d.lineDiv.style.display=""),d.renderedView=d.view,l&&f()!=l&&l.offsetHeight&&l.focus(),b(d.cursorDiv),b(d.selectionDiv),d.gutters.style.height=d.sizer.style.minHeight=0,j&&(d.lastWrapHeight=c.wrapperHeight,d.lastWrapWidth=c.wrapperWidth,ud(a,400)),d.updateLineNumbers=null,!0}function zd(a,b){for(var c=b.viewport,d=!0;(d&&a.options.lineWrapping&&b.oldDisplayWidth!=Sb(a)||(c&&null!=c.top&&(c={top:Math.min(a.doc.height+Pb(a.display)-Tb(a),c.top)}),b.visible=Lc(a.display,a.doc,c),!(b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)))&&yd(a,b);d=!1){Jc(a);var e=Rc(a);yc(a),Uc(a,e),Dd(a,e)}b.signal(a,"update",a),a.display.viewFrom==a.display.reportedViewFrom&&a.display.viewTo==a.display.reportedViewTo||(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ad(a,b){var c=new wd(a,b);if(yd(a,c)){Jc(a),zd(a,c);var d=Rc(a);yc(a),Uc(a,d),Dd(a,d),c.finish()}}function Bd(a,c,d){function e(b){var c=b.nextSibling;return ig&&rg&&a.display.currentWheelTarget==b?b.style.display="none":b.parentNode.removeChild(b),c}for(var f=a.display,g=a.options.lineNumbers,h=f.lineDiv,i=h.firstChild,j=f.view,k=f.viewFrom,l=0;l<j.length;l++){var n=j[l];if(n.hidden);else if(n.node&&n.node.parentNode==h){for(;i!=n.node;)i=e(i);var o=g&&null!=c&&c<=k&&n.lineNumber;n.changes&&(m(n.changes,"gutter")>-1&&(o=!1),Ab(a,n,k,d)),o&&(b(n.lineNumber),n.lineNumber.appendChild(document.createTextNode(G(a.options,k)))),i=n.node.nextSibling}else{var p=Ib(a,n,k,d);h.insertBefore(p,i)}k+=n.size}for(;i;)i=e(i)}function Cd(a){var b=a.display.gutters.offsetWidth;a.display.sizer.style.marginLeft=b+"px"}function Dd(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Rb(a)+"px"}function Ed(a){var c=a.display.gutters,e=a.options.gutters;b(c);for(var f=0;f<e.length;++f){var g=e[f],h=c.appendChild(d("div",null,"CodeMirror-gutter "+g));"CodeMirror-linenumbers"==g&&(a.display.lineGutter=h,h.style.width=(a.display.lineNumWidth||1)+"px")}c.style.display=f?"":"none",Cd(a)}function Fd(a){var b=m(a.gutters,"CodeMirror-linenumbers");b==-1&&a.lineNumbers?a.gutters=a.gutters.concat(["CodeMirror-linenumbers"]):b>-1&&!a.lineNumbers&&(a.gutters=a.gutters.slice(0),a.gutters.splice(b,1))}function Gd(a,b){this.ranges=a,this.primIndex=b}function Hd(a,b){this.anchor=a,this.head=b}function Id(a,b){var c=a[b];a.sort(function(a,b){return I(a.from(),b.from())}),b=m(a,c);for(var d=1;d<a.length;d++){var e=a[d],f=a[d-1];if(I(f.to(),e.from())>=0){var g=L(f.from(),e.from()),h=K(f.to(),e.to()),i=f.empty()?e.from()==e.head:f.from()==f.head;d<=b&&--b,a.splice(--d,2,new Hd(i?h:g,i?g:h))}}return new Gd(a,b)}function Jd(a,b){return new Gd([new Hd(a,b||a)],0)}function Kd(a){return a.text?H(a.from.line+a.text.length-1,p(a.text).length+(1==a.text.length?a.from.ch:0)):a.to}function Ld(a,b){if(I(a,b.from)<0)return a;if(I(a,b.to)<=0)return Kd(b);var c=a.line+b.text.length-(b.to.line-b.from.line)-1,d=a.ch;return a.line==b.to.line&&(d+=Kd(b).ch-b.to.ch),H(c,d)}function Md(a,b){for(var c=[],d=0;d<a.sel.ranges.length;d++){var e=a.sel.ranges[d];c.push(new Hd(Ld(e.anchor,b),Ld(e.head,b)))}return Id(c,a.sel.primIndex)}function Nd(a,b,c){return a.line==b.line?H(c.line,a.ch-b.ch+c.ch):H(c.line+(a.line-b.line),a.ch)}function Od(a,b,c){for(var d=[],e=H(a.first,0),f=e,g=0;g<b.length;g++){var h=b[g],i=Nd(h.from,e,f),j=Nd(Kd(h),e,f);if(e=h.to,f=j,"around"==c){var k=a.sel.ranges[g],l=I(k.head,k.anchor)<0;d[g]=new Hd(l?j:i,l?i:j)}else d[g]=new Hd(i,i)}return new Gd(d,a.sel.primIndex)}function Pd(a){a.doc.mode=Va(a.options,a.doc.modeOption),Qd(a)}function Qd(a){a.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null)}),a.doc.frontier=a.doc.first,ud(a,100),a.state.modeGen++,a.curOp&&od(a)}function Rd(a,b){return 0==b.from.ch&&0==b.to.ch&&""==p(b.text)&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Sd(a,b,c,d){function e(a){return c?c[a]:null}function f(a,c,e){jb(a,c,e,d),yb(a,"change",a,b)}function g(a,b){for(var c=[],f=a;f<b;++f)c.push(new ib(j[f],e(f),d));return c}var h=b.from,i=b.to,j=b.text,k=z(a,h.line),l=z(a,i.line),m=p(j),n=e(j.length-1),o=i.line-h.line;if(b.full)a.insert(0,g(0,j.length)),a.remove(j.length,a.size-j.length);else if(Rd(a,b)){var q=g(0,j.length-1);f(l,l.text,n),o&&a.remove(h.line,o),q.length&&a.insert(h.line,q)}else if(k==l)if(1==j.length)f(k,k.text.slice(0,h.ch)+m+k.text.slice(i.ch),n);else{var r=g(1,j.length-1);r.push(new ib(m+k.text.slice(i.ch),n,d)),f(k,k.text.slice(0,h.ch)+j[0],e(0)),a.insert(h.line+1,r)}else if(1==j.length)f(k,k.text.slice(0,h.ch)+j[0]+l.text.slice(i.ch),e(0)),a.remove(h.line+1,o);else{f(k,k.text.slice(0,h.ch)+j[0],e(0)),f(l,m+l.text.slice(i.ch),n);var s=g(1,j.length-1);o>1&&a.remove(h.line+1,o-1),a.insert(h.line+1,s)}yb(a,"change",a,b)}function Td(a,b,c){function d(a,e,f){if(a.linked)for(var g=0;g<a.linked.length;++g){var h=a.linked[g];if(h.doc!=e){var i=f&&h.sharedHist;c&&!i||(b(h.doc,i),d(h.doc,a,i))}}}d(a,null,!0)}function Ud(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,vc(a),Pd(a),a.options.lineWrapping||qa(a),a.options.mode=b.modeOption,od(a)}function Vd(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Wd(a,b){var c={from:J(b.from),
3
+ to:Kd(b),text:A(a,b.from,b.to)};return be(a,c,b.from.line,b.to.line+1),Td(a,function(a){return be(a,c,b.from.line,b.to.line+1)},!0),c}function Xd(a){for(;a.length;){var b=p(a);if(!b.ranges)break;a.pop()}}function Yd(a,b){return b?(Xd(a.done),p(a.done)):a.done.length&&!p(a.done).ranges?p(a.done):a.done.length>1&&!a.done[a.done.length-2].ranges?(a.done.pop(),p(a.done)):void 0}function Zd(a,b,c,d){var e=a.history;e.undone.length=0;var f,g,h=+new Date;if((e.lastOp==d||e.lastOrigin==b.origin&&b.origin&&("+"==b.origin.charAt(0)&&a.cm&&e.lastModTime>h-a.cm.options.historyEventDelay||"*"==b.origin.charAt(0)))&&(f=Yd(e,e.lastOp==d)))g=p(f.changes),0==I(b.from,b.to)&&0==I(b.from,g.to)?g.to=Kd(b):f.changes.push(Wd(a,b));else{var i=p(e.done);for(i&&i.ranges||ae(a.sel,e.done),f={changes:[Wd(a,b)],generation:e.generation},e.done.push(f);e.done.length>e.undoDepth;)e.done.shift(),e.done[0].ranges||e.done.shift()}e.done.push(c),e.generation=++e.maxGeneration,e.lastModTime=e.lastSelTime=h,e.lastOp=e.lastSelOp=d,e.lastOrigin=e.lastSelOrigin=b.origin,g||Ea(a,"historyAdded")}function $d(a,b,c,d){var e=b.charAt(0);return"*"==e||"+"==e&&c.ranges.length==d.ranges.length&&c.somethingSelected()==d.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function _d(a,b,c,d){var e=a.history,f=d&&d.origin;c==e.lastSelOp||f&&e.lastSelOrigin==f&&(e.lastModTime==e.lastSelTime&&e.lastOrigin==f||$d(a,f,p(e.done),b))?e.done[e.done.length-1]=b:ae(b,e.done),e.lastSelTime=+new Date,e.lastSelOrigin=f,e.lastSelOp=c,d&&d.clearRedo!==!1&&Xd(e.undone)}function ae(a,b){var c=p(b);c&&c.ranges&&c.equals(a)||b.push(a)}function be(a,b,c,d){var e=b["spans_"+a.id],f=0;a.iter(Math.max(a.first,c),Math.min(a.first+a.size,d),function(c){c.markedSpans&&((e||(e=b["spans_"+a.id]={}))[f]=c.markedSpans),++f})}function ce(a){if(!a)return null;for(var b,c=0;c<a.length;++c)a[c].marker.explicitlyCleared?b||(b=a.slice(0,c)):b&&b.push(a[c]);return b?b.length?b:null:a}function de(a,b){var c=b["spans_"+a.id];if(!c)return null;for(var d=[],e=0;e<b.text.length;++e)d.push(ce(c[e]));return d}function ee(a,b){var c=de(a,b),d=Y(a,b);if(!c)return d;if(!d)return c;for(var e=0;e<c.length;++e){var f=c[e],g=d[e];if(f&&g)a:for(var h=0;h<g.length;++h){for(var i=g[h],j=0;j<f.length;++j)if(f[j].marker==i.marker)continue a;f.push(i)}else g&&(c[e]=g)}return c}function fe(a,b,c){for(var d=[],e=0;e<a.length;++e){var f=a[e];if(f.ranges)d.push(c?Gd.prototype.deepCopy.call(f):f);else{var g=f.changes,h=[];d.push({changes:h});for(var i=0;i<g.length;++i){var j=g[i],k=void 0;if(h.push({from:j.from,to:j.to,text:j.text}),b)for(var l in j)(k=l.match(/^spans_(\d+)$/))&&m(b,Number(k[1]))>-1&&(p(h)[l]=j[l],delete j[l])}}}return d}function ge(a,b,c,d){if(a.cm&&a.cm.display.shift||a.extend){var e=b.anchor;if(d){var f=I(c,e)<0;f!=I(d,e)<0?(e=c,c=d):f!=I(c,d)<0&&(c=d)}return new Hd(e,c)}return new Hd(d||c,c)}function he(a,b,c,d){ne(a,new Gd([ge(a,a.sel.primary(),b,c)],0),d)}function ie(a,b,c){for(var d=[],e=0;e<a.sel.ranges.length;e++)d[e]=ge(a,a.sel.ranges[e],b[e],null);var f=Id(d,a.sel.primIndex);ne(a,f,c)}function je(a,b,c,d){var e=a.sel.ranges.slice(0);e[b]=c,ne(a,Id(e,a.sel.primIndex),d)}function ke(a,b,c,d){ne(a,Jd(b,c),d)}function le(a,b,c){var d={ranges:b.ranges,update:function(b){var c=this;this.ranges=[];for(var d=0;d<b.length;d++)c.ranges[d]=new Hd(N(a,b[d].anchor),N(a,b[d].head))},origin:c&&c.origin};return Ea(a,"beforeSelectionChange",a,d),a.cm&&Ea(a.cm,"beforeSelectionChange",a.cm,d),d.ranges!=b.ranges?Id(d.ranges,d.ranges.length-1):b}function me(a,b,c){var d=a.history.done,e=p(d);e&&e.ranges?(d[d.length-1]=b,oe(a,b,c)):ne(a,b,c)}function ne(a,b,c){oe(a,b,c),_d(a,a.sel,a.cm?a.cm.curOp.id:NaN,c)}function oe(a,b,c){(Ha(a,"beforeSelectionChange")||a.cm&&Ha(a.cm,"beforeSelectionChange"))&&(b=le(a,b,c));var d=c&&c.bias||(I(b.primary().head,a.sel.primary().head)<0?-1:1);pe(a,re(a,b,d,!0)),c&&c.scroll===!1||!a.cm||ad(a.cm)}function pe(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=a.cm.curOp.selectionChanged=!0,Ga(a.cm)),yb(a,"cursorActivity",a))}function qe(a){pe(a,re(a,a.sel,null,!1),Eg)}function re(a,b,c,d){for(var e,f=0;f<b.ranges.length;f++){var g=b.ranges[f],h=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[f],i=te(a,g.anchor,h&&h.anchor,c,d),j=te(a,g.head,h&&h.head,c,d);(e||i!=g.anchor||j!=g.head)&&(e||(e=b.ranges.slice(0,f)),e[f]=new Hd(i,j))}return e?Id(e,b.primIndex):b}function se(a,b,c,d,e){var f=z(a,b.line);if(f.markedSpans)for(var g=0;g<f.markedSpans.length;++g){var h=f.markedSpans[g],i=h.marker;if((null==h.from||(i.inclusiveLeft?h.from<=b.ch:h.from<b.ch))&&(null==h.to||(i.inclusiveRight?h.to>=b.ch:h.to>b.ch))){if(e&&(Ea(i,"beforeCursorEnter"),i.explicitlyCleared)){if(f.markedSpans){--g;continue}break}if(!i.atomic)continue;if(c){var j=i.find(d<0?1:-1),k=void 0;if((d<0?i.inclusiveRight:i.inclusiveLeft)&&(j=ue(a,j,-d,j&&j.line==b.line?f:null)),j&&j.line==b.line&&(k=I(j,c))&&(d<0?k<0:k>0))return se(a,j,b,d,e)}var l=i.find(d<0?-1:1);return(d<0?i.inclusiveLeft:i.inclusiveRight)&&(l=ue(a,l,d,l.line==b.line?f:null)),l?se(a,l,b,d,e):null}}return b}function te(a,b,c,d,e){var f=d||1,g=se(a,b,c,f,e)||!e&&se(a,b,c,f,!0)||se(a,b,c,-f,e)||!e&&se(a,b,c,-f,!0);return g?g:(a.cantEdit=!0,H(a.first,0))}function ue(a,b,c,d){return c<0&&0==b.ch?b.line>a.first?N(a,H(b.line-1)):null:c>0&&b.ch==(d||z(a,b.line)).text.length?b.line<a.first+a.size-1?H(b.line+1,0):null:new H(b.line,b.ch+c)}function ve(a){a.setSelection(H(a.firstLine(),0),H(a.lastLine()),Eg)}function we(a,b,c){var d={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return d.canceled=!0}};return c&&(d.update=function(b,c,e,f){b&&(d.from=N(a,b)),c&&(d.to=N(a,c)),e&&(d.text=e),void 0!==f&&(d.origin=f)}),Ea(a,"beforeChange",a,d),a.cm&&Ea(a.cm,"beforeChange",a.cm,d),d.canceled?null:{from:d.from,to:d.to,text:d.text,origin:d.origin}}function xe(a,b,c){if(a.cm){if(!a.cm.curOp)return ld(a.cm,xe)(a,b,c);if(a.cm.state.suppressEdits)return}if(!(Ha(a,"beforeChange")||a.cm&&Ha(a.cm,"beforeChange"))||(b=we(a,b,!0))){var d=Kg&&!c&&$(a,b.from,b.to);if(d)for(var e=d.length-1;e>=0;--e)ye(a,{from:d[e].from,to:d[e].to,text:e?[""]:b.text});else ye(a,b)}}function ye(a,b){if(1!=b.text.length||""!=b.text[0]||0!=I(b.from,b.to)){var c=Md(a,b);Zd(a,b,c,a.cm?a.cm.curOp.id:NaN),Be(a,b,c,Y(a,b));var d=[];Td(a,function(a,c){c||m(d,a.history)!=-1||(Ge(a.history,b),d.push(a.history)),Be(a,b,null,Y(a,b))})}}function ze(a,b,c){if(!a.cm||!a.cm.state.suppressEdits||c){for(var d,e=a.history,f=a.sel,g="undo"==b?e.done:e.undone,h="undo"==b?e.undone:e.done,i=0;i<g.length&&(d=g[i],c?!d.ranges||d.equals(a.sel):d.ranges);i++);if(i!=g.length){for(e.lastOrigin=e.lastSelOrigin=null;d=g.pop(),d.ranges;){if(ae(d,h),c&&!d.equals(a.sel))return void ne(a,d,{clearRedo:!1});f=d}var j=[];ae(f,h),h.push({changes:j,generation:e.generation}),e.generation=d.generation||++e.maxGeneration;for(var k=Ha(a,"beforeChange")||a.cm&&Ha(a.cm,"beforeChange"),l=function(c){var e=d.changes[c];if(e.origin=b,k&&!we(a,e,!1))return g.length=0,{};j.push(Wd(a,e));var f=c?Md(a,e):p(g);Be(a,e,f,ee(a,e)),!c&&a.cm&&a.cm.scrollIntoView({from:e.from,to:Kd(e)});var h=[];Td(a,function(a,b){b||m(h,a.history)!=-1||(Ge(a.history,e),h.push(a.history)),Be(a,e,null,ee(a,e))})},n=d.changes.length-1;n>=0;--n){var o=l(n);if(o)return o.v}}}}function Ae(a,b){if(0!=b&&(a.first+=b,a.sel=new Gd(q(a.sel.ranges,function(a){return new Hd(H(a.anchor.line+b,a.anchor.ch),H(a.head.line+b,a.head.ch))}),a.sel.primIndex),a.cm)){od(a.cm,a.first,a.first-b,b);for(var c=a.cm.display,d=c.viewFrom;d<c.viewTo;d++)pd(a.cm,d,"gutter")}}function Be(a,b,c,d){if(a.cm&&!a.cm.curOp)return ld(a.cm,Be)(a,b,c,d);if(b.to.line<a.first)return void Ae(a,b.text.length-1-(b.to.line-b.from.line));if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var e=b.text.length-1-(a.first-b.from.line);Ae(a,e),b={from:H(a.first,0),to:H(b.to.line+e,b.to.ch),text:[p(b.text)],origin:b.origin}}var f=a.lastLine();b.to.line>f&&(b={from:b.from,to:H(f,z(a,f).text.length),text:[b.text[0]],origin:b.origin}),b.removed=A(a,b.from,b.to),c||(c=Md(a,b)),a.cm?Ce(a.cm,b,d):Sd(a,b,d),oe(a,c,Eg)}}function Ce(a,b,c){var d=a.doc,e=a.display,f=b.from,g=b.to,h=!1,i=f.line;a.options.lineWrapping||(i=D(ia(z(d,f.line))),d.iter(i,g.line+1,function(a){if(a==e.maxLine)return h=!0,!0})),d.sel.contains(b.from,b.to)>-1&&Ga(a),Sd(d,b,c,uc(a)),a.options.lineWrapping||(d.iter(i,f.line+b.text.length,function(a){var b=pa(a);b>e.maxLineLength&&(e.maxLine=a,e.maxLineLength=b,e.maxLineChanged=!0,h=!1)}),h&&(a.curOp.updateMaxLine=!0)),d.frontier=Math.min(d.frontier,f.line),ud(a,400);var j=b.text.length-(g.line-f.line)-1;b.full?od(a):f.line!=g.line||1!=b.text.length||Rd(a.doc,b)?od(a,f.line,g.line+1,j):pd(a,f.line,"text");var k=Ha(a,"changes"),l=Ha(a,"change");if(l||k){var m={from:f,to:g,text:b.text,removed:b.removed,origin:b.origin};l&&yb(a,"change",a,m),k&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(m)}a.display.selForContextMenu=null}function De(a,b,c,d,e){if(d||(d=c),I(d,c)<0){var f=d;d=c,c=f}"string"==typeof b&&(b=a.splitLines(b)),xe(a,{from:c,to:d,text:b,origin:e})}function Ee(a,b,c,d){c<a.line?a.line+=d:b<a.line&&(a.line=b,a.ch=0)}function Fe(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e],g=!0;if(f.ranges){f.copied||(f=a[e]=f.deepCopy(),f.copied=!0);for(var h=0;h<f.ranges.length;h++)Ee(f.ranges[h].anchor,b,c,d),Ee(f.ranges[h].head,b,c,d)}else{for(var i=0;i<f.changes.length;++i){var j=f.changes[i];if(c<j.from.line)j.from=H(j.from.line+d,j.from.ch),j.to=H(j.to.line+d,j.to.ch);else if(b<=j.to.line){g=!1;break}}g||(a.splice(0,e+1),e=0)}}}function Ge(a,b){var c=b.from.line,d=b.to.line,e=b.text.length-(d-c)-1;Fe(a.done,c,d,e),Fe(a.undone,c,d,e)}function He(a,b,c,d){var e=b,f=b;return"number"==typeof b?f=z(a,M(a,b)):e=D(b),null==e?null:(d(f,e)&&a.cm&&pd(a.cm,e,c),f)}function Ie(a){var b=this;this.lines=a,this.parent=null;for(var c=0,d=0;d<a.length;++d)a[d].parent=b,c+=a[d].height;this.height=c}function Je(a){var b=this;this.children=a;for(var c=0,d=0,e=0;e<a.length;++e){var f=a[e];c+=f.chunkSize(),d+=f.height,f.parent=b}this.size=c,this.height=d,this.parent=null}function Ke(a,b,c){var d=this;if(c)for(var e in c)c.hasOwnProperty(e)&&(d[e]=c[e]);this.doc=a,this.node=b}function Le(a,b,c){oa(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&_c(a,null,c)}function Me(a,b,c,d){var e=new Ke(a,c,d),f=a.cm;return f&&e.noHScroll&&(f.display.alignWidgets=!0),He(a,b,"widget",function(b){var c=b.widgets||(b.widgets=[]);if(null==e.insertAt?c.push(e):c.splice(Math.min(c.length-1,Math.max(0,e.insertAt)),0,e),e.line=b,f&&!ma(a,b)){var d=oa(b)<a.scrollTop;C(b,b.height+Mb(e)),d&&_c(f,null,e.height),f.curOp.forceUpdate=!0}return!0}),e}function Ne(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++hh}function Oe(a,b,c,e,f){if(e&&e.shared)return Qe(a,b,c,e,f);if(a.cm&&!a.cm.curOp)return ld(a.cm,Oe)(a,b,c,e,f);var g=new Ne(a,f),h=I(b,c);if(e&&j(e,g,!1),h>0||0==h&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=d("span",[g.replacedWith],"CodeMirror-widget"),e.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),e.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(ha(a,b.line,b,c,g)||b.line!=c.line&&ha(a,c.line,b,c,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");R()}g.addToHistory&&Zd(a,{from:b,to:c,origin:"markText"},a.sel,NaN);var i,k=b.line,l=a.cm;if(a.iter(k,c.line+1,function(a){l&&g.collapsed&&!l.options.lineWrapping&&ia(a)==l.display.maxLine&&(i=!0),g.collapsed&&k!=b.line&&C(a,0),V(a,new S(g,k==b.line?b.ch:null,k==c.line?c.ch:null)),++k}),g.collapsed&&a.iter(b.line,c.line+1,function(b){ma(a,b)&&C(b,0)}),g.clearOnEnter&&Pg(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Q(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),g.collapsed&&(g.id=++hh,g.atomic=!0),l){if(i&&(l.curOp.updateMaxLine=!0),g.collapsed)od(l,b.line,c.line+1);else if(g.className||g.title||g.startStyle||g.endStyle||g.css)for(var m=b.line;m<=c.line;m++)pd(l,m,"text");g.atomic&&qe(l.doc),yb(l,"markerAdded",l,g)}return g}function Pe(a,b){var c=this;this.markers=a,this.primary=b;for(var d=0;d<a.length;++d)a[d].parent=c}function Qe(a,b,c,d,e){d=j(d),d.shared=!1;var f=[Oe(a,b,c,d,e)],g=f[0],h=d.widgetNode;return Td(a,function(a){h&&(d.widgetNode=h.cloneNode(!0)),f.push(Oe(a,N(a,b),N(a,c),d,e));for(var i=0;i<a.linked.length;++i)if(a.linked[i].isParent)return;g=p(f)}),new Pe(f,g)}function Re(a){return a.findMarks(H(a.first,0),a.clipPos(H(a.lastLine())),function(a){return a.parent})}function Se(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d.find(),f=a.clipPos(e.from),g=a.clipPos(e.to);if(I(f,g)){var h=Oe(a,f,g,d.primary,d.primary.type);d.markers.push(h),h.parent=d}}}function Te(a){for(var b=function(b){var c=a[b],d=[c.primary.doc];Td(c.primary.doc,function(a){return d.push(a)});for(var e=0;e<c.markers.length;e++){var f=c.markers[e];m(d,f.doc)==-1&&(f.parent=null,c.markers.splice(e--,1))}},c=0;c<a.length;c++)b(c)}function Ue(a){var b=this;if(Xe(b),!Fa(b,a)&&!Nb(b.display,a)){Ja(a),gg&&(kh=+new Date);var c=wc(b,a,!0),d=a.dataTransfer.files;if(c&&!b.isReadOnly())if(d&&d.length&&window.FileReader&&window.File)for(var e=d.length,f=Array(e),g=0,h=function(a,d){if(!b.options.allowDropFileTypes||m(b.options.allowDropFileTypes,a.type)!=-1){var h=new FileReader;h.onload=ld(b,function(){var a=h.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(a)&&(a=""),f[d]=a,++g==e){c=N(b.doc,c);var i={from:c,to:c,text:b.doc.splitLines(f.join(b.doc.lineSeparator())),origin:"paste"};xe(b.doc,i),me(b.doc,Jd(c,Kd(i)))}}),h.readAsText(a)}},i=0;i<e;++i)h(d[i],i);else{if(b.state.draggingText&&b.doc.sel.contains(c)>-1)return b.state.draggingText(a),void setTimeout(function(){return b.display.input.focus()},20);try{var j=a.dataTransfer.getData("Text");if(j){var k;if(b.state.draggingText&&!b.state.draggingText.copy&&(k=b.listSelections()),oe(b.doc,Jd(c,c)),k)for(var l=0;l<k.length;++l)De(b.doc,"",k[l].anchor,k[l].head,"drag");b.replaceSelection(j,"around","paste"),b.display.input.focus()}}catch(a){}}}}function Ve(a,b){if(gg&&(!a.state.draggingText||+new Date-kh<100))return void Ma(b);if(!Fa(a,b)&&!Nb(a.display,b)&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!mg)){var c=d("img",null,null,"position: fixed; left: 0; top: 0;");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",lg&&(c.width=c.height=1,a.display.wrapper.appendChild(c),c._top=c.offsetTop),b.dataTransfer.setDragImage(c,0,0),lg&&c.parentNode.removeChild(c)}}function We(a,b){var e=wc(a,b);if(e){var f=document.createDocumentFragment();Ac(a,e,f),a.display.dragCursor||(a.display.dragCursor=d("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),c(a.display.dragCursor,f)}}function Xe(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Ye(a){if(document.body.getElementsByClassName)for(var b=document.body.getElementsByClassName("CodeMirror"),c=0;c<b.length;c++){var d=b[c].CodeMirror;d&&a(d)}}function Ze(){lh||($e(),lh=!0)}function $e(){var a;Pg(window,"resize",function(){null==a&&(a=setTimeout(function(){a=null,Ye(_e)},100))}),Pg(window,"blur",function(){return Ye(Gc)})}function _e(a){var b=a.display;b.lastWrapHeight==b.wrapper.clientHeight&&b.lastWrapWidth==b.wrapper.clientWidth||(b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize())}function af(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var c,d,e,f,g=0;g<b.length-1;g++){var h=b[g];if(/^(cmd|meta|m)$/i.test(h))f=!0;else if(/^a(lt)?$/i.test(h))c=!0;else if(/^(c|ctrl|control)$/i.test(h))d=!0;else{if(!/^s(hift)?$/i.test(h))throw new Error("Unrecognized modifier name: "+h);e=!0}}return c&&(a="Alt-"+a),d&&(a="Ctrl-"+a),f&&(a="Cmd-"+a),e&&(a="Shift-"+a),a}function bf(a){var b={};for(var c in a)if(a.hasOwnProperty(c)){var d=a[c];if(/^(name|fallthrough|(de|at)tach)$/.test(c))continue;if("..."==d){delete a[c];continue}for(var e=q(c.split(" "),af),f=0;f<e.length;f++){var g=void 0,h=void 0;f==e.length-1?(h=e.join(" "),g=d):(h=e.slice(0,f+1).join(" "),g="...");var i=b[h];if(i){if(i!=g)throw new Error("Inconsistent bindings for "+h)}else b[h]=g}delete a[c]}for(var j in b)a[j]=b[j];return a}function cf(a,b,c,d){b=ff(b);var e=b.call?b.call(a,d):b[a];if(e===!1)return"nothing";if("..."===e)return"multi";if(null!=e&&c(e))return"handled";if(b.fallthrough){if("[object Array]"!=Object.prototype.toString.call(b.fallthrough))return cf(a,b.fallthrough,c,d);for(var f=0;f<b.fallthrough.length;f++){var g=cf(a,b.fallthrough[f],c,d);if(g)return g}}}function df(a){var b="string"==typeof a?a:mh[a.keyCode];return"Ctrl"==b||"Alt"==b||"Shift"==b||"Mod"==b}function ef(a,b){if(lg&&34==a.keyCode&&a["char"])return!1;var c=mh[a.keyCode],d=c;return null!=d&&!a.altGraphKey&&(a.altKey&&"Alt"!=c&&(d="Alt-"+d),(wg?a.metaKey:a.ctrlKey)&&"Ctrl"!=c&&(d="Ctrl-"+d),(wg?a.ctrlKey:a.metaKey)&&"Cmd"!=c&&(d="Cmd-"+d),!b&&a.shiftKey&&"Shift"!=c&&(d="Shift-"+d),d)}function ff(a){return"string"==typeof a?qh[a]:a}function gf(a,b){for(var c=a.doc.sel.ranges,d=[],e=0;e<c.length;e++){for(var f=b(c[e]);d.length&&I(f.from,p(d).to)<=0;){var g=d.pop();if(I(g.from,f.from)<0){f.from=g.from;break}}d.push(f)}kd(a,function(){for(var b=d.length-1;b>=0;b--)De(a.doc,"",d[b].from,d[b].to,"+delete");ad(a)})}function hf(a,b){var c=z(a.doc,b),d=ia(c);d!=c&&(b=D(d));var e=Ba(d),f=e?e[0].level%2?va(d):ua(d):0;return H(b,f)}function jf(a,b){for(var c,d=z(a.doc,b);c=ga(d);)d=c.find(1,!0).line,b=null;var e=Ba(d),f=e?e[0].level%2?ua(d):va(d):d.text.length;return H(null==b?D(d):b,f)}function kf(a,b){var c=hf(a,b.line),d=z(a.doc,c.line),e=Ba(d);if(!e||0==e[0].level){var f=Math.max(0,d.text.search(/\S/)),g=b.line==c.line&&b.ch<=f&&b.ch;return H(c.line,g?0:f)}return c}function lf(a,b,c){if("string"==typeof b&&(b=th[b],!b))return!1;a.display.input.ensurePolled();var d=a.display.shift,e=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),c&&(a.display.shift=!1),e=b(a)!=Dg}finally{a.display.shift=d,a.state.suppressEdits=!1}return e}function mf(a,b,c){for(var d=0;d<a.state.keyMaps.length;d++){var e=cf(b,a.state.keyMaps[d],c,a);if(e)return e}return a.options.extraKeys&&cf(b,a.options.extraKeys,c,a)||cf(b,a.options.keyMap,c,a)}function nf(a,b,c,d){var e=a.state.keySeq;if(e){if(df(b))return"handled";uh.set(50,function(){a.state.keySeq==e&&(a.state.keySeq=null,a.display.input.reset())}),b=e+" "+b}var f=mf(a,b,d);return"multi"==f&&(a.state.keySeq=b),"handled"==f&&yb(a,"keyHandled",a,b,c),"handled"!=f&&"multi"!=f||(Ja(c),Cc(a)),e&&!f&&/\'$/.test(b)?(Ja(c),!0):!!f}function of(a,b){var c=ef(b,!0);return!!c&&(b.shiftKey&&!a.state.keySeq?nf(a,"Shift-"+c,b,function(b){return lf(a,b,!0)})||nf(a,c,b,function(b){if("string"==typeof b?/^go[A-Z]/.test(b):b.motion)return lf(a,b)}):nf(a,c,b,function(b){return lf(a,b)}))}function pf(a,b,c){return nf(a,"'"+c+"'",b,function(b){return lf(a,b,!0)})}function qf(a){var b=this;if(b.curOp.focus=f(),!Fa(b,a)){gg&&hg<11&&27==a.keyCode&&(a.returnValue=!1);var c=a.keyCode;b.display.shift=16==c||a.shiftKey;var d=of(b,a);lg&&(vh=d?c:null,!d&&88==c&&!Tg&&(rg?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),18!=c||/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)||rf(b)}}function rf(a){function b(a){18!=a.keyCode&&a.altKey||(yg(c,"CodeMirror-crosshair"),Da(document,"keyup",b),Da(document,"mouseover",b))}var c=a.display.lineDiv;g(c,"CodeMirror-crosshair"),Pg(document,"keyup",b),Pg(document,"mouseover",b)}function sf(a){16==a.keyCode&&(this.doc.sel.shift=!1),Fa(this,a)}function tf(a){var b=this;if(!(Nb(b.display,a)||Fa(b,a)||a.ctrlKey&&!a.altKey||rg&&a.metaKey)){var c=a.keyCode,d=a.charCode;if(lg&&c==vh)return vh=null,void Ja(a);if(!lg||a.which&&!(a.which<10)||!of(b,a)){var e=String.fromCharCode(null==d?c:d);"\b"!=e&&(pf(b,a,e)||b.display.input.onKeyPress(a))}}}function uf(a){var b=this,c=b.display;if(!(Fa(b,a)||c.activeTouch&&c.input.supportsTouch())){if(c.input.ensurePolled(),c.shift=a.shiftKey,Nb(c,a))return void(ig||(c.scroller.draggable=!1,setTimeout(function(){return c.scroller.draggable=!0},100)));if(!zf(b,a)){var d=wc(b,a);switch(window.focus(),Oa(a)){case 1:b.state.selectingText?b.state.selectingText(a):d?vf(b,a,d):Na(a)==c.scroller&&Ja(a);break;case 2:ig&&(b.state.lastMiddleDown=+new Date),d&&he(b.doc,d),setTimeout(function(){return c.input.focus()},20),Ja(a);break;case 3:xg?Af(b,a):Ec(b)}}}}function vf(a,b,c){gg?setTimeout(i(Dc,a),0):a.curOp.focus=f();var d,e=+new Date;sh&&sh.time>e-400&&0==I(sh.pos,c)?d="triple":rh&&rh.time>e-400&&0==I(rh.pos,c)?(d="double",sh={time:e,pos:c}):(d="single",rh={time:e,pos:c});var g,h=a.doc.sel,j=rg?b.metaKey:b.ctrlKey;a.options.dragDrop&&Qg&&!a.isReadOnly()&&"single"==d&&(g=h.contains(c))>-1&&(I((g=h.ranges[g]).from(),c)<0||c.xRel>0)&&(I(g.to(),c)>0||c.xRel<0)?wf(a,b,c,j):xf(a,b,c,d,j)}function wf(a,b,c,d){var e=a.display,f=+new Date,g=ld(a,function(h){ig&&(e.scroller.draggable=!1),a.state.draggingText=!1,Da(document,"mouseup",g),Da(e.scroller,"drop",g),Math.abs(b.clientX-h.clientX)+Math.abs(b.clientY-h.clientY)<10&&(Ja(h),!d&&+new Date-200<f&&he(a.doc,c),ig||gg&&9==hg?setTimeout(function(){document.body.focus(),e.input.focus()},20):e.input.focus())});ig&&(e.scroller.draggable=!0),a.state.draggingText=g,g.copy=rg?b.altKey:b.ctrlKey,e.scroller.dragDrop&&e.scroller.dragDrop(),Pg(document,"mouseup",g),Pg(e.scroller,"drop",g)}function xf(a,b,c,d,e){function g(b){if(0!=I(t,b))if(t=b,"rect"==d){for(var e=[],f=a.options.tabSize,g=k(z(l,c.line).text,c.ch,f),h=k(z(l,b.line).text,b.ch,f),i=Math.min(g,h),j=Math.max(g,h),q=Math.min(c.line,b.line),r=Math.min(a.lastLine(),Math.max(c.line,b.line));q<=r;q++){var s=z(l,q).text,u=n(s,i,f);i==j?e.push(new Hd(H(q,u),H(q,u))):s.length>u&&e.push(new Hd(H(q,u),H(q,n(s,j,f))))}e.length||e.push(new Hd(c,c)),ne(l,Id(p.ranges.slice(0,o).concat(e),o),{origin:"*mouse",scroll:!1}),a.scrollIntoView(b)}else{var v=m,w=v.anchor,x=b;if("single"!=d){var y;y="double"==d?a.findWordAt(b):new Hd(H(b.line,0),N(l,H(b.line+1,0))),I(y.anchor,w)>0?(x=y.head,w=L(v.from(),y.anchor)):(x=y.anchor,w=K(v.to(),y.head))}var A=p.ranges.slice(0);A[o]=new Hd(N(l,w),x),ne(l,Id(A,o),Fg)}}function h(b){var c=++v,e=wc(a,b,!0,"rect"==d);if(e)if(0!=I(e,t)){a.curOp.focus=f(),g(e);var i=Lc(j,l);(e.line>=i.to||e.line<i.from)&&setTimeout(ld(a,function(){v==c&&h(b)}),150)}else{var k=b.clientY<u.top?-20:b.clientY>u.bottom?20:0;k&&setTimeout(ld(a,function(){v==c&&(j.scroller.scrollTop+=k,h(b))}),50)}}function i(b){a.state.selectingText=!1,v=1/0,Ja(b),j.input.focus(),Da(document,"mousemove",w),Da(document,"mouseup",x),l.history.lastSelOrigin=null}var j=a.display,l=a.doc;Ja(b);var m,o,p=l.sel,q=p.ranges;if(e&&!b.shiftKey?(o=l.sel.contains(c),m=o>-1?q[o]:new Hd(c,c)):(m=l.sel.primary(),o=l.sel.primIndex),sg?b.shiftKey&&b.metaKey:b.altKey)d="rect",e||(m=new Hd(c,c)),c=wc(a,b,!0,!0),o=-1;else if("double"==d){var r=a.findWordAt(c);m=a.display.shift||l.extend?ge(l,m,r.anchor,r.head):r}else if("triple"==d){var s=new Hd(H(c.line,0),N(l,H(c.line+1,0)));m=a.display.shift||l.extend?ge(l,m,s.anchor,s.head):s}else m=ge(l,m,c);e?o==-1?(o=q.length,ne(l,Id(q.concat([m]),o),{scroll:!1,origin:"*mouse"})):q.length>1&&q[o].empty()&&"single"==d&&!b.shiftKey?(ne(l,Id(q.slice(0,o).concat(q.slice(o+1)),0),{scroll:!1,origin:"*mouse"}),p=l.sel):je(l,o,m,Fg):(o=0,ne(l,new Gd([m],0),Fg),p=l.sel);var t=c,u=j.wrapper.getBoundingClientRect(),v=0,w=ld(a,function(a){Oa(a)?h(a):i(a)}),x=ld(a,i);a.state.selectingText=x,Pg(document,"mousemove",w),Pg(document,"mouseup",x)}function yf(a,b,c,d){var e,f;try{e=b.clientX,f=b.clientY}catch(b){return!1}if(e>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&Ja(b);var g=a.display,h=g.lineDiv.getBoundingClientRect();if(f>h.bottom||!Ha(a,c))return La(b);f-=h.top-g.viewOffset;for(var i=0;i<a.options.gutters.length;++i){var j=g.gutters.childNodes[i];if(j&&j.getBoundingClientRect().right>=e){var k=E(a.doc,f),l=a.options.gutters[i];return Ea(a,c,a,k,l,b),La(b)}}}function zf(a,b){return yf(a,b,"gutterClick",!0)}function Af(a,b){Nb(a.display,b)||Bf(a,b)||Fa(a,b,"contextmenu")||a.display.input.onContextMenu(b)}function Bf(a,b){return!!Ha(a,"gutterContextMenu")&&yf(a,b,"gutterContextMenu",!1)}function Cf(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fc(a)}function Df(a){function b(b,d,e,f){a.defaults[b]=d,e&&(c[b]=f?function(a,b,c){c!=wh&&e(a,b,c)}:e)}var c=a.optionHandlers;a.defineOption=b,a.Init=wh,b("value","",function(a,b){return a.setValue(b)},!0),b("mode",null,function(a,b){a.doc.modeOption=b,Pd(a)},!0),b("indentUnit",2,Pd,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(a){Qd(a),fc(a),od(a)},!0),b("lineSeparator",null,function(a,b){if(a.doc.lineSep=b,b){var c=[],d=a.doc.first;a.doc.iter(function(a){for(var e=0;;){var f=a.text.indexOf(b,e);if(f==-1)break;e=f+b.length,c.push(H(d,f))}d++});for(var e=c.length-1;e>=0;e--)De(a.doc,b,c[e],H(c[e].line,c[e].ch+b.length))}}),b("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(a,b,c){a.state.specialChars=new RegExp(b.source+(b.test("\t")?"":"|\t"),"g"),c!=wh&&a.refresh()}),b("specialCharPlaceholder",nb,function(a){return a.refresh()},!0),b("electricChars",!0),b("inputStyle",qg?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(a,b){return a.getInputField().spellcheck=b},!0),b("rtlMoveVisually",!tg),b("wholeLineUpdateBefore",!0),b("theme","default",function(a){Cf(a),Ef(a)},!0),b("keyMap","default",function(a,b,c){var d=ff(b),e=c!=wh&&ff(c);e&&e.detach&&e.detach(a,d),d.attach&&d.attach(a,e||null)}),b("extraKeys",null),b("lineWrapping",!1,Gf,!0),b("gutters",[],function(a){Fd(a.options),Ef(a)},!0),b("fixedGutter",!0,function(a,b){a.display.gutters.style.left=b?tc(a.display)+"px":"0",a.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(a){return Uc(a)},!0),b("scrollbarStyle","native",function(a){Wc(a),Uc(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),b("lineNumbers",!1,function(a){Fd(a.options),Ef(a)},!0),b("firstLineNumber",1,Ef,!0),b("lineNumberFormatter",function(a){return a},Ef,!0),b("showCursorWhenSelecting",!1,yc,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("readOnly",!1,function(a,b){"nocursor"==b?(Gc(a),a.display.input.blur(),a.display.disabled=!0):a.display.disabled=!1,a.display.input.readOnlyChanged(b)}),b("disableInput",!1,function(a,b){b||a.display.input.reset()},!0),b("dragDrop",!0,Ff),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,yc,!0),b("singleCursorHeightPerLine",!0,yc,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,Qd,!0),b("addModeClass",!1,Qd,!0),b("pollInterval",100),b("undoDepth",200,function(a,b){return a.doc.history.undoDepth=b}),b("historyEventDelay",1250),b("viewportMargin",10,function(a){return a.refresh()},!0),b("maxHighlightLength",1e4,Qd,!0),b("moveInputWithCursor",!0,function(a,b){b||a.display.input.resetPosition()}),b("tabindex",null,function(a,b){return a.display.input.getField().tabIndex=b||""}),b("autofocus",null)}function Ef(a){Ed(a),od(a),setTimeout(function(){return Hc(a)},20)}function Ff(a,b,c){var d=c&&c!=wh;if(!b!=!d){var e=a.display.dragFunctions,f=b?Pg:Da;f(a.display.scroller,"dragstart",e.start),f(a.display.scroller,"dragenter",e.enter),f(a.display.scroller,"dragover",e.over),f(a.display.scroller,"dragleave",e.leave),f(a.display.scroller,"drop",e.drop)}}function Gf(a){a.options.lineWrapping?(g(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(yg(a.display.wrapper,"CodeMirror-wrap"),qa(a)),vc(a),od(a),fc(a),setTimeout(function(){return Uc(a)},100)}function Hf(a,b){var c=this;if(!(this instanceof Hf))return new Hf(a,b);this.options=b=b?j(b):{},j(xh,b,!1),Fd(b);var d=b.value;"string"==typeof d&&(d=new jh(d,b.mode,null,b.lineSeparator)),this.doc=d;var e=new Hf.inputStyles[b.inputStyle](this),f=this.display=new y(a,d,e);f.wrapper.CodeMirror=this,Ed(this),Cf(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),b.autofocus&&!qg&&f.input.focus(),Wc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new l,keySeq:null,specialChars:null},gg&&hg<11&&setTimeout(function(){return c.display.input.reset(!0)},20),If(this),Ze(),cd(this),this.curOp.forceUpdate=!0,Ud(this,d),b.autofocus&&!qg||this.hasFocus()?setTimeout(i(Fc,this),20):Gc(this);for(var g in yh)yh.hasOwnProperty(g)&&yh[g](c,b[g],wh);Ic(this),b.finishInit&&b.finishInit(this);for(var h=0;h<zh.length;++h)zh[h](c);dd(this),ig&&b.lineWrapping&&"optimizelegibility"==getComputedStyle(f.lineDiv).textRendering&&(f.lineDiv.style.textRendering="auto")}function If(a){function b(){e.activeTouch&&(f=setTimeout(function(){return e.activeTouch=null},1e3),g=e.activeTouch,g.end=+new Date)}function c(a){if(1!=a.touches.length)return!1;var b=a.touches[0];return b.radiusX<=1&&b.radiusY<=1}function d(a,b){if(null==b.left)return!0;var c=b.left-a.left,d=b.top-a.top;return c*c+d*d>400}var e=a.display;Pg(e.scroller,"mousedown",ld(a,uf)),gg&&hg<11?Pg(e.scroller,"dblclick",ld(a,function(b){if(!Fa(a,b)){var c=wc(a,b);if(c&&!zf(a,b)&&!Nb(a.display,b)){Ja(b);var d=a.findWordAt(c);he(a.doc,d.anchor,d.head)}}})):Pg(e.scroller,"dblclick",function(b){return Fa(a,b)||Ja(b)}),xg||Pg(e.scroller,"contextmenu",function(b){return Af(a,b)});var f,g={end:0};Pg(e.scroller,"touchstart",function(b){if(!Fa(a,b)&&!c(b)){e.input.ensurePolled(),clearTimeout(f);var d=+new Date;e.activeTouch={start:d,moved:!1,prev:d-g.end<=300?g:null},1==b.touches.length&&(e.activeTouch.left=b.touches[0].pageX,e.activeTouch.top=b.touches[0].pageY)}}),Pg(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),Pg(e.scroller,"touchend",function(c){var f=e.activeTouch;if(f&&!Nb(e,c)&&null!=f.left&&!f.moved&&new Date-f.start<300){var g,h=a.coordsChar(e.activeTouch,"page");g=!f.prev||d(f,f.prev)?new Hd(h,h):!f.prev.prev||d(f,f.prev.prev)?a.findWordAt(h):new Hd(H(h.line,0),N(a.doc,H(h.line+1,0))),a.setSelection(g.anchor,g.head),a.focus(),Ja(c)}b()}),Pg(e.scroller,"touchcancel",b),Pg(e.scroller,"scroll",function(){e.scroller.clientHeight&&(Mc(a,e.scroller.scrollTop),Nc(a,e.scroller.scrollLeft,!0),Ea(a,"scroll",a))}),Pg(e.scroller,"mousewheel",function(b){return Qc(a,b)}),Pg(e.scroller,"DOMMouseScroll",function(b){return Qc(a,b)}),Pg(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(b){Fa(a,b)||Ma(b)},over:function(b){Fa(a,b)||(We(a,b),Ma(b))},start:function(b){return Ve(a,b)},drop:ld(a,Ue),leave:function(b){Fa(a,b)||Xe(a)}};var h=e.input.getField();Pg(h,"keyup",function(b){return sf.call(a,b)}),Pg(h,"keydown",ld(a,qf)),Pg(h,"keypress",ld(a,tf)),Pg(h,"focus",function(b){return Fc(a,b)}),Pg(h,"blur",function(b){return Gc(a,b)})}function Jf(a,b,c,d){var e,f=a.doc;null==c&&(c="add"),"smart"==c&&(f.mode.indent?e=ab(a,b):c="prev");var g=a.options.tabSize,h=z(f,b),i=k(h.text,null,g);h.stateAfter&&(h.stateAfter=null);var j,l=h.text.match(/^\s*/)[0];if(d||/\S/.test(h.text)){if("smart"==c&&(j=f.mode.indent(e,h.text.slice(l.length),h.text),j==Dg||j>150)){if(!d)return;c="prev"}}else j=0,c="not";"prev"==c?j=b>f.first?k(z(f,b-1).text,null,g):0:"add"==c?j=i+a.options.indentUnit:"subtract"==c?j=i-a.options.indentUnit:"number"==typeof c&&(j=i+c),j=Math.max(0,j);var m="",n=0;if(a.options.indentWithTabs)for(var p=Math.floor(j/g);p;--p)n+=g,m+="\t";if(n<j&&(m+=o(j-n)),m!=l)return De(f,m,H(b,0),H(b,l.length),"+input"),h.stateAfter=null,!0;for(var q=0;q<f.sel.ranges.length;q++){var r=f.sel.ranges[q];if(r.head.line==b&&r.head.ch<l.length){
4
+ var s=H(b,l.length);je(f,q,new Hd(s,s));break}}}function Kf(a){Ah=a}function Lf(a,b,c,d,e){var f=a.doc;a.display.shift=!1,d||(d=f.sel);var g=a.state.pasteIncoming||"paste"==e,h=Rg(b),i=null;if(g&&d.ranges.length>1)if(Ah&&Ah.text.join("\n")==b){if(d.ranges.length%Ah.text.length==0){i=[];for(var j=0;j<Ah.text.length;j++)i.push(f.splitLines(Ah.text[j]))}}else h.length==d.ranges.length&&(i=q(h,function(a){return[a]}));for(var k,l=d.ranges.length-1;l>=0;l--){var m=d.ranges[l],n=m.from(),o=m.to();m.empty()&&(c&&c>0?n=H(n.line,n.ch-c):a.state.overwrite&&!g?o=H(o.line,Math.min(z(f,o.line).text.length,o.ch+p(h).length)):Ah&&Ah.lineWise&&Ah.text.join("\n")==b&&(n=o=H(n.line,0))),k=a.curOp.updateInput;var r={from:n,to:o,text:i?i[l%i.length]:h,origin:e||(g?"paste":a.state.cutIncoming?"cut":"+input")};xe(a.doc,r),yb(a,"inputRead",a,r)}b&&!g&&Nf(a,b),ad(a),a.curOp.updateInput=k,a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=!1}function Mf(a,b){var c=a.clipboardData&&a.clipboardData.getData("Text");if(c)return a.preventDefault(),b.isReadOnly()||b.options.disableInput||kd(b,function(){return Lf(b,c,0,null,"paste")}),!0}function Nf(a,b){if(a.options.electricChars&&a.options.smartIndent)for(var c=a.doc.sel,d=c.ranges.length-1;d>=0;d--){var e=c.ranges[d];if(!(e.head.ch>100||d&&c.ranges[d-1].head.line==e.head.line)){var f=a.getModeAt(e.head),g=!1;if(f.electricChars){for(var h=0;h<f.electricChars.length;h++)if(b.indexOf(f.electricChars.charAt(h))>-1){g=Jf(a,e.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(z(a.doc,e.head.line).text.slice(0,e.head.ch))&&(g=Jf(a,e.head.line,"smart"));g&&yb(a,"electricInput",a,e.head.line)}}}function Of(a){for(var b=[],c=[],d=0;d<a.doc.sel.ranges.length;d++){var e=a.doc.sel.ranges[d].head.line,f={anchor:H(e,0),head:H(e+1,0)};c.push(f),b.push(a.getRange(f.anchor,f.head))}return{text:b,ranges:c}}function Pf(a,b){a.setAttribute("autocorrect","off"),a.setAttribute("autocapitalize","off"),a.setAttribute("spellcheck",!!b)}function Qf(){var a=d("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=d("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ig?a.style.width="1000px":a.setAttribute("wrap","off"),pg&&(a.style.border="1px solid black"),Pf(a),b}function Rf(a){var b=a.optionHandlers,c=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var d=this.options,e=d[a];d[a]==c&&"mode"!=a||(d[a]=c,b.hasOwnProperty(a)&&ld(this,b[a])(this,c,e))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,b){this.state.keyMaps[b?"push":"unshift"](ff(a))},removeKeyMap:function(a){for(var b=this.state.keyMaps,c=0;c<b.length;++c)if(b[c]==a||b[c].name==a)return b.splice(c,1),!0},addOverlay:md(function(b,c){var d=b.token?b:a.getMode(this.options,b);if(d.startState)throw new Error("Overlays may not be stateful.");r(this.state.overlays,{mode:d,modeSpec:b,opaque:c&&c.opaque,priority:c&&c.priority||0},function(a){return a.priority}),this.state.modeGen++,od(this)}),removeOverlay:md(function(a){for(var b=this,c=this.state.overlays,d=0;d<c.length;++d){var e=c[d].modeSpec;if(e==a||"string"==typeof a&&e.name==a)return c.splice(d,1),b.state.modeGen++,void od(b)}}),indentLine:md(function(a,b,c){"string"!=typeof b&&"number"!=typeof b&&(b=null==b?this.options.smartIndent?"smart":"prev":b?"add":"subtract"),F(this.doc,a)&&Jf(this,a,b,c)}),indentSelection:md(function(a){for(var b=this,c=this.doc.sel.ranges,d=-1,e=0;e<c.length;e++){var f=c[e];if(f.empty())f.head.line>d&&(Jf(b,f.head.line,a,!0),d=f.head.line,e==b.doc.sel.primIndex&&ad(b));else{var g=f.from(),h=f.to(),i=Math.max(d,g.line);d=Math.min(b.lastLine(),h.line-(h.ch?0:1))+1;for(var j=i;j<d;++j)Jf(b,j,a);var k=b.doc.sel.ranges;0==g.ch&&c.length==k.length&&k[e].from().ch>0&&je(b.doc,e,new Hd(g,k[e].to()),Eg)}}}),getTokenAt:function(a,b){return eb(this,a,b)},getLineTokens:function(a,b){return eb(this,H(a),b,!0)},getTokenTypeAt:function(a){a=N(this.doc,a);var b,c=_a(this,z(this.doc,a.line)),d=0,e=(c.length-1)/2,f=a.ch;if(0==f)b=c[2];else for(;;){var g=d+e>>1;if((g?c[2*g-1]:0)>=f)e=g;else{if(!(c[2*g+1]<f)){b=c[2*g+2];break}d=g+1}}var h=b?b.indexOf("overlay "):-1;return h<0?b:0==h?null:b.slice(0,h-1)},getModeAt:function(b){var c=this.doc.mode;return c.innerMode?a.innerMode(c,this.getTokenAt(b).state).mode:c},getHelper:function(a,b){return this.getHelpers(a,b)[0]},getHelpers:function(a,b){var d=this,e=[];if(!c.hasOwnProperty(b))return e;var f=c[b],g=this.getModeAt(a);if("string"==typeof g[b])f[g[b]]&&e.push(f[g[b]]);else if(g[b])for(var h=0;h<g[b].length;h++){var i=f[g[b][h]];i&&e.push(i)}else g.helperType&&f[g.helperType]?e.push(f[g.helperType]):f[g.name]&&e.push(f[g.name]);for(var j=0;j<f._global.length;j++){var k=f._global[j];k.pred(g,d)&&m(e,k.val)==-1&&e.push(k.val)}return e},getStateAfter:function(a,b){var c=this.doc;return a=M(c,null==a?c.first+c.size-1:a),ab(this,a+1,b)},cursorCoords:function(a,b){var c,d=this.doc.sel.primary();return c=null==a?d.head:"object"==typeof a?N(this.doc,a):a?d.from():d.to(),lc(this,c,b||"page")},charCoords:function(a,b){return kc(this,N(this.doc,a),b||"page")},coordsChar:function(a,b){return a=jc(this,a,b||"page"),oc(this,a.left,a.top)},lineAtHeight:function(a,b){return a=jc(this,{top:a,left:0},b||"page").top,E(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,b,c){var d,e=!1;if("number"==typeof a){var f=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>f&&(a=f,e=!0),d=z(this.doc,a)}else d=a;return ic(this,d,{top:0,left:0},b||"page",c).top+(e?this.doc.height-oa(d):0)},defaultTextHeight:function(){return qc(this.display)},defaultCharWidth:function(){return rc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,b,c,d,e){var f=this.display;a=lc(this,N(this.doc,a));var g=a.bottom,h=a.left;if(b.style.position="absolute",b.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(b),f.sizer.appendChild(b),"over"==d)g=a.top;else if("above"==d||"near"==d){var i=Math.max(f.wrapper.clientHeight,this.doc.height),j=Math.max(f.sizer.clientWidth,f.lineSpace.clientWidth);("above"==d||a.bottom+b.offsetHeight>i)&&a.top>b.offsetHeight?g=a.top-b.offsetHeight:a.bottom+b.offsetHeight<=i&&(g=a.bottom),h+b.offsetWidth>j&&(h=j-b.offsetWidth)}b.style.top=g+"px",b.style.left=b.style.right="","right"==e?(h=f.sizer.clientWidth-b.offsetWidth,b.style.right="0px"):("left"==e?h=0:"middle"==e&&(h=(f.sizer.clientWidth-b.offsetWidth)/2),b.style.left=h+"px"),c&&Zc(this,h,g,h+b.offsetWidth,g+b.offsetHeight)},triggerOnKeyDown:md(qf),triggerOnKeyPress:md(tf),triggerOnKeyUp:sf,execCommand:function(a){if(th.hasOwnProperty(a))return th[a].call(null,this)},triggerElectric:md(function(a){Nf(this,a)}),findPosH:function(a,b,c,d){var e=this,f=1;b<0&&(f=-1,b=-b);for(var g=N(this.doc,a),h=0;h<b&&(g=Sf(e.doc,g,f,c,d),!g.hitSide);++h);return g},moveH:md(function(a,b){var c=this;this.extendSelectionsBy(function(d){return c.display.shift||c.doc.extend||d.empty()?Sf(c.doc,d.head,a,b,c.options.rtlMoveVisually):a<0?d.from():d.to()},Gg)}),deleteH:md(function(a,b){var c=this.doc.sel,d=this.doc;c.somethingSelected()?d.replaceSelection("",null,"+delete"):gf(this,function(c){var e=Sf(d,c.head,a,b,!1);return a<0?{from:e,to:c.head}:{from:c.head,to:e}})}),findPosV:function(a,b,c,d){var e=this,f=1,g=d;b<0&&(f=-1,b=-b);for(var h=N(this.doc,a),i=0;i<b;++i){var j=lc(e,h,"div");if(null==g?g=j.left:j.left=g,h=Tf(e,j,f,c),h.hitSide)break}return h},moveV:md(function(a,b){var c=this,d=this.doc,e=[],f=!this.display.shift&&!d.extend&&d.sel.somethingSelected();if(d.extendSelectionsBy(function(g){if(f)return a<0?g.from():g.to();var h=lc(c,g.head,"div");null!=g.goalColumn&&(h.left=g.goalColumn),e.push(h.left);var i=Tf(c,h,a,b);return"page"==b&&g==d.sel.primary()&&_c(c,null,kc(c,i,"div").top-h.top),i},Gg),e.length)for(var g=0;g<d.sel.ranges.length;g++)d.sel.ranges[g].goalColumn=e[g]}),findWordAt:function(a){var b=this.doc,c=z(b,a.line).text,d=a.ch,e=a.ch;if(c){var f=this.getHelper(a,"wordChars");(a.xRel<0||e==c.length)&&d?--d:++e;for(var g=c.charAt(d),h=v(g,f)?function(a){return v(a,f)}:/\s/.test(g)?function(a){return/\s/.test(a)}:function(a){return!/\s/.test(a)&&!v(a)};d>0&&h(c.charAt(d-1));)--d;for(;e<c.length&&h(c.charAt(e));)++e}return new Hd(H(a.line,d),H(a.line,e))},toggleOverwrite:function(a){null!=a&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?g(this.display.cursorDiv,"CodeMirror-overwrite"):yg(this.display.cursorDiv,"CodeMirror-overwrite"),Ea(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==f()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:md(function(a,b){null==a&&null==b||bd(this),null!=a&&(this.curOp.scrollLeft=a),null!=b&&(this.curOp.scrollTop=b)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Rb(this)-this.display.barHeight,width:a.scrollWidth-Rb(this)-this.display.barWidth,clientHeight:Tb(this),clientWidth:Sb(this)}},scrollIntoView:md(function(a,b){if(null==a?(a={from:this.doc.sel.primary().head,to:null},null==b&&(b=this.options.cursorScrollMargin)):"number"==typeof a?a={from:H(a,0),to:null}:null==a.from&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=b||0,null!=a.from.line)bd(this),this.curOp.scrollToPos=a;else{var c=$c(this,Math.min(a.from.left,a.to.left),Math.min(a.from.top,a.to.top)-a.margin,Math.max(a.from.right,a.to.right),Math.max(a.from.bottom,a.to.bottom)+a.margin);this.scrollTo(c.scrollLeft,c.scrollTop)}}),setSize:md(function(a,b){var c=this,d=function(a){return"number"==typeof a||/^\d+$/.test(String(a))?a+"px":a};null!=a&&(this.display.wrapper.style.width=d(a)),null!=b&&(this.display.wrapper.style.height=d(b)),this.options.lineWrapping&&ec(this);var e=this.display.viewFrom;this.doc.iter(e,this.display.viewTo,function(a){if(a.widgets)for(var b=0;b<a.widgets.length;b++)if(a.widgets[b].noHScroll){pd(c,e,"widget");break}++e}),this.curOp.forceUpdate=!0,Ea(this,"refresh",this)}),operation:function(a){return kd(this,a)},refresh:md(function(){var a=this.display.cachedTextHeight;od(this),this.curOp.forceUpdate=!0,fc(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),Cd(this),(null==a||Math.abs(a-qc(this.display))>.5)&&vc(this),Ea(this,"refresh",this)}),swapDoc:md(function(a){var b=this.doc;return b.cm=null,Ud(this,a),fc(this),this.display.input.reset(),this.scrollTo(a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,yb(this,"swapDoc",this,b),b}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ia(a),a.registerHelper=function(b,d,e){c.hasOwnProperty(b)||(c[b]=a[b]={_global:[]}),c[b][d]=e},a.registerGlobalHelper=function(b,d,e,f){a.registerHelper(b,d,f),c[b]._global.push({pred:e,val:f})}}function Sf(a,b,c,d,e){function f(){var b=h+c;return!(b<a.first||b>=a.first+a.size)&&(h=b,k=z(a,b))}function g(a){var b=(e?za:Aa)(k,i,c,!0);if(null==b){if(a||!f())return!1;i=e?(c<0?va:ua)(k):c<0?k.text.length:0}else i=b;return!0}var h=b.line,i=b.ch,j=c,k=z(a,h);if("char"==d)g();else if("column"==d)g(!0);else if("word"==d||"group"==d)for(var l=null,m="group"==d,n=a.cm&&a.cm.getHelper(b,"wordChars"),o=!0;!(c<0)||g(!o);o=!1){var p=k.text.charAt(i)||"\n",q=v(p,n)?"w":m&&"\n"==p?"n":!m||/\s/.test(p)?null:"p";if(!m||o||q||(q="s"),l&&l!=q){c<0&&(c=1,g());break}if(q&&(l=q),c>0&&!g(!o))break}var r=te(a,H(h,i),b,j,!0);return I(b,r)||(r.hitSide=!0),r}function Tf(a,b,c,d){var e,f=a.doc,g=b.left;if("page"==d){var h=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),i=Math.max(h-.5*qc(a.display),3);e=(c>0?b.bottom:b.top)+c*i}else"line"==d&&(e=c>0?b.bottom+3:b.top-3);for(var j;j=oc(a,g,e),j.outside;){if(c<0?e<=0:e>=f.height){j.hitSide=!0;break}e+=5*c}return j}function Uf(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new l,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Vf(a,b){var c=Yb(a,b.line);if(!c||c.hidden)return null;var d=z(a.doc,b.line),e=Vb(c,d,b.line),f=Ba(d),g="left";if(f){var h=xa(f,b.ch);g=h%2?"right":"left"}var i=_b(e.map,b.ch,g);return i.offset="right"==i.collapse?i.end:i.start,i}function Wf(a,b){return b&&(a.bad=!0),a}function Xf(a,b,c,d,e){function f(a){return function(b){return b.id==a}}function g(b){if(1==b.nodeType){var c=b.getAttribute("cm-text");if(null!=c)return void(h+=""==c?b.textContent.replace(/\u200b/g,""):c);var k,l=b.getAttribute("cm-marker");if(l){var m=a.findMarks(H(d,0),H(e+1,0),f(+l));return void(m.length&&(k=m[0].find())&&(h+=A(a.doc,k.from,k.to).join(j)))}if("false"==b.getAttribute("contenteditable"))return;for(var n=0;n<b.childNodes.length;n++)g(b.childNodes[n]);/^(pre|div|p)$/i.test(b.nodeName)&&(i=!0)}else if(3==b.nodeType){var o=b.nodeValue;if(!o)return;i&&(h+=j,i=!1),h+=o}}for(var h="",i=!1,j=a.doc.lineSeparator();g(b),b!=c;)b=b.nextSibling;return h}function Yf(a,b,c){var d;if(b==a.display.lineDiv){if(d=a.display.lineDiv.childNodes[c],!d)return Wf(a.clipPos(H(a.display.viewTo-1)),!0);b=null,c=0}else for(d=b;;d=d.parentNode){if(!d||d==a.display.lineDiv)return null;if(d.parentNode&&d.parentNode==a.display.lineDiv)break}for(var e=0;e<a.display.view.length;e++){var f=a.display.view[e];if(f.node==d)return Zf(f,b,c)}}function Zf(a,b,c){function d(b,c,d){for(var e=-1;e<(l?l.length:0);e++)for(var f=e<0?k.map:l[e],g=0;g<f.length;g+=3){var h=f[g+2];if(h==b||h==c){var i=D(e<0?a.line:a.rest[e]),j=f[g]+d;return(d<0||h!=b)&&(j=f[g+(d?1:0)]),H(i,j)}}}var f=a.text.firstChild,g=!1;if(!b||!e(f,b))return Wf(H(D(a.line),0),!0);if(b==f&&(g=!0,b=f.childNodes[c],c=0,!b)){var h=a.rest?p(a.rest):a.line;return Wf(H(D(h),h.text.length),g)}var i=3==b.nodeType?b:null,j=b;for(i||1!=b.childNodes.length||3!=b.firstChild.nodeType||(i=b.firstChild,c&&(c=i.nodeValue.length));j.parentNode!=f;)j=j.parentNode;var k=a.measure,l=k.maps,m=d(i,j,c);if(m)return Wf(m,g);for(var n=j.nextSibling,o=i?i.nodeValue.length-c:0;n;n=n.nextSibling){if(m=d(n,n.firstChild,0))return Wf(H(m.line,m.ch-o),g);o+=n.textContent.length}for(var q=j.previousSibling,r=c;q;q=q.previousSibling){if(m=d(q,q.firstChild,-1))return Wf(H(m.line,m.ch+r),g);r+=q.textContent.length}}function $f(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new l,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null}function _f(a,b){function c(){a.value=k.getValue()}if(b=b?j(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),null==b.autofocus){var d=f();b.autofocus=d==a||null!=a.getAttribute("autofocus")&&d==document.body}var e;if(a.form&&(Pg(a.form,"submit",c),!b.leaveSubmitMethodAlone)){var g=a.form;e=g.submit;try{var h=g.submit=function(){c(),g.submit=e,g.submit(),g.submit=h}}catch(i){}}b.finishInit=function(b){b.save=c,b.getTextArea=function(){return a},b.toTextArea=function(){b.toTextArea=isNaN,c(),a.parentNode.removeChild(b.getWrapperElement()),a.style.display="",a.form&&(Da(a.form,"submit",c),"function"==typeof a.form.submit&&(a.form.submit=e))}},a.style.display="none";var k=Hf(function(b){return a.parentNode.insertBefore(b,a.nextSibling)},b);return k}function ag(a){a.off=Da,a.on=Pg,a.wheelEventPixels=Pc,a.Doc=jh,a.splitLines=Rg,a.countColumn=k,a.findColumn=n,a.isWordChar=u,a.Pass=Dg,a.signal=Ea,a.Line=ib,a.changeEnd=Kd,a.scrollbarModel=fh,a.Pos=H,a.cmpPos=I,a.modes=Vg,a.mimeModes=Wg,a.resolveMode=Ua,a.getMode=Va,a.modeExtensions=Xg,a.extendMode=Wa,a.copyState=Xa,a.startState=Za,a.innerMode=Ya,a.commands=th,a.keyMap=qh,a.keyName=ef,a.isModifierKey=df,a.lookupKey=cf,a.normalizeKeyMap=bf,a.StringStream=Yg,a.SharedTextMarker=Pe,a.TextMarker=Ne,a.LineWidget=Ke,a.e_preventDefault=Ja,a.e_stopPropagation=Ka,a.e_stop=Ma,a.addClass=g,a.contains=e,a.rmClass=yg,a.keyNames=mh}var bg=navigator.userAgent,cg=navigator.platform,dg=/gecko\/\d/i.test(bg),eg=/MSIE \d/.test(bg),fg=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(bg),gg=eg||fg,hg=gg&&(eg?document.documentMode||6:fg[1]),ig=/WebKit\//.test(bg),jg=ig&&/Qt\/\d+\.\d+/.test(bg),kg=/Chrome\//.test(bg),lg=/Opera\//.test(bg),mg=/Apple Computer/.test(navigator.vendor),ng=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(bg),og=/PhantomJS/.test(bg),pg=/AppleWebKit/.test(bg)&&/Mobile\/\w+/.test(bg),qg=pg||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(bg),rg=pg||/Mac/.test(cg),sg=/\bCrOS\b/.test(bg),tg=/win/i.test(cg),ug=lg&&bg.match(/Version\/(\d*\.\d*)/);ug&&(ug=Number(ug[1])),ug&&ug>=15&&(lg=!1,ig=!0);var vg,wg=rg&&(jg||lg&&(null==ug||ug<12.11)),xg=dg||gg&&hg>=9,yg=function(b,c){var d=b.className,e=a(c).exec(d);if(e){var f=d.slice(e.index+e[0].length);b.className=d.slice(0,e.index)+(f?e[1]+f:"")}};vg=document.createRange?function(a,b,c,d){var e=document.createRange();return e.setEnd(d||a,c),e.setStart(a,b),e}:function(a,b,c){var d=document.body.createTextRange();try{d.moveToElementText(a.parentNode)}catch(e){return d}return d.collapse(!0),d.moveEnd("character",c),d.moveStart("character",b),d};var zg=function(a){a.select()};pg?zg=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:gg&&(zg=function(a){try{a.select()}catch(b){}}),l.prototype.set=function(a,b){clearTimeout(this.id),this.id=setTimeout(b,a)};var Ag,Bg,Cg=30,Dg={toString:function(){return"CodeMirror.Pass"}},Eg={scroll:!1},Fg={origin:"*mouse"},Gg={origin:"+move"},Hg=[""],Ig=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Jg=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Kg=!1,Lg=!1,Mg=null,Ng=function(){function a(a){return a<=247?c.charAt(a):1424<=a&&a<=1524?"R":1536<=a&&a<=1773?d.charAt(a-1536):1774<=a&&a<=2220?"r":8192<=a&&a<=8203?"w":8204==a?"b":"L"}function b(a,b,c){this.level=a,this.from=b,this.to=c}var c="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",d="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,h=/[Lb1n]/,i=/[1n]/,j="L";return function(c){if(!e.test(c))return!1;for(var d=c.length,k=[],l=0;l<d;++l)k.push(a(c.charCodeAt(l)));for(var m=0,n=j;m<d;++m){var o=k[m];"m"==o?k[m]=n:n=o}for(var q=0,r=j;q<d;++q){var s=k[q];"1"==s&&"r"==r?k[q]="n":g.test(s)&&(r=s,"r"==s&&(k[q]="R"))}for(var t=1,u=k[0];t<d-1;++t){var v=k[t];"+"==v&&"1"==u&&"1"==k[t+1]?k[t]="1":","!=v||u!=k[t+1]||"1"!=u&&"n"!=u||(k[t]=u),u=v}for(var w=0;w<d;++w){var x=k[w];if(","==x)k[w]="N";else if("%"==x){var y=void 0;for(y=w+1;y<d&&"%"==k[y];++y);for(var z=w&&"!"==k[w-1]||y<d&&"1"==k[y]?"1":"N",A=w;A<y;++A)k[A]=z;w=y-1}}for(var B=0,C=j;B<d;++B){var D=k[B];"L"==C&&"1"==D?k[B]="L":g.test(D)&&(C=D)}for(var E=0;E<d;++E)if(f.test(k[E])){var F=void 0;for(F=E+1;F<d&&f.test(k[F]);++F);for(var G="L"==(E?k[E-1]:j),H="L"==(F<d?k[F]:j),I=G||H?"L":"R",J=E;J<F;++J)k[J]=I;E=F-1}for(var K,L=[],M=0;M<d;)if(h.test(k[M])){var N=M;for(++M;M<d&&h.test(k[M]);++M);L.push(new b(0,N,M))}else{var O=M,P=L.length;for(++M;M<d&&"L"!=k[M];++M);for(var Q=O;Q<M;)if(i.test(k[Q])){O<Q&&L.splice(P,0,new b(1,O,Q));var R=Q;for(++Q;Q<M&&i.test(k[Q]);++Q);L.splice(P,0,new b(2,R,Q)),O=Q}else++Q;O<M&&L.splice(P,0,new b(1,O,M))}return 1==L[0].level&&(K=c.match(/^\s+/))&&(L[0].from=K[0].length,L.unshift(new b(0,0,K[0].length))),1==p(L).level&&(K=c.match(/\s+$/))&&(p(L).to-=K[0].length,L.push(new b(0,d-K[0].length,d))),2==L[0].level&&L.unshift(new b(1,L[0].to,L[0].to)),L[0].level!=p(L).level&&L.push(new b(L[0].level,d,d)),L}}(),Og=[],Pg=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent("on"+b,c);else{var d=a._handlers||(a._handlers={});d[b]=(d[b]||Og).concat(c)}},Qg=function(){if(gg&&hg<9)return!1;var a=d("div");return"draggable"in a||"dragDrop"in a}(),Rg=3!="\n\nb".split(/\n/).length?function(a){for(var b=0,c=[],d=a.length;b<=d;){var e=a.indexOf("\n",b);e==-1&&(e=a.length);var f=a.slice(b,"\r"==a.charAt(e-1)?e-1:e),g=f.indexOf("\r");g!=-1?(c.push(f.slice(0,g)),b+=g+1):(c.push(f),b=e+1)}return c}:function(a){return a.split(/\r\n?|\n/)},Sg=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(c){}return!(!b||b.parentElement()!=a)&&0!=b.compareEndPoints("StartToEnd",b)},Tg=function(){var a=d("div");return"oncopy"in a||(a.setAttribute("oncopy","return;"),"function"==typeof a.oncopy)}(),Ug=null,Vg={},Wg={},Xg={},Yg=function(a,b){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Yg.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(a){var b,c=this.string.charAt(this.pos);if(b="string"==typeof a?c==a:c&&(a.test?a.test(c):a(c)))return++this.pos,c},eatWhile:function(a){for(var b=this.pos;this.eat(a););return this.pos>b},eatSpace:function(){for(var a=this,b=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++a.pos;return this.pos>b},skipToEnd:function(){this.pos=this.string.length},skipTo:function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},backUp:function(a){this.pos-=a},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=k(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?k(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return k(this.string,null,this.tabSize)-(this.lineStart?k(this.string,this.lineStart,this.tabSize):0)},match:function(a,b,c){if("string"!=typeof a){var d=this.string.slice(this.pos).match(a);return d&&d.index>0?null:(d&&b!==!1&&(this.pos+=d[0].length),d)}var e=function(a){return c?a.toLowerCase():a},f=this.string.substr(this.pos,a.length);if(e(f)==e(a))return b!==!1&&(this.pos+=a.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}}},Ia(ib),ib.prototype.lineNo=function(){return D(this)};var Zg,$g={},_g={},ah=null,bh=null,ch={left:0,right:0,top:0,bottom:0},dh=0,eh=null;gg?eh=-.53:dg?eh=15:kg?eh=-.7:mg&&(eh=-1/3),Sc.prototype=j({update:function(a){var b=a.scrollWidth>a.clientWidth+1,c=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;if(c){this.vert.style.display="block",this.vert.style.bottom=b?d+"px":"0";var e=a.viewHeight-(b?d:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+e)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=c?d+"px":"0",this.horiz.style.left=a.barLeft+"px";var f=a.viewWidth-a.barLeft-(c?d:0);this.horiz.firstChild.style.width=a.scrollWidth-a.clientWidth+f+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(0==d&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:c?d:0,bottom:b?d:0}},setScrollLeft:function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var a=rg&&!ng?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new l,this.disableVert=new l},enableZeroWidthBar:function(a,b){function c(){var d=a.getBoundingClientRect(),e=document.elementFromPoint(d.left+1,d.bottom-1);e!=a?a.style.pointerEvents="none":b.set(1e3,c)}a.style.pointerEvents="auto",b.set(1e3,c)},clear:function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)}},Sc.prototype),Tc.prototype=j({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},Tc.prototype);var fh={"native":Sc,"null":Tc},gh=0;wd.prototype.signal=function(a,b){Ha(a,b)&&this.events.push(arguments)},wd.prototype.finish=function(){for(var a=this,b=0;b<this.events.length;b++)Ea.apply(null,a.events[b])},Gd.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(a){var b=this;if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var d=b.ranges[c],e=a.ranges[c];if(0!=I(d.anchor,e.anchor)||0!=I(d.head,e.head))return!1}return!0},deepCopy:function(){for(var a=this,b=[],c=0;c<this.ranges.length;c++)b[c]=new Hd(J(a.ranges[c].anchor),J(a.ranges[c].head));return new Gd(b,this.primIndex)},somethingSelected:function(){for(var a=this,b=0;b<this.ranges.length;b++)if(!a.ranges[b].empty())return!0;return!1},contains:function(a,b){var c=this;b||(b=a);for(var d=0;d<this.ranges.length;d++){var e=c.ranges[d];if(I(b,e.from())>=0&&I(a,e.to())<=0)return d}return-1}},Hd.prototype={from:function(){return L(this.anchor,this.head)},to:function(){return K(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}},Ie.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var c=this,d=a,e=a+b;d<e;++d){var f=c.lines[d];c.height-=f.height,kb(f),yb(f,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,c){var d=this;this.height+=c,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var e=0;e<b.length;++e)b[e].parent=d},iterN:function(a,b,c){for(var d=this,e=a+b;a<e;++a)if(c(d.lines[a]))return!0}},Je.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){var c=this;this.size-=b;for(var d=0;d<this.children.length;++d){var e=c.children[d],f=e.chunkSize();if(a<f){var g=Math.min(b,f-a),h=e.height;if(e.removeInner(a,g),c.height-=h-e.height,f==g&&(c.children.splice(d--,1),e.parent=null),0==(b-=g))break;a=0}else a-=f}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Ie))){var i=[];this.collapse(i),this.children=[new Ie(i)],this.children[0].parent=this}},collapse:function(a){for(var b=this,c=0;c<this.children.length;++c)b.children[c].collapse(a)},insertInner:function(a,b,c){var d=this;this.size+=b.length,this.height+=c;for(var e=0;e<this.children.length;++e){var f=d.children[e],g=f.chunkSize();if(a<=g){if(f.insertInner(a,b,c),f.lines&&f.lines.length>50){for(var h=f.lines.length%25+25,i=h;i<f.lines.length;){var j=new Ie(f.lines.slice(i,i+=25));f.height-=j.height,d.children.splice(++e,0,j),j.parent=d}f.lines=f.lines.slice(0,h),d.maybeSpill()}break}a-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),c=new Je(b);if(a.parent){a.size-=c.size,a.height-=c.height;var d=m(a.parent.children,a);a.parent.children.splice(d+1,0,c)}else{var e=new Je(a.children);e.parent=a,a.children=[e,c],a=e}c.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,c){for(var d=this,e=0;e<this.children.length;++e){var f=d.children[e],g=f.chunkSize();if(a<g){var h=Math.min(b,g-a);if(f.iterN(a,h,c))return!0;if(0==(b-=h))break;a=0}else a-=g}}},Ia(Ke),Ke.prototype.clear=function(){var a=this,b=this.doc.cm,c=this.line.widgets,d=this.line,e=D(d);if(null!=e&&c){for(var f=0;f<c.length;++f)c[f]==a&&c.splice(f--,1);c.length||(d.widgets=null);var g=Mb(this);C(d,Math.max(0,d.height-g)),b&&kd(b,function(){Le(b,d,-g),pd(b,e,"widget")})}},Ke.prototype.changed=function(){var a=this.height,b=this.doc.cm,c=this.line;this.height=null;var d=Mb(this)-a;d&&(C(c,c.height+d),b&&kd(b,function(){b.curOp.forceUpdate=!0,Le(b,c,d)}))};var hh=0;Ia(Ne),Ne.prototype.clear=function(){var a=this;if(!this.explicitlyCleared){var b=this.doc.cm,c=b&&!b.curOp;if(c&&cd(b),Ha(this,"clear")){var d=this.find();d&&yb(this,"clear",d.from,d.to)}for(var e=null,f=null,g=0;g<this.lines.length;++g){var h=a.lines[g],i=T(h.markedSpans,a);b&&!a.collapsed?pd(b,D(h),"text"):b&&(null!=i.to&&(f=D(h)),null!=i.from&&(e=D(h))),h.markedSpans=U(h.markedSpans,i),null==i.from&&a.collapsed&&!ma(a.doc,h)&&b&&C(h,qc(b.display))}if(b&&this.collapsed&&!b.options.lineWrapping)for(var j=0;j<this.lines.length;++j){var k=ia(a.lines[j]),l=pa(k);l>b.display.maxLineLength&&(b.display.maxLine=k,b.display.maxLineLength=l,b.display.maxLineChanged=!0)}null!=e&&b&&this.collapsed&&od(b,e,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,b&&qe(b.doc)),b&&yb(b,"markerCleared",b,this),c&&dd(b),this.parent&&this.parent.clear()}},Ne.prototype.find=function(a,b){var c=this;null==a&&"bookmark"==this.type&&(a=1);for(var d,e,f=0;f<this.lines.length;++f){var g=c.lines[f],h=T(g.markedSpans,c);if(null!=h.from&&(d=H(b?g:D(g),h.from),a==-1))return d;if(null!=h.to&&(e=H(b?g:D(g),h.to),1==a))return e}return d&&{from:d,to:e}},Ne.prototype.changed=function(){var a=this.find(-1,!0),b=this,c=this.doc.cm;a&&c&&kd(c,function(){var d=a.line,e=D(a.line),f=Yb(c,e);if(f&&(dc(f),c.curOp.selectionChanged=c.curOp.forceUpdate=!0),c.curOp.updateMaxLine=!0,!ma(b.doc,d)&&null!=b.height){var g=b.height;b.height=null;var h=Mb(b)-g;h&&C(d,d.height+h)}})},Ne.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){
5
+ var b=this.doc.cm.curOp;b.maybeHiddenMarkers&&m(b.maybeHiddenMarkers,this)!=-1||(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ne.prototype.detachLine=function(a){if(this.lines.splice(m(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Ia(Pe),Pe.prototype.clear=function(){var a=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var b=0;b<this.markers.length;++b)a.markers[b].clear();yb(this,"clear")}},Pe.prototype.find=function(a,b){return this.primary.find(a,b)};var ih=0,jh=function(a,b,c,d){if(!(this instanceof jh))return new jh(a,b,c,d);null==c&&(c=0),Je.call(this,[new Ie([new ib("",null)])]),this.first=c,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=c;var e=H(c,0);this.sel=Jd(e),this.history=new Vd(null),this.id=++ih,this.modeOption=b,this.lineSep=d,this.extend=!1,"string"==typeof a&&(a=this.splitLines(a)),Sd(this,{from:e,to:e,text:a}),ne(this,Jd(e),Eg)};jh.prototype=t(Je.prototype,{constructor:jh,iter:function(a,b,c){c?this.iterN(a-this.first,b-a,c):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var c=0,d=0;d<b.length;++d)c+=b[d].height;this.insertInner(a-this.first,b,c)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=B(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:nd(function(a){var b=H(this.first,0),c=this.first+this.size-1;xe(this,{from:b,to:H(c,z(this,c).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),ne(this,Jd(b))}),replaceRange:function(a,b,c,d){b=N(this,b),c=c?N(this,c):b,De(this,a,b,c,d)},getRange:function(a,b,c){var d=A(this,N(this,a),N(this,b));return c===!1?d:d.join(c||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(F(this,a))return z(this,a)},getLineNumber:function(a){return D(a)},getLineHandleVisualStart:function(a){return"number"==typeof a&&(a=z(this,a)),ia(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return N(this,a)},getCursor:function(a){var b,c=this.sel.primary();return b=null==a||"head"==a?c.head:"anchor"==a?c.anchor:"end"==a||"to"==a||a===!1?c.to():c.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:nd(function(a,b,c){ke(this,N(this,"number"==typeof a?H(a,b||0):a),null,c)}),setSelection:nd(function(a,b,c){ke(this,N(this,a),N(this,b||a),c)}),extendSelection:nd(function(a,b,c){he(this,N(this,a),b&&N(this,b),c)}),extendSelections:nd(function(a,b){ie(this,P(this,a),b)}),extendSelectionsBy:nd(function(a,b){var c=q(this.sel.ranges,a);ie(this,P(this,c),b)}),setSelections:nd(function(a,b,c){var d=this;if(a.length){for(var e=[],f=0;f<a.length;f++)e[f]=new Hd(N(d,a[f].anchor),N(d,a[f].head));null==b&&(b=Math.min(a.length-1,this.sel.primIndex)),ne(this,Id(e,b),c)}}),addSelection:nd(function(a,b,c){var d=this.sel.ranges.slice(0);d.push(new Hd(N(this,a),N(this,b||a))),ne(this,Id(d,d.length-1),c)}),getSelection:function(a){for(var b,c=this,d=this.sel.ranges,e=0;e<d.length;e++){var f=A(c,d[e].from(),d[e].to());b=b?b.concat(f):f}return a===!1?b:b.join(a||this.lineSeparator())},getSelections:function(a){for(var b=this,c=[],d=this.sel.ranges,e=0;e<d.length;e++){var f=A(b,d[e].from(),d[e].to());a!==!1&&(f=f.join(a||b.lineSeparator())),c[e]=f}return c},replaceSelection:function(a,b,c){for(var d=[],e=0;e<this.sel.ranges.length;e++)d[e]=a;this.replaceSelections(d,b,c||"+input")},replaceSelections:nd(function(a,b,c){for(var d=this,e=[],f=this.sel,g=0;g<f.ranges.length;g++){var h=f.ranges[g];e[g]={from:h.from(),to:h.to(),text:d.splitLines(a[g]),origin:c}}for(var i=b&&"end"!=b&&Od(this,e,b),j=e.length-1;j>=0;j--)xe(d,e[j]);i?me(this,i):this.cm&&ad(this.cm)}),undo:nd(function(){ze(this,"undo")}),redo:nd(function(){ze(this,"redo")}),undoSelection:nd(function(){ze(this,"undo",!0)}),redoSelection:nd(function(){ze(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,c=0,d=0;d<a.done.length;d++)a.done[d].ranges||++b;for(var e=0;e<a.undone.length;e++)a.undone[e].ranges||++c;return{undo:b,redo:c}},clearHistory:function(){this.history=new Vd(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:fe(this.history.done),undone:fe(this.history.undone)}},setHistory:function(a){var b=this.history=new Vd(this.history.maxGeneration);b.done=fe(a.done.slice(0),null,!0),b.undone=fe(a.undone.slice(0),null,!0)},setGutterMarker:nd(function(a,b,c){return He(this,a,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[b]=c,!c&&w(d)&&(a.gutterMarkers=null),!0})}),clearGutter:nd(function(a){var b=this,c=this.first;this.iter(function(d){d.gutterMarkers&&d.gutterMarkers[a]&&He(b,d,"gutter",function(){return d.gutterMarkers[a]=null,w(d.gutterMarkers)&&(d.gutterMarkers=null),!0}),++c})}),lineInfo:function(a){var b;if("number"==typeof a){if(!F(this,a))return null;if(b=a,a=z(this,a),!a)return null}else if(b=D(a),null==b)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:nd(function(b,c,d){return He(this,b,"gutter"==c?"gutter":"class",function(b){var e="text"==c?"textClass":"background"==c?"bgClass":"gutter"==c?"gutterClass":"wrapClass";if(b[e]){if(a(d).test(b[e]))return!1;b[e]+=" "+d}else b[e]=d;return!0})}),removeLineClass:nd(function(b,c,d){return He(this,b,"gutter"==c?"gutter":"class",function(b){var e="text"==c?"textClass":"background"==c?"bgClass":"gutter"==c?"gutterClass":"wrapClass",f=b[e];if(!f)return!1;if(null==d)b[e]=null;else{var g=f.match(a(d));if(!g)return!1;var h=g.index+g[0].length;b[e]=f.slice(0,g.index)+(g.index&&h!=f.length?" ":"")+f.slice(h)||null}return!0})}),addLineWidget:nd(function(a,b,c){return Me(this,a,b,c)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,c){return Oe(this,N(this,a),N(this,b),c,c&&c.type||"range")},setBookmark:function(a,b){var c={replacedWith:b&&(null==b.nodeType?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=N(this,a),Oe(this,a,a,c,"bookmark")},findMarksAt:function(a){a=N(this,a);var b=[],c=z(this,a.line).markedSpans;if(c)for(var d=0;d<c.length;++d){var e=c[d];(null==e.from||e.from<=a.ch)&&(null==e.to||e.to>=a.ch)&&b.push(e.marker.parent||e.marker)}return b},findMarks:function(a,b,c){a=N(this,a),b=N(this,b);var d=[],e=a.line;return this.iter(a.line,b.line+1,function(f){var g=f.markedSpans;if(g)for(var h=0;h<g.length;h++){var i=g[h];null!=i.to&&e==a.line&&a.ch>=i.to||null==i.from&&e!=a.line||null!=i.from&&e==b.line&&i.from>=b.ch||c&&!c(i.marker)||d.push(i.marker.parent||i.marker)}++e}),d},getAllMarks:function(){var a=[];return this.iter(function(b){var c=b.markedSpans;if(c)for(var d=0;d<c.length;++d)null!=c[d].from&&a.push(c[d].marker)}),a},posFromIndex:function(a){var b,c=this.first,d=this.lineSeparator().length;return this.iter(function(e){var f=e.text.length+d;return f>a?(b=a,!0):(a-=f,void++c)}),N(this,H(c,b))},indexFromPos:function(a){a=N(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var c=this.lineSeparator().length;return this.iter(this.first,a.line,function(a){b+=a.text.length+c}),b},copy:function(a){var b=new jh(B(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,c=this.first+this.size;null!=a.from&&a.from>b&&(b=a.from),null!=a.to&&a.to<c&&(c=a.to);var d=new jh(B(this,b,c),a.mode||this.modeOption,b,this.lineSep);return a.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:a.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Se(d,Re(this)),d},unlinkDoc:function(a){var b=this;if(a instanceof Hf&&(a=a.doc),this.linked)for(var c=0;c<this.linked.length;++c){var d=b.linked[c];if(d.doc==a){b.linked.splice(c,1),a.unlinkDoc(b),Te(Re(b));break}}if(a.history==this.history){var e=[a.id];Td(a,function(a){return e.push(a.id)},!0),a.history=new Vd(null),a.history.done=fe(this.history.done,e),a.history.undone=fe(this.history.undone,e)}},iterLinkedDocs:function(a){Td(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Rg(a)},lineSeparator:function(){return this.lineSep||"\n"}}),jh.prototype.eachLine=jh.prototype.iter;for(var kh=0,lh=!1,mh={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},nh=0;nh<10;nh++)mh[nh+48]=mh[nh+96]=String(nh);for(var oh=65;oh<=90;oh++)mh[oh]=String.fromCharCode(oh);for(var ph=1;ph<=12;ph++)mh[ph+111]=mh[ph+63235]="F"+ph;var qh={};qh.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qh.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qh.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qh.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qh["default"]=rg?qh.macDefault:qh.pcDefault;var rh,sh,th={selectAll:ve,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Eg)},killLine:function(a){return gf(a,function(b){if(b.empty()){var c=z(a.doc,b.head.line).text.length;return b.head.ch==c&&b.head.line<a.lastLine()?{from:b.head,to:H(b.head.line+1,0)}:{from:b.head,to:H(b.head.line,c)}}return{from:b.from(),to:b.to()}})},deleteLine:function(a){return gf(a,function(b){return{from:H(b.from().line,0),to:N(a.doc,H(b.to().line+1,0))}})},delLineLeft:function(a){return gf(a,function(a){return{from:H(a.from().line,0),to:a.from()}})},delWrappedLineLeft:function(a){return gf(a,function(b){var c=a.charCoords(b.head,"div").top+5,d=a.coordsChar({left:0,top:c},"div");return{from:d,to:b.from()}})},delWrappedLineRight:function(a){return gf(a,function(b){var c=a.charCoords(b.head,"div").top+5,d=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:c},"div");return{from:b.from(),to:d}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(H(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(H(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return hf(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return kf(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return jf(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var c=a.charCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:c},"div")},Gg)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var c=a.charCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:c},"div")},Gg)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var c=a.charCoords(b.head,"div").top+5,d=a.coordsChar({left:0,top:c},"div");return d.ch<a.getLine(d.line).search(/\S/)?kf(a,b.head):d},Gg)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"char")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection("\t")},insertSoftTab:function(a){for(var b=[],c=a.listSelections(),d=a.options.tabSize,e=0;e<c.length;e++){var f=c[e].from(),g=k(a.getLine(f.line),f.ch,d);b.push(o(d-g%d))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return kd(a,function(){for(var b=a.listSelections(),c=[],d=0;d<b.length;d++)if(b[d].empty()){var e=b[d].head,f=z(a.doc,e.line).text;if(f)if(e.ch==f.length&&(e=new H(e.line,e.ch-1)),e.ch>0)e=new H(e.line,e.ch+1),a.replaceRange(f.charAt(e.ch-1)+f.charAt(e.ch-2),H(e.line,e.ch-2),e,"+transpose");else if(e.line>a.doc.first){var g=z(a.doc,e.line-1).text;g&&(e=new H(e.line,1),a.replaceRange(f.charAt(0)+a.doc.lineSeparator()+g.charAt(g.length-1),H(e.line-1,g.length-1),e,"+transpose"))}c.push(new Hd(e,e))}a.setSelections(c)})},newlineAndIndent:function(a){return kd(a,function(){for(var b=a.listSelections(),c=b.length-1;c>=0;c--)a.replaceRange(a.doc.lineSeparator(),b[c].anchor,b[c].head,"+input");b=a.listSelections();for(var d=0;d<b.length;d++)a.indentLine(b[d].from().line,null,!0);ad(a)})},openLine:function(a){return a.replaceSelection("\n","start")},toggleOverwrite:function(a){return a.toggleOverwrite()}},uh=new l,vh=null,wh={toString:function(){return"CodeMirror.Init"}},xh={},yh={};Hf.defaults=xh,Hf.optionHandlers=yh;var zh=[];Hf.defineInitHook=function(a){return zh.push(a)};var Ah=null;Uf.prototype=j({init:function(a){function b(a){if(!Fa(e,a)){if(e.somethingSelected())Kf({lineWise:!1,text:e.getSelections()}),"cut"==a.type&&e.replaceSelection("",null,"cut");else{if(!e.options.lineWiseCopyCut)return;var b=Of(e);Kf({lineWise:!0,text:b.text}),"cut"==a.type&&e.operation(function(){e.setSelections(b.ranges,0,Eg),e.replaceSelection("",null,"cut")})}if(a.clipboardData){a.clipboardData.clearData();var c=Ah.text.join("\n");if(a.clipboardData.setData("Text",c),a.clipboardData.getData("Text")==c)return void a.preventDefault()}var g=Qf(),h=g.firstChild;e.display.lineSpace.insertBefore(g,e.display.lineSpace.firstChild),h.value=Ah.text.join("\n");var i=document.activeElement;zg(h),setTimeout(function(){e.display.lineSpace.removeChild(g),i.focus(),i==f&&d.showPrimarySelection()},50)}}var c=this,d=this,e=d.cm,f=d.div=a.lineDiv;Pf(f,e.options.spellcheck),Pg(f,"paste",function(a){Fa(e,a)||Mf(a,e)||hg<=11&&setTimeout(ld(e,function(){d.pollContent()||od(e)}),20)}),Pg(f,"compositionstart",function(a){c.composing={data:a.data}}),Pg(f,"compositionupdate",function(a){c.composing||(c.composing={data:a.data})}),Pg(f,"compositionend",function(a){c.composing&&(a.data!=c.composing.data&&c.readFromDOMSoon(),c.composing=null)}),Pg(f,"touchstart",function(){return d.forceCompositionEnd()}),Pg(f,"input",function(){c.composing||c.readFromDOMSoon()}),Pg(f,"copy",b),Pg(f,"cut",b)},prepareSelection:function(){var a=zc(this.cm,!1);return a.focus=this.cm.state.focused,a},showSelection:function(a,b){a&&this.cm.display.view.length&&((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},showPrimarySelection:function(){var a=window.getSelection(),b=this.cm.doc.sel.primary(),c=Yf(this.cm,a.anchorNode,a.anchorOffset),d=Yf(this.cm,a.focusNode,a.focusOffset);if(!c||c.bad||!d||d.bad||0!=I(L(c,d),b.from())||0!=I(K(c,d),b.to())){var e=Vf(this.cm,b.from()),f=Vf(this.cm,b.to());if(e||f){var g=this.cm.display.view,h=a.rangeCount&&a.getRangeAt(0);if(e){if(!f){var i=g[g.length-1].measure,j=i.maps?i.maps[i.maps.length-1]:i.map;f={node:j[j.length-1],offset:j[j.length-2]-j[j.length-3]}}}else e={node:g[0].measure.map[2],offset:0};var k;try{k=vg(e.node,e.offset,f.offset,f.node)}catch(l){}k&&(!dg&&this.cm.state.focused?(a.collapse(e.node,e.offset),k.collapsed||(a.removeAllRanges(),a.addRange(k))):(a.removeAllRanges(),a.addRange(k)),h&&null==a.anchorNode?a.addRange(h):dg&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(a){c(this.cm.display.cursorDiv,a.cursors),c(this.cm.display.selectionDiv,a.selection)},rememberSelection:function(){var a=window.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},selectionInEditor:function(){var a=window.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return e(this.div,b)},focus:function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function a(){b.cm.state.focused&&(b.pollSelection(),b.polling.set(b.cm.options.pollInterval,a))}var b=this;this.selectionInEditor()?this.pollSelection():kd(this.cm,function(){return b.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,a)},selectionChanged:function(){var a=window.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var a=window.getSelection(),b=this.cm;this.rememberSelection();var c=Yf(b,a.anchorNode,a.anchorOffset),d=Yf(b,a.focusNode,a.focusOffset);c&&d&&kd(b,function(){ne(b.doc,Jd(c,d),Eg),(c.bad||d.bad)&&(b.curOp.selectionChanged=!0)})}},pollContent:function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,c=a.doc.sel.primary(),d=c.from(),e=c.to();if(0==d.ch&&d.line>a.firstLine()&&(d=H(d.line-1,z(a.doc,d.line-1).length)),e.ch==z(a.doc,e.line).text.length&&e.line<a.lastLine()&&(e=H(e.line+1,0)),d.line<b.viewFrom||e.line>b.viewTo-1)return!1;var f,g,h;d.line==b.viewFrom||0==(f=xc(a,d.line))?(g=D(b.view[0].line),h=b.view[0].node):(g=D(b.view[f].line),h=b.view[f-1].node.nextSibling);var i,j,k=xc(a,e.line);if(k==b.view.length-1?(i=b.viewTo-1,j=b.lineDiv.lastChild):(i=D(b.view[k+1].line)-1,j=b.view[k+1].node.previousSibling),!h)return!1;for(var l=a.doc.splitLines(Xf(a,h,j,g,i)),m=A(a.doc,H(g,0),H(i,z(a.doc,i).text.length));l.length>1&&m.length>1;)if(p(l)==p(m))l.pop(),m.pop(),i--;else{if(l[0]!=m[0])break;l.shift(),m.shift(),g++}for(var n=0,o=0,q=l[0],r=m[0],s=Math.min(q.length,r.length);n<s&&q.charCodeAt(n)==r.charCodeAt(n);)++n;for(var t=p(l),u=p(m),v=Math.min(t.length-(1==l.length?n:0),u.length-(1==m.length?n:0));o<v&&t.charCodeAt(t.length-o-1)==u.charCodeAt(u.length-o-1);)++o;l[l.length-1]=t.slice(0,t.length-o).replace(/^\u200b+/,""),l[0]=l[0].slice(n).replace(/\u200b+$/,"");var w=H(g,n),x=H(i,m.length?p(m).length-o:0);return l.length>1||l[0]||I(w,x)?(De(a.doc,l,w,x,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&(this.composing=null,this.pollContent()||od(this.cm),this.div.blur(),this.div.focus())},readFromDOMSoon:function(){var a=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){a.readDOMTimeout=null,a.composing||!a.cm.isReadOnly()&&a.pollContent()||kd(a.cm,function(){return od(a.cm)})},80))},setUneditable:function(a){a.contentEditable="false"},onKeyPress:function(a){a.preventDefault(),this.cm.isReadOnly()||ld(this.cm,Lf)(this.cm,String.fromCharCode(null==a.charCode?a.keyCode:a.charCode),0)},readOnlyChanged:function(a){this.div.contentEditable=String("nocursor"!=a)},onContextMenu:s,resetPosition:s,needsContentAttribute:!0},Uf.prototype),$f.prototype=j({init:function(a){function b(a){if(!Fa(e,a)){if(e.somethingSelected())Kf({lineWise:!1,text:e.getSelections()}),d.inaccurateSelection&&(d.prevInput="",d.inaccurateSelection=!1,g.value=Ah.text.join("\n"),zg(g));else{if(!e.options.lineWiseCopyCut)return;var b=Of(e);Kf({lineWise:!0,text:b.text}),"cut"==a.type?e.setSelections(b.ranges,null,Eg):(d.prevInput="",g.value=b.text.join("\n"),zg(g))}"cut"==a.type&&(e.state.cutIncoming=!0)}}var c=this,d=this,e=this.cm,f=this.wrapper=Qf(),g=this.textarea=f.firstChild;a.wrapper.insertBefore(f,a.wrapper.firstChild),pg&&(g.style.width="0px"),Pg(g,"input",function(){gg&&hg>=9&&c.hasSelection&&(c.hasSelection=null),d.poll()}),Pg(g,"paste",function(a){Fa(e,a)||Mf(a,e)||(e.state.pasteIncoming=!0,d.fastPoll())}),Pg(g,"cut",b),Pg(g,"copy",b),Pg(a.scroller,"paste",function(b){Nb(a,b)||Fa(e,b)||(e.state.pasteIncoming=!0,d.focus())}),Pg(a.lineSpace,"selectstart",function(b){Nb(a,b)||Ja(b)}),Pg(g,"compositionstart",function(){var a=e.getCursor("from");d.composing&&d.composing.range.clear(),d.composing={start:a,range:e.markText(a,e.getCursor("to"),{className:"CodeMirror-composing"})}}),Pg(g,"compositionend",function(){d.composing&&(d.poll(),d.composing.range.clear(),d.composing=null)})},prepareSelection:function(){var a=this.cm,b=a.display,c=a.doc,d=zc(a);if(a.options.moveInputWithCursor){var e=lc(a,c.sel.primary().head,"div"),f=b.wrapper.getBoundingClientRect(),g=b.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,e.top+g.top-f.top)),d.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,e.left+g.left-f.left))}return d},showSelection:function(a){var b=this.cm,d=b.display;c(d.cursorDiv,a.cursors),c(d.selectionDiv,a.selection),null!=a.teTop&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},reset:function(a){if(!this.contextMenuPending){var b,c,d=this.cm,e=d.doc;if(d.somethingSelected()){this.prevInput="";var f=e.sel.primary();b=Tg&&(f.to().line-f.from().line>100||(c=d.getSelection()).length>1e3);var g=b?"-":c||d.getSelection();this.textarea.value=g,d.state.focused&&zg(this.textarea),gg&&hg>=9&&(this.hasSelection=g)}else a||(this.prevInput=this.textarea.value="",gg&&hg>=9&&(this.hasSelection=null));this.inaccurateSelection=b}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!qg||f()!=this.textarea))try{this.textarea.focus()}catch(a){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},fastPoll:function(){function a(){var d=c.poll();d||b?(c.pollingFast=!1,c.slowPoll()):(b=!0,c.polling.set(60,a))}var b=!1,c=this;c.pollingFast=!0,c.polling.set(20,a)},poll:function(){var a=this,b=this.cm,c=this.textarea,d=this.prevInput;if(this.contextMenuPending||!b.state.focused||Sg(c)&&!d&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var e=c.value;if(e==d&&!b.somethingSelected())return!1;if(gg&&hg>=9&&this.hasSelection===e||rg&&/[\uf700-\uf7ff]/.test(e))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var f=e.charCodeAt(0);if(8203!=f||d||(d="​"),8666==f)return this.reset(),this.cm.execCommand("undo")}for(var g=0,h=Math.min(d.length,e.length);g<h&&d.charCodeAt(g)==e.charCodeAt(g);)++g;return kd(b,function(){Lf(b,e.slice(g),d.length-g,null,a.composing?"*compose":null),e.length>1e3||e.indexOf("\n")>-1?c.value=a.prevInput="":a.prevInput=e,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){gg&&hg>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(a){function b(){if(null!=g.selectionStart){var a=e.somethingSelected(),b="​"+(a?g.value:"");g.value="⇚",g.value=b,d.prevInput=a?"":"​",g.selectionStart=1,g.selectionEnd=b.length,f.selForContextMenu=e.doc.sel}}function c(){if(d.contextMenuPending=!1,d.wrapper.style.cssText=l,g.style.cssText=k,gg&&hg<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=i),null!=g.selectionStart){(!gg||gg&&hg<9)&&b();var a=0,c=function(){f.selForContextMenu==e.doc.sel&&0==g.selectionStart&&g.selectionEnd>0&&"​"==d.prevInput?ld(e,ve)(e):a++<10?f.detectingSelectAll=setTimeout(c,500):f.input.reset()};f.detectingSelectAll=setTimeout(c,200)}}var d=this,e=d.cm,f=e.display,g=d.textarea,h=wc(e,a),i=f.scroller.scrollTop;if(h&&!lg){var j=e.options.resetSelectionOnContextMenu;j&&e.doc.sel.contains(h)==-1&&ld(e,ne)(e.doc,Jd(h),Eg);var k=g.style.cssText,l=d.wrapper.style.cssText;d.wrapper.style.cssText="position: absolute";var m=d.wrapper.getBoundingClientRect();g.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(a.clientY-m.top-5)+"px; left: "+(a.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(gg?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var n;if(ig&&(n=window.scrollY),f.input.focus(),ig&&window.scrollTo(null,n),f.input.reset(),e.somethingSelected()||(g.value=d.prevInput=" "),d.contextMenuPending=!0,f.selForContextMenu=e.doc.sel,clearTimeout(f.detectingSelectAll),gg&&hg>=9&&b(),xg){Ma(a);var o=function(){Da(window,"mouseup",o),setTimeout(c,20)};Pg(window,"mouseup",o)}else setTimeout(c,50)}},readOnlyChanged:function(a){a||this.reset()},setUneditable:s,needsContentAttribute:!1},$f.prototype),Df(Hf),Rf(Hf);var Bh="iter insert remove copy getEditor constructor".split(" ");for(var Ch in jh.prototype)jh.prototype.hasOwnProperty(Ch)&&m(Bh,Ch)<0&&(Hf.prototype[Ch]=function(a){return function(){return a.apply(this.doc,arguments)}}(jh.prototype[Ch]));return Ia(jh),Hf.inputStyles={textarea:$f,contenteditable:Uf},Hf.defineMode=function(a){Hf.defaults.mode||"null"==a||(Hf.defaults.mode=a),Sa.apply(this,arguments)},Hf.defineMIME=Ta,Hf.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Hf.defineMIME("text/plain","null"),Hf.defineExtension=function(a,b){Hf.prototype[a]=b},Hf.defineDocExtension=function(a,b){jh.prototype[a]=b},Hf.fromTextArea=_f,ag(Hf),Hf.version="5.21.0",Hf}),function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)}(function(a){"use strict";function b(a,b,c,d,e,f){this.indented=a,this.column=b,this.type=c,this.info=d,this.align=e,this.prev=f}function c(a,c,d,e){var f=a.indented;return a.context&&"statement"==a.context.type&&"statement"!=d&&(f=a.context.indented),a.context=new b(f,c,d,e,null,a.context)}function d(a){var b=a.context.type;return")"!=b&&"]"!=b&&"}"!=b||(a.indented=a.context.indented),a.context=a.context.prev}function e(a,b,c){return"variable"==b.prevToken||"variable-3"==b.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(a.string.slice(0,c))||(!(!b.typeAtEndOfLine||a.column()!=a.indentation())||void 0))}function f(a){for(;;){if(!a||"top"==a.type)return!0;if("}"==a.type&&"namespace"!=a.prev.info)return!1;a=a.prev}}function g(a){for(var b={},c=a.split(" "),d=0;d<c.length;++d)b[c[d]]=!0;return b}function h(a,b){return"function"==typeof a?a(b):a.propertyIsEnumerable(b)}function i(a,b){if(!b.startOfLine)return!1;for(var c,d=null;c=a.peek();){if("\\"==c&&a.match(/^.$/)){d=i;break}if("/"==c&&a.match(/^\/[\/\*]/,!1))break;a.next()}return b.tokenize=d,"meta"}function j(a,b){return"variable-3"==b.prevToken&&"variable-3"}function k(a){return a.eatWhile(/[\w\.']/),"number"}function l(a,b){if(a.backUp(1),a.match(/(R|u8R|uR|UR|LR)/)){var c=a.match(/"([^\s\\()]{0,16})\(/);return!!c&&(b.cpp11RawStringDelim=c[1],b.tokenize=o,o(a,b))}return a.match(/(u8|u|U|L)/)?!!a.match(/["']/,!1)&&"string":(a.next(),!1)}function m(a){var b=/(\w+)::(\w+)$/.exec(a);return b&&b[1]==b[2]}function n(a,b){for(var c;null!=(c=a.next());)if('"'==c&&!a.eat('"')){b.tokenize=null;break}return"string"}function o(a,b){var c=b.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),d=a.match(new RegExp(".*?\\)"+c+'"'));return d?b.tokenize=null:a.skipToEnd(),"string"}function p(b,c){function d(a){if(a)for(var b in a)a.hasOwnProperty(b)&&e.push(b)}"string"==typeof b&&(b=[b]);var e=[];d(c.keywords),d(c.types),d(c.builtin),d(c.atoms),e.length&&(c.helperType=b[0],a.registerHelper("hintWords",b[0],e));for(var f=0;f<b.length;++f)a.defineMIME(b[f],c)}function q(a,b){for(var c=!1;!a.eol();){if(!c&&a.match('"""')){b.tokenize=null;break}c="\\"==a.next()&&!c;
6
+ }return"string"}function r(a){return function(b,c){for(var d,e=!1,f=!1;!b.eol();){if(!a&&!e&&b.match('"')){f=!0;break}if(a&&b.match('"""')){f=!0;break}d=b.next(),!e&&"$"==d&&b.match("{")&&b.skipTo("}"),e=!e&&"\\"==d&&!a}return!f&&a||(c.tokenize=null),"string"}}function s(a){return function(b,c){for(var d,e=!1,f=!1;!b.eol();){if(!e&&b.match('"')&&("single"==a||b.match('""'))){f=!0;break}if(!e&&b.match("``")){v=s(a),f=!0;break}d=b.next(),e="single"==a&&!e&&"\\"==d}return f&&(c.tokenize=null),"string"}}a.defineMode("clike",function(g,i){function j(a,b){var c=a.next();if(y[c]){var d=y[c](a,b);if(d!==!1)return d}if('"'==c||"'"==c)return b.tokenize=k(c),b.tokenize(a,b);if(D.test(c))return n=c,null;if(E.test(c)){if(a.backUp(1),a.match(F))return"number";a.next()}if("/"==c){if(a.eat("*"))return b.tokenize=l,l(a,b);if(a.eat("/"))return a.skipToEnd(),"comment"}if(G.test(c)){for(;!a.match(/^\/[\/*]/,!1)&&a.eat(G););return"operator"}if(a.eatWhile(/[\w\$_\xa1-\uffff]/),C)for(;a.match(C);)a.eatWhile(/[\w\$_\xa1-\uffff]/);var e=a.current();return h(s,e)?(h(v,e)&&(n="newstatement"),h(w,e)&&(o=!0),"keyword"):h(t,e)?"variable-3":h(u,e)?(h(v,e)&&(n="newstatement"),"builtin"):h(x,e)?"atom":"variable"}function k(a){return function(b,c){for(var d,e=!1,f=!1;null!=(d=b.next());){if(d==a&&!e){f=!0;break}e=!e&&"\\"==d}return(f||!e&&!z)&&(c.tokenize=null),"string"}}function l(a,b){for(var c,d=!1;c=a.next();){if("/"==c&&d){b.tokenize=null;break}d="*"==c}return"comment"}function m(a,b){i.typeFirstDefinitions&&a.eol()&&f(b.context)&&(b.typeAtEndOfLine=e(a,b,a.pos))}var n,o,p=g.indentUnit,q=i.statementIndentUnit||p,r=i.dontAlignCalls,s=i.keywords||{},t=i.types||{},u=i.builtin||{},v=i.blockKeywords||{},w=i.defKeywords||{},x=i.atoms||{},y=i.hooks||{},z=i.multiLineStrings,A=i.indentStatements!==!1,B=i.indentSwitch!==!1,C=i.namespaceSeparator,D=i.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,E=i.numberStart||/[\d\.]/,F=i.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,G=i.isOperatorChar||/[+\-*&%=<>!?|\/]/;return{startState:function(a){return{tokenize:null,context:new b((a||0)-p,0,"top",null,(!1)),indented:0,startOfLine:!0,prevToken:null}},token:function(a,b){var g=b.context;if(a.sol()&&(null==g.align&&(g.align=!1),b.indented=a.indentation(),b.startOfLine=!0),a.eatSpace())return m(a,b),null;n=o=null;var h=(b.tokenize||j)(a,b);if("comment"==h||"meta"==h)return h;if(null==g.align&&(g.align=!0),";"==n||":"==n||","==n&&a.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==b.context.type;)d(b);else if("{"==n)c(b,a.column(),"}");else if("["==n)c(b,a.column(),"]");else if("("==n)c(b,a.column(),")");else if("}"==n){for(;"statement"==g.type;)g=d(b);for("}"==g.type&&(g=d(b));"statement"==g.type;)g=d(b)}else n==g.type?d(b):A&&(("}"==g.type||"top"==g.type)&&";"!=n||"statement"==g.type&&"newstatement"==n)&&c(b,a.column(),"statement",a.current());if("variable"==h&&("def"==b.prevToken||i.typeFirstDefinitions&&e(a,b,a.start)&&f(b.context)&&a.match(/^\s*\(/,!1))&&(h="def"),y.token){var k=y.token(a,b,h);void 0!==k&&(h=k)}return"def"==h&&i.styleDefs===!1&&(h="variable"),b.startOfLine=!1,b.prevToken=o?"def":h||n,m(a,b),h},indent:function(b,c){if(b.tokenize!=j&&null!=b.tokenize||b.typeAtEndOfLine)return a.Pass;var d=b.context,e=c&&c.charAt(0);if("statement"==d.type&&"}"==e&&(d=d.prev),i.dontIndentStatements)for(;"statement"==d.type&&i.dontIndentStatements.test(d.info);)d=d.prev;if(y.indent){var f=y.indent(b,d,c);if("number"==typeof f)return f}var g=e==d.type,h=d.prev&&"switch"==d.prev.info;if(i.allmanIndentation&&/[{(]/.test(e)){for(;"top"!=d.type&&"}"!=d.type;)d=d.prev;return d.indented}return"statement"==d.type?d.indented+("{"==e?0:q):!d.align||r&&")"==d.type?")"!=d.type||g?d.indented+(g?0:p)+(g||!h||/^(?:case|default)\b/.test(c)?0:p):d.indented+q:d.column+(g?0:1)},electricInput:B?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",u="int long char short double float unsigned signed void size_t ptrdiff_t";p(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:g(t),types:g(u+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:g("case do else for if switch while struct"),defKeywords:g("struct"),typeFirstDefinitions:!0,atoms:g("null true false"),hooks:{"#":i,"*":j},modeProps:{fold:["brace","include"]}}),p(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:g(t+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:g(u+" bool wchar_t"),blockKeywords:g("catch class do else finally for if struct switch try while"),defKeywords:g("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:g("true false null"),dontIndentStatements:/^template$/,hooks:{"#":i,"*":j,u:l,U:l,L:l,R:l,0:k,1:k,2:k,3:k,4:k,5:k,6:k,7:k,8:k,9:k,token:function(a,b,c){if("variable"==c&&"("==a.peek()&&(";"==b.prevToken||null==b.prevToken||"}"==b.prevToken)&&m(a.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),p("text/x-java",{name:"clike",keywords:g("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while"),types:g("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:g("catch class do else finally for if switch try while"),defKeywords:g("class interface package enum"),typeFirstDefinitions:!0,atoms:g("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(a){return a.eatWhile(/[\w\$_]/),"meta"}},modeProps:{fold:["brace","import"]}}),p("text/x-csharp",{name:"clike",keywords:g("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:g("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:g("catch class do else finally for foreach if struct switch try while"),defKeywords:g("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:g("true false null"),hooks:{"@":function(a,b){return a.eat('"')?(b.tokenize=n,n(a,b)):(a.eatWhile(/[\w\$_]/),"meta")}}}),p("text/x-scala",{name:"clike",keywords:g("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble :: #:: "),types:g("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:g("catch class do else finally for forSome if match switch try while"),defKeywords:g("class def object package trait type val var"),atoms:g("true false null"),indentStatements:!1,indentSwitch:!1,hooks:{"@":function(a){return a.eatWhile(/[\w\$_]/),"meta"},'"':function(a,b){return!!a.match('""')&&(b.tokenize=q,b.tokenize(a,b))},"'":function(a){return a.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(a,c){var d=c.context;return!("}"!=d.type||!d.align||!a.eat(">"))&&(c.context=new b(d.indented,d.column,d.type,d.info,null,d.prev),"operator")}},modeProps:{closeBrackets:{triples:'"'}}}),p("text/x-kotlin",{name:"clike",keywords:g("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix"),types:g("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,blockKeywords:g("catch class do else finally for if where try while enum"),defKeywords:g("class val var object package interface fun"),atoms:g("true false null this"),hooks:{'"':function(a,b){return b.tokenize=r(a.match('""')),b.tokenize(a,b)}},modeProps:{closeBrackets:{triples:'"'}}}),p(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:g("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:g("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:g("for while do if else struct"),builtin:g("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:g("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":i},modeProps:{fold:["brace","include"]}}),p("text/x-nesc",{name:"clike",keywords:g(t+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:g(u),blockKeywords:g("case do else for if switch while struct"),atoms:g("null true false"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),p("text/x-objectivec",{name:"clike",keywords:g(t+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:g(u),atoms:g("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(a){return a.eatWhile(/[\w\$]/),"keyword"},"#":i,indent:function(a,b,c){if("statement"==b.type&&/^@\w/.test(c))return b.indented}},modeProps:{fold:"brace"}}),p("text/x-squirrel",{name:"clike",keywords:g("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:g(u),blockKeywords:g("case catch class else for foreach if switch try while"),defKeywords:g("function local class"),typeFirstDefinitions:!0,atoms:g("true false null"),hooks:{"#":i},modeProps:{fold:["brace","include"]}});var v=null;p("text/x-ceylon",{name:"clike",keywords:g("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(a){var b=a.charAt(0);return b===b.toUpperCase()&&b!==b.toLowerCase()},blockKeywords:g("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:g("class dynamic function interface module object package value"),builtin:g("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:g("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(a){return a.eatWhile(/[\w\$_]/),"meta"},'"':function(a,b){return b.tokenize=s(a.match('""')?"triple":"single"),b.tokenize(a,b)},"`":function(a,b){return!(!v||!a.match("`"))&&(b.tokenize=v,v=null,b.tokenize(a,b))},"'":function(a){return a.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(a,b,c){if(("variable"==c||"variable-3"==c)&&"."==b.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],a):a(CodeMirror)}(function(a){"use strict";function b(a){for(var b={},c=a.split(" "),d=0;d<c.length;++d)b[c[d]]=!0;return b}function c(a,b,e){return 0==a.length?d(b):function(f,g){for(var h=a[0],i=0;i<h.length;i++)if(f.match(h[i][0]))return g.tokenize=c(a.slice(1),b),h[i][1];return g.tokenize=d(b,e),"string"}}function d(a,b){return function(c,d){return e(c,d,a,b)}}function e(a,b,d,e){if(e!==!1&&a.match("${",!1)||a.match("{$",!1))return b.tokenize=null,"string";if(e!==!1&&a.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return a.match("[",!1)&&(b.tokenize=c([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],d,e)),a.match(/\-\>\w/,!1)&&(b.tokenize=c([[["->",null]],[[/[\w]+/,"variable"]]],d,e)),"variable-2";for(var f=!1;!a.eol()&&(f||e===!1||!a.match("{$",!1)&&!a.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!f&&a.match(d)){b.tokenize=null,b.tokStack.pop(),b.tokStack.pop();break}f="\\"==a.next()&&!f}return"string"}var f="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",g="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",h="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";a.registerHelper("hintWords","php",[f,g,h].join(" ").split(" ")),a.registerHelper("wordChars","php",/[\w$]/);var i={name:"clike",helperType:"php",keywords:b(f),blockKeywords:b("catch do else elseif for foreach if switch try while finally"),defKeywords:b("class function interface namespace trait"),atoms:b(g),builtin:b(h),multiLineStrings:!0,hooks:{$:function(a){return a.eatWhile(/[\w\$_]/),"variable-2"},"<":function(a,b){var c;if(c=a.match(/<<\s*/)){var e=a.eat(/['"]/);a.eatWhile(/[\w\.]/);var f=a.current().slice(c[0].length+(e?2:1));if(e&&a.eat(e),f)return(b.tokStack||(b.tokStack=[])).push(f,0),b.tokenize=d(f,"'"!=e),"string"}return!1},"#":function(a){for(;!a.eol()&&!a.match("?>",!1);)a.next();return"comment"},"/":function(a){if(a.eat("/")){for(;!a.eol()&&!a.match("?>",!1);)a.next();return"comment"}return!1},'"':function(a,b){return(b.tokStack||(b.tokStack=[])).push('"',0),b.tokenize=d('"'),"string"},"{":function(a,b){return b.tokStack&&b.tokStack.length&&b.tokStack[b.tokStack.length-1]++,!1},"}":function(a,b){return b.tokStack&&b.tokStack.length>0&&!--b.tokStack[b.tokStack.length-1]&&(b.tokenize=d(b.tokStack[b.tokStack.length-2])),!1}}};a.defineMode("php",function(b,c){function d(b,c){var d=c.curMode==f;if(b.sol()&&c.pending&&'"'!=c.pending&&"'"!=c.pending&&(c.pending=null),d)return d&&null==c.php.tokenize&&b.match("?>")?(c.curMode=e,c.curState=c.html,c.php.context.prev||(c.php=null),"meta"):f.token(b,c.curState);if(b.match(/^<\?\w*/))return c.curMode=f,c.php||(c.php=a.startState(f,e.indent(c.html,""))),c.curState=c.php,"meta";if('"'==c.pending||"'"==c.pending){for(;!b.eol()&&b.next()!=c.pending;);var g="string"}else if(c.pending&&b.pos<c.pending.end){b.pos=c.pending.end;var g=c.pending.style}else var g=e.token(b,c.curState);c.pending&&(c.pending=null);var h,i=b.current(),j=i.search(/<\?/);return j!=-1&&("string"==g&&(h=i.match(/[\'\"]$/))&&!/\?>/.test(i)?c.pending=h[0]:c.pending={end:b.pos,style:g},b.backUp(i.length-j)),g}var e=a.getMode(b,"text/html"),f=a.getMode(b,i);return{startState:function(){var b=a.startState(e),d=c.startOpen?a.startState(f):null;return{html:b,php:d,curMode:c.startOpen?f:e,curState:c.startOpen?d:b,pending:null}},copyState:function(b){var c,d=b.html,g=a.copyState(e,d),h=b.php,i=h&&a.copyState(f,h);return c=b.curMode==e?g:i,{html:g,php:i,curMode:b.curMode,curState:c,pending:b.pending}},token:d,indent:function(a,b){return a.curMode!=f&&/^\s*<\//.test(b)||a.curMode==f&&/^\?>/.test(b)?e.indent(a.html,b):a.curMode.indent(a.curState,b)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(a){return{state:a.curState,mode:a.curMode}}}},"htmlmixed","clike"),a.defineMIME("application/x-httpd-php","php"),a.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),a.defineMIME("text/x-php",i)}),function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)}(function(a){function b(a,b,d,e){var f=a.getLineHandle(b.line),i=b.ch-1,j=i>=0&&h[f.text.charAt(i)]||h[f.text.charAt(++i)];if(!j)return null;var k=">"==j.charAt(1)?1:-1;if(d&&k>0!=(i==b.ch))return null;var l=a.getTokenTypeAt(g(b.line,i+1)),m=c(a,g(b.line,i+(k>0?1:0)),k,l||null,e);return null==m?null:{from:g(b.line,i),to:m&&m.pos,match:m&&m.ch==j.charAt(0),forward:k>0}}function c(a,b,c,d,e){for(var f=e&&e.maxScanLineLength||1e4,i=e&&e.maxScanLines||1e3,j=[],k=e&&e.bracketRegex?e.bracketRegex:/[(){}[\]]/,l=c>0?Math.min(b.line+i,a.lastLine()+1):Math.max(a.firstLine()-1,b.line-i),m=b.line;m!=l;m+=c){var n=a.getLine(m);if(n){var o=c>0?0:n.length-1,p=c>0?n.length:-1;if(!(n.length>f))for(m==b.line&&(o=b.ch-(c<0?1:0));o!=p;o+=c){var q=n.charAt(o);if(k.test(q)&&(void 0===d||a.getTokenTypeAt(g(m,o+1))==d)){var r=h[q];if(">"==r.charAt(1)==c>0)j.push(q);else{if(!j.length)return{pos:g(m,o),ch:q};j.pop()}}}}}return m-c!=(c>0?a.lastLine():a.firstLine())&&null}function d(a,c,d){for(var e=a.state.matchBrackets.maxHighlightLineLength||1e3,h=[],i=a.listSelections(),j=0;j<i.length;j++){var k=i[j].empty()&&b(a,i[j].head,!1,d);if(k&&a.getLine(k.from.line).length<=e){var l=k.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";h.push(a.markText(k.from,g(k.from.line,k.from.ch+1),{className:l})),k.to&&a.getLine(k.to.line).length<=e&&h.push(a.markText(k.to,g(k.to.line,k.to.ch+1),{className:l}))}}if(h.length){f&&a.state.focused&&a.focus();var m=function(){a.operation(function(){for(var a=0;a<h.length;a++)h[a].clear()})};if(!c)return m;setTimeout(m,800)}}function e(a){a.operation(function(){i&&(i(),i=null),i=d(a,!1,a.state.matchBrackets)})}var f=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),g=a.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},i=null;a.defineOption("matchBrackets",!1,function(b,c,d){d&&d!=a.Init&&(b.off("cursorActivity",e),i&&(i(),i=null)),c&&(b.state.matchBrackets="object"==typeof c?c:{},b.on("cursorActivity",e))}),a.defineExtension("matchBrackets",function(){d(this,!0)}),a.defineExtension("findMatchingBracket",function(a,c,d){return b(this,a,c,d);
7
+ }),a.defineExtension("scanForBracket",function(a,b,d,e){return c(this,a,b,d,e)})});
trunk/js/min/tag-it.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(a){a.widget("ui.tagit",{options:{allowDuplicates:!1,caseSensitive:!0,fieldName:"tags",placeholderText:null,readOnly:!1,removeConfirmation:!1,tagLimit:null,availableTags:[],autocomplete:{},showAutocompleteOnFocus:!1,allowSpaces:!1,singleField:!1,singleFieldDelimiter:",",singleFieldNode:null,animate:!0,tabIndex:null,beforeTagAdded:null,afterTagAdded:null,beforeTagRemoved:null,afterTagRemoved:null,onTagClicked:null,onTagLimitExceeded:null,onTagAdded:null,onTagRemoved:null,tagSource:null},_create:function(){var b=this;this.element.is("input")?(this.tagList=a("<ul></ul>").insertAfter(this.element),this.options.singleField=!0,this.options.singleFieldNode=this.element,this.element.addClass("tagit-hidden-field")):this.tagList=this.element.find("ul, ol").andSelf().last(),this.tagInput=a('<input type="text" />').addClass("ui-widget-content"),this.options.readOnly&&this.tagInput.attr("disabled","disabled"),this.options.tabIndex&&this.tagInput.attr("tabindex",this.options.tabIndex),this.options.placeholderText&&this.tagInput.attr("placeholder",this.options.placeholderText),this.options.autocomplete.source||(this.options.autocomplete.source=function(b,c){var d=b.term.toLowerCase(),e=a.grep(this.options.availableTags,function(a){return 0===a.toLowerCase().indexOf(d)});this.options.allowDuplicates||(e=this._subtractArray(e,this.assignedTags())),c(e)}),this.options.showAutocompleteOnFocus&&(this.tagInput.focus(function(a,c){b._showAutocomplete()}),"undefined"==typeof this.options.autocomplete.minLength&&(this.options.autocomplete.minLength=0)),a.isFunction(this.options.autocomplete.source)&&(this.options.autocomplete.source=a.proxy(this.options.autocomplete.source,this)),a.isFunction(this.options.tagSource)&&(this.options.tagSource=a.proxy(this.options.tagSource,this)),this.tagList.addClass("tagit").addClass("ui-widget ui-widget-content ui-corner-all").append(a('<li class="tagit-new"></li>').append(this.tagInput)).click(function(c){var d=a(c.target);if(d.hasClass("tagit-label")){var e=d.closest(".tagit-choice");e.hasClass("removed")||b._trigger("onTagClicked",c,{tag:e,tagLabel:b.tagLabel(e)})}else b.tagInput.focus()});var c=!1;if(this.options.singleField)if(this.options.singleFieldNode){var d=a(this.options.singleFieldNode),e=d.val().split(this.options.singleFieldDelimiter);d.val(""),a.each(e,function(a,d){b.createTag(d,null,!0),c=!0})}else this.options.singleFieldNode=a('<input type="hidden" style="display:none;" value="" name="'+this.options.fieldName+'" />'),this.tagList.after(this.options.singleFieldNode);if(c||this.tagList.children("li").each(function(){a(this).hasClass("tagit-new")||(b.createTag(a(this).text(),a(this).attr("class"),!0),a(this).remove())}),this.tagInput.keydown(function(c){if(c.which==a.ui.keyCode.BACKSPACE&&""===b.tagInput.val()){var d=b._lastTag();!b.options.removeConfirmation||d.hasClass("remove")?b.removeTag(d):b.options.removeConfirmation&&d.addClass("remove ui-state-highlight")}else b.options.removeConfirmation&&b._lastTag().removeClass("remove ui-state-highlight");(c.which===a.ui.keyCode.COMMA&&c.shiftKey===!1||c.which===a.ui.keyCode.ENTER||c.which==a.ui.keyCode.TAB&&""!==b.tagInput.val()||c.which==a.ui.keyCode.SPACE&&b.options.allowSpaces!==!0&&('"'!=a.trim(b.tagInput.val()).replace(/^s*/,"").charAt(0)||'"'==a.trim(b.tagInput.val()).charAt(0)&&'"'==a.trim(b.tagInput.val()).charAt(a.trim(b.tagInput.val()).length-1)&&a.trim(b.tagInput.val()).length-1!==0))&&(c.which===a.ui.keyCode.ENTER&&""===b.tagInput.val()||c.preventDefault(),b.options.autocomplete.autoFocus&&b.tagInput.data("autocomplete-open")||(b.tagInput.autocomplete("close"),b.createTag(b._cleanedInput())))}).blur(function(a){b.tagInput.data("autocomplete-open")||b.createTag(b._cleanedInput())}),this.options.availableTags||this.options.tagSource||this.options.autocomplete.source){var f={select:function(a,c){return b.createTag(c.item.value),!1}};a.extend(f,this.options.autocomplete),f.source=this.options.tagSource||f.source,this.tagInput.autocomplete(f).bind("autocompleteopen.tagit",function(a,c){b.tagInput.data("autocomplete-open",!0)}).bind("autocompleteclose.tagit",function(a,c){b.tagInput.data("autocomplete-open",!1)}),this.tagInput.autocomplete("widget").addClass("tagit-autocomplete")}},destroy:function(){return a.Widget.prototype.destroy.call(this),this.element.unbind(".tagit"),this.tagList.unbind(".tagit"),this.tagInput.removeData("autocomplete-open"),this.tagList.removeClass(["tagit","ui-widget","ui-widget-content","ui-corner-all","tagit-hidden-field"].join(" ")),this.element.is("input")?(this.element.removeClass("tagit-hidden-field"),this.tagList.remove()):(this.element.children("li").each(function(){a(this).hasClass("tagit-new")?a(this).remove():(a(this).removeClass(["tagit-choice","ui-widget-content","ui-state-default","ui-state-highlight","ui-corner-all","remove","tagit-choice-editable","tagit-choice-read-only"].join(" ")),a(this).text(a(this).children(".tagit-label").text()))}),this.singleFieldNode&&this.singleFieldNode.remove()),this},_cleanedInput:function(){return a.trim(this.tagInput.val().replace(/^"(.*)"$/,"$1"))},_lastTag:function(){return this.tagList.find(".tagit-choice:last:not(.removed)")},_tags:function(){return this.tagList.find(".tagit-choice:not(.removed)")},assignedTags:function(){var b=this,c=[];return this.options.singleField?(c=a(this.options.singleFieldNode).val().split(this.options.singleFieldDelimiter),""===c[0]&&(c=[])):this._tags().each(function(){c.push(b.tagLabel(this))}),c},_updateSingleTagsField:function(b){a(this.options.singleFieldNode).val(b.join(this.options.singleFieldDelimiter)).trigger("change")},_subtractArray:function(b,c){for(var d=[],e=0;e<b.length;e++)a.inArray(b[e],c)==-1&&d.push(b[e]);return d},tagLabel:function(b){return this.options.singleField?a(b).find(".tagit-label:first").text():a(b).find("input:first").val()},_showAutocomplete:function(){this.tagInput.autocomplete("search","")},_findTagByLabel:function(b){var c=this,d=null;return this._tags().each(function(e){if(c._formatStr(b)==c._formatStr(c.tagLabel(this)))return d=a(this),!1}),d},_isNew:function(a){return!this._findTagByLabel(a)},_formatStr:function(b){return this.options.caseSensitive?b:a.trim(b.toLowerCase())},_effectExists:function(b){return Boolean(a.effects&&(a.effects[b]||a.effects.effect&&a.effects.effect[b]))},createTag:function(b,c,d){var e=this;if(b=a.trim(b),this.options.preprocessTag&&(b=this.options.preprocessTag(b)),""===b)return!1;if(!this.options.allowDuplicates&&!this._isNew(b)){var f=this._findTagByLabel(b);return this._trigger("onTagExists",null,{existingTag:f,duringInitialization:d})!==!1&&this._effectExists("highlight")&&f.effect("highlight"),!1}if(this.options.tagLimit&&this._tags().length>=this.options.tagLimit)return this._trigger("onTagLimitExceeded",null,{duringInitialization:d}),!1;var g=a(this.options.onTagClicked?'<a class="tagit-label"></a>':'<span class="tagit-label"></span>').text(b),h=a("<li></li>").addClass("tagit-choice ui-widget-content ui-state-default ui-corner-all").addClass(c).append(g);if(this.options.readOnly)h.addClass("tagit-choice-read-only");else{h.addClass("tagit-choice-editable");var i=a("<span></span>").addClass("ui-icon ui-icon-close"),j=a('<a><span class="text-icon">×</span></a>').addClass("tagit-close").append(i).click(function(a){e.removeTag(h)});h.append(j)}if(!this.options.singleField){var k=g.html();h.append('<input type="hidden" value="'+k+'" name="'+this.options.fieldName+'" class="tagit-hidden-field" />')}if(this._trigger("beforeTagAdded",null,{tag:h,tagLabel:this.tagLabel(h),duringInitialization:d})!==!1){if(this.options.singleField){var l=this.assignedTags();l.push(b),this._updateSingleTagsField(l)}this._trigger("onTagAdded",null,h),this.tagInput.val(""),this.tagInput.parent().before(h),this._trigger("afterTagAdded",null,{tag:h,tagLabel:this.tagLabel(h),duringInitialization:d}),this.options.showAutocompleteOnFocus&&!d&&setTimeout(function(){e._showAutocomplete()},0)}},removeTag:function(b,c){if(c="undefined"==typeof c?this.options.animate:c,b=a(b),this._trigger("onTagRemoved",null,b),this._trigger("beforeTagRemoved",null,{tag:b,tagLabel:this.tagLabel(b)})!==!1){if(this.options.singleField){var d=this.assignedTags(),e=this.tagLabel(b);d=a.grep(d,function(a){return a!=e}),this._updateSingleTagsField(d)}if(c){b.addClass("removed");var f=this._effectExists("blind")?["blind",{direction:"horizontal"},"fast"]:["fast"],g=this;f.push(function(){b.remove(),g._trigger("afterTagRemoved",null,{tag:b,tagLabel:g.tagLabel(b)})}),b.fadeOut("fast").hide.apply(b,f).dequeue()}else b.remove(),this._trigger("afterTagRemoved",null,{tag:b,tagLabel:this.tagLabel(b)})}},removeTagByLabel:function(a,b){var c=this._findTagByLabel(a);if(!c)throw"No such tag exists with the name '"+a+"'";this.removeTag(c,b)},removeAll:function(){var a=this;this._tags().each(function(b,c){a.removeTag(c,!1)})}})}(jQuery);
trunk/languages/code-snippets-de_DE.mo ADDED
Binary file
trunk/languages/code-snippets-de_DE.po ADDED
@@ -0,0 +1,1253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Code Snippets v2.8.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-02-18 15:58+1100\n"
6
+ "PO-Revision-Date: 2017-02-18 16:00+1100\n"
7
+ "Last-Translator: Mario Siegmann <mario_siegmann@web.de>\n"
8
+ "Language-Team: Mario Siegmann <mario_siegmann@web.de>\n"
9
+ "Language: de_DE\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 1.8.11\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
18
+ "X-Poedit-Basepath: ..\n"
19
+ "X-Textdomain-Support: yes\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: php/admin-menus/class-admin-menu.php:98
23
+ msgid "You are not authorized to access this page."
24
+ msgstr "Du hast keine Berechtigung diese Seite zu betreten."
25
+
26
+ # @ code-snippets
27
+ #: php/admin-menus/class-edit-menu.php:13
28
+ #: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
29
+ msgid "Edit Snippet"
30
+ msgstr "Codeschnipsel bearbeiten"
31
+
32
+ # @ code-snippets
33
+ #: php/admin-menus/class-edit-menu.php:37
34
+ msgctxt "menu label"
35
+ msgid "Add New"
36
+ msgstr "Hinzufügen"
37
+
38
+ # @ code-snippets
39
+ #: php/admin-menus/class-edit-menu.php:38 php/views/edit.php:31
40
+ msgid "Add New Snippet"
41
+ msgstr "Neuen Codeschnipsel hinzufügen"
42
+
43
+ #: php/admin-menus/class-edit-menu.php:178
44
+ msgid "Don't Panic"
45
+ msgstr "Keine Panik"
46
+
47
+ #: php/admin-menus/class-edit-menu.php:179
48
+ #, php-format
49
+ msgid ""
50
+ "The code snippet you are trying to save produced a fatal error on line %d:"
51
+ msgstr ""
52
+ "Der Codeschnipsel, den Sie versuchen zu speichern, produziert einen fatalen "
53
+ "Fehler in Zeile %d:"
54
+
55
+ #: php/admin-menus/class-edit-menu.php:181
56
+ msgid ""
57
+ "The previous version of the snippet is unchanged, and the rest of this site "
58
+ "should be functioning normally as before."
59
+ msgstr ""
60
+ "Die vorherige Version dieses Codeschnipsels ist unverändert und der Rest der "
61
+ "Seite sollte normal wie zuvor funktionieren."
62
+
63
+ #: php/admin-menus/class-edit-menu.php:182
64
+ msgid ""
65
+ "Please use the back button in your browser to return to the previous page "
66
+ "and try to fix the code error."
67
+ msgstr ""
68
+ "Bitte nutzen Sie die Zurück-Schaltfläche in Ihrem Browser um zur vorherigen "
69
+ "Seite zurückzukehren und versuchen Sie den Fehler zu korrigieren."
70
+
71
+ #: php/admin-menus/class-edit-menu.php:183
72
+ msgid ""
73
+ "If you prefer, you can close this page and discard the changes you just "
74
+ "made. No changes will be made to this site."
75
+ msgstr ""
76
+ "Wenn Sie möchten, können Sie diese Seite schließen und die gerade "
77
+ "durchgeführten Änderungen verwerfen. Es werden keine Änderungen an dieser "
78
+ "Website vorgenommen."
79
+
80
+ # @ code-snippets
81
+ #: php/admin-menus/class-edit-menu.php:303 php/class-list-table.php:324
82
+ msgid "Description"
83
+ msgstr "Beschreibung"
84
+
85
+ #: php/admin-menus/class-edit-menu.php:334 php/class-list-table.php:325
86
+ msgid "Tags"
87
+ msgstr "Stichworte"
88
+
89
+ #: php/admin-menus/class-edit-menu.php:338
90
+ msgid "Enter a list of tags; separated by commas"
91
+ msgstr "Schlagwortliste, Komma getrennt"
92
+
93
+ #: php/admin-menus/class-edit-menu.php:358
94
+ msgid "Run snippet everywhere"
95
+ msgstr "Codeschnipsel überall ausführen"
96
+
97
+ #: php/admin-menus/class-edit-menu.php:359
98
+ msgid "Only run in administration area"
99
+ msgstr "Nur im Administrationsbereich ausführen"
100
+
101
+ #: php/admin-menus/class-edit-menu.php:360
102
+ msgid "Only run on site front-end"
103
+ msgstr "Nur auf öffentlicher Seite ausführen"
104
+
105
+ #: php/admin-menus/class-edit-menu.php:364
106
+ msgid "Scope"
107
+ msgstr "Bereich"
108
+
109
+ #: php/admin-menus/class-edit-menu.php:384
110
+ msgid "Sharing"
111
+ msgstr "Teilen"
112
+
113
+ #: php/admin-menus/class-edit-menu.php:388
114
+ msgid "Allow this snippet to be activated on individual sites on the network"
115
+ msgstr ""
116
+ "Diesem Codeschnipsel erlauben, auf individuellen Seiten im Netzwerk "
117
+ "aktiviert zu werden"
118
+
119
+ #: php/admin-menus/class-edit-menu.php:448
120
+ #, php-format
121
+ msgid "The snippet has been deactivated due to an error on line %d:"
122
+ msgstr ""
123
+ "Der Codeschnipsel deaktiviert wurde aufgrund eines Fehlers in Zeile %d:"
124
+
125
+ #: php/admin-menus/class-edit-menu.php:453
126
+ msgid "The snippet has been deactivated due to an error in the code."
127
+ msgstr "Der Codeschnipsel wurde aufgrund eines Fehlers im Code deaktiviert."
128
+
129
+ #: php/admin-menus/class-edit-menu.php:460
130
+ msgid "An error occurred when saving the snippet."
131
+ msgstr "Es trat ein Fehler beim Speichern des Codeschnipsel auf."
132
+
133
+ # @ code-snippets
134
+ #: php/admin-menus/class-edit-menu.php:465
135
+ msgid "Snippet <strong>added</strong>."
136
+ msgstr "Codeschnipsel <strong>hinzugefügt</strong>."
137
+
138
+ # @ code-snippets
139
+ #: php/admin-menus/class-edit-menu.php:466
140
+ msgid "Snippet <strong>updated</strong>."
141
+ msgstr "Codeschnipsel <strong>aktualisiert</strong>."
142
+
143
+ # @ code-snippets
144
+ #: php/admin-menus/class-edit-menu.php:467
145
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
146
+ msgstr ""
147
+ "Codeschnipsel <strong>hinzugefügt</strong> und <strong>aktiviert</strong>."
148
+
149
+ # @ code-snippets
150
+ #: php/admin-menus/class-edit-menu.php:468
151
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
152
+ msgstr ""
153
+ "Codeschnipsel <strong>aktualisiert</strong> und <strong>aktiviert</strong>."
154
+
155
+ #: php/admin-menus/class-edit-menu.php:469
156
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
157
+ msgstr ""
158
+ "Codeschnipsel <strong>aktualisiert</strong> und <strong>deaktiviert</strong>."
159
+
160
+ #: php/admin-menus/class-import-menu.php:15
161
+ msgctxt "menu label"
162
+ msgid "Import"
163
+ msgstr "Importieren"
164
+
165
+ # @ code-snippets
166
+ #: php/admin-menus/class-import-menu.php:16 php/views/import.php:17
167
+ msgid "Import Snippets"
168
+ msgstr "Codeschnipsel importieren"
169
+
170
+ # @ code-snippets
171
+ #: php/admin-menus/class-import-menu.php:78
172
+ msgid "Code Snippets"
173
+ msgstr "Codeschnipsel"
174
+
175
+ #: php/admin-menus/class-import-menu.php:79
176
+ msgid "Import snippets from a code snippets export file"
177
+ msgstr "Importiere Codeschnipsel aus einer Code Snippets Export Datei."
178
+
179
+ #: php/admin-menus/class-import-menu.php:93
180
+ #, php-format
181
+ msgid ""
182
+ "Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
183
+ "a>"
184
+ msgid_plural ""
185
+ "Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
186
+ "</a>"
187
+ msgstr[0] ""
188
+ "Erfolgreicher Import des <strong>%d</strong> Codeschnipsel. <a href=\"%s"
189
+ "\">Viel Spass!</a>"
190
+ msgstr[1] ""
191
+ "Erfolgreicher Import der <strong>%d</strong> Codeschnipsel. <a href=\"%s"
192
+ "\">Viel Spass!</a>"
193
+
194
+ #: php/admin-menus/class-import-menu.php:106
195
+ msgid "An error occurred when processing the import file."
196
+ msgstr "Ein Fehler trat bei der Verarbeitung der importierten Datei auf."
197
+
198
+ #: php/admin-menus/class-manage-menu.php:22
199
+ msgctxt "menu label"
200
+ msgid "All Snippets"
201
+ msgstr "Alle Codeschnipsel"
202
+
203
+ # @ code-snippets
204
+ #: php/admin-menus/class-manage-menu.php:23
205
+ #: php/admin-menus/class-manage-menu.php:39 php/class-admin.php:52
206
+ #: php/class-admin.php:111 php/views/manage.php:19
207
+ msgid "Snippets"
208
+ msgstr "Codeschnipsel"
209
+
210
+ #: php/admin-menus/class-manage-menu.php:40
211
+ msgctxt "top-level menu label"
212
+ msgid "Snippets"
213
+ msgstr "Codeschnipsel"
214
+
215
+ #: php/admin-menus/class-manage-menu.php:75
216
+ msgid ""
217
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
218
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
219
+ "config.php</code> to turn off safe mode. <a href=\"https://github.com/"
220
+ "sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
221
+ msgstr ""
222
+ "<strong>Warnung:</strong> Sicherheitsmodus aktiv! Codeschnipsel werden nicht "
223
+ "ausgeführt. Entferne den Parameter <code>CODE_SNIPPETS_SAFE_MODE</code> aus "
224
+ "deiner <code>wp-config.php</code> um den Sicherheitsmodus auszuschalten. <a "
225
+ "href=\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target="
226
+ "\"_blank\">Hilfe hierzu (engl.)</a>"
227
+
228
+ # @ code-snippets
229
+ #: php/admin-menus/class-manage-menu.php:81
230
+ msgid "Snippet <strong>activated</strong>."
231
+ msgstr "Codeschnipsel <strong>aktiviert</strong>."
232
+
233
+ # @ code-snippets
234
+ #: php/admin-menus/class-manage-menu.php:82
235
+ msgid "Selected snippets <strong>activated</strong>."
236
+ msgstr "Ausgewählte Codeschnipsel wurden <strong>aktiviert</strong>."
237
+
238
+ # @ code-snippets
239
+ #: php/admin-menus/class-manage-menu.php:83
240
+ msgid "Snippet <strong>deactivated</strong>."
241
+ msgstr "Codeschnipsel <strong>deaktiviert</strong>."
242
+
243
+ # @ code-snippets
244
+ #: php/admin-menus/class-manage-menu.php:84
245
+ msgid "Selected snippets <strong>deactivated</strong>."
246
+ msgstr "Ausgewählte Codeschnipsel wurden <strong>deaktiviert</strong>."
247
+
248
+ # @ code-snippets
249
+ #: php/admin-menus/class-manage-menu.php:85
250
+ msgid "Snippet <strong>deleted</strong>."
251
+ msgstr "Codeschnipsel <strong>gelöscht</strong>."
252
+
253
+ # @ code-snippets
254
+ #: php/admin-menus/class-manage-menu.php:86
255
+ msgid "Selected snippets <strong>deleted</strong>."
256
+ msgstr "Ausgewählte Codeschnipsel wurden <strong>gelöscht</strong>."
257
+
258
+ #: php/admin-menus/class-settings-menu.php:16
259
+ msgctxt "menu label"
260
+ msgid "Settings"
261
+ msgstr "Einstellungen"
262
+
263
+ #: php/admin-menus/class-settings-menu.php:17
264
+ msgid "Snippets Settings"
265
+ msgstr "Codeschnipsel Einstellungen"
266
+
267
+ #: php/admin-menus/class-settings-menu.php:36 php/views/edit.php:135
268
+ msgid "Settings"
269
+ msgstr "Einstellungen"
270
+
271
+ # @ code-snippets
272
+ #: php/class-admin.php:110
273
+ msgid "Manage your existing snippets"
274
+ msgstr "Bestehende Codeschnipsel verwalten"
275
+
276
+ # @ code-snippets
277
+ #: php/class-admin.php:141
278
+ msgid "Visit the WordPress.org plugin page"
279
+ msgstr "Die Plugin-Seite bei WordPress.org aufrufen"
280
+
281
+ # @ code-snippets
282
+ #: php/class-admin.php:142
283
+ msgid "About"
284
+ msgstr "Über"
285
+
286
+ # @ code-snippets
287
+ #: php/class-admin.php:146
288
+ msgid "Visit the support forums"
289
+ msgstr "Die Support-Foren aufrufen"
290
+
291
+ # @ code-snippets
292
+ #: php/class-admin.php:147
293
+ msgid "Support"
294
+ msgstr "Support"
295
+
296
+ # @ code-snippets
297
+ #: php/class-admin.php:151
298
+ msgid "Support this plugin's development"
299
+ msgstr "Die Entwicklung dieses Plugins unterstützen"
300
+
301
+ # @ code-snippets
302
+ #: php/class-admin.php:152
303
+ msgid "Donate"
304
+ msgstr "Spenden"
305
+
306
+ #: php/class-admin.php:183
307
+ msgid ""
308
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
309
+ "answer a short survey on how you use this plugin and what you'd like to see "
310
+ "changed or added in the future."
311
+ msgstr ""
312
+ "<strong>Kommentar zu Codeschnipsel?</strong> Nehmen sie sich ein wenig Zeit "
313
+ "und beantworten sie bitte eine kurze Umfrage zum Plugin, wie sie es nutzen "
314
+ "und welche Funktionen sie in Zukunft gerne verändert oder hinzugefügt haben "
315
+ "möchten."
316
+
317
+ #: php/class-admin.php:187
318
+ msgid "Take the survey now"
319
+ msgstr "An der Umfrage teilnehmen"
320
+
321
+ #: php/class-admin.php:190
322
+ msgid "Dismiss"
323
+ msgstr "Verwerfen"
324
+
325
+ # @ code-snippets
326
+ #: php/class-contextual-help.php:40
327
+ msgid "For more information:"
328
+ msgstr "Weitere Informationen:"
329
+
330
+ #: php/class-contextual-help.php:41
331
+ msgid "About Plugin"
332
+ msgstr "Über das Plugin"
333
+
334
+ #: php/class-contextual-help.php:42
335
+ msgid "FAQ"
336
+ msgstr "FAQ"
337
+
338
+ #: php/class-contextual-help.php:43
339
+ msgid "Support Forums"
340
+ msgstr "Support-Foren"
341
+
342
+ #: php/class-contextual-help.php:44
343
+ msgid "Plugin Website"
344
+ msgstr "Plugin-Webseite"
345
+
346
+ # @ code-snippets
347
+ #: php/class-contextual-help.php:55 php/class-contextual-help.php:81
348
+ #: php/class-contextual-help.php:114
349
+ msgid "Overview"
350
+ msgstr "Übersicht"
351
+
352
+ # @ code-snippets
353
+ #: php/class-contextual-help.php:56
354
+ msgid ""
355
+ "Snippets are similar to plugins - they both extend and expand the "
356
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
357
+ "of code, and do not put as much load on your server. Here you can manage "
358
+ "your existing snippets and perform tasks on them such as activating, "
359
+ "deactivating, deleting and exporting."
360
+ msgstr ""
361
+ "Codeschnipsel sind ähnlich wie Plugins - beide erweitern bzw. verändern die "
362
+ "Funktionalität. Codeschnipsel sind jedoch weniger komplex und "
363
+ "leichtgewichtiger; nur einige Zeilen Code. Damit fällt auch weniger Last auf "
364
+ "dem Webserver an. Hier können Sie bereits existierende Codeschnipsel "
365
+ "bearbeiten bzw. Aktionen damit ausführen, wie Aktivieren, Deaktivieren, "
366
+ "Löschen sowie Exportieren."
367
+
368
+ # @ code-snippets
369
+ #: php/class-contextual-help.php:61
370
+ msgid "Safe Mode"
371
+ msgstr "Sicherheitsmodus"
372
+
373
+ # @ code-snippets
374
+ #: php/class-contextual-help.php:62
375
+ msgid ""
376
+ "Be sure to check your snippets for errors before you activate them, as a "
377
+ "faulty snippet could bring your whole blog down. If your site starts doing "
378
+ "strange things, deactivate all your snippets and activate them one at a time."
379
+ msgstr ""
380
+ "Stellen Sie sicher, dass Sie Ihre Codeschnipsel vor dem Aktivieren "
381
+ "überprüfen. Fehlerhafte Codeschnipsel können Ihre gesamte Webseite zum Crash "
382
+ "bringen. Falls Ihre Webseite eigenartige Dinge vollführt oder komische "
383
+ "Sachen anzeigt, deaktivieren Sie bitte alle Codeschnipsel und aktivieren Sie "
384
+ "diese eins nach dem anderen."
385
+
386
+ # @ code-snippets
387
+ #: php/class-contextual-help.php:63
388
+ msgid ""
389
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
390
+ "cause all snippets to stop executing by adding "
391
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
392
+ "config.php</code> file. After you have deactivated the offending snippet, "
393
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
394
+ "strong> with <strong>false</strong>."
395
+ msgstr ""
396
+ "Falls etwas schief läuft und Sie WordPress nicht mehr verwenden können - "
397
+ "sprich: den Admin-Bereich - können Sie alle Codeschnipsel dieses Plugins von "
398
+ "der Ausführung abhalten, indem Sie folgende Konstante "
399
+ "<code>define( 'CODE_SNIPPETS_SAFE_MODE', true );</code> Ihrer WordPress-"
400
+ "Konfigurationsdatei <code>wp-config.php</code> hinzufügen. Nachdem Sie den "
401
+ "fehlerhaften Codeschnipsel gefunden und deaktiviert haben, können Sie den "
402
+ "Sicherheitsmodus in der <code>wp-config.php</code> wieder entfernen bzw. den "
403
+ "Wert der Konstante von <strong>true</strong> auf dann <strong>false</strong> "
404
+ "setzen."
405
+
406
+ # @ code-snippets
407
+ #: php/class-contextual-help.php:68
408
+ msgid "Uninstall"
409
+ msgstr "Deinstallieren"
410
+
411
+ # @ code-snippets
412
+ #: php/class-contextual-help.php:69
413
+ #, php-format
414
+ msgid ""
415
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
416
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
417
+ "the database. If you want to keep this data (ie: you are only temporally "
418
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
419
+ "FTP."
420
+ msgstr ""
421
+ "Wenn Sie das Codeschnipsel-Plugin <strong>über das Plugins-Menü in WordPress "
422
+ "löschen</strong>, wird es die <code>%1$s</code> Tabelle leeren und einige "
423
+ "anderen Einstellungen in Ihrer Datenbank. Falls Sie diese Daten jedoch "
424
+ "sichern wollen (mit anderen Worten: Sie wollen das Plugin nur temporär "
425
+ "deinstallieren), dann sollten Sie den <code>%2$s</code> Ordner lediglich "
426
+ "<strong>via FTP</strong> entfernen."
427
+
428
+ # @ code-snippets
429
+ #: php/class-contextual-help.php:70
430
+ msgid ""
431
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
432
+ "this WordPress installation, you may want to use the export feature to back "
433
+ "up your snippets."
434
+ msgstr ""
435
+ "Auch wenn Sie sicher sind, dass Sie das Codeschnipsel-Plugin niemals mehr in "
436
+ "dieser WordPress-Installation verwenden werden, sollten sie vielleicht "
437
+ "dennoch vorher die Export-Funktion verwenden, um Ihre Codeschnipsel zu "
438
+ "sichern."
439
+
440
+ # @ code-snippets
441
+ #: php/class-contextual-help.php:82
442
+ msgid ""
443
+ "Snippets are similar to plugins - they both extend and expand the "
444
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
445
+ "of code, and do not put as much load on your server. Here you can add a new "
446
+ "snippet, or edit an existing one."
447
+ msgstr ""
448
+ "Codeschnipsel sind ähnlich wie Plugins - beide erweitern bzw. verändern die "
449
+ "Funktionalität. Codeschnipsel sind jedoch weniger komplex und "
450
+ "leichtgewichtiger; nur einige Zeilen Code. Damit fällt auch weniger Last auf "
451
+ "dem Webserver an. Hier können Sie einen neuen Codeschnipsel hinzufügen oder "
452
+ "bereits Existierende bearbeiten."
453
+
454
+ # @ code-snippets
455
+ #: php/class-contextual-help.php:87
456
+ msgid "Finding Snippets"
457
+ msgstr "Codeschnipsel finden"
458
+
459
+ #: php/class-contextual-help.php:88
460
+ msgid ""
461
+ "Here are some links to websites which host a large number of snippets that "
462
+ "you can add to your site.\n"
463
+ "\t\t\t\t<ul>\n"
464
+ "\t\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
465
+ "\">WP-Snippets</a></li>\n"
466
+ "\t\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
467
+ "a></li>\n"
468
+ "\t\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
469
+ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
470
+ "\t\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
471
+ "\t\t\t\t</ul>"
472
+ msgstr ""
473
+ "Hier sind einige Links zu Webseiten, welche eine große Anzahl an "
474
+ "Codeschnipsel zur Verfügung stellen und die verwendet werden können.\n"
475
+ "\t\t\t\t<ul>\n"
476
+ "\t\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
477
+ "\">WP-Snippets</a></li>\n"
478
+ "\t\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
479
+ "a></li>\n"
480
+ "\t\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
481
+ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
482
+ "\t\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
483
+ "\t\t\t\t</ul>"
484
+
485
+ # @ code-snippets
486
+ #: php/class-contextual-help.php:95
487
+ msgid ""
488
+ "More places to find snippets, as well as a selection of example snippets, "
489
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
490
+ "wiki/Finding-snippets\">plugin documentation</a>"
491
+ msgstr ""
492
+ "Weitere Orte, um Codeschnipsel zu finden und ebenso eine Sammlung von "
493
+ "Beispiel-Schnipseln finden Sie in der <a href=\"https://github.com/sheabunge/"
494
+ "code-snippets/wiki/Finding-snippets\">Dokumentation des Plugins</a>."
495
+
496
+ # @ code-snippets
497
+ #: php/class-contextual-help.php:100
498
+ msgid "Adding Snippets"
499
+ msgstr "Codeschnipsel hinzufügen"
500
+
501
+ # @ code-snippets
502
+ #: php/class-contextual-help.php:101
503
+ msgid ""
504
+ "You need to fill out the name and code fields for your snippet to be added. "
505
+ "While the description field will add more information about how your snippet "
506
+ "works, what is does and where you found it, it is completely optional."
507
+ msgstr ""
508
+ "Sie müssen die Felder für 'Name' und 'Code' ausfüllen, damit der Schnipsel "
509
+ "hinzugefügt werden kann. Das Beschreibungsfeld ist völlig optional, es wird "
510
+ "jedoch sehr empfohlen. Damit können Sie kurz notieren, was der Code "
511
+ "eigentlich macht und bewahren sich so auf elegante Weise die Übersicht."
512
+
513
+ # @ code-snippets
514
+ #: php/class-contextual-help.php:102
515
+ msgid ""
516
+ "Please be sure to check that your snippet is valid PHP code and will not "
517
+ "produce errors before adding it through this page. While doing so will not "
518
+ "become active straight away, it will help to minimise the chance of a faulty "
519
+ "snippet becoming active on your site."
520
+ msgstr ""
521
+ "Bitte stellen Sie vor dem Einfügen von Codeschnipseln sicher, dass Ihr "
522
+ "entsprechender Codeschipsel valider PHP-Code ist und keine Fehler "
523
+ "produziert. Somit erhöhen Sie von vornherein die Wahrscheinlichkeit, dass "
524
+ "überhaupt fehlerhafte Codeschnipsel in Ihrer Installation aktiviert werden."
525
+
526
+ # @ code-snippets
527
+ #: php/class-contextual-help.php:115
528
+ msgid ""
529
+ "Snippets are similar to plugins - they both extend and expand the "
530
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
531
+ "of code, and do not put as much load on your server. Here you can load "
532
+ "snippets from a Code Snippets (.xml) import file into the database with your "
533
+ "existing snippets."
534
+ msgstr ""
535
+ "Codeschnipsel sind ähnlich wie Plugins - beide erweitern bzw. verändern die "
536
+ "Funktionalität. Codeschnipsel sind jedoch weniger komplex und "
537
+ "leichtgewichtiger; nur einige Zeilen Code. Damit fällt auch weniger Last auf "
538
+ "dem Webserver an. Hier können Sie Codeschnipsel aus einer Codeschipsel-XML-"
539
+ "Importdatei hinzufügen."
540
+
541
+ # @ code-snippets
542
+ #: php/class-contextual-help.php:120
543
+ msgid "Importing"
544
+ msgstr "Importieren"
545
+
546
+ # @ code-snippets
547
+ #: php/class-contextual-help.php:121
548
+ msgid ""
549
+ "You can load your snippets from a code snippets (.xml) export file using "
550
+ "this page."
551
+ msgstr ""
552
+ "Auf dieser Seite können Sie Ihre Codeschnipsel von einer Codeschnipsel-"
553
+ "Exportdatei (<code>.xml</code>) laden."
554
+
555
+ #: php/class-contextual-help.php:122
556
+ #, php-format
557
+ msgid ""
558
+ "Snippets will be added to the database along with your existing snippets. "
559
+ "Regardless of whether the snippets were active on the previous site, "
560
+ "imported snippets are always inactive until activated using the <a href=\"%s"
561
+ "\">All Snippets</a> page.</p>"
562
+ msgstr ""
563
+ "Codeschnipsel werden der Datenbank hinzugefügt, zusammen mit Ihren bereits "
564
+ "bestehenden Codeschnipseln. Unabhängig davon, ob diese Codeschnipsel auf der "
565
+ "vorherigen Installation aktiv waren, sind importierte Codeschnipsel "
566
+ "standardmäßig immer deaktiviert, solange Sie von Ihnen auf der <a href=\"%s"
567
+ "\">Codeschnispel verwalten-Seite</a> aktiviert werden.</p>"
568
+
569
+ # @ code-snippets
570
+ #: php/class-contextual-help.php:127
571
+ msgid "Exporting"
572
+ msgstr "Exportieren"
573
+
574
+ # @ code-snippets
575
+ #: php/class-contextual-help.php:128
576
+ #, php-format
577
+ msgid ""
578
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
579
+ "<a href=\"%s\">Manage Snippets</a> page."
580
+ msgstr ""
581
+ "Sie können Ihre Codeschnipsel auch als Codeschnipsel-XML-Exportdatei "
582
+ "exportieren, über die <a href=\"%s\">Codeschnipsel verwalten-Seite</a>."
583
+
584
+ #: php/class-export.php:87
585
+ msgid ""
586
+ "This is a code snippets export file generated by the Code Snippets WordPress "
587
+ "plugin."
588
+ msgstr ""
589
+ "Dies ist eine Codeschnipsel-Export-Datei die durch das Code Snippets "
590
+ "WordPress Plugin erstellt wurde."
591
+
592
+ #: php/class-export.php:89
593
+ msgid "To import these snippets a WordPress site follow these steps:"
594
+ msgstr ""
595
+ "Um Codeschnipsel in eine WordPress Seite zu importieren folge diesen "
596
+ "Schritten:"
597
+
598
+ #: php/class-export.php:90
599
+ msgid "1. Log in to that site as an administrator."
600
+ msgstr "1. Melde dich als Administrator an."
601
+
602
+ #: php/class-export.php:91
603
+ msgid ""
604
+ "2. Install the Code Snippets plugin using the directions provided at the "
605
+ "above link."
606
+ msgstr ""
607
+ "2. Installiere das Code Snippets Plugin nutze hierzu den Link und die "
608
+ "Informationen von oben."
609
+
610
+ #: php/class-export.php:92
611
+ msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
612
+ msgstr ""
613
+ "3. Navigiere zu 'Werkzeuge: Daten importieren' in der WordPress "
614
+ "Administration."
615
+
616
+ #: php/class-export.php:93
617
+ msgid "4. Click on the \"Code Snippets\" importer in the list"
618
+ msgstr "4. Klicke in der Liste der Importmodule auf \"Code Snippets\" "
619
+
620
+ #: php/class-export.php:94
621
+ msgid "5. Upload this file using the form provided on that page."
622
+ msgstr "5. Lade diese Datei über den angebotenen Dialog der Importseite hoch."
623
+
624
+ #: php/class-export.php:95
625
+ msgid ""
626
+ "6. Code Snippets will then import all of the snippets and associated "
627
+ "information contained in this file into your site."
628
+ msgstr ""
629
+ "6. Die Codeschnipsel werden neben allen anderen Informationen aus dieser "
630
+ "Datei in deine Seite importiert."
631
+
632
+ #: php/class-export.php:96
633
+ msgid ""
634
+ "7. You will then have to visit the 'Snippets: All Snippets' admin menu and "
635
+ "activate desired snippets."
636
+ msgstr ""
637
+ "7. Nach dem Import besuche die Seite 'Codeschnipsel: Verwalten' im "
638
+ "Administrationsmenü und aktiviere die gewünschten Codeschnipsel."
639
+
640
+ # @ code-snippets
641
+ #: php/class-list-table.php:58
642
+ msgid "Snippets per page"
643
+ msgstr "Codeschnipsel pro Seite"
644
+
645
+ # @ code-snippets
646
+ #: php/class-list-table.php:117 php/class-list-table.php:370
647
+ msgid "Network Deactivate"
648
+ msgstr "Netzwerkweit deaktivieren"
649
+
650
+ # @ code-snippets
651
+ #: php/class-list-table.php:117 php/class-list-table.php:180
652
+ #: php/class-list-table.php:370
653
+ msgid "Deactivate"
654
+ msgstr "Deaktivieren"
655
+
656
+ # @ code-snippets
657
+ #: php/class-list-table.php:126 php/class-list-table.php:369
658
+ msgid "Network Activate"
659
+ msgstr "Netzwerkweit aktivieren"
660
+
661
+ # @ code-snippets
662
+ #: php/class-list-table.php:126 php/class-list-table.php:180
663
+ #: php/class-list-table.php:369
664
+ msgid "Activate"
665
+ msgstr "Aktivieren"
666
+
667
+ # @ code-snippets
668
+ #: php/class-list-table.php:136 php/class-list-table.php:196
669
+ msgid "Edit"
670
+ msgstr "Bearbeiten"
671
+
672
+ # @ code-snippets
673
+ #: php/class-list-table.php:142 php/class-list-table.php:202
674
+ #: php/class-list-table.php:371 php/views/edit.php:111
675
+ msgid "Export"
676
+ msgstr "Exportieren"
677
+
678
+ # @ code-snippets
679
+ #: php/class-list-table.php:151 php/class-list-table.php:214
680
+ #: php/class-list-table.php:372 php/views/edit.php:124
681
+ msgid "Delete"
682
+ msgstr "Löschen"
683
+
684
+ #: php/class-list-table.php:158 php/class-list-table.php:224
685
+ msgid "You are about to permanently delete the selected item."
686
+ msgstr "Du bist dabei diesen Codeschnipsel endgültig zu löschen."
687
+
688
+ #: php/class-list-table.php:159 php/class-list-table.php:225
689
+ #: php/views/edit.php:119
690
+ msgid "'Cancel' to stop, 'OK' to delete."
691
+ msgstr "'Abbrechen' um zu stoppen, 'OK' um zu löschen."
692
+
693
+ #: php/class-list-table.php:244
694
+ #, php-format
695
+ msgid "Untitled #%d"
696
+ msgstr "Unbenannt #%d"
697
+
698
+ #: php/class-list-table.php:261
699
+ msgid "Shared on Network"
700
+ msgstr "Im Netzwerk teilen"
701
+
702
+ # @ code-snippets
703
+ #: php/class-list-table.php:322 php/views/edit.php:48
704
+ msgid "Name"
705
+ msgstr "Name"
706
+
707
+ # @ code-snippets
708
+ #: php/class-list-table.php:323
709
+ msgid "ID"
710
+ msgstr "ID"
711
+
712
+ # @ code-snippets
713
+ #: php/class-list-table.php:373
714
+ msgid "Export to PHP"
715
+ msgstr "Als PHP exportieren"
716
+
717
+ # @ code-snippets
718
+ #: php/class-list-table.php:411
719
+ #, php-format
720
+ msgid "All <span class=\"count\">(%s)</span>"
721
+ msgid_plural "All <span class=\"count\">(%s)</span>"
722
+ msgstr[0] "Alle <span class=\"count\">(%s)</span>"
723
+ msgstr[1] "Alle <span class=\"count\">(%s)</span>"
724
+
725
+ # @ code-snippets
726
+ #: php/class-list-table.php:412
727
+ #, php-format
728
+ msgid "Active <span class=\"count\">(%s)</span>"
729
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
730
+ msgstr[0] "Aktiv <span class=\"count\">(%s)</span>"
731
+ msgstr[1] "Aktive <span class=\"count\">(%s)</span>"
732
+
733
+ # @ code-snippets
734
+ #: php/class-list-table.php:413
735
+ #, php-format
736
+ msgid "Inactive <span class=\"count\">(%s)</span>"
737
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
738
+ msgstr[0] "Inaktiv <span class=\"count\">(%s)</span>"
739
+ msgstr[1] "Inaktive <span class=\"count\">(%s)</span>"
740
+
741
+ # @ code-snippets
742
+ #: php/class-list-table.php:414
743
+ #, php-format
744
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
745
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
746
+ msgstr[0] "Kürzlich aktiv <span class=\"count\">(%s)</span>"
747
+ msgstr[1] "Kürzlich aktive <span class=\"count\">(%s)</span>"
748
+
749
+ #: php/class-list-table.php:477
750
+ msgid "Show all tags"
751
+ msgstr "Zeige alle Stichworte"
752
+
753
+ # @ code-snippets
754
+ #: php/class-list-table.php:491
755
+ msgid "Filter"
756
+ msgstr "Filter"
757
+
758
+ # @ code-snippets
759
+ #: php/class-list-table.php:499
760
+ msgid "Clear List"
761
+ msgstr "Liste bereinigen"
762
+
763
+ # @ code-snippets
764
+ #: php/class-list-table.php:686
765
+ #, php-format
766
+ msgid ""
767
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
768
+ "\">Add New&rarr;</a>"
769
+ msgstr ""
770
+ "Sie scheinen derzeit keine Codeschnipsel in der Verwaltung zu haben. Einen "
771
+ "neuen <a href=\"%s\">hinzufügen &rarr;</a>"
772
+
773
+ # @ code-snippets
774
+ #: php/class-list-table.php:959
775
+ msgid "Search results"
776
+ msgstr "Suchergebnisse"
777
+
778
+ # @ code-snippets
779
+ #: php/class-list-table.php:962
780
+ #, php-format
781
+ msgid " for &#8220;%s&#8221;"
782
+ msgstr " für &#8220;%s&#8221;"
783
+
784
+ #: php/class-list-table.php:966
785
+ #, php-format
786
+ msgid " in tag &#8220;%s&#8221;"
787
+ msgstr " in Stichwort &#8220;%s&#8221;"
788
+
789
+ # @ code-snippets
790
+ #: php/class-list-table.php:974
791
+ msgid "Clear Filters"
792
+ msgstr "Filter zurücksetzen"
793
+
794
+ #: php/settings/settings-fields.php:42
795
+ msgid "Activate by Default"
796
+ msgstr "Standardmäßig aktivieren"
797
+
798
+ #: php/settings/settings-fields.php:44
799
+ msgid ""
800
+ "Make the 'Save and Activate' button the default action when saving a snippet."
801
+ msgstr ""
802
+ "Legt die 'Speichern und Aktivieren' Schaltfläche als Standard Aktion fest "
803
+ "beim Speichern eines Codeschnipsel."
804
+
805
+ #: php/settings/settings-fields.php:49
806
+ msgid "Enable Scope Selector"
807
+ msgstr "Aktiviere Bereichswahl"
808
+
809
+ #: php/settings/settings-fields.php:51
810
+ msgid "Enable the scope selector when editing a snippet"
811
+ msgstr "Aktiviere die Bereichswahl bei der Bearbeitung eines Codeschnipsels"
812
+
813
+ #: php/settings/settings-fields.php:56
814
+ msgid "Enable Snippet Tags"
815
+ msgstr "Codeschnipsel-Tags aktivieren"
816
+
817
+ #: php/settings/settings-fields.php:58
818
+ msgid "Show snippet tags on admin pages"
819
+ msgstr "Codeschnipsel-Tags auf den Administrationsseiten anzeigen"
820
+
821
+ #: php/settings/settings-fields.php:63
822
+ msgid "Enable Snippet Descriptions"
823
+ msgstr "Codeschnipsel-Beschreibungen aktivieren"
824
+
825
+ #: php/settings/settings-fields.php:65
826
+ msgid "Show snippet descriptions on admin pages"
827
+ msgstr "Codeschnipsel-Beschreibungen auf den Administrationsseiten anzeigen"
828
+
829
+ #: php/settings/settings-fields.php:69
830
+ msgid "Disable shortcode syntax highlighter"
831
+ msgstr "Codeschnipsel Syntax-Hervorhebung deaktivieren"
832
+
833
+ #: php/settings/settings-fields.php:71
834
+ msgid ""
835
+ "Disable the syntax highlighting for the [code_snippet] shortcode on the "
836
+ "front-end"
837
+ msgstr ""
838
+ "Syntax-Hervorhebung den [code_snippet] Shortcode auf der öffentlichen Seite "
839
+ "deaktivieren"
840
+
841
+ #: php/settings/settings-fields.php:80
842
+ msgid "Row Height"
843
+ msgstr "Zeilenhöhe"
844
+
845
+ #: php/settings/settings-fields.php:82
846
+ msgid "rows"
847
+ msgstr "Zeilen"
848
+
849
+ #: php/settings/settings-fields.php:88
850
+ msgid "Use Full Editor"
851
+ msgstr "Benutze den erweiterten Editor"
852
+
853
+ #: php/settings/settings-fields.php:90
854
+ msgid "Enable all features of the visual editor"
855
+ msgstr "Aktiviere alle Funktionen des visuellen Editors"
856
+
857
+ #: php/settings/settings-fields.php:95
858
+ msgid "Media Buttons"
859
+ msgstr "Medien Schaltflächen"
860
+
861
+ #: php/settings/settings-fields.php:97
862
+ msgid "Enable the add media buttons"
863
+ msgstr "Aktiviere die Schaltfläche Medien hinzufügen."
864
+
865
+ #: php/settings/settings-fields.php:106
866
+ msgid "Theme"
867
+ msgstr "Theme"
868
+
869
+ #: php/settings/settings-fields.php:113
870
+ msgid "Indent With Tabs"
871
+ msgstr "Tabulatorbreite"
872
+
873
+ #: php/settings/settings-fields.php:115
874
+ msgid "Use hard tabs (not spaces) for indentation."
875
+ msgstr "Benutze Tabulator anstelle von Leerzeichen."
876
+
877
+ #: php/settings/settings-fields.php:121
878
+ msgid "Tab Size"
879
+ msgstr "Tabulatorweite"
880
+
881
+ #: php/settings/settings-fields.php:123
882
+ msgid "The width of a tab character."
883
+ msgstr "Die Länge eines Tabulatorzeichens."
884
+
885
+ #: php/settings/settings-fields.php:130
886
+ msgid "Indent Unit"
887
+ msgstr "Einheit des Einzugs"
888
+
889
+ #: php/settings/settings-fields.php:132
890
+ msgid "How many spaces a block should be indented."
891
+ msgstr "Anzahl der Leerzeichen die einem Einzug entsprechen sollen."
892
+
893
+ #: php/settings/settings-fields.php:139
894
+ msgid "Wrap Lines"
895
+ msgstr "Zeilen umbrechen"
896
+
897
+ #: php/settings/settings-fields.php:141
898
+ msgid "Whether the editor should scroll or wrap for long lines."
899
+ msgstr ""
900
+ "Legt fest ob der Editor Zeilen umbricht oder bei langen Zeilen scrollen soll."
901
+
902
+ #: php/settings/settings-fields.php:147
903
+ msgid "Line Numbers"
904
+ msgstr "Zeilennummer"
905
+
906
+ #: php/settings/settings-fields.php:149
907
+ msgid "Show line numbers to the left of the editor."
908
+ msgstr "Zeigt Zeilennummern auf der linken Seite des Editors."
909
+
910
+ #: php/settings/settings-fields.php:155
911
+ msgid "Auto Close Brackets"
912
+ msgstr "Klammern automatisch schliessen."
913
+
914
+ #: php/settings/settings-fields.php:157
915
+ msgid "Auto-close brackets and quotes when typed."
916
+ msgstr ""
917
+ "Vervollständigt und schliesst Klammern und Anführungszeichen während der "
918
+ "Eingabe."
919
+
920
+ #: php/settings/settings-fields.php:163
921
+ msgid "Highlight Selection Matches"
922
+ msgstr "Auswahlhervorhebung"
923
+
924
+ #: php/settings/settings-fields.php:164
925
+ msgid "Highlight all instances of a currently selected word."
926
+ msgstr ""
927
+ "Eine Auswahl an anderen Stellen hervorheben an denen die Auswahl ebenfalls "
928
+ "vorkommt."
929
+
930
+ #: php/settings/settings.php:68
931
+ msgid "General"
932
+ msgstr "Allgemein"
933
+
934
+ #: php/settings/settings.php:69
935
+ msgid "Description Editor"
936
+ msgstr "Beschreibungs-Editor"
937
+
938
+ #: php/settings/settings.php:70
939
+ msgid "Code Editor"
940
+ msgstr "Quellcode-Editor"
941
+
942
+ #: php/settings/settings.php:119
943
+ msgid "Editor Preview"
944
+ msgstr "Editor Vorschau"
945
+
946
+ #: php/settings/settings.php:176
947
+ msgid "Settings saved."
948
+ msgstr "Einstellungen gespeichert."
949
+
950
+ # @ code-snippets
951
+ #: php/views/edit.php:28 php/views/manage.php:22
952
+ msgctxt "snippet"
953
+ msgid "Add New"
954
+ msgstr "Hinzufügen"
955
+
956
+ #: php/views/edit.php:49
957
+ msgid "Enter title here"
958
+ msgstr "Titel hier eingeben"
959
+
960
+ # @ code-snippets
961
+ #: php/views/edit.php:54
962
+ msgid "Code"
963
+ msgstr "Code"
964
+
965
+ #: php/views/edit.php:81 php/views/edit.php:95
966
+ msgid "Save Changes and Activate"
967
+ msgstr "Speichere Änderungen und Aktiviere"
968
+
969
+ #: php/views/edit.php:101
970
+ msgid "Save Changes and Deactivate"
971
+ msgstr "Speichere Änderungen und Deaktiviere"
972
+
973
+ #: php/views/edit.php:118
974
+ msgid "You are about to permanently delete this snippet."
975
+ msgstr "Du bist dabei diesen Codeschnipsel endgültig zu löschen."
976
+
977
+ # @ code-snippets
978
+ #: php/views/import.php:21
979
+ msgid ""
980
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
981
+ "snippets to this site."
982
+ msgstr ""
983
+ "Servus! Laden Sie hier Ihre Codeschnipsel-XML-Exportdatei hoch und wir "
984
+ "werden die Codeschnipsel dieser Installation hinzufügen."
985
+
986
+ #: php/views/import.php:23
987
+ #, php-format
988
+ msgid ""
989
+ "You will need to go to the <a href=\"%s\">All Snippets</a> page to activate "
990
+ "the imported snippets."
991
+ msgstr ""
992
+ "Danach müssen Sie zur <a href=\"%s\">Codeschnispel verwalten-Seite</a> gehen "
993
+ "und die importierten Codeschnipsel entsprechend aktivieren."
994
+
995
+ # @ code-snippets
996
+ #: php/views/import.php:25
997
+ msgid ""
998
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
999
+ "import."
1000
+ msgstr ""
1001
+ "Wählen Sie eine Codeschnipsel-XML-Datei zum Hochladen, klicken Sie dann auf "
1002
+ "'Datei hochladen &amp; importieren'."
1003
+
1004
+ # @ code-snippets
1005
+ #: php/views/import.php:32
1006
+ msgid "Choose a file from your computer:"
1007
+ msgstr "Datei von Ihrem Rechner wählen:"
1008
+
1009
+ # @ code-snippets
1010
+ #: php/views/import.php:33
1011
+ msgid "(Maximum size: 8MB)"
1012
+ msgstr "(Maximalgröße: 8 MB)"
1013
+
1014
+ # @ code-snippets
1015
+ #: php/views/import.php:39
1016
+ msgid "Upload file and import"
1017
+ msgstr "Datei hochladen &amp; importieren"
1018
+
1019
+ # @ code-snippets
1020
+ #: php/views/manage.php:34
1021
+ msgid "Search Installed Snippets"
1022
+ msgstr "Installierte Codeschnipsel suchen"
1023
+
1024
+ # @ code-snippets
1025
+ #~ msgid "Import"
1026
+ #~ msgstr "Importieren"
1027
+
1028
+ # @ code-snippets
1029
+ #~ msgid "Manage"
1030
+ #~ msgstr "Verwalten"
1031
+
1032
+ # @ code-snippets
1033
+ #~ msgid ""
1034
+ #~ "Snippets will be added to the database along with your existing snippets. "
1035
+ #~ "Regardless of whether the snippets were active on the previous site, "
1036
+ #~ "imported snippets are always inactive until activated using the <a href="
1037
+ #~ "\"%s\">Manage Snippets</a> page.</p>"
1038
+ #~ msgstr ""
1039
+ #~ "Codeschnipsel werden der Datenbank hinzugefügt, zusammen mit Ihren "
1040
+ #~ "bereits bestehenden Codeschnipseln. Unabhängig davon, ob diese "
1041
+ #~ "Codeschnipsel auf der vorherigen Installation aktiv waren, sind "
1042
+ #~ "importierte Codeschnipsel standardmäßig immer deaktiviert, solange Sie "
1043
+ #~ "von Ihnen auf der <a href=\"%s\">Codeschnispel verwalten-Seite</a> "
1044
+ #~ "aktiviert werden.</p>"
1045
+
1046
+ #~ msgid ""
1047
+ #~ "7. You will then have to visit the 'Snippets: Manage' admin menu and "
1048
+ #~ "activate desired snippets."
1049
+ #~ msgstr ""
1050
+ #~ "7. Nach dem Import besuche die Seite 'Codeschnipsel: Verwalten' im "
1051
+ #~ "Administrationsmenü und aktiviere die gewünschten Codeschnipsel."
1052
+
1053
+ #~ msgid ""
1054
+ #~ "You are about to permanently delete the selected item.\n"
1055
+ #~ "\t\t\t\t\t'Cancel' to stop, 'OK' to delete."
1056
+ #~ msgstr ""
1057
+ #~ "Sie sind dabei die ausgewählten Einträge zu löschen.\n"
1058
+ #~ "\t\t\t\t\t'Abbrechen zum Stoppen, 'OK' zum Löschen."
1059
+
1060
+ # @ code-snippets
1061
+ #~ msgid "Name (short title)"
1062
+ #~ msgstr "Name (Kurztitel)"
1063
+
1064
+ #~ msgid ""
1065
+ #~ "You are about to permanently delete this snippet.\n"
1066
+ #~ "'Cancel' to stop, 'OK' to delete."
1067
+ #~ msgstr ""
1068
+ #~ "Du bist dabei diesen Codeschnipsel endgültig zu löschen.\n"
1069
+ #~ "'Abbrechen' um zu stoppen, 'OK' um zu löschen."
1070
+
1071
+ # @ code-snippets
1072
+ #~ msgid ""
1073
+ #~ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
1074
+ #~ "activate the imported snippets."
1075
+ #~ msgstr ""
1076
+ #~ "Danach müssen Sie zur <a href=\"%s\">Codeschnispel verwalten-Seite</a> "
1077
+ #~ "gehen und die importierten Codeschnipsel entsprechend aktivieren."
1078
+
1079
+ #~ msgid "Plugin Website</a>"
1080
+ #~ msgstr "Plugin-Webseite</a>"
1081
+
1082
+ #~ msgid ""
1083
+ #~ "Here are some links to websites which host a large number of snippets "
1084
+ #~ "that you can add to your site.\n"
1085
+ #~ "\t\t\t<ul>\n"
1086
+ #~ "\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
1087
+ #~ "\">WP-Snippets</a></li>\n"
1088
+ #~ "\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
1089
+ #~ "a></li>\n"
1090
+ #~ "\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
1091
+ #~ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
1092
+ #~ "\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
1093
+ #~ "\t\t\t</ul>"
1094
+ #~ msgstr ""
1095
+ #~ "Hier sind ein Links zu Webseiten, welche eine Menge an Codeschnipsel "
1096
+ #~ "bereitstellen und auf ihrer Webseite verwendet werden können.\n"
1097
+ #~ "\t\t\t<ul>\n"
1098
+ #~ "\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
1099
+ #~ "\">WP-Snippets</a></li>\n"
1100
+ #~ "\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
1101
+ #~ "a></li>\n"
1102
+ #~ "\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
1103
+ #~ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
1104
+ #~ "\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
1105
+ #~ "\t\t\t</ul>"
1106
+
1107
+ #~ msgid "http://wordpress.org/plugins/code-snippets"
1108
+ #~ msgstr "http://wordpress.org/plugins/code-snippets"
1109
+
1110
+ # @ code-snippets
1111
+ #~ msgid ""
1112
+ #~ "Here are some links to websites which host a large number of snippets "
1113
+ #~ "that you can add to your site.\n"
1114
+ #~ "\t\t<ul>\n"
1115
+ #~ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
1116
+ #~ "\">WP-Snippets</a></li>\n"
1117
+ #~ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
1118
+ #~ "li>\n"
1119
+ #~ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
1120
+ #~ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
1121
+ #~ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
1122
+ #~ "\t\t</ul>"
1123
+ #~ msgstr ""
1124
+ #~ "Hier sind einige Links zu Webseiten, welche eine große Anzahl von "
1125
+ #~ "WordPress-Codeschnipseln anbieten, die Sie vielleicht für Ihre Webseite "
1126
+ #~ "verwenden könnten. Bitte seien Sie äußerst vorsichtig mit fremden "
1127
+ #~ "Codeschnipseln, überprüfen Sie immer den Anbieter/ Herausgeber. Setzen "
1128
+ #~ "Sie nur vertrauenswürdige Quellen ein!\n"
1129
+ #~ "\\\t\\\t<ul>\n"
1130
+ #~ "\\\t\\\t\\\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress "
1131
+ #~ "Snippets\">WP-Snippets</a></li>\n"
1132
+ #~ "\\\t\\\t\\\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP "
1133
+ #~ "Snipp</a></li>\n"
1134
+ #~ "\\\t\\\t\\\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" "
1135
+ #~ "title=\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
1136
+ #~ "\\\t\\\t\\\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></"
1137
+ #~ "li>\n"
1138
+ #~ "\\\t\\\t</ul>"
1139
+
1140
+ # @ code-snippets
1141
+ #~ msgid ""
1142
+ #~ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
1143
+ #~ "\">WordPress Extend</a>"
1144
+ #~ msgstr ""
1145
+ #~ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
1146
+ #~ "\">Plugin-Seite bei WordPress.org</a>"
1147
+
1148
+ # @ code-snippets
1149
+ #~ msgid ""
1150
+ #~ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target="
1151
+ #~ "\"_blank\">Support Forums</a>"
1152
+ #~ msgstr ""
1153
+ #~ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target="
1154
+ #~ "\"_blank\">Offizielles Support-Forum (Engl.)</a>"
1155
+
1156
+ # @ code-snippets
1157
+ #~ msgid ""
1158
+ #~ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
1159
+ #~ "\">Project Website</a>"
1160
+ #~ msgstr ""
1161
+ #~ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
1162
+ #~ "\">Projektwebseite</a>"
1163
+
1164
+ #~ msgid "Only run in adminstration area"
1165
+ #~ msgstr "Nur im Admin-Bereich ausführen"
1166
+
1167
+ #~ msgid "You are not access this page."
1168
+ #~ msgstr "Du kannst diese Seite nicht betreten."
1169
+
1170
+ # @ code-snippets
1171
+ #~ msgid ""
1172
+ #~ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
1173
+ #~ "\">WordPress Extend</a></p>"
1174
+ #~ msgstr ""
1175
+ #~ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
1176
+ #~ "\">Plugin-Seite auf WordPress.org</a></p>"
1177
+
1178
+ # @ code-snippets
1179
+ #~ msgid ""
1180
+ #~ "You are about to permanently delete the selected item.\n"
1181
+ #~ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
1182
+ #~ msgstr ""
1183
+ #~ "Sie sind dabei das ausgewählte Element dauerhaft zu löschen.\n"
1184
+ #~ "\t\t\t\t'Abbrechen', um das zu stoppen, 'OK', um wirklich zu löschen."
1185
+
1186
+ #~ msgid "Admin <span class=\"count\">(%s)</span>"
1187
+ #~ msgid_plural "Admin <span class=\"count\">(%s)</span>"
1188
+ #~ msgstr[0] "Admin <span class=\"count\">(%s)</span>"
1189
+ #~ msgstr[1] "Admin <span class=\"count\">(%s)</span>"
1190
+
1191
+ #~ msgid "Front End <span class=\"count\">(%s)</span>"
1192
+ #~ msgid_plural "Front End <span class=\"count\">(%s)</span>"
1193
+ #~ msgstr[0] "Öffentliche Seite <span class=\"count\">(%s)</span>"
1194
+ #~ msgstr[1] "Öffentliche Seiten <span class=\"count\">(%s)</span>"
1195
+
1196
+ #~ msgid "Editor"
1197
+ #~ msgstr "Editor"
1198
+
1199
+ # @ code-snippets
1200
+ #~ msgid ""
1201
+ #~ "An easy, clean and simple way to add code snippets to your site. No need "
1202
+ #~ "to edit to your theme's functions.php file again!"
1203
+ #~ msgstr ""
1204
+ #~ "Auf einfache, saubere und elegante Weise Codeschnipsel für Ihre Webseite "
1205
+ #~ "hinzufügen. Änderungen an der 'functions.php' des Themes sind nicht mehr "
1206
+ #~ "notwendig!"
1207
+
1208
+ # @ code-snippets
1209
+ #~ msgid "Shea Bunge"
1210
+ #~ msgstr "Shea Bunge"
1211
+
1212
+ # @ code-snippets
1213
+ #~ msgid "http://bungeshea.com"
1214
+ #~ msgstr "http://bungeshea.com/"
1215
+
1216
+ # @ code-snippets
1217
+ #~ msgid "Please provide a name for the snippet and its code."
1218
+ #~ msgstr ""
1219
+ #~ "Bitte geben Sie einen Namen für den Codeschnipsel und dessen Code an."
1220
+
1221
+ # @ code-snippets
1222
+ #~ msgid "(Optional)"
1223
+ #~ msgstr "(optional, aber empfohlen für bessere Organisation &amp; Übersicht)"
1224
+
1225
+ # @ code-snippets
1226
+ #~ msgid "http://bungeshea.com/plugins/code-snippets"
1227
+ #~ msgstr "http://bungeshea.com/plugins/code-snippets/"
1228
+
1229
+ # @ code-snippets
1230
+ #~ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
1231
+ #~ msgstr ""
1232
+ #~ "Codeschnipsel aus einer <strong>Code Snippets</strong>-Exportdatei "
1233
+ #~ "importieren"
1234
+
1235
+ # @ code-snippets
1236
+ #~ msgid "Imported <strong>%d</strong> snippet."
1237
+ #~ msgid_plural "Imported <strong>%d</strong> snippets."
1238
+ #~ msgstr[0] " <strong>%d</strong> Codeschnipsel importiert."
1239
+ #~ msgstr[1] " <strong>%d</strong> Codeschnipsel importiert."
1240
+
1241
+ # @ code-snippets
1242
+ #~ msgid "1.7"
1243
+ #~ msgstr "1.7"
1244
+
1245
+ # @ code-snippets
1246
+ #~ msgid "Sorry, you're not allowed to edit snippets"
1247
+ #~ msgstr ""
1248
+ #~ "Entschuldigung, aber Sie haben keine Berechtigung zum Bearbeiten von "
1249
+ #~ "Codeschnipseln."
1250
+
1251
+ # @ code-snippets
1252
+ #~ msgid "Save Changes &amp; Activate"
1253
+ #~ msgstr "Änderungen speichern &amp; Aktivieren"
trunk/languages/code-snippets-fr_FR.mo ADDED
Binary file
trunk/languages/code-snippets-fr_FR.po ADDED
@@ -0,0 +1,821 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: Code Snippets\n"
5
+ "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-05-11 08:58+1000\n"
7
+ "PO-Revision-Date: 2015-05-11 10:08+1000\n"
8
+ "Last-Translator: Shea Bunge <info@bungeshea.com>"
9
+ "Language-Team: oWEB <oweb@office-web.net>\n"
10
+ "Language: fr\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Generator: Poedit 1.7.5\n"
16
+
17
+ #: includes/admin.php:81 includes/manage/admin.php:21
18
+ #: includes/manage/manage.php:22 includes/manage/manage.php:23
19
+ #: includes/manage/manage.php:33
20
+ msgid "Snippets"
21
+ msgstr "Snippets"
22
+
23
+ #: includes/admin.php:152
24
+ msgid "Manage your existing snippets"
25
+ msgstr "Gérer les snippets existants"
26
+
27
+ #: includes/admin.php:153 includes/manage/manage.php:34
28
+ msgid "Manage"
29
+ msgstr "Gérer"
30
+
31
+ #: includes/admin.php:182
32
+ msgid "Visit the WordPress.org plugin page"
33
+ msgstr "Page du plugin sur WordPress.org"
34
+
35
+ #: includes/admin.php:183
36
+ msgid "About"
37
+ msgstr "A propos"
38
+
39
+ #: includes/admin.php:187
40
+ msgid "Visit the support forums"
41
+ msgstr "Forums de support"
42
+
43
+ #: includes/admin.php:188
44
+ msgid "Support"
45
+ msgstr "Support"
46
+
47
+ #: includes/admin.php:192
48
+ msgid "Support this plugin's development"
49
+ msgstr "Aider au développement du plugin"
50
+
51
+ #: includes/admin.php:193
52
+ msgid "Donate"
53
+ msgstr "Faire un don"
54
+
55
+ #: includes/admin.php:226
56
+ msgid ""
57
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
58
+ "answer a short survey on how you use this plugin and what you'd like to see "
59
+ "changed or added in the future."
60
+ msgstr ""
61
+
62
+ #: includes/admin.php:229
63
+ msgid "Take the survey now"
64
+ msgstr ""
65
+
66
+ #: includes/class-export.php:102
67
+ msgid ""
68
+ "This is a code snippets export file generated by the Code Snippets WordPress "
69
+ "plugin."
70
+ msgstr ""
71
+
72
+ #: includes/class-export.php:103
73
+ msgid "http://wordpress.org/plugins/code-snippets"
74
+ msgstr ""
75
+
76
+ #: includes/class-export.php:104
77
+ msgid "To import these snippets a WordPress site follow these steps:"
78
+ msgstr ""
79
+
80
+ #: includes/class-export.php:105
81
+ msgid "1. Log in to that site as an administrator."
82
+ msgstr ""
83
+
84
+ #: includes/class-export.php:106
85
+ msgid ""
86
+ "2. Install the Code Snippets plugin using the directions provided at the "
87
+ "above link."
88
+ msgstr ""
89
+
90
+ #: includes/class-export.php:107
91
+ msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
92
+ msgstr ""
93
+
94
+ #: includes/class-export.php:108
95
+ msgid "4. Click on the \"Code Snippets\" importer in the list"
96
+ msgstr ""
97
+
98
+ #: includes/class-export.php:109
99
+ msgid "5. Upload this file using the form provided on that page."
100
+ msgstr ""
101
+
102
+ #: includes/class-export.php:110
103
+ msgid ""
104
+ "6. Code Snippets will then import all of the snippets and associated "
105
+ "information contained in this file into your site."
106
+ msgstr ""
107
+
108
+ #: includes/class-export.php:111
109
+ msgid ""
110
+ "7. You will then have to visit the 'Snippets: Manage' admin menu and "
111
+ "activate desired snippets."
112
+ msgstr ""
113
+
114
+ #: includes/edit/admin-help.php:15 includes/import/admin-help.php:16
115
+ #: includes/manage/admin-help.php:15
116
+ msgid "Overview"
117
+ msgstr "Présentation "
118
+
119
+ #: includes/edit/admin-help.php:17
120
+ msgid ""
121
+ "Snippets are similar to plugins - they both extend and expand the "
122
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
123
+ "of code, and do not put as much load on your server. Here you can add a new "
124
+ "snippet, or edit an existing one."
125
+ msgstr ""
126
+ "Les Snippets sont similaires aux plugins. Ils permettent aussi d'étendre les "
127
+ "fonctionnalités de WordPress. Les Snippets sont plus légers, juste quelques "
128
+ "lignes de code : cela permet à votre site de se charger plus rapidement. "
129
+ "Ici, vous pouvez en ajouter ou en éditer."
130
+
131
+ #: includes/edit/admin-help.php:22
132
+ msgid "Finding Snippets"
133
+ msgstr "Trouver des Snippets"
134
+
135
+ #: includes/edit/admin-help.php:24
136
+ msgid ""
137
+ "Here are some links to websites which host a large number of snippets that "
138
+ "you can add to your site.\n"
139
+ "\t\t<ul>\n"
140
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
141
+ "Snippets</a></li>\n"
142
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
143
+ "li>\n"
144
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
145
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
146
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
147
+ "\t\t</ul>"
148
+ msgstr ""
149
+ "Voici quelques liens vers des sites qui proposent une large panoplie de "
150
+ "Snippets que vous pouvez ajouter à votre installation.\n"
151
+ "\t\t<ul>\n"
152
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
153
+ "Snippets</a></li>\n"
154
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
155
+ "li>\n"
156
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
157
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
158
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
159
+ "\t\t</ul>"
160
+
161
+ #: includes/edit/admin-help.php:31
162
+ msgid ""
163
+ "More places to find snippets, as well as a selection of example snippets, "
164
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
165
+ "wiki/Finding-snippets\">plugin documentation</a>"
166
+ msgstr ""
167
+ "Vous trouverez une collection de Snippets, ou des exemples sur la page de <a "
168
+ "href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
169
+ "\">documentation</a> du plugin. "
170
+
171
+ #: includes/edit/admin-help.php:36
172
+ msgid "Adding Snippets"
173
+ msgstr "Ajout de Snippets"
174
+
175
+ #: includes/edit/admin-help.php:38
176
+ msgid ""
177
+ "You need to fill out the name and code fields for your snippet to be added. "
178
+ "While the description field will add more information about how your snippet "
179
+ "works, what is does and where you found it, it is completely optional."
180
+ msgstr ""
181
+ "Vous devez remplir les champs Nom et Code pour ajouter un Snippet. Le champ "
182
+ "description permet d'ajouter des informations sur la fonction ajoutée : "
183
+ "utilité, où vous l'avez trouvé. C'est une option de confort."
184
+
185
+ #: includes/edit/admin-help.php:39
186
+ msgid ""
187
+ "Please be sure to check that your snippet is valid PHP code and will not "
188
+ "produce errors before adding it through this page. While doing so will not "
189
+ "become active straight away, it will help to minimise the chance of a faulty "
190
+ "snippet becoming active on your site."
191
+ msgstr ""
192
+ "Veuillez vérifier le code PHP de votre Snippet. En vérifiant le code avant "
193
+ "d'activer le Snippet, vous vous assurerez que vous ne mettrez en danger "
194
+ "votre installation."
195
+
196
+ #: includes/edit/admin-help.php:43 includes/import/admin-help.php:37
197
+ #: includes/manage/admin-help.php:37
198
+ msgid "For more information:"
199
+ msgstr "Pour plus d'informations : "
200
+
201
+ #: includes/edit/admin-help.php:44 includes/import/admin-help.php:38
202
+ msgid ""
203
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
204
+ "\">WordPress Extend</a>"
205
+ msgstr ""
206
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
207
+ "\">WordPress Extend</a>"
208
+
209
+ #: includes/edit/admin-help.php:45 includes/import/admin-help.php:39
210
+ #: includes/manage/admin-help.php:39
211
+ msgid ""
212
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
213
+ "\">Support Forums</a>"
214
+ msgstr ""
215
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
216
+ "\">Support Forums</a>"
217
+
218
+ #: includes/edit/admin-help.php:46 includes/import/admin-help.php:40
219
+ #: includes/manage/admin-help.php:40
220
+ msgid ""
221
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
222
+ "\">Project Website</a>"
223
+ msgstr ""
224
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
225
+ "\">Site du Projet</a>"
226
+
227
+ #: includes/edit/admin-messages.php:14
228
+ msgid "An error occurred when saving the snippet."
229
+ msgstr ""
230
+
231
+ #: includes/edit/admin-messages.php:18
232
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
233
+ msgstr "Snippet <strong>mis à jour</strong> et <strong>activé</strong>."
234
+
235
+ #: includes/edit/admin-messages.php:22
236
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
237
+ msgstr "Snippet <strong>ajouté</strong> et <strong>activaté</strong>."
238
+
239
+ #: includes/edit/admin-messages.php:26
240
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
241
+ msgstr "Snippet <strong>mis à jour</strong> et <strong>désactivaté</strong>."
242
+
243
+ #: includes/edit/admin-messages.php:30
244
+ msgid "Snippet <strong>updated</strong>."
245
+ msgstr "Snippet <strong>mis à jour</strong>."
246
+
247
+ #: includes/edit/admin-messages.php:34
248
+ msgid "Snippet <strong>added</strong>."
249
+ msgstr "Snippet <strong>ajouté</strong>."
250
+
251
+ #: includes/edit/admin.php:26 includes/edit/edit.php:48
252
+ #: includes/edit/edit.php:49
253
+ msgid "Edit Snippet"
254
+ msgstr "Editer"
255
+
256
+ #: includes/edit/admin.php:31 includes/edit/edit.php:35
257
+ #: includes/manage/admin.php:26
258
+ msgid "Add New"
259
+ msgstr "Nouveau"
260
+
261
+ #: includes/edit/admin.php:35 includes/edit/edit.php:34
262
+ msgid "Add New Snippet"
263
+ msgstr "Ajouter Snippet"
264
+
265
+ #: includes/edit/admin.php:52 includes/edit/admin.php:53
266
+ msgid "Name (short title)"
267
+ msgstr "Nom (titre court) "
268
+
269
+ #: includes/edit/admin.php:58
270
+ msgid "Code"
271
+ msgstr "Code"
272
+
273
+ #: includes/edit/admin.php:78 includes/edit/admin.php:92
274
+ msgid "Save Changes and Activate"
275
+ msgstr "Enregistrer et activer"
276
+
277
+ #: includes/edit/admin.php:98
278
+ msgid "Save Changes and Deactivate"
279
+ msgstr "Enregistrer et désactiver "
280
+
281
+ #: includes/edit/admin.php:108 includes/manage/class-list-table.php:140
282
+ #: includes/manage/class-list-table.php:265
283
+ msgid "Export"
284
+ msgstr "Exporter"
285
+
286
+ #: includes/edit/admin.php:115
287
+ msgid ""
288
+ "You are about to permanently delete this snippet.\n"
289
+ "'Cancel' to stop, 'OK' to delete."
290
+ msgstr ""
291
+
292
+ #: includes/edit/admin.php:120 includes/manage/class-list-table.php:149
293
+ #: includes/manage/class-list-table.php:266
294
+ msgid "Delete"
295
+ msgstr "Supprimer"
296
+
297
+ #: includes/edit/edit.php:83 includes/manage/manage.php:67
298
+ msgid "You are not authorized to access this page."
299
+ msgstr ""
300
+
301
+ #: includes/edit/edit.php:177 includes/manage/class-list-table.php:225
302
+ msgid "Description"
303
+ msgstr "Description"
304
+
305
+ #: includes/edit/edit.php:204
306
+ msgid "Run snippet everywhere"
307
+ msgstr ""
308
+
309
+ #: includes/edit/edit.php:205
310
+ msgid "Only run in adminstration area"
311
+ msgstr ""
312
+
313
+ #: includes/edit/edit.php:206
314
+ msgid "Only run on site front-end"
315
+ msgstr ""
316
+
317
+ #: includes/edit/edit.php:210
318
+ msgid "Scope"
319
+ msgstr ""
320
+
321
+ #: includes/edit/edit.php:231 includes/manage/class-list-table.php:226
322
+ msgid "Tags"
323
+ msgstr "Étiquettes"
324
+
325
+ #: includes/import/admin-help.php:18
326
+ msgid ""
327
+ "Snippets are similar to plugins - they both extend and expand the "
328
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
329
+ "of code, and do not put as much load on your server. Here you can load "
330
+ "snippets from a Code Snippets (.xml) import file into the database with your "
331
+ "existing snippets."
332
+ msgstr ""
333
+ "Les Snippets sont similaires aux plugins. Ils permettent aussi d'étendre les "
334
+ "fonctionnalités de WordPress. Les Snippets sont plus légers, juste quelques "
335
+ "lignes de code : cela permet à votre site de se charger plus rapidement. "
336
+ "Vous pouvez en charger plusieurs en important un fichier de Snippets (.xml)."
337
+
338
+ #: includes/import/admin-help.php:23
339
+ msgid "Importing"
340
+ msgstr "Importation"
341
+
342
+ #: includes/import/admin-help.php:25
343
+ msgid ""
344
+ "You can load your snippets from a code snippets (.xml) export file using "
345
+ "this page."
346
+ msgstr ""
347
+ "Vous pouvez charger vos Snippets depuis un fichier Code Snippets (.xml) "
348
+ "depuis cette page."
349
+
350
+ #: includes/import/admin-help.php:26
351
+ #, php-format
352
+ msgid ""
353
+ "Snippets will be added to the database along with your existing snippets. "
354
+ "Regardless of whether the snippets were active on the previous site, "
355
+ "imported snippets are always inactive until activated using the <a href=\"%s"
356
+ "\">Manage Snippets</a> page.</p>"
357
+ msgstr ""
358
+ "Les Snippets seront ajoutés à votre base de données, en plus de ceux déjà "
359
+ "existants. Tous les Snippets importés seront inactifs, même si lors de "
360
+ "l'export précédent ils étaient actifs. Il vous restera à les <a href=\"%s"
361
+ "\">activer</a> ensuite.</p>"
362
+
363
+ #: includes/import/admin-help.php:31
364
+ msgid "Exporting"
365
+ msgstr "Exportation"
366
+
367
+ #: includes/import/admin-help.php:33
368
+ #, php-format
369
+ msgid ""
370
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
371
+ "<a href=\"%s\">Manage Snippets</a> page."
372
+ msgstr ""
373
+ "Vous pouvez sauvegarder vos Snippets dans un fichier de Codes (.xml) en les "
374
+ "<a href=\"%s\">exportant</a> ."
375
+
376
+ #: includes/import/admin-messages.php:16
377
+ #, php-format
378
+ msgid ""
379
+ "Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
380
+ "a>"
381
+ msgstr ""
382
+
383
+ #: includes/import/admin-messages.php:30
384
+ msgid "An error occurred when processing the import file."
385
+ msgstr ""
386
+
387
+ #: includes/import/admin.php:18 includes/import/import.php:55
388
+ msgid "Import Snippets"
389
+ msgstr "Import de Snippets"
390
+
391
+ #: includes/import/admin.php:22
392
+ msgid ""
393
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
394
+ "snippets to this site."
395
+ msgstr ""
396
+ "Salutations ! Chargez votre fichier contenant les portions de code et nous "
397
+ "importerons les Snippets dans ce site."
398
+
399
+ #: includes/import/admin.php:24
400
+ #, php-format
401
+ msgid ""
402
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
403
+ "activate the imported snippets."
404
+ msgstr ""
405
+ "Vous devez vous rendre à la page <a href=\"%s\">Gérer les Snippets</a> pour "
406
+ "activer l'import de snippets."
407
+
408
+ #: includes/import/admin.php:26
409
+ msgid ""
410
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
411
+ "import."
412
+ msgstr ""
413
+ "Choisissez un fichier Code Snippets (.xml) à transférer, puis cliquez "
414
+ "Transférer et Importer."
415
+
416
+ #: includes/import/admin.php:33
417
+ msgid "Choose a file from your computer:"
418
+ msgstr "Fichier sur votre ordinateur : "
419
+
420
+ #: includes/import/admin.php:34
421
+ msgid "(Maximum size: 8MB)"
422
+ msgstr "(Taille maxi : 8MB)"
423
+
424
+ #: includes/import/admin.php:40
425
+ msgid "Upload file and import"
426
+ msgstr "Transférer et Importer"
427
+
428
+ #: includes/import/import.php:34
429
+ msgid "Code Snippets"
430
+ msgstr "Code Snippets"
431
+
432
+ #: includes/import/import.php:35
433
+ msgid "Import snippets from a code snippets export file"
434
+ msgstr "Importer les Snippets d'un fichier Code Snippets (.xml)"
435
+
436
+ #: includes/import/import.php:56
437
+ msgid "Import"
438
+ msgstr "Importer"
439
+
440
+ #: includes/import/import.php:92
441
+ msgid "You are not access this page."
442
+ msgstr ""
443
+
444
+ #: includes/manage/admin-help.php:17
445
+ msgid ""
446
+ "Snippets are similar to plugins - they both extend and expand the "
447
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
448
+ "of code, and do not put as much load on your server. Here you can manage "
449
+ "your existing snippets and perform tasks on them such as activating, "
450
+ "deactivating, deleting and exporting."
451
+ msgstr ""
452
+ "Les Snippets sont similaires au Plugins. Les deux permettent d'étendre les "
453
+ "fonctionnalités de WordPress. Les Snippets sont plus légers et permettent, "
454
+ "avec quelques lignes de code, de rendre votre site plus rapide. Ici vous "
455
+ "avez la possibilité de gérer vos portions de code, automatiser des tâches, "
456
+ "en activant, désactivant, supprimant et exportant. "
457
+
458
+ #: includes/manage/admin-help.php:22
459
+ msgid "Safe Mode"
460
+ msgstr "Mode sécurité "
461
+
462
+ #: includes/manage/admin-help.php:24
463
+ msgid ""
464
+ "Be sure to check your snippets for errors before you activate them, as a "
465
+ "faulty snippet could bring your whole blog down. If your site starts doing "
466
+ "strange things, deactivate all your snippets and activate them one at a time."
467
+ msgstr ""
468
+ "Veuillez bien vérifier vos Snippets avant de les activer. Si la syntaxe "
469
+ "n'est pas correcte, il est possible de rendre votre site inaccessible. Si "
470
+ "vous découvrez des comportements bizarres sur votre site, désactivez tous "
471
+ "vos Snippets, puis activez-les un par un."
472
+
473
+ #: includes/manage/admin-help.php:25
474
+ msgid ""
475
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
476
+ "cause all snippets to stop executing by adding "
477
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
478
+ "config.php</code> file. After you have deactivated the offending snippet, "
479
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
480
+ "strong> with <strong>false</strong>."
481
+ msgstr ""
482
+ "Si un problème survient suite à l'activation d'un Snippet et que votre "
483
+ "installation WordPress ne fonctionne plus, vous pouvez stopper l'activation "
484
+ "de tous les Snippets en ajoutant <code>define('CODE_SNIPPETS_SAFE_MODE', "
485
+ "true);</code> dans votre fichier <code>wp-config.php</code>. Vous pourrez "
486
+ "alors désactiver le Snippet qui pose problème, puis désactiver le mode "
487
+ "sécurité en retirant la ligne <code>define('CODE_SNIPPETS_SAFE_MODE', true);"
488
+ "</code> dans votre fichier <code>wp-config.php</code> ou alors changer "
489
+ "<strong>true</strong> par <strong>false</strong>."
490
+
491
+ #: includes/manage/admin-help.php:30
492
+ msgid "Uninstall"
493
+ msgstr "Désinstaller"
494
+
495
+ #: includes/manage/admin-help.php:32
496
+ #, php-format
497
+ msgid ""
498
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
499
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
500
+ "the database. If you want to keep this data (ie: you are only temporally "
501
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
502
+ "FTP."
503
+ msgstr ""
504
+ "Si vous désinstallez Code Snippets depuis le menu Plugins de votre "
505
+ "installation WordPress, la table <code>%1$s</code> contenant les portions de "
506
+ "code sera supprimée de la base de données. Si vous voulez conserver les "
507
+ "données (par exemple : désinstaller temporairement Code Snippets) supprimez "
508
+ "le dossier <code>%2$s</code> via votre client FTP."
509
+
510
+ #: includes/manage/admin-help.php:33
511
+ msgid ""
512
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
513
+ "this WordPress installation, you may want to use the export feature to back "
514
+ "up your snippets."
515
+ msgstr ""
516
+ "Même si vous êtes certain(e) de ne plus vouloir utiliser Code Snippets avec "
517
+ "cette installation de WordPress, vous pouvez exporter vos Snippets."
518
+
519
+ #: includes/manage/admin-help.php:38
520
+ msgid ""
521
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
522
+ "\">WordPress Extend</a></p>"
523
+ msgstr ""
524
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
525
+ "\">WordPress Extend</a></p>"
526
+
527
+ #: includes/manage/admin-messages.php:14
528
+ msgid ""
529
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
530
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
531
+ "config.php</code> to turn off safe mode. <a href=\"https://github.com/"
532
+ "sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
533
+ msgstr ""
534
+
535
+ #: includes/manage/admin-messages.php:20
536
+ msgid "Snippet <strong>activated</strong>."
537
+ msgstr "Snippet <strong>activaté</strong>."
538
+
539
+ #: includes/manage/admin-messages.php:24
540
+ msgid "Selected snippets <strong>activated</strong>."
541
+ msgstr "Snippets sélectionnés <strong>activés</strong>. "
542
+
543
+ #: includes/manage/admin-messages.php:28
544
+ msgid "Snippet <strong>deactivated</strong>."
545
+ msgstr "Snippet <strong>désactivaté</strong>."
546
+
547
+ #: includes/manage/admin-messages.php:32
548
+ msgid "Selected snippets <strong>deactivated</strong>."
549
+ msgstr "Snippets sélectionnés <strong>désactivés</strong>. "
550
+
551
+ #: includes/manage/admin-messages.php:36
552
+ msgid "Snippet <strong>deleted</strong>."
553
+ msgstr "Snippet <strong>supprimé</strong>."
554
+
555
+ #: includes/manage/admin-messages.php:40
556
+ msgid "Selected snippets <strong>deleted</strong>."
557
+ msgstr "Snippets sélectionnés <strong>supprimés</strong>. "
558
+
559
+ #: includes/manage/admin.php:39
560
+ msgid "Search Installed Snippets"
561
+ msgstr "Chercher dans les Snippets installés"
562
+
563
+ #: includes/manage/class-list-table.php:52
564
+ msgid "Snippets per page"
565
+ msgstr "Snippets par page "
566
+
567
+ #: includes/manage/class-list-table.php:115
568
+ #: includes/manage/class-list-table.php:264
569
+ msgid "Network Deactivate"
570
+ msgstr "Désactiver réseau "
571
+
572
+ #: includes/manage/class-list-table.php:115
573
+ #: includes/manage/class-list-table.php:264
574
+ msgid "Deactivate"
575
+ msgstr "Désactiver "
576
+
577
+ #: includes/manage/class-list-table.php:124
578
+ #: includes/manage/class-list-table.php:263
579
+ msgid "Network Activate"
580
+ msgstr "Activer réseau "
581
+
582
+ #: includes/manage/class-list-table.php:124
583
+ #: includes/manage/class-list-table.php:263
584
+ msgid "Activate"
585
+ msgstr "Activer"
586
+
587
+ #: includes/manage/class-list-table.php:134
588
+ msgid "Edit"
589
+ msgstr "Editer"
590
+
591
+ #: includes/manage/class-list-table.php:156
592
+ msgid ""
593
+ "You are about to permanently delete the selected item.\n"
594
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
595
+ msgstr ""
596
+ "Vous allez supprimer définitivement la sélection.\n"
597
+ "\t\t\t\t'Cancel' pour annuler, 'OK' confirmer et supprimer."
598
+
599
+ #: includes/manage/class-list-table.php:164
600
+ #, php-format
601
+ msgid "Untitled #%d"
602
+ msgstr ""
603
+
604
+ #: includes/manage/class-list-table.php:223
605
+ msgid "Name"
606
+ msgstr "Nom"
607
+
608
+ #: includes/manage/class-list-table.php:224
609
+ msgid "ID"
610
+ msgstr "ID"
611
+
612
+ #: includes/manage/class-list-table.php:267
613
+ msgid "Export to PHP"
614
+ msgstr "Export en PHP"
615
+
616
+ #: includes/manage/class-list-table.php:304
617
+ #, fuzzy, php-format
618
+ msgid "All <span class=\"count\">(%s)</span>"
619
+ msgstr "Tout <span class=\"count\">(%s)</span>"
620
+
621
+ #: includes/manage/class-list-table.php:307
622
+ #, fuzzy, php-format
623
+ msgid "Active <span class=\"count\">(%s)</span>"
624
+ msgstr "Activer <span class=\"count\">(%s)</span>"
625
+
626
+ #: includes/manage/class-list-table.php:310
627
+ #, fuzzy, php-format
628
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
629
+ msgstr "Récemment activé <span class=\"count\">(%s)</span>"
630
+
631
+ #: includes/manage/class-list-table.php:313
632
+ #, fuzzy, php-format
633
+ msgid "Inactive <span class=\"count\">(%s)</span>"
634
+ msgstr "Inactif <span class=\"count\">(%s)</span>"
635
+
636
+ #: includes/manage/class-list-table.php:373
637
+ msgid "Show all tags"
638
+ msgstr "Montre tout les étiquettes"
639
+
640
+ #: includes/manage/class-list-table.php:387
641
+ msgid "Filter"
642
+ msgstr "Filtre "
643
+
644
+ #: includes/manage/class-list-table.php:395
645
+ msgid "Clear List"
646
+ msgstr "Vider la liste"
647
+
648
+ #: includes/manage/class-list-table.php:544
649
+ #, php-format
650
+ msgid ""
651
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
652
+ "\">Add New&rarr;</a>"
653
+ msgstr "Aucun Snippet pour l'instant. <a href=\"%s\">En ajouter un&rarr;</a>"
654
+
655
+ #: includes/manage/class-list-table.php:765
656
+ msgid "Search results"
657
+ msgstr "Résultats de la recherche "
658
+
659
+ #: includes/manage/class-list-table.php:768
660
+ #, php-format
661
+ msgid " for &#8220;%s&#8221;"
662
+ msgstr " pour &#8220;%s&#8221;"
663
+
664
+ #: includes/manage/class-list-table.php:772
665
+ #, php-format
666
+ msgid " in tag &#8220;%s&#8221;"
667
+ msgstr " dans l'étiquette &#8220;%s&#8221;"
668
+
669
+ #: includes/manage/class-list-table.php:778
670
+ msgid "Clear Filters"
671
+ msgstr "Annuler les filtres "
672
+
673
+ #: includes/settings/admin.php:20
674
+ msgid "Snippets Settings"
675
+ msgstr "Réglages Snippets"
676
+
677
+ #: includes/settings/admin.php:21 includes/settings/admin.php:39
678
+ msgid "Settings"
679
+ msgstr "Réglages"
680
+
681
+ #: includes/settings/class-settings.php:47
682
+ msgid "Activate by Default"
683
+ msgstr ""
684
+
685
+ #: includes/settings/class-settings.php:49
686
+ msgid ""
687
+ "Make the 'Save and Activate' button the default action when saving a snippet."
688
+ msgstr ""
689
+
690
+ #: includes/settings/class-settings.php:55
691
+ msgid "Enable Scope Selector"
692
+ msgstr ""
693
+
694
+ #: includes/settings/class-settings.php:57
695
+ msgid "Enable the scope selector when editing a snippet"
696
+ msgstr ""
697
+
698
+ #: includes/settings/class-settings.php:95
699
+ msgid "Theme"
700
+ msgstr "Thème"
701
+
702
+ #: includes/settings/class-settings.php:103
703
+ msgid "Indent With Tabs"
704
+ msgstr ""
705
+
706
+ #: includes/settings/class-settings.php:105
707
+ msgid "Use hard tabs (not spaces) for indentation."
708
+ msgstr ""
709
+
710
+ #: includes/settings/class-settings.php:112
711
+ msgid "Tab Size"
712
+ msgstr ""
713
+
714
+ #: includes/settings/class-settings.php:114
715
+ msgid "The width of a tab character."
716
+ msgstr ""
717
+
718
+ #: includes/settings/class-settings.php:121
719
+ msgid "Indent Unit"
720
+ msgstr ""
721
+
722
+ #: includes/settings/class-settings.php:123
723
+ msgid "How many spaces a block should be indented."
724
+ msgstr ""
725
+
726
+ #: includes/settings/class-settings.php:130
727
+ msgid "Wrap Lines"
728
+ msgstr ""
729
+
730
+ #: includes/settings/class-settings.php:132
731
+ msgid "Whether the editor should scroll or wrap for long lines."
732
+ msgstr ""
733
+
734
+ #: includes/settings/class-settings.php:139
735
+ msgid "Line Numbers"
736
+ msgstr ""
737
+
738
+ #: includes/settings/class-settings.php:141
739
+ msgid "Show line numbers to the left of the editor."
740
+ msgstr ""
741
+
742
+ #: includes/settings/class-settings.php:148
743
+ msgid "Auto Close Brackets"
744
+ msgstr ""
745
+
746
+ #: includes/settings/class-settings.php:150
747
+ msgid "Auto-close brackets and quotes when typed."
748
+ msgstr ""
749
+
750
+ #: includes/settings/class-settings.php:157
751
+ msgid "Highlight Selection Matches"
752
+ msgstr ""
753
+
754
+ #: includes/settings/class-settings.php:158
755
+ msgid "Highlight all instances of a currently selected word."
756
+ msgstr ""
757
+
758
+ #: includes/settings/settings.php:93
759
+ msgid "General"
760
+ msgstr "Général"
761
+
762
+ #: includes/settings/settings.php:94
763
+ msgid "Description Editor"
764
+ msgstr ""
765
+
766
+ #: includes/settings/settings.php:95
767
+ msgid "Code Editor"
768
+ msgstr ""
769
+
770
+ #: includes/settings/settings.php:141
771
+ msgid "Editor Preview"
772
+ msgstr ""
773
+
774
+ #: includes/settings/settings.php:187
775
+ msgid "Settings saved."
776
+ msgstr ""
777
+
778
+ #~ msgid ""
779
+ #~ "An easy, clean and simple way to add code snippets to your site. No need "
780
+ #~ "to edit to your theme's functions.php file again!"
781
+ #~ msgstr ""
782
+ #~ "Une manière simple d'ajouter des snippets, portions de code, dans votre "
783
+ #~ "site. Plus besoin d'éditer le fichier functions.php de votre thème !"
784
+
785
+ #~ msgid "Shea Bunge"
786
+ #~ msgstr "Shea Bunge"
787
+
788
+ #~ msgid "http://bungeshea.com"
789
+ #~ msgstr "http://bungeshea.com"
790
+
791
+ #~ msgctxt "snippet"
792
+ #~ msgid "Add New"
793
+ #~ msgstr "Ajouter "
794
+
795
+ #~ msgid "Please provide a name for the snippet and its code."
796
+ #~ msgstr "Veuillez indiauer un nom ainsi que le code pour ce Snippet. "
797
+
798
+ #~ msgid "(Optional)"
799
+ #~ msgstr "(Option)"
800
+
801
+ #~ msgid "http://bungeshea.com/plugins/code-snippets"
802
+ #~ msgstr "http://bungeshea.com/plugins/code-snippets"
803
+
804
+ #~ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
805
+ #~ msgstr ""
806
+ #~ "Importer des Snippets depuis un fichier <strong>Code Snippets</strong> "
807
+ #~ "exporté préalablement. "
808
+
809
+ #~ msgid "Imported <strong>%d</strong> snippet."
810
+ #~ msgid_plural "Imported <strong>%d</strong> snippets."
811
+ #~ msgstr[0] "Snippet <strong>%d</strong> importé."
812
+ #~ msgstr[1] "Snippets <strong>%d</strong> importés."
813
+
814
+ #~ msgid "1.7"
815
+ #~ msgstr "1.7"
816
+
817
+ #~ msgid "Sorry, you're not allowed to edit snippets"
818
+ #~ msgstr "Désolé, vous n'êtes pas autorisé à éditer les Snippets "
819
+
820
+ #~ msgid "Save Changes &amp; Activate"
821
+ #~ msgstr "Enregistrer &amp; Activer"
trunk/languages/code-snippets-it_IT.mo ADDED
Binary file
trunk/languages/code-snippets-it_IT.po ADDED
@@ -0,0 +1,502 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ # Marco <troniclabs.crew@gmail.com>, 2014.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Code Snippets\n"
6
+ "PO-Revision-Date: 2016-11-06 09:26+0200\n"
7
+ "Last-Translator: Marco <troniclabs.crew@gmail.com>\n"
8
+ "Language-Team: Tronic Labs\n"
9
+ "Language: it\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+ "X-Generator: Virtaal 0.7.1\n"
15
+
16
+ #: code-snippets.php:0 code-snippets.php:262
17
+ msgid "Code Snippets"
18
+ msgstr "Code Snippets"
19
+
20
+ #: code-snippets.php:0
21
+ msgid "An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!"
22
+ msgstr ""
23
+ "Un facile, semplice e pulito modo di aggiungere Snippet, frammenti di codice "
24
+ "al tuo sito. Senza editare il tuo tema e il tuo file functions.php."
25
+
26
+ #: code-snippets.php:0
27
+ msgid "Shea Bunge"
28
+ msgstr "Shea Bunge"
29
+
30
+ #: code-snippets.php:0
31
+ msgid "http://bungeshea.com"
32
+ msgstr "http://bungeshea.com"
33
+
34
+ #: code-snippets.php:577 code-snippets.php:578 code-snippets.php:588
35
+ #: includes/admin/manage.php:36
36
+ msgid "Snippets"
37
+ msgstr "Snippets"
38
+
39
+ #: code-snippets.php:612 code-snippets.php:1145 includes/admin/single.php:45
40
+ msgid "Add New Snippet"
41
+ msgstr "Aggiungi nuovo Snippet"
42
+
43
+ #: code-snippets.php:613
44
+ msgid "Add New"
45
+ msgstr "Aggiungi Nuovo"
46
+
47
+ #: code-snippets.php:641 includes/admin/import.php:34
48
+ msgid "Import Snippets"
49
+ msgstr "Importa Snippet"
50
+
51
+ #: code-snippets.php:642
52
+ msgid "Import"
53
+ msgstr "Importa"
54
+
55
+ #: code-snippets.php:601 code-snippets.php:1146 includes/admin/single.php:37
56
+ msgid "Edit Snippet"
57
+ msgstr "Edita Snippet"
58
+
59
+ #: code-snippets.php:1465
60
+ msgid "Manage your existing snippets"
61
+ msgstr "Gestisci i tuoi snippets esistenti"
62
+
63
+ #: code-snippets.php:589 code-snippets.php:1466
64
+ msgid "Manage"
65
+ msgstr "Gestisci"
66
+
67
+ #: code-snippets.php:1486
68
+ msgid "Visit the WordPress.org plugin page"
69
+ msgstr "Visita la pagina del plugin su WordPress.org"
70
+
71
+ #: code-snippets.php:1487
72
+ msgid "About"
73
+ msgstr "Info"
74
+
75
+ #: code-snippets.php:1491
76
+ msgid "Visit the support forums"
77
+ msgstr "Visita il forum di supporto"
78
+
79
+ #: code-snippets.php:1492
80
+ msgid "Support"
81
+ msgstr "Supporto"
82
+
83
+ #: code-snippets.php:1496
84
+ msgid "Support this plugin's development"
85
+ msgstr "Supporta lo sviluppo di questo plugin"
86
+
87
+ #: code-snippets.php:1497
88
+ msgid "Donate"
89
+ msgstr "Donazione"
90
+
91
+ #: includes/admin/import.php:38
92
+ msgid "Howdy! Upload your Code Snippets export file and we&#8217;ll import the snippets to this site."
93
+ msgstr ""
94
+ "Wella! Carica i tuoi Snippets di codice dal file esportato e li importeremo "
95
+ "nel tuo sito. "
96
+
97
+ #: includes/admin/import.php:40
98
+ msgid "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to activate the imported snippets."
99
+ msgstr ""
100
+ "Dovrai andare nella pagina <a href=\"%s\">Gestisci Snippets</a> per attivare "
101
+ "gli snippets importati."
102
+
103
+ #: includes/admin/import.php:42
104
+ msgid "Choose a Code Snippets (.xml) file to upload, then click Upload file and import."
105
+ msgstr ""
106
+ "Scegli un file di Codice Snippets (.xml) da caricare, quindi clicca su "
107
+ "Carica file e Importa."
108
+
109
+ #: includes/admin/import.php:46
110
+ msgid "Choose a file from your computer:"
111
+ msgstr "Scegli un file dal computer:"
112
+
113
+ #: includes/admin/import.php:46
114
+ msgid "(Maximum size: 8MB)"
115
+ msgstr "(Grandezza massima: 8MB)"
116
+
117
+ #: includes/admin/import.php:55
118
+ msgid "Upload file and import"
119
+ msgstr "Carica un file e importa"
120
+
121
+ #: includes/admin/manage.php:21
122
+ msgid "Snippet <strong>activated</strong>."
123
+ msgstr "Snippet <strong>attivato</strong>."
124
+
125
+ #: includes/admin/manage.php:23
126
+ msgid "Selected snippets <strong>activated</strong>."
127
+ msgstr "Snippet selezionato <strong>attivato</strong>."
128
+
129
+ #: includes/admin/manage.php:25
130
+ msgid "Snippet <strong>deactivated</strong>."
131
+ msgstr "Snippet <strong>disattivato</strong>."
132
+
133
+ #: includes/admin/manage.php:27
134
+ msgid "Selected snippets <strong>deactivated</strong>."
135
+ msgstr "Snippet selezionato <strong>disattivato</strong>."
136
+
137
+ #: includes/admin/manage.php:29
138
+ msgid "Snippet <strong>deleted</strong>."
139
+ msgstr "Snippet <strong>cancellato</strong>."
140
+
141
+ #: includes/admin/manage.php:31
142
+ msgid "Selected snippets <strong>deleted</strong>."
143
+ msgstr "Snippet selezionato <strong>cancellato</strong>."
144
+
145
+ #: includes/admin/manage.php:38 includes/admin/single.php:42
146
+ msgctxt "snippet"
147
+ msgid "Add New"
148
+ msgstr "Aggiungi Nuovo"
149
+
150
+ #: includes/admin/manage.php:47
151
+ msgid "Search Installed Snippets"
152
+ msgstr "Cerca Snippets Installati"
153
+
154
+ #: includes/admin/single.php:22
155
+ msgid "Please provide a name for the snippet and its code."
156
+ msgstr "Per favore dai un nome allo snippet e al suo codice."
157
+
158
+ #: includes/admin/single.php:28
159
+ msgid "Snippet <strong>updated</strong>."
160
+ msgstr "Snippet <strong>aggiornato</strong>."
161
+
162
+ #: includes/admin/single.php:30
163
+ msgid "Snippet <strong>added</strong>."
164
+ msgstr "Snippet <strong>aggiunto</strong>."
165
+
166
+ #: includes/admin/single.php:55 includes/admin/single.php:56
167
+ msgid "Name (short title)"
168
+ msgstr "Nome (titolo corto)"
169
+
170
+ #: includes/admin/single.php:61
171
+ msgid "Code"
172
+ msgstr "Codice"
173
+
174
+ #: code-snippets.php:1433 includes/class-list-table.php:189
175
+ msgid "Description"
176
+ msgstr "Descizione"
177
+
178
+ #: code-snippets.php:1434
179
+ msgid "(Optional)"
180
+ msgstr "(Opzionale)"
181
+
182
+ #: includes/class-list-table.php:36
183
+ msgid "Snippets per page"
184
+ msgstr "Snippets per pagina"
185
+
186
+ #: code-snippets.php:1118 includes/class-list-table.php:127
187
+ #: includes/class-list-table.php:213
188
+ msgid "Network Deactivate"
189
+ msgstr "Network Disattiva"
190
+
191
+ #: code-snippets.php:1118 includes/class-list-table.php:127
192
+ #: includes/class-list-table.php:213
193
+ msgid "Deactivate"
194
+ msgstr "Disattiva"
195
+
196
+ #: code-snippets.php:1127 includes/class-list-table.php:137
197
+ #: includes/class-list-table.php:212
198
+ msgid "Network Activate"
199
+ msgstr "Network Attiva"
200
+
201
+ #: code-snippets.php:1127 includes/class-list-table.php:137
202
+ #: includes/class-list-table.php:212
203
+ msgid "Activate"
204
+ msgstr "Attiva"
205
+
206
+ #: includes/class-list-table.php:187
207
+ msgid "Name"
208
+ msgstr "Nome"
209
+
210
+ #: includes/class-list-table.php:188
211
+ msgid "ID"
212
+ msgstr "ID"
213
+
214
+ #: includes/class-list-table.php:147 includes/class-list-table.php:214
215
+ msgid "Export"
216
+ msgstr "Esporta"
217
+
218
+ #: includes/class-list-table.php:155 includes/class-list-table.php:215
219
+ msgid "Delete"
220
+ msgstr "Cancella"
221
+
222
+ #: includes/class-list-table.php:216
223
+ msgid "Export to PHP"
224
+ msgstr "Esporta in PHP"
225
+
226
+ #: includes/class-list-table.php:236
227
+ msgid "All <span class=\"count\">(%s)</span>"
228
+ msgid_plural "All <span class=\"count\">(%s)</span>"
229
+ msgstr[0] "Tutto <span class=\"count\">(%s)</span>"
230
+ msgstr[1] "Tutti <span class=\"count\">(%s)</span>"
231
+
232
+ #: includes/class-list-table.php:239
233
+ msgid "Active <span class=\"count\">(%s)</span>"
234
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
235
+ msgstr[0] "Attivo <span class=\"count\">(%s)</span>"
236
+ msgstr[1] "Attivi <span class=\"count\">(%s)</span>"
237
+
238
+ #: includes/class-list-table.php:242
239
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
240
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
241
+ msgstr[0] "Recentemente Attivo <span class=\"count\">(%s)</span>"
242
+ msgstr[1] "Recentemente Attivi <span class=\"count\">(%s)</span>"
243
+
244
+ #: includes/class-list-table.php:245
245
+ msgid "Inactive <span class=\"count\">(%s)</span>"
246
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
247
+ msgstr[0] "Inattivo <span class=\"count\">(%s)</span>"
248
+ msgstr[1] "Inattivi <span class=\"count\">(%s)</span>"
249
+
250
+ #: includes/class-list-table.php:279
251
+ msgid "Clear List"
252
+ msgstr "Cancella Lista"
253
+
254
+ #: includes/class-list-table.php:374
255
+ msgid "You do not appear to have any snippets available at this time. <a href=\"%s\">Add New&rarr;</a>"
256
+ msgstr ""
257
+ "Sembra che tu non abbia nessuno snippets disponibile fino ad ora. <a href=\"%"
258
+ "s\">Aggiungi Nuovo&rarr;</a>"
259
+
260
+ #: includes/help/import.php:5 includes/help/manage.php:5
261
+ #: includes/help/single.php:5
262
+ msgid "Overview"
263
+ msgstr "Panoramica"
264
+
265
+ #: includes/help/import.php:7
266
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can load snippets from a Code Snippets (.xml) import file into the database with your existing snippets."
267
+ msgstr ""
268
+ "Gli Snippets sono simili ai Plugin - tutti e due espandono le funzionalità "
269
+ "di WordPress. Gli Snippets sono più leggeri, giusto poche righe di codice, e "
270
+ "non appesantiscono il server. Qui tu puoi caricare snippet da un file di "
271
+ "codice Snippets (.xml) ed importarli nel database aggiungendoli a gli altri "
272
+ "esistenti."
273
+
274
+ #: includes/help/import.php:12
275
+ msgid "Importing"
276
+ msgstr "Importando"
277
+
278
+ #: includes/help/import.php:15
279
+ msgid "Snippets will be added to the database along with your existing snippets. Regardless of whether the snippets were active on the previous site, imported snippets are always inactive until activated using the <a href=\"%s\">Manage Snippets</a> page.</p>"
280
+ msgstr ""
281
+ "Gli Snippets saranno aggiunti al database insieme ai quelli esistenti. "
282
+ "Indipendentemente dal fatto che gli snippets erano attivi sul sito "
283
+ "precedente, gli snippets importati sono sempre inattivi finché non vengono "
284
+ "attivati utilizzando la <a href=\"%s\">Gestisci Snippets</a> pagina.</p>"
285
+
286
+ #: includes/help/import.php:20
287
+ msgid "Exporting"
288
+ msgstr "Esportando"
289
+
290
+ #: includes/help/import.php:22
291
+ msgid "You can save your snippets to a Code Snippets (.xml) export file using the <a href=\"%s\">Manage Snippets</a> page."
292
+ msgstr ""
293
+ "Tu puoi salvare i tuoi snippets in un file di codice Snippets (.xml) usando "
294
+ "la <a href=\"%s\">Gestisci Snippets</a> pagina."
295
+
296
+ #: includes/help/import.php:26 includes/help/manage.php:27
297
+ #: includes/help/single.php:31
298
+ msgid "For more information:"
299
+ msgstr "Per maggiori informazioni:"
300
+
301
+ #: includes/help/import.php:27 includes/help/single.php:32
302
+ msgid "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank\">WordPress Extend</a>"
303
+ msgstr ""
304
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" "
305
+ "target=\"_blank\">WordPress Extend</a>"
306
+
307
+ #: includes/help/import.php:28 includes/help/manage.php:29
308
+ #: includes/help/single.php:33
309
+ msgid "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank\">Support Forums</a>"
310
+ msgstr ""
311
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" "
312
+ "target=\"_blank\">Support Forums</a>"
313
+
314
+ #: includes/help/manage.php:7
315
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can manage your existing snippets and perform tasks on them such as activating, deactivating, deleting and exporting."
316
+ msgstr ""
317
+ "Gli Snippets sono simili ai Plugin - tutti e due espandono le funzionalità "
318
+ "di WordPress. Gli Snippets sono più leggeri, giusto poche righe di codice, e "
319
+ "non appesantiscono il server. Qui tu puoi gestire i tuoi snippets, "
320
+ "attivarli, disattivarli, cancellarli ed esportarli."
321
+
322
+ #: includes/help/manage.php:12
323
+ msgid "Safe Mode"
324
+ msgstr "Modalità Sicura"
325
+
326
+ #: includes/help/manage.php:14
327
+ msgid "Be sure to check your snippets for errors before you activate them, as a faulty snippet could bring your whole blog down. If your site starts doing strange things, deactivate all your snippets and activate them one at a time."
328
+ msgstr ""
329
+ "Assicuratevi di controllare i vostri snippets da errori prima di attivarli, "
330
+ "uno snippet difettoso potrebbe bloccare tutto il tuo blog. Se il tuo sito "
331
+ "inizia a fare cose strane, disattivare tutti gli snippets e attivarli uno "
332
+ "alla volta."
333
+
334
+ #: includes/help/manage.php:20
335
+ msgid "Uninstall"
336
+ msgstr "Disinstalla"
337
+
338
+ #: includes/help/manage.php:22
339
+ msgid "When you delete Code Snippets through the Plugins menu in WordPress it will clear up the <code>%1$s</code> table and a few other bits of data stored in the database. If you want to keep this data (ie: you are only temporally uninstalling Code Snippets) then remove the <code>%2$s</code> folder using FTP."
340
+ msgstr ""
341
+ "Quando tu disinstalli il Code Snippets dal Plugins menu in WordPress, esso "
342
+ "cancellerà la <code>%1$s</code> tavola e pochi altri bit di dati "
343
+ "memorizzati nel tuo database. Se tu vuoi mantenere questi dati (es. tu stai "
344
+ "solo temporaneamente disinstallando il Code Snippets) allora rimuovi la "
345
+ "<code>%2$s</code> cartella usando lo FTP."
346
+
347
+ #: includes/help/manage.php:23
348
+ msgid "Even if you're sure that you don't want to use Code Snippets ever again on this WordPress installation, you may want to use the export feature to back up your snippets."
349
+ msgstr ""
350
+ "Anche se sei sicuro che non vuoi più utilizzare Code Snippets in WordPress, "
351
+ "è possibile utilizzare la funzione di esportazione per il backup degli "
352
+ "snippets."
353
+
354
+ #: includes/help/manage.php:28
355
+ msgid "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank\">WordPress Extend</a></p>"
356
+ msgstr ""
357
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" "
358
+ "target=\"_blank\">WordPress Extend</a></p>"
359
+
360
+ #: includes/help/single.php:7
361
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can add a new snippet, or edit an existing one."
362
+ msgstr ""
363
+ "Gli Snippets sono simili ai Plugin - tutti e due espandono le funzionalità "
364
+ "di WordPress. Gli Snippets sono più leggeri, giusto poche righe di codice, e "
365
+ "non appesantiscono il server. Qui tu puoi aggiungere un nuovo snippet o "
366
+ "modificarne uno esistente."
367
+
368
+ #: includes/help/single.php:11
369
+ msgid "Finding Snippets"
370
+ msgstr "Cercando Snippets"
371
+
372
+ #: includes/help/single.php:13
373
+ msgid ""
374
+ "Here are some links to websites which host a large number of snippets that you can add to your site.\n"
375
+ "\t\t<ul>\n"
376
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-Snippets</a></li>\n"
377
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></li>\n"
378
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
379
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
380
+ "\t\t</ul>"
381
+ msgstr ""
382
+ "Qui ci sono alcuni link a siti web che ospitano un largo numero di snippets "
383
+ "che puoi aggiungere al tuo sito.\n"
384
+ "\t\t<ul>\n"
385
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
386
+ "Snippets</a></li>\n"
387
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></li>\n"
388
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats Who "
389
+ "Code Snippet Library\">Cats Who Code</a></li>\n"
390
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>"
391
+
392
+ #: includes/help/single.php:24
393
+ msgid "Adding Snippets"
394
+ msgstr "Aggiungendo Snippets"
395
+
396
+ #: includes/help/single.php:26
397
+ msgid "You need to fill out the name and code fields for your snippet to be added. While the description field will add more information about how your snippet works, what is does and where you found it, it is completely optional."
398
+ msgstr ""
399
+ "Devi riempire il campo del nome e il codice per aggiungere lo snippet. "
400
+ "Mentre il campo della descrizione aggiungerà più informazioni riguardo a "
401
+ "come lavora il tuo snippet, cosa fa e dove lo ritroviamo, ed è completamente "
402
+ "opzionale. "
403
+
404
+ #: includes/help/single.php:27
405
+ msgid "Please be sure to check that your snippet is valid PHP code and will not produce errors before adding it through this page. While doing so will not become active straight away, it will help to minimise the chance of a faulty snippet becoming active on your site."
406
+ msgstr ""
407
+ "Per favore accertati che lo snippet abbia un codice PHP valido e non produca "
408
+ "errori aggiungendolo a questa pagina. Facendo così, e non attivandolo "
409
+ "immediatamente, ci assicureremo di minimizzare le probabilità che uno "
410
+ "snippet difettoso sia attivato nel sito. "
411
+
412
+ #: code-snippets.php:0
413
+ msgid "http://bungeshea.com/plugins/code-snippets"
414
+ msgstr "http://bungeshea.com/plugins/code-snippets"
415
+
416
+ #: code-snippets.php:263
417
+ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
418
+ msgstr "Importa snippets da un file <strong>Code Snippets</strong> esportato"
419
+
420
+ #: includes/admin/import.php:20
421
+ msgid "Imported <strong>%d</strong> snippet."
422
+ msgid_plural "Imported <strong>%d</strong> snippets."
423
+ msgstr[0] "Importato <strong>%d</strong> snippet."
424
+ msgstr[1] "Importati <strong>%d</strong> snippets."
425
+
426
+ #: includes/help/import.php:29 includes/help/manage.php:30
427
+ #: includes/help/single.php:34
428
+ msgid "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project Website</a>"
429
+ msgstr ""
430
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
431
+ "Website</a>"
432
+
433
+ #: includes/help/manage.php:15
434
+ msgid "If something goes wrong with a snippet and you can't use WordPress, you can cause all snippets to stop executing by adding <code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-config.php</code> file. After you have deactivated the offending snippet, you can turn off safe mode by removing this line or replacing <strong>true</strong> with <strong>false</strong>."
435
+ msgstr ""
436
+ "Se qualcosa va storto con uno snippet e non puoi più usare WordPress, puoi "
437
+ "bloccare la esecuzione di tutti gli snippets aggiungendo "
438
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> al tuo file <code>wp-"
439
+ "config.php</code>. Dopo aver disattivato lo snippet difettoso, puoi uscire "
440
+ "dalla modalità sicura rimuovendo la linea oppure cambiando "
441
+ "<strong>true</strong> con <strong>false</strong>."
442
+
443
+ #: includes/help/single.php:20
444
+ msgid "More places to find snippets, as well as a selection of example snippets, can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets\">plugin documentation</a>"
445
+ msgstr ""
446
+ "Un po' di posti dove cercare snippets, una selezione e alcuni esempi li pui "
447
+ "trovare nella <a href=\"https://github.com/sheabunge/code-snippets/wiki/"
448
+ "Finding0-snippets\">documentazione del plugin</a>"
449
+
450
+ #: code-snippets.php:0
451
+ msgid "1.7"
452
+ msgstr "1.7"
453
+
454
+ #: code-snippets.php:602 includes/class-list-table.php:142
455
+ msgid "Edit"
456
+ msgstr "Modifica"
457
+
458
+ #: code-snippets.php:1227
459
+ msgid "Sorry, you're not allowed to edit snippets"
460
+ msgstr "Scusa, tu non sei abilitato a modificare questo snippets"
461
+
462
+ #: includes/admin/single.php:24
463
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
464
+ msgstr "Snippet <strong>aggiornato</strong> e <strong>attivato</strong>."
465
+
466
+ #: includes/admin/single.php:26
467
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
468
+ msgstr "Snippet <strong>aggiunto</strong> e <strong>attivato</strong>."
469
+
470
+ #: includes/class-list-table.php:163
471
+ msgid ""
472
+ "You are about to permanently delete the selected item.\n"
473
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
474
+ msgstr ""
475
+ "Tu stai per cancellare in modo permanente questo elemento.\n"
476
+ "\t\t\t\t'Cancella' per fermarti, 'OK' per cancellare."
477
+
478
+ #: includes/class-list-table.php:270
479
+ msgid "Filter"
480
+ msgstr "Filtro"
481
+
482
+ #: includes/class-list-table.php:541
483
+ msgid "Search results"
484
+ msgstr "Risultati ricerca"
485
+
486
+ #: includes/class-list-table.php:544
487
+ msgid " for &#8220;%s&#8221;"
488
+ msgstr " per &#8220;%s&#8221;"
489
+
490
+ #: includes/class-list-table.php:550
491
+ msgid "Clear Filters"
492
+ msgstr "Cancella Filtri"
493
+
494
+ #: includes/help/import.php:14
495
+ msgid "You can load your snippets from a code snippets (.xml) export file using this page."
496
+ msgstr ""
497
+ "Tu non puoi caricare i tuoi snippets da un file di codice snippets (.xml) "
498
+ "usando questa pagina."
499
+
500
+ #: includes/admin/single.php:74
501
+ msgid "Save Changes &amp; Activate"
502
+ msgstr "Salva Cambiamenti e Attivare"
trunk/languages/code-snippets-ja_JP.mo ADDED
Binary file
trunk/languages/code-snippets-ja_JP.po ADDED
@@ -0,0 +1,569 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "PO-Revision-Date: 2013-11-30 10:44+0900\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
9
+ "X-Generator: Poedit 1.5.7\n"
10
+ "Project-Id-Version: Code Snippets\n"
11
+ "POT-Creation-Date: \n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+
15
+ #: code-snippets.php:0 code-snippets.php:262
16
+ msgid "Code Snippets"
17
+ msgstr "Code Snippets"
18
+
19
+ #: code-snippets.php:0
20
+ msgid ""
21
+ "An easy, clean and simple way to add code snippets to your site. No need to "
22
+ "edit to your theme's functions.php file again!"
23
+ msgstr ""
24
+ "簡単に、あなたのサイトにコードスニペットを追加する方法です。もうテーマの"
25
+ "functions.phpを編集する必要はありません!"
26
+
27
+ #: code-snippets.php:0
28
+ msgid "Shea Bunge"
29
+ msgstr "Shea Bunge"
30
+
31
+ #: code-snippets.php:0
32
+ msgid "http://bungeshea.com"
33
+ msgstr "http://bungeshea.com"
34
+
35
+ #: code-snippets.php:577 code-snippets.php:578 code-snippets.php:588
36
+ #: includes/admin/manage.php:36
37
+ msgid "Snippets"
38
+ msgstr "スニペット"
39
+
40
+ #: code-snippets.php:612 code-snippets.php:1145 includes/admin/single.php:45
41
+ msgid "Add New Snippet"
42
+ msgstr "スニペット新規追加"
43
+
44
+ #: code-snippets.php:613
45
+ msgid "Add New"
46
+ msgstr "新規追加"
47
+
48
+ #: code-snippets.php:641 includes/admin/import.php:34
49
+ msgid "Import Snippets"
50
+ msgstr "スニペットインポート"
51
+
52
+ #: code-snippets.php:642
53
+ msgid "Import"
54
+ msgstr "インポート"
55
+
56
+ #: code-snippets.php:601 code-snippets.php:1146 includes/admin/single.php:37
57
+ msgid "Edit Snippet"
58
+ msgstr "スニペット編集"
59
+
60
+ #: code-snippets.php:1465
61
+ msgid "Manage your existing snippets"
62
+ msgstr "登録されているスニペットを管理"
63
+
64
+ #: code-snippets.php:589 code-snippets.php:1466
65
+ msgid "Manage"
66
+ msgstr "管理"
67
+
68
+ #: code-snippets.php:1486
69
+ msgid "Visit the WordPress.org plugin page"
70
+ msgstr "WordPress.orgプラグインページへ"
71
+
72
+ #: code-snippets.php:1487
73
+ msgid "About"
74
+ msgstr "このプラグインについて"
75
+
76
+ #: code-snippets.php:1491
77
+ msgid "Visit the support forums"
78
+ msgstr "サポートフォーラムへ"
79
+
80
+ #: code-snippets.php:1492
81
+ msgid "Support"
82
+ msgstr "サポート"
83
+
84
+ #: code-snippets.php:1496
85
+ msgid "Support this plugin's development"
86
+ msgstr "このプラグインの開発をサポート"
87
+
88
+ #: code-snippets.php:1497
89
+ msgid "Donate"
90
+ msgstr "寄付"
91
+
92
+ #: includes/admin/import.php:38
93
+ msgid ""
94
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
95
+ "snippets to this site."
96
+ msgstr ""
97
+ "こんにちは!あなたのコードスニペットエクスポートファイルをアップロードして、"
98
+ "このサイトにスニペットをインポートします。"
99
+
100
+ #: includes/admin/import.php:40
101
+ msgid ""
102
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
103
+ "activate the imported snippets."
104
+ msgstr ""
105
+ "<a href=\"%s\">スニペットの管理</a> ページでインポートしたスニペットを有効に"
106
+ "する必要があります。"
107
+
108
+ #: includes/admin/import.php:42
109
+ msgid ""
110
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
111
+ "import."
112
+ msgstr ""
113
+ "アップロードするスニペットファイル(.xml)を選択し、クリックしてファイルをアッ"
114
+ "プロードし、インポートして下さい。"
115
+
116
+ #: includes/admin/import.php:46
117
+ msgid "Choose a file from your computer:"
118
+ msgstr "ファイルをコンピュータから選択:"
119
+
120
+ #: includes/admin/import.php:46
121
+ msgid "(Maximum size: 8MB)"
122
+ msgstr "(最大ファイルサイズ: 8MB)"
123
+
124
+ #: includes/admin/import.php:55
125
+ msgid "Upload file and import"
126
+ msgstr "ファイルをアップロードし、インポート"
127
+
128
+ #: includes/admin/manage.php:21
129
+ msgid "Snippet <strong>activated</strong>."
130
+ msgstr "スニペットを <strong>有効化</strong>。"
131
+
132
+ #: includes/admin/manage.php:23
133
+ msgid "Selected snippets <strong>activated</strong>."
134
+ msgstr "選択されたスニペットを <strong>有効化</strong>。"
135
+
136
+ #: includes/admin/manage.php:25
137
+ msgid "Snippet <strong>deactivated</strong>."
138
+ msgstr "スニペットを <strong>停止</strong>。"
139
+
140
+ #: includes/admin/manage.php:27
141
+ msgid "Selected snippets <strong>deactivated</strong>."
142
+ msgstr "選択したスニペットを <strong>停止</strong>。"
143
+
144
+ #: includes/admin/manage.php:29
145
+ msgid "Snippet <strong>deleted</strong>."
146
+ msgstr "スニペットを <strong>削除</strong>。"
147
+
148
+ #: includes/admin/manage.php:31
149
+ msgid "Selected snippets <strong>deleted</strong>."
150
+ msgstr "選択されたスニペットを <strong>削除</strong>。"
151
+
152
+ #: includes/admin/manage.php:38 includes/admin/single.php:42
153
+ msgctxt "snippet"
154
+ msgid "Add New"
155
+ msgstr "新規追加"
156
+
157
+ #: includes/admin/manage.php:47
158
+ msgid "Search Installed Snippets"
159
+ msgstr "インストールされているスニペットを検索"
160
+
161
+ #: includes/admin/single.php:22
162
+ msgid "Please provide a name for the snippet and its code."
163
+ msgstr "スニペットもしくはコードに名前をつけて下さい。"
164
+
165
+ #: includes/admin/single.php:28
166
+ msgid "Snippet <strong>updated</strong>."
167
+ msgstr "スニペットを <strong>更新</strong>。"
168
+
169
+ #: includes/admin/single.php:30
170
+ msgid "Snippet <strong>added</strong>."
171
+ msgstr "スニペットを <strong>追加</strong>。"
172
+
173
+ #: includes/admin/single.php:55 includes/admin/single.php:56
174
+ msgid "Name (short title)"
175
+ msgstr "名前 (短いタイトル)"
176
+
177
+ #: includes/admin/single.php:61
178
+ msgid "Code"
179
+ msgstr "コード"
180
+
181
+ #: code-snippets.php:1433 includes/class-list-table.php:189
182
+ msgid "Description"
183
+ msgstr "説明"
184
+
185
+ #: code-snippets.php:1434
186
+ msgid "(Optional)"
187
+ msgstr "(オプション)"
188
+
189
+ #: includes/class-list-table.php:36
190
+ msgid "Snippets per page"
191
+ msgstr "1ページあたりのスニペット表示件数"
192
+
193
+ #: code-snippets.php:1118 includes/class-list-table.php:127
194
+ #: includes/class-list-table.php:213
195
+ msgid "Network Deactivate"
196
+ msgstr "ネットワーク 無効"
197
+
198
+ #: code-snippets.php:1118 includes/class-list-table.php:127
199
+ #: includes/class-list-table.php:213
200
+ msgid "Deactivate"
201
+ msgstr "無効"
202
+
203
+ #: code-snippets.php:1127 includes/class-list-table.php:137
204
+ #: includes/class-list-table.php:212
205
+ msgid "Network Activate"
206
+ msgstr "ネットワーク 有効"
207
+
208
+ #: code-snippets.php:1127 includes/class-list-table.php:137
209
+ #: includes/class-list-table.php:212
210
+ msgid "Activate"
211
+ msgstr "有効"
212
+
213
+ #: includes/class-list-table.php:187
214
+ msgid "Name"
215
+ msgstr "名前"
216
+
217
+ #: includes/class-list-table.php:188
218
+ msgid "ID"
219
+ msgstr "ID"
220
+
221
+ #: includes/class-list-table.php:147 includes/class-list-table.php:214
222
+ msgid "Export"
223
+ msgstr "エクスポート"
224
+
225
+ #: includes/class-list-table.php:155 includes/class-list-table.php:215
226
+ msgid "Delete"
227
+ msgstr "削除"
228
+
229
+ #: includes/class-list-table.php:216
230
+ msgid "Export to PHP"
231
+ msgstr "PHPにエクスポート"
232
+
233
+ #: includes/class-list-table.php:236
234
+ msgid "All <span class=\"count\">(%s)</span>"
235
+ msgid_plural "All <span class=\"count\">(%s)</span>"
236
+ msgstr[0] "全て <span class=\"count\">(%s)</span>"
237
+ msgstr[1] "全て <span class=\"count\">(%s)</span>"
238
+
239
+ #: includes/class-list-table.php:239
240
+ msgid "Active <span class=\"count\">(%s)</span>"
241
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
242
+ msgstr[0] "有効 <span class=\"count\">(%s)</span>"
243
+ msgstr[1] "有効 <span class=\"count\">(%s)</span>"
244
+
245
+ #: includes/class-list-table.php:242
246
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
247
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
248
+ msgstr[0] "最近まで使用 <span class=\"count\">(%s)</span>"
249
+ msgstr[1] "最近の有効 <span class=\"count\">(%s)</span>"
250
+
251
+ #: includes/class-list-table.php:245
252
+ msgid "Inactive <span class=\"count\">(%s)</span>"
253
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
254
+ msgstr[0] "停止 <span class=\"count\">(%s)</span>"
255
+ msgstr[1] "停止 <span class=\"count\">(%s)</span>"
256
+
257
+ #: includes/class-list-table.php:279
258
+ msgid "Clear List"
259
+ msgstr "一覧をクリア"
260
+
261
+ #: includes/class-list-table.php:374
262
+ msgid ""
263
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
264
+ "\">Add New&rarr;</a>"
265
+ msgstr "表示するスニペットがまだありません。<a href=\"%s\">新規追加&rarr;</a>"
266
+
267
+ #: includes/help/import.php:5 includes/help/manage.php:5
268
+ #: includes/help/single.php:5
269
+ msgid "Overview"
270
+ msgstr "概要"
271
+
272
+ #: includes/help/import.php:7
273
+ msgid ""
274
+ "Snippets are similar to plugins - they both extend and expand the "
275
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
276
+ "of code, and do not put as much load on your server. Here you can load "
277
+ "snippets from a Code Snippets (.xml) import file into the database with your "
278
+ "existing snippets."
279
+ msgstr ""
280
+ "スニペットはプラグインに似ています。両方ともWordPressの機能を拡張します。スニ"
281
+ "ペットは、より軽量、わずか数行のコードであり、サーバに負荷をかけません。ここ"
282
+ "であなたが持つスニペットを Code Snippets のインポートファイル(.xml) からデー"
283
+ "タベースに登録できます。"
284
+
285
+ #: includes/help/import.php:12
286
+ msgid "Importing"
287
+ msgstr "インポート中"
288
+
289
+ #: includes/help/import.php:15
290
+ msgid ""
291
+ "Snippets will be added to the database along with your existing snippets. "
292
+ "Regardless of whether the snippets were active on the previous site, "
293
+ "imported snippets are always inactive until activated using the <a href=\"%s"
294
+ "\">Manage Snippets</a> page.</p>"
295
+ msgstr ""
296
+ "スニペットは、既存のスニペットと一緒にデータベースに追加されます。<a href="
297
+ "\"%s\">スニペット管理</a> ページを使用して有効化されるまで、スニペットは、以"
298
+ "前のサイト上でアクティブになっていたかどうかにかかわらず、インポートされたス"
299
+ "ニペットは常に停止状態となります。</p>"
300
+
301
+ #: includes/help/import.php:20
302
+ msgid "Exporting"
303
+ msgstr "エクスポート中"
304
+
305
+ #: includes/help/import.php:22
306
+ msgid ""
307
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
308
+ "<a href=\"%s\">Manage Snippets</a> page."
309
+ msgstr ""
310
+ "<a href=\"%s\">スニペット管理</a> ページでスニペットをCode Snippetsエクスポー"
311
+ "トファイル(.xml)に保存することができます。"
312
+
313
+ #: includes/help/import.php:26 includes/help/manage.php:27
314
+ #: includes/help/single.php:31
315
+ msgid "For more information:"
316
+ msgstr "より多くの情報:"
317
+
318
+ #: includes/help/import.php:27 includes/help/single.php:32
319
+ msgid ""
320
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
321
+ "\">WordPress Extend</a>"
322
+ msgstr ""
323
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
324
+ "\">WordPress Extend</a>"
325
+
326
+ #: includes/help/import.php:28 includes/help/manage.php:29
327
+ #: includes/help/single.php:33
328
+ msgid ""
329
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
330
+ "\">Support Forums</a>"
331
+ msgstr ""
332
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
333
+ "\">サポートフォラム</a>"
334
+
335
+ #: includes/help/manage.php:7
336
+ msgid ""
337
+ "Snippets are similar to plugins - they both extend and expand the "
338
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
339
+ "of code, and do not put as much load on your server. Here you can manage "
340
+ "your existing snippets and perform tasks on them such as activating, "
341
+ "deactivating, deleting and exporting."
342
+ msgstr ""
343
+ "スニペットはプラグインに似ています。両方ともWordPressの機能を拡張します。スニ"
344
+ "ペットは、より軽量、わずか数行のコードであり、サーバに負荷をかけません。ここ"
345
+ "では、既存のスニペットなどの有効化、停止、削除、エクスポートなど、それらのタ"
346
+ "スクを管理することができます。"
347
+
348
+ #: includes/help/manage.php:12
349
+ msgid "Safe Mode"
350
+ msgstr "セーフモード"
351
+
352
+ #: includes/help/manage.php:14
353
+ msgid ""
354
+ "Be sure to check your snippets for errors before you activate them, as a "
355
+ "faulty snippet could bring your whole blog down. If your site starts doing "
356
+ "strange things, deactivate all your snippets and activate them one at a time."
357
+ msgstr ""
358
+ "サイト全体が障害のあるスニペットで停止しないように、それらを有効化する前にス"
359
+ "ニペットを確認して下さい。サイトが奇妙な動作をした場合は、すべてのスニペット"
360
+ "を無効化し、それらを一度に1をアクティブにします。"
361
+
362
+ #: includes/help/manage.php:20
363
+ msgid "Uninstall"
364
+ msgstr "アンインストール"
365
+
366
+ #: includes/help/manage.php:22
367
+ msgid ""
368
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
369
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
370
+ "the database. If you want to keep this data (ie: you are only temporally "
371
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
372
+ "FTP."
373
+ msgstr ""
374
+ "あなたがワードプレスでのプラグインメニューからコードスニペットを削除すると"
375
+ "き、<code>%1$s</code>テーブルと、データベースに格納されたデータのいくつかをク"
376
+ "リアします。(例:あなただけの一時的コードスニペットをアンインストールする)"
377
+ "このデータを保持する場合は、FTPを使用して <code>%2$s</code> フォルダを削除し"
378
+ "ます。"
379
+
380
+ #: includes/help/manage.php:23
381
+ msgid ""
382
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
383
+ "this WordPress installation, you may want to use the export feature to back "
384
+ "up your snippets."
385
+ msgstr ""
386
+ "インストールされたスニペットコードをこのWordPressで使用しないとしても、スニ"
387
+ "ペットをエクスポート機能でバックアップして使用することができます。"
388
+
389
+ #: includes/help/manage.php:28
390
+ msgid ""
391
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
392
+ "\">WordPress Extend</a></p>"
393
+ msgstr ""
394
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
395
+ "\">WordPress Extend</a></p>"
396
+
397
+ #: includes/help/single.php:7
398
+ msgid ""
399
+ "Snippets are similar to plugins - they both extend and expand the "
400
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
401
+ "of code, and do not put as much load on your server. Here you can add a new "
402
+ "snippet, or edit an existing one."
403
+ msgstr ""
404
+ "スニペットはプラグインに似ています。両方ともWordPressの機能を拡張します。スニ"
405
+ "ペットは、より軽量、わずか数行のコードであり、サーバに負荷をかけません。ここ"
406
+ "では、新しいスニペットを追加するか、既存のものを編集することができます。"
407
+
408
+ #: includes/help/single.php:11
409
+ msgid "Finding Snippets"
410
+ msgstr "スニペットを探す"
411
+
412
+ #: includes/help/single.php:13
413
+ msgid ""
414
+ "Here are some links to websites which host a large number of snippets that "
415
+ "you can add to your site.\n"
416
+ "\t\t<ul>\n"
417
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
418
+ "Snippets</a></li>\n"
419
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
420
+ "li>\n"
421
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
422
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
423
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
424
+ "\t\t</ul>"
425
+ msgstr ""
426
+ "ここにあなたのサイトに追加できるスニペットをホストしているWebサイトを挙げま"
427
+ "す。\n"
428
+ "\t\t<ul>\n"
429
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
430
+ "Snippets</a></li>\n"
431
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
432
+ "li>\n"
433
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
434
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
435
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
436
+ "\t\t</ul>"
437
+
438
+ #: includes/help/single.php:24
439
+ msgid "Adding Snippets"
440
+ msgstr "スニペットを追加"
441
+
442
+ #: includes/help/single.php:26
443
+ msgid ""
444
+ "You need to fill out the name and code fields for your snippet to be added. "
445
+ "While the description field will add more information about how your snippet "
446
+ "works, what is does and where you found it, it is completely optional."
447
+ msgstr ""
448
+ "あなたは、追加するスニペットの名前とコードのフィールドに必要事項を記入する必"
449
+ "要があります。説明フィールドには、あなたのスニペットがどのように機能するかに"
450
+ "ついての詳細情報を記入しますが、これは任意です。"
451
+
452
+ #: includes/help/single.php:27
453
+ msgid ""
454
+ "Please be sure to check that your snippet is valid PHP code and will not "
455
+ "produce errors before adding it through this page. While doing so will not "
456
+ "become active straight away, it will help to minimise the chance of a faulty "
457
+ "snippet becoming active on your site."
458
+ msgstr ""
459
+ "このページで追加するスニペットのPHPコードがエラーを起こさないことを確認して下"
460
+ "さい。そうすることですぐに有効になりませんが、障害のあるスニペットは、サイト"
461
+ "上で有効になる可能性を最小限に抑えるのに役立ちます。"
462
+
463
+ #: code-snippets.php:0
464
+ msgid "http://bungeshea.com/plugins/code-snippets"
465
+ msgstr "http://bungeshea.com/plugins/code-snippets"
466
+
467
+ #: code-snippets.php:263
468
+ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
469
+ msgstr ""
470
+ "スニペットを<strong>Code Snippets</strong>のエクスポートファイルからインポー"
471
+ "ト"
472
+
473
+ #: includes/admin/import.php:20
474
+ msgid "Imported <strong>%d</strong> snippet."
475
+ msgid_plural "Imported <strong>%d</strong> snippets."
476
+ msgstr[0] "スニペットを <strong>%d</strong> 件インポートしました。"
477
+ msgstr[1] "スニペットを <strong>%d</strong> 件インポートしました。"
478
+
479
+ #: includes/help/import.php:29 includes/help/manage.php:30
480
+ #: includes/help/single.php:34
481
+ msgid ""
482
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
483
+ "Website</a>"
484
+ msgstr ""
485
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">プロジェク"
486
+ "トサイト</a>"
487
+
488
+ #: includes/help/manage.php:15
489
+ msgid ""
490
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
491
+ "cause all snippets to stop executing by adding <code>define"
492
+ "('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-config.php</code> "
493
+ "file. After you have deactivated the offending snippet, you can turn off "
494
+ "safe mode by removing this line or replacing <strong>true</strong> with "
495
+ "<strong>false</strong>."
496
+ msgstr ""
497
+ "もしもスニペットに何か問題があってWordPressが使えなくなったら、<code>wp-"
498
+ "config.php</code>ファイルに <code>define('CODE_SNIPPETS_SAFE_MODE', true);</"
499
+ "code> と記述することでスニペットの実行を停止します。あなたが問題のスニペット"
500
+ "を無効にした後は、この行を削除するか、<strong>true</strong> を "
501
+ "<strong>false</strong> に置き換えることでセーフモードをオフにすることができま"
502
+ "す。"
503
+
504
+ #: includes/help/single.php:20
505
+ msgid ""
506
+ "More places to find snippets, as well as a selection of example snippets, "
507
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/"
508
+ "Finding-snippets\">plugin documentation</a>"
509
+ msgstr ""
510
+ "スニペットの例は、<a href=\"https://github.com/sheabunge/code-snippets/wiki/"
511
+ "Finding-snippets\">プラグインドキュメント</a> に記載されています。"
512
+
513
+ #: code-snippets.php:0
514
+ msgid "1.7"
515
+ msgstr "1.7"
516
+
517
+ #: code-snippets.php:602 includes/class-list-table.php:142
518
+ msgid "Edit"
519
+ msgstr "編集"
520
+
521
+ #: code-snippets.php:1227
522
+ msgid "Sorry, you're not allowed to edit snippets"
523
+ msgstr "申し訳ありません、スニペット編集の許可がないようです"
524
+
525
+ #: includes/admin/single.php:24
526
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
527
+ msgstr ""
528
+ "スニペットを <strong>更新</strong> し、 <strong>有効化</strong>しました。"
529
+
530
+ #: includes/admin/single.php:26
531
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
532
+ msgstr ""
533
+ "スニペットを <strong>追加</strong> し、 <strong>有効化</strong>しました。"
534
+
535
+ #: includes/class-list-table.php:163
536
+ msgid ""
537
+ "You are about to permanently delete the selected item.\n"
538
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
539
+ msgstr ""
540
+ "あなたは永久に���択した項目を削除しようとしています。\n"
541
+ "\t\t\t\t 削除するには、'OK'を、中止するには 'Cancel'をクリックして下さい。"
542
+
543
+ #: includes/class-list-table.php:270
544
+ msgid "Filter"
545
+ msgstr "検索条件"
546
+
547
+ #: includes/class-list-table.php:541
548
+ msgid "Search results"
549
+ msgstr "検索結果"
550
+
551
+ #: includes/class-list-table.php:544
552
+ msgid " for &#8220;%s&#8221;"
553
+ msgstr " for &#8220;%s&#8221;"
554
+
555
+ #: includes/class-list-table.php:550
556
+ msgid "Clear Filters"
557
+ msgstr "検索条件を解除"
558
+
559
+ #: includes/help/import.php:14
560
+ msgid ""
561
+ "You can load your snippets from a code snippets (.xml) export file using "
562
+ "this page."
563
+ msgstr ""
564
+ "このページでスニペットコードをエクスポートファイル(.xml)から読み込むことがで"
565
+ "きます。"
566
+
567
+ #: includes/admin/single.php:74
568
+ msgid "Save Changes &amp; Activate"
569
+ msgstr "変更を保存 &amp; 有効化"
trunk/languages/code-snippets-nl_NL.mo ADDED
Binary file
trunk/languages/code-snippets-nl_NL.po ADDED
@@ -0,0 +1,912 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: code-snippets 2.7.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-08-02 02:40+0200\n"
6
+ "PO-Revision-Date: 2016-08-07 15:28+0200\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Generator: Poedit 1.8.8\n"
13
+ "Last-Translator: Sander Spies <s@nderspi.es>\n"
14
+ "Language: nl_NL\n"
15
+
16
+ #: php/admin-menus/class-admin-menu.php:98
17
+ msgid "You are not authorized to access this page."
18
+ msgstr "U heeft geen toegang tot deze pagina."
19
+
20
+ #: php/admin-menus/class-edit-menu.php:13
21
+ #: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
22
+ msgid "Edit Snippet"
23
+ msgstr "Fragment bewerken"
24
+
25
+ #: php/admin-menus/class-edit-menu.php:32
26
+ msgid "Add New"
27
+ msgstr "Nieuwe toevoegen"
28
+
29
+ #: php/admin-menus/class-edit-menu.php:33 php/views/edit.php:31
30
+ msgid "Add New Snippet"
31
+ msgstr "Nieuw fragment toevoegen"
32
+
33
+ #: php/admin-menus/class-edit-menu.php:178
34
+ msgid "Don't Panic"
35
+ msgstr "Raak niet in paniek"
36
+
37
+ #: php/admin-menus/class-edit-menu.php:179
38
+ #, php-format
39
+ msgid ""
40
+ "The code snippet you are trying to save produced a fatal error on line %d:"
41
+ msgstr ""
42
+ "Het fragment dat u probeert op te slaan genereert een fatale fout op regel "
43
+ "%d:"
44
+
45
+ #: php/admin-menus/class-edit-menu.php:181
46
+ msgid ""
47
+ "The previous version of the snippet is unchanged, and the rest of this site "
48
+ "should be functioning normally as before."
49
+ msgstr ""
50
+ "De vorige versie van het fragment is ongewijzigd en de rest van deze website "
51
+ "dient normaal te functioneren zoals voorheen."
52
+
53
+ #: php/admin-menus/class-edit-menu.php:182
54
+ msgid ""
55
+ "Please use the back button in your browser to return to the previous page "
56
+ "and try to fix the code error."
57
+ msgstr ""
58
+ "Gebruik de terug-knop in uw browser om terug te keren naar de vorige pagina "
59
+ "en probeer de fout in de code herstellen."
60
+
61
+ #: php/admin-menus/class-edit-menu.php:183
62
+ msgid ""
63
+ "If you prefer, you can close this page and discard the changes you just "
64
+ "made. No changes will be made to this site."
65
+ msgstr ""
66
+ "Als u wilt kunt u deze pagina te sluiten en de wijzigingen die u zojuist "
67
+ "gemaakt heeft weggooien. Er worden geen wijzigingen aangebracht in deze "
68
+ "website."
69
+
70
+ #: php/admin-menus/class-edit-menu.php:303 php/class-list-table.php:324
71
+ msgid "Description"
72
+ msgstr "Omschijving"
73
+
74
+ #: php/admin-menus/class-edit-menu.php:333 php/class-list-table.php:325
75
+ msgid "Tags"
76
+ msgstr "Labels"
77
+
78
+ #: php/admin-menus/class-edit-menu.php:337
79
+ msgid "Enter a list of tags; separated by commas"
80
+ msgstr "Voer een lijst met labels in; gescheiden door komma's"
81
+
82
+ #: php/admin-menus/class-edit-menu.php:356
83
+ msgid "Run snippet everywhere"
84
+ msgstr "Fragment overal uitvoeren"
85
+
86
+ #: php/admin-menus/class-edit-menu.php:357
87
+ msgid "Only run in administration area"
88
+ msgstr "Alleen uitvoeren in het beheergedeelte"
89
+
90
+ #: php/admin-menus/class-edit-menu.php:358
91
+ msgid "Only run on site front-end"
92
+ msgstr "Alleen uitvoeren op de website"
93
+
94
+ #: php/admin-menus/class-edit-menu.php:362
95
+ msgid "Scope"
96
+ msgstr "Bereik"
97
+
98
+ #: php/admin-menus/class-edit-menu.php:382
99
+ msgid "Sharing"
100
+ msgstr "Delen"
101
+
102
+ #: php/admin-menus/class-edit-menu.php:386
103
+ msgid "Allow this snippet to be activated on individual sites on the network"
104
+ msgstr ""
105
+ "Toestaan dat dit fragment geactiveerd kan worden op andere websites in het "
106
+ "netwerk."
107
+
108
+ #: php/admin-menus/class-edit-menu.php:446
109
+ #, php-format
110
+ msgid "The snippet has been deactivated due to an error on line %d:"
111
+ msgstr "Dit fragment is gedeactiveerd vanwege een error in regel %d:"
112
+
113
+ #: php/admin-menus/class-edit-menu.php:451
114
+ msgid "The snippet has been deactivated due to an error in the code."
115
+ msgstr "Dit fragment is gedeactiveerd vanwege een error in de code."
116
+
117
+ #: php/admin-menus/class-edit-menu.php:458
118
+ msgid "An error occurred when saving the snippet."
119
+ msgstr "Er is een fout opgetreden bij het opslaan van het fragment."
120
+
121
+ #: php/admin-menus/class-edit-menu.php:463
122
+ msgid "Snippet <strong>added</strong>."
123
+ msgstr "Fragment <strong>toegevoegd</strong>."
124
+
125
+ #: php/admin-menus/class-edit-menu.php:464
126
+ msgid "Snippet <strong>updated</strong>."
127
+ msgstr "Fragment <strong>bijgewerkt</strong>."
128
+
129
+ #: php/admin-menus/class-edit-menu.php:465
130
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
131
+ msgstr "Fragment <strong>toegevoegd</strong> en <strong>geactiveerd</strong>."
132
+
133
+ #: php/admin-menus/class-edit-menu.php:466
134
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
135
+ msgstr "Fragment <strong>bijgewerkt</strong> en <strong>geactiveerd.</strong>"
136
+
137
+ #: php/admin-menus/class-edit-menu.php:467
138
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
139
+ msgstr "Snippet <strong>bijgewerkt</strong> en <strong>gedeactiveerd.</strong>"
140
+
141
+ #: php/admin-menus/class-import-menu.php:15
142
+ msgid "Import"
143
+ msgstr "Importeren"
144
+
145
+ #: php/admin-menus/class-import-menu.php:16 php/views/import.php:17
146
+ msgid "Import Snippets"
147
+ msgstr "Importeren van fragmenten"
148
+
149
+ #: php/admin-menus/class-import-menu.php:78
150
+ msgid "Code Snippets"
151
+ msgstr "Codefragmenten"
152
+
153
+ #: php/admin-menus/class-import-menu.php:79
154
+ msgid "Import snippets from a code snippets export file"
155
+ msgstr "Fragmenten importeren vanuit een exportbestand"
156
+
157
+ #: php/admin-menus/class-import-menu.php:93
158
+ #, php-format
159
+ msgid ""
160
+ "Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
161
+ "a>"
162
+ msgid_plural ""
163
+ "Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
164
+ "</a>"
165
+ msgstr[0] ""
166
+ "<strong>%d</strong> fragment met succes geïmporteerd. <a href=\"%s\">Veel "
167
+ "plezier!</a>"
168
+ msgstr[1] ""
169
+ "<strong>%d</strong> fragmenten met succes geïmporteerd. <a href=\"%s\">Veel "
170
+ "plezier!</a>"
171
+
172
+ #: php/admin-menus/class-import-menu.php:106
173
+ msgid "An error occurred when processing the import file."
174
+ msgstr "Er is een fout opgetreden bij het verwerken van het importbestand."
175
+
176
+ #: php/admin-menus/class-manage-menu.php:22 php/class-admin.php:111
177
+ msgid "Manage"
178
+ msgstr "Beheren"
179
+
180
+ #: php/admin-menus/class-manage-menu.php:23
181
+ #: php/admin-menus/class-manage-menu.php:39
182
+ #: php/admin-menus/class-manage-menu.php:40 php/class-admin.php:52
183
+ #: php/views/manage.php:19
184
+ msgid "Snippets"
185
+ msgstr "Fragmenten"
186
+
187
+ #: php/admin-menus/class-manage-menu.php:75
188
+ msgid ""
189
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
190
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
191
+ "config.php</code> to turn off safe mode. <a href=\"https://github.com/"
192
+ "sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
193
+ msgstr ""
194
+ "<strong>Waarschuwing:</strong> Veilige modus is actief en fragmenten zullen "
195
+ "niet worden uitgevoerd! Verwijder de <code>CODE_SNIPPETS_SAFE_MODE</code> "
196
+ "constante uit <code>wp-config.php</code> om veilige modus uit te schakelen. "
197
+ "<a href=\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target="
198
+ "\"_blank\">Help</a>"
199
+
200
+ #: php/admin-menus/class-manage-menu.php:81
201
+ msgid "Snippet <strong>activated</strong>."
202
+ msgstr "Fragment <strong>geactiveerd</strong>."
203
+
204
+ #: php/admin-menus/class-manage-menu.php:82
205
+ msgid "Selected snippets <strong>activated</strong>."
206
+ msgstr "Geselecteerde fragmenten <strong>geactiveerd</strong>."
207
+
208
+ #: php/admin-menus/class-manage-menu.php:83
209
+ msgid "Snippet <strong>deactivated</strong>."
210
+ msgstr "Fragment <strong>gedeactiveerd</strong>."
211
+
212
+ #: php/admin-menus/class-manage-menu.php:84
213
+ msgid "Selected snippets <strong>deactivated</strong>."
214
+ msgstr "Geselecteerde fragmenten <strong>gedeactiveerd</strong>."
215
+
216
+ #: php/admin-menus/class-manage-menu.php:85
217
+ msgid "Snippet <strong>deleted</strong>."
218
+ msgstr "Fragment <strong>verwijderd</strong>."
219
+
220
+ #: php/admin-menus/class-manage-menu.php:86
221
+ msgid "Selected snippets <strong>deleted</strong>."
222
+ msgstr "Geselecteerde fragmenten <strong>verwijderd</strong>."
223
+
224
+ #: php/admin-menus/class-settings-menu.php:16
225
+ #: php/admin-menus/class-settings-menu.php:36 php/views/edit.php:134
226
+ msgid "Settings"
227
+ msgstr "Instellingen"
228
+
229
+ #: php/admin-menus/class-settings-menu.php:17
230
+ msgid "Snippets Settings"
231
+ msgstr "Fragmenten instellingen"
232
+
233
+ #: php/class-admin.php:110
234
+ msgid "Manage your existing snippets"
235
+ msgstr "Beheren van uw bestaande fragmenten"
236
+
237
+ #: php/class-admin.php:141
238
+ msgid "Visit the WordPress.org plugin page"
239
+ msgstr "Bezoek de WordPress.org plugin pagina"
240
+
241
+ #: php/class-admin.php:142
242
+ msgid "About"
243
+ msgstr "Over"
244
+
245
+ #: php/class-admin.php:146
246
+ msgid "Visit the support forums"
247
+ msgstr "Bezoek de support forums"
248
+
249
+ #: php/class-admin.php:147
250
+ msgid "Support"
251
+ msgstr "Support"
252
+
253
+ #: php/class-admin.php:151
254
+ msgid "Support this plugin's development"
255
+ msgstr "Ondersteun de ontwikkeling van deze plugin"
256
+
257
+ #: php/class-admin.php:152
258
+ msgid "Donate"
259
+ msgstr "Doneren"
260
+
261
+ #: php/class-admin.php:183
262
+ msgid ""
263
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
264
+ "answer a short survey on how you use this plugin and what you'd like to see "
265
+ "changed or added in the future."
266
+ msgstr ""
267
+ "<strong>Heeft u feedback op Code Snippets?</strong> Vult u alstublieft de "
268
+ "korte enquête in over hoe u deze plugin gebruikt en wat u graag veranderd of "
269
+ "toegevoegd zou zien in de toekomst."
270
+
271
+ #: php/class-admin.php:187
272
+ msgid "Take the survey now"
273
+ msgstr "Deelnemen aan de enquête"
274
+
275
+ #: php/class-admin.php:190
276
+ msgid "Dismiss"
277
+ msgstr "Annuleren"
278
+
279
+ #: php/class-contextual-help.php:40
280
+ msgid "For more information:"
281
+ msgstr "Voor meer informatie:"
282
+
283
+ #: php/class-contextual-help.php:41
284
+ msgid "About Plugin"
285
+ msgstr "Over de plugin"
286
+
287
+ #: php/class-contextual-help.php:42
288
+ msgid "FAQ"
289
+ msgstr "Veelgestelde vragen"
290
+
291
+ #: php/class-contextual-help.php:43
292
+ msgid "Support Forums"
293
+ msgstr "Support forums"
294
+
295
+ #: php/class-contextual-help.php:44
296
+ msgid "Plugin Website"
297
+ msgstr "Plugin website"
298
+
299
+ #: php/class-contextual-help.php:55 php/class-contextual-help.php:81
300
+ #: php/class-contextual-help.php:114
301
+ msgid "Overview"
302
+ msgstr "Overzicht"
303
+
304
+ #: php/class-contextual-help.php:56
305
+ msgid ""
306
+ "Snippets are similar to plugins - they both extend and expand the "
307
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
308
+ "of code, and do not put as much load on your server. Here you can manage "
309
+ "your existing snippets and perform tasks on them such as activating, "
310
+ "deactivating, deleting and exporting."
311
+ msgstr ""
312
+ "Fragmenten zijn vergelijkbaar met plugins - beiden breiden de "
313
+ "functionaliteit van WordPress uit. Fragmenten zijn meer lichtgewicht, ze "
314
+ "bestaan uit slechts een paar regels code en belasten uw server minder. Hier "
315
+ "kunt u uw bestaande fragmenten beheren en taken uitvoeren zoals het "
316
+ "activeren, deactiveren, verwijderen en exporteren van fragmenten."
317
+
318
+ #: php/class-contextual-help.php:61
319
+ msgid "Safe Mode"
320
+ msgstr "Veilige modus"
321
+
322
+ #: php/class-contextual-help.php:62
323
+ msgid ""
324
+ "Be sure to check your snippets for errors before you activate them, as a "
325
+ "faulty snippet could bring your whole blog down. If your site starts doing "
326
+ "strange things, deactivate all your snippets and activate them one at a time."
327
+ msgstr ""
328
+ "Controleer uw fragmenten op fouten voordat u ze activeert. Door een fout in "
329
+ "de code kan uw website wellicht niet meer functioneren. Als u problemen "
330
+ "constateert met uw website, deactiveer dan alle fragmenten en activeer ze "
331
+ "één voor één."
332
+
333
+ #: php/class-contextual-help.php:63
334
+ msgid ""
335
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
336
+ "cause all snippets to stop executing by adding "
337
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
338
+ "config.php</code> file. After you have deactivated the offending snippet, "
339
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
340
+ "strong> with <strong>false</strong>."
341
+ msgstr ""
342
+ "Als er iets mis gaat met een fragment en u kunt geen gebruik meer maken van "
343
+ "WordPress, dan kunt u alle fragmenten laten negeren door het toevoegen van "
344
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> aan uw <code>wp-config."
345
+ "php</code> bestand. Nadat u het probleem fragment heeft gedeactiveerd kunt u "
346
+ "veilige modus weer uitschakelen door deze regel te verwijderen of door "
347
+ "<strong>true</strong> te vervangen door <strong>false</strong>."
348
+
349
+ #: php/class-contextual-help.php:68
350
+ msgid "Uninstall"
351
+ msgstr "Deïnstalleren"
352
+
353
+ #: php/class-contextual-help.php:69
354
+ #, php-format
355
+ msgid ""
356
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
357
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
358
+ "the database. If you want to keep this data (ie: you are only temporally "
359
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
360
+ "FTP."
361
+ msgstr ""
362
+ "Wanneer u Code Snippets verwijdert via het Plugins menu in WordPress zal het "
363
+ "de <code>%1$s</code> tabel en wat andere data uit de database verwijderen. "
364
+ "Als u deze data wilt bewaren (bijvoorbeeld als u Code Snippets alleen maar "
365
+ "tijdelijk wilt deïnstalleren), verwijder dan de map <code>%2$s</code> via "
366
+ "FTP."
367
+
368
+ #: php/class-contextual-help.php:70
369
+ msgid ""
370
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
371
+ "this WordPress installation, you may want to use the export feature to back "
372
+ "up your snippets."
373
+ msgstr ""
374
+ "U kunt de exportfunctie gebruiken om een back-up van uw fragmenten te maken, "
375
+ "zelfs als u zeker weet dat u nooit meer gebruik wilt maken van de Code "
376
+ "Snippets plugin in deze WordPress installatie."
377
+
378
+ #: php/class-contextual-help.php:82
379
+ msgid ""
380
+ "Snippets are similar to plugins - they both extend and expand the "
381
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
382
+ "of code, and do not put as much load on your server. Here you can add a new "
383
+ "snippet, or edit an existing one."
384
+ msgstr ""
385
+ "Fragmenten zijn vergelijkbaar met plugins - beiden breiden de "
386
+ "functionaliteit van WordPress uit. Fragmenten zijn meer lichtgewicht, ze "
387
+ "bestaan uit slechts een paar regels code en belasten uw server minder. Hier "
388
+ "kunt u nieuwe fragmenten toevoegen of bestaande fragmenten aanpassen."
389
+
390
+ #: php/class-contextual-help.php:87
391
+ msgid "Finding Snippets"
392
+ msgstr "Fragmenten vinden"
393
+
394
+ #: php/class-contextual-help.php:88
395
+ msgid ""
396
+ "Here are some links to websites which host a large number of snippets that "
397
+ "you can add to your site.\n"
398
+ "\t\t\t\t<ul>\n"
399
+ "\t\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
400
+ "\">WP-Snippets</a></li>\n"
401
+ "\t\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
402
+ "a></li>\n"
403
+ "\t\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
404
+ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
405
+ "\t\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
406
+ "\t\t\t\t</ul>"
407
+ msgstr ""
408
+ "Hier zijn enkele links naar websites die fragmenten bevatten om op uw eigen "
409
+ "website te gebruiken.\n"
410
+ "\t\t\t\t<ul>\n"
411
+ "\t\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
412
+ "\">WP-Snippets</a></li>\n"
413
+ "\t\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
414
+ "a></li>\n"
415
+ "\t\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
416
+ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
417
+ "\t\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
418
+ "\t\t\t\t</ul>"
419
+
420
+ #: php/class-contextual-help.php:95
421
+ msgid ""
422
+ "More places to find snippets, as well as a selection of example snippets, "
423
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
424
+ "wiki/Finding-snippets\">plugin documentation</a>"
425
+ msgstr ""
426
+ "Websites met fragmenten en voorbeelden van fragmenten kunt u vinden in de <a "
427
+ "href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
428
+ "\">plugin documentatie</a>"
429
+
430
+ #: php/class-contextual-help.php:100
431
+ msgid "Adding Snippets"
432
+ msgstr "Fragmenten toevoegen"
433
+
434
+ #: php/class-contextual-help.php:101
435
+ msgid ""
436
+ "You need to fill out the name and code fields for your snippet to be added. "
437
+ "While the description field will add more information about how your snippet "
438
+ "works, what is does and where you found it, it is completely optional."
439
+ msgstr ""
440
+ "De naam en code voor een fragment zijn verplichte velden. In de omschrijving "
441
+ "kunt u aangeven wat het fragment doet of waar u het gevonden heeft, maar dit "
442
+ "veld is optioneel."
443
+
444
+ #: php/class-contextual-help.php:102
445
+ msgid ""
446
+ "Please be sure to check that your snippet is valid PHP code and will not "
447
+ "produce errors before adding it through this page. While doing so will not "
448
+ "become active straight away, it will help to minimise the chance of a faulty "
449
+ "snippet becoming active on your site."
450
+ msgstr ""
451
+ "Controleert u alstublieft of uw fragment geldige PHP code bevat en dat de "
452
+ "code geen errors genereert. Door dit te doen verkleint u de kans dat er "
453
+ "corrupte fragmenten actief worden op uw website."
454
+
455
+ #: php/class-contextual-help.php:115
456
+ msgid ""
457
+ "Snippets are similar to plugins - they both extend and expand the "
458
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
459
+ "of code, and do not put as much load on your server. Here you can load "
460
+ "snippets from a Code Snippets (.xml) import file into the database with your "
461
+ "existing snippets."
462
+ msgstr ""
463
+ "Fragmenten zijn vergelijkbaar met plugins - beiden breiden de "
464
+ "functionaliteit van WordPress uit. Fragmenten zijn meer lichtgewicht, ze "
465
+ "bestaan uit slechts een paar regels code en belasten uw server minder. Hier "
466
+ "kunt u fragmenten importeren uit Code Snippet (.xml) bestanden."
467
+
468
+ #: php/class-contextual-help.php:120
469
+ msgid "Importing"
470
+ msgstr "Bezig met importeren"
471
+
472
+ #: php/class-contextual-help.php:121
473
+ msgid ""
474
+ "You can load your snippets from a code snippets (.xml) export file using "
475
+ "this page."
476
+ msgstr ""
477
+ "Op deze pagina kunt u uw fragmenten inladen vanuit een (.xml) export bestand."
478
+
479
+ #: php/class-contextual-help.php:122
480
+ #, php-format
481
+ msgid ""
482
+ "Snippets will be added to the database along with your existing snippets. "
483
+ "Regardless of whether the snippets were active on the previous site, "
484
+ "imported snippets are always inactive until activated using the <a href=\"%s"
485
+ "\">Manage Snippets</a> page.</p>"
486
+ msgstr ""
487
+ "Fragmenten zullen aan de database worden toegevoegd tezamen met uw bestaande "
488
+ "fragmenten. Ongeacht of de fragmenten actief waren op de vorige website, "
489
+ "geïmporteerde fragmenten zijn altijd inactief totdat ze geactiveerd worden "
490
+ "op de <a href=\"%s\">fragmenten beheerpagina</a>.</p>"
491
+
492
+ #: php/class-contextual-help.php:127
493
+ msgid "Exporting"
494
+ msgstr "Bezig met exporteren"
495
+
496
+ #: php/class-contextual-help.php:128
497
+ #, php-format
498
+ msgid ""
499
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
500
+ "<a href=\"%s\">Manage Snippets</a> page."
501
+ msgstr ""
502
+ "U kunt fragmenten exporteren naar een Code Snippets (.xml) bestand op de <a "
503
+ "href=\"%s\">fragmenten beheerpagina</a>."
504
+
505
+ #: php/class-export.php:87
506
+ msgid ""
507
+ "This is a code snippets export file generated by the Code Snippets WordPress "
508
+ "plugin."
509
+ msgstr ""
510
+ "Dit is een exportbestand van een fragment gegenereerd door de Code Snippets "
511
+ "WordPress plugin."
512
+
513
+ #: php/class-export.php:89
514
+ msgid "To import these snippets a WordPress site follow these steps:"
515
+ msgstr ""
516
+ "Om deze fragmenten te importeren in een WordPress website gaat u als volgt "
517
+ "te werk:"
518
+
519
+ #: php/class-export.php:90
520
+ msgid "1. Log in to that site as an administrator."
521
+ msgstr "1. Log in als beheerder op de website."
522
+
523
+ #: php/class-export.php:91
524
+ msgid ""
525
+ "2. Install the Code Snippets plugin using the directions provided at the "
526
+ "above link."
527
+ msgstr ""
528
+ "2. Installeer de Code Snippets plugin volgens de instructies beschreven in "
529
+ "de bovenstaande link."
530
+
531
+ #: php/class-export.php:92
532
+ msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
533
+ msgstr "3. Ga naar 'Extra: Importeren' in het WordPress beheergedeelte."
534
+
535
+ #: php/class-export.php:93
536
+ msgid "4. Click on the \"Code Snippets\" importer in the list"
537
+ msgstr "4. Klik op de \"Code Snippets\" link."
538
+
539
+ #: php/class-export.php:94
540
+ msgid "5. Upload this file using the form provided on that page."
541
+ msgstr "5. Upload dit bestand met behulp van het formulier op die pagina."
542
+
543
+ #: php/class-export.php:95
544
+ msgid ""
545
+ "6. Code Snippets will then import all of the snippets and associated "
546
+ "information contained in this file into your site."
547
+ msgstr ""
548
+ "6. Code Snippets zal vervolgens alle fragmenten en de bijbehorende gegevens "
549
+ "in dit bestand importeren in uw website."
550
+
551
+ #: php/class-export.php:96
552
+ msgid ""
553
+ "7. You will then have to visit the 'Snippets: Manage' admin menu and "
554
+ "activate desired snippets."
555
+ msgstr ""
556
+ "7. Daarna kunt u via het 'Fragmenten: Beheren' menu de gewenste fragmenten "
557
+ "activeren."
558
+
559
+ #: php/class-list-table.php:58
560
+ msgid "Snippets per page"
561
+ msgstr "Fragmenten per pagina"
562
+
563
+ #: php/class-list-table.php:117 php/class-list-table.php:370
564
+ msgid "Network Deactivate"
565
+ msgstr "Netwerk deactiveren"
566
+
567
+ #: php/class-list-table.php:117 php/class-list-table.php:180
568
+ #: php/class-list-table.php:370
569
+ msgid "Deactivate"
570
+ msgstr "Deactiveren"
571
+
572
+ #: php/class-list-table.php:126 php/class-list-table.php:369
573
+ msgid "Network Activate"
574
+ msgstr "Netwerk-wijd activeren"
575
+
576
+ #: php/class-list-table.php:126 php/class-list-table.php:180
577
+ #: php/class-list-table.php:369
578
+ msgid "Activate"
579
+ msgstr "Activeren"
580
+
581
+ #: php/class-list-table.php:136 php/class-list-table.php:196
582
+ msgid "Edit"
583
+ msgstr "Bewerken"
584
+
585
+ #: php/class-list-table.php:142 php/class-list-table.php:202
586
+ #: php/class-list-table.php:371 php/views/edit.php:111
587
+ msgid "Export"
588
+ msgstr "Exporteren"
589
+
590
+ #: php/class-list-table.php:151 php/class-list-table.php:214
591
+ #: php/class-list-table.php:372 php/views/edit.php:123
592
+ msgid "Delete"
593
+ msgstr "Verwijderen"
594
+
595
+ #: php/class-list-table.php:158 php/class-list-table.php:224
596
+ msgid ""
597
+ "You are about to permanently delete the selected item.\n"
598
+ "\t\t\t\t\t'Cancel' to stop, 'OK' to delete."
599
+ msgstr ""
600
+ "U staat op het punt om het geselecteerde item permanent te verwijderen.\n"
601
+ "\t\t\t\t\t'Annuleren' om te stoppen, 'OK' om te verwijderen."
602
+
603
+ #: php/class-list-table.php:244
604
+ #, php-format
605
+ msgid "Untitled #%d"
606
+ msgstr "Naamloos #%d"
607
+
608
+ #: php/class-list-table.php:261
609
+ msgid "Shared on Network"
610
+ msgstr "Gedeeld op het netwerk"
611
+
612
+ #: php/class-list-table.php:322
613
+ msgid "Name"
614
+ msgstr "Naam"
615
+
616
+ #: php/class-list-table.php:323
617
+ msgid "ID"
618
+ msgstr "ID"
619
+
620
+ #: php/class-list-table.php:373
621
+ msgid "Export to PHP"
622
+ msgstr "Exporteren naar PHP"
623
+
624
+ #: php/class-list-table.php:411
625
+ #, php-format
626
+ msgid "All <span class=\"count\">(%s)</span>"
627
+ msgid_plural "All <span class=\"count\">(%s)</span>"
628
+ msgstr[0] "Alles <span class=\"count\">(%s)</span>"
629
+ msgstr[1] "Alles <span class=\"count\">(%s)</span>"
630
+
631
+ #: php/class-list-table.php:412
632
+ #, php-format
633
+ msgid "Active <span class=\"count\">(%s)</span>"
634
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
635
+ msgstr[0] "Actief <span class=\"count\">(%s)</span>"
636
+ msgstr[1] "Actief <span class=\"count\">(%s)</span>"
637
+
638
+ #: php/class-list-table.php:413
639
+ #, php-format
640
+ msgid "Inactive <span class=\"count\">(%s)</span>"
641
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
642
+ msgstr[0] "Inactief <span class=\"count\">(%s)</span>"
643
+ msgstr[1] "Inactief <span class=\"count\">(%s)</span>"
644
+
645
+ #: php/class-list-table.php:414
646
+ #, php-format
647
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
648
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
649
+ msgstr[0] "Recentelijk actief <span class=\"count\">(%s)</span>"
650
+ msgstr[1] "Recentelijk actief <span class=\"count\">(%s)</span>"
651
+
652
+ #: php/class-list-table.php:477
653
+ msgid "Show all tags"
654
+ msgstr "Alle labels weergeven"
655
+
656
+ #: php/class-list-table.php:491
657
+ msgid "Filter"
658
+ msgstr "Filteren"
659
+
660
+ #: php/class-list-table.php:499
661
+ msgid "Clear List"
662
+ msgstr "Lijst leegmaken"
663
+
664
+ #: php/class-list-table.php:686
665
+ #, php-format
666
+ msgid ""
667
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
668
+ "\">Add New&rarr;</a>"
669
+ msgstr ""
670
+ "U heeft op het moment geen fragmenten beschikbaar. <a href=\"%s\">Voeg een "
671
+ "nieuwe toe&rarr;</a>"
672
+
673
+ #: php/class-list-table.php:959
674
+ msgid "Search results"
675
+ msgstr "Zoekresultaten"
676
+
677
+ #: php/class-list-table.php:962
678
+ #, php-format
679
+ msgid " for &#8220;%s&#8221;"
680
+ msgstr " voor &#8220; %s &#8221;"
681
+
682
+ #: php/class-list-table.php:966
683
+ #, php-format
684
+ msgid " in tag &#8220;%s&#8221;"
685
+ msgstr " in label &#8220;%s&#8221;"
686
+
687
+ #: php/class-list-table.php:974
688
+ msgid "Clear Filters"
689
+ msgstr "Filters wissen"
690
+
691
+ #: php/settings/settings-fields.php:42
692
+ msgid "Activate by Default"
693
+ msgstr "Standaard activeren"
694
+
695
+ #: php/settings/settings-fields.php:44
696
+ msgid ""
697
+ "Make the 'Save and Activate' button the default action when saving a snippet."
698
+ msgstr ""
699
+ "Maak de 'Opslaan en activeren' knop de standaardactie bij het opslaan van "
700
+ "een fragment."
701
+
702
+ #: php/settings/settings-fields.php:49
703
+ msgid "Enable Scope Selector"
704
+ msgstr "Optie om bereik te kiezen inschakelen"
705
+
706
+ #: php/settings/settings-fields.php:51
707
+ msgid "Enable the scope selector when editing a snippet"
708
+ msgstr ""
709
+ "Optie om bereik te kiezen inschakelen bij het bewerken van een fragment"
710
+
711
+ #: php/settings/settings-fields.php:56
712
+ msgid "Enable Snippet Tags"
713
+ msgstr "Labels voor fragmenten inschakelen"
714
+
715
+ #: php/settings/settings-fields.php:58
716
+ msgid "Show snippet tags on admin pages"
717
+ msgstr "Toon labels op beheerpagina's"
718
+
719
+ #: php/settings/settings-fields.php:63
720
+ msgid "Enable Snippet Descriptions"
721
+ msgstr "Omschrijving voor fragmenten inschakelen"
722
+
723
+ #: php/settings/settings-fields.php:65
724
+ msgid "Show snippet descriptions on admin pages"
725
+ msgstr "Toon beschrijvingen op beheerpagina's"
726
+
727
+ #: php/settings/settings-fields.php:69
728
+ msgid "Disable shortcode syntax highlighter"
729
+ msgstr "Shortcode syntaxis highlighter uitschakelen"
730
+
731
+ #: php/settings/settings-fields.php:71
732
+ msgid ""
733
+ "Disable the syntax highlighting for the [code_snippet] shortcode on the "
734
+ "front-end"
735
+ msgstr ""
736
+ "Schakel de syntaxis highlighter uit op de website voor de [code_snippet] "
737
+ "shortcode"
738
+
739
+ #: php/settings/settings-fields.php:80
740
+ msgid "Row Height"
741
+ msgstr "Rijhoogte"
742
+
743
+ #: php/settings/settings-fields.php:82
744
+ msgid "rows"
745
+ msgstr "rijen"
746
+
747
+ #: php/settings/settings-fields.php:88
748
+ msgid "Use Full Editor"
749
+ msgstr "Gebruik volledige editor"
750
+
751
+ #: php/settings/settings-fields.php:90
752
+ msgid "Enable all features of the visual editor"
753
+ msgstr "Alle functies van de visuele editor inschakelen"
754
+
755
+ #: php/settings/settings-fields.php:95
756
+ msgid "Media Buttons"
757
+ msgstr "Mediaknoppen"
758
+
759
+ #: php/settings/settings-fields.php:97
760
+ msgid "Enable the add media buttons"
761
+ msgstr "Schakel de knoppen in om media toe te voegen"
762
+
763
+ #: php/settings/settings-fields.php:106
764
+ msgid "Theme"
765
+ msgstr "Thema"
766
+
767
+ #: php/settings/settings-fields.php:113
768
+ msgid "Indent With Tabs"
769
+ msgstr "Inspringen met tabs"
770
+
771
+ #: php/settings/settings-fields.php:115
772
+ msgid "Use hard tabs (not spaces) for indentation."
773
+ msgstr "Echte tabs (geen spaties) gebruiken voor de inspringing."
774
+
775
+ #: php/settings/settings-fields.php:121
776
+ msgid "Tab Size"
777
+ msgstr "Tabgrootte"
778
+
779
+ #: php/settings/settings-fields.php:123
780
+ msgid "The width of a tab character."
781
+ msgstr "De breedte van een tabteken."
782
+
783
+ #: php/settings/settings-fields.php:130
784
+ msgid "Indent Unit"
785
+ msgstr "Tekst inspring eenheid"
786
+
787
+ #: php/settings/settings-fields.php:132
788
+ msgid "How many spaces a block should be indented."
789
+ msgstr "Hoeveel spaties moet een blok worden ingesprongen."
790
+
791
+ #: php/settings/settings-fields.php:139
792
+ msgid "Wrap Lines"
793
+ msgstr "Terugloop lange tekstregels"
794
+
795
+ #: php/settings/settings-fields.php:141
796
+ msgid "Whether the editor should scroll or wrap for long lines."
797
+ msgstr ""
798
+ "Moet de editor schuifbalken tonen bij lange regels of lange regels afbreken."
799
+
800
+ #: php/settings/settings-fields.php:147
801
+ msgid "Line Numbers"
802
+ msgstr "Regelnummers"
803
+
804
+ #: php/settings/settings-fields.php:149
805
+ msgid "Show line numbers to the left of the editor."
806
+ msgstr "Toon regelnummers aan de linkerzijde van de editor."
807
+
808
+ #: php/settings/settings-fields.php:155
809
+ msgid "Auto Close Brackets"
810
+ msgstr "Sluit haakjes automatisch"
811
+
812
+ #: php/settings/settings-fields.php:157
813
+ msgid "Auto-close brackets and quotes when typed."
814
+ msgstr "Sluit haakjes en aanhalingstekens automatisch tijdens het typen."
815
+
816
+ #: php/settings/settings-fields.php:163
817
+ msgid "Highlight Selection Matches"
818
+ msgstr "Markeer selectie overeenkomsten"
819
+
820
+ #: php/settings/settings-fields.php:164
821
+ msgid "Highlight all instances of a currently selected word."
822
+ msgstr "Markeer alle instanties van het huidig geselecteerde woord."
823
+
824
+ #: php/settings/settings.php:68
825
+ msgid "General"
826
+ msgstr "Algemeen"
827
+
828
+ #: php/settings/settings.php:69
829
+ msgid "Description Editor"
830
+ msgstr "Omschrijving editor"
831
+
832
+ #: php/settings/settings.php:70
833
+ msgid "Code Editor"
834
+ msgstr "Code editor"
835
+
836
+ #: php/settings/settings.php:119
837
+ msgid "Editor Preview"
838
+ msgstr "Editor voorbeeld"
839
+
840
+ #: php/settings/settings.php:165
841
+ msgid "Settings saved."
842
+ msgstr "De instellingen zijn opgeslagen."
843
+
844
+ #: php/views/edit.php:28 php/views/manage.php:22
845
+ msgctxt "snippet"
846
+ msgid "Add New"
847
+ msgstr "Nieuwe toevoegen"
848
+
849
+ #: php/views/edit.php:48 php/views/edit.php:49
850
+ msgid "Name (short title)"
851
+ msgstr "Naam (korte titel)"
852
+
853
+ #: php/views/edit.php:54
854
+ msgid "Code"
855
+ msgstr "Code"
856
+
857
+ #: php/views/edit.php:81 php/views/edit.php:95
858
+ msgid "Save Changes and Activate"
859
+ msgstr "Wijzigingen opslaan en activeren"
860
+
861
+ #: php/views/edit.php:101
862
+ msgid "Save Changes and Deactivate"
863
+ msgstr "Wijzigingen opslaan en deactiveren"
864
+
865
+ #: php/views/edit.php:118
866
+ msgid ""
867
+ "You are about to permanently delete this snippet.\n"
868
+ "'Cancel' to stop, 'OK' to delete."
869
+ msgstr ""
870
+ "U staat op het punt om dit fragment definitief te verwijderen.\n"
871
+ "'Annuleren' om te stoppen, 'OK' om te verwijderen."
872
+
873
+ #: php/views/import.php:21
874
+ msgid ""
875
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
876
+ "snippets to this site."
877
+ msgstr ""
878
+ "Hallo! Upload uw Code Snippets export bestand en wij importeren de "
879
+ "fragmenten in deze website."
880
+
881
+ #: php/views/import.php:23
882
+ #, php-format
883
+ msgid ""
884
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
885
+ "activate the imported snippets."
886
+ msgstr ""
887
+ "U zult naar de <a href=\"%s\">fragmenten beheer</a> pagina moeten gaan om de "
888
+ "geïmporteerde fragmenten te activeren."
889
+
890
+ #: php/views/import.php:25
891
+ msgid ""
892
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
893
+ "import."
894
+ msgstr ""
895
+ "Kies een Code Snippets (.xml) bestand om te uploaden, klik daarna op Upload "
896
+ "bestand en importeer."
897
+
898
+ #: php/views/import.php:32
899
+ msgid "Choose a file from your computer:"
900
+ msgstr "Kies een bestand van uw computer:"
901
+
902
+ #: php/views/import.php:33
903
+ msgid "(Maximum size: 8MB)"
904
+ msgstr "(Maximale grootte: 8MB)"
905
+
906
+ #: php/views/import.php:39
907
+ msgid "Upload file and import"
908
+ msgstr "Upload en importeer bestand"
909
+
910
+ #: php/views/manage.php:34
911
+ msgid "Search Installed Snippets"
912
+ msgstr "Zoek geïnstalleerde fragmenten"
trunk/languages/code-snippets-ru_RU.mo ADDED
Binary file
trunk/languages/code-snippets-ru_RU.po ADDED
@@ -0,0 +1,874 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: Code Snippets\n"
5
+ "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-05-20 15:56+1000\n"
7
+ "PO-Revision-Date: 2015-05-20 12:15+0300\n"
8
+ "Last-Translator: Alexey Chumakov <alex@chumakov.ru>\n"
9
+ "Language-Team: Flector <rlector@gmail.com>\n"
10
+ "Language: ru\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
15
+ "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
+ "X-Generator: Poedit 1.7.6\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;_x:1,2c;_n;_nx:4c,1,2;"
20
+ "_nx_noop:4c,1,2;_ex:1,2c;__ngettext_noop:1,2;_n_noop:1,2;_x;esc_html_x;"
21
+ "esc_html_e\n"
22
+ "X-Poedit-SearchPath-0: .\n"
23
+
24
+ #: includes/admin.php:81 includes/manage/admin.php:21
25
+ #: includes/manage/manage.php:22 includes/manage/manage.php:23
26
+ #: includes/manage/manage.php:33
27
+ msgid "Snippets"
28
+ msgstr "Сниппеты"
29
+
30
+ #: includes/admin.php:152
31
+ msgid "Manage your existing snippets"
32
+ msgstr "Управление имеющимися сниппетами"
33
+
34
+ #: includes/admin.php:153 includes/manage/manage.php:34
35
+ msgid "Manage"
36
+ msgstr "Управление"
37
+
38
+ #: includes/admin.php:182
39
+ msgid "Visit the WordPress.org plugin page"
40
+ msgstr "Посетить страницу плагина на WordPress.org"
41
+
42
+ #: includes/admin.php:183
43
+ msgid "About"
44
+ msgstr "О плагине"
45
+
46
+ #: includes/admin.php:187
47
+ msgid "Visit the support forums"
48
+ msgstr "Посетить форумы поддержки"
49
+
50
+ #: includes/admin.php:188
51
+ msgid "Support"
52
+ msgstr "Поддержка"
53
+
54
+ #: includes/admin.php:192
55
+ msgid "Support this plugin's development"
56
+ msgstr "Поддержите развитие плагина"
57
+
58
+ #: includes/admin.php:193
59
+ msgid "Donate"
60
+ msgstr "Пожертвования"
61
+
62
+ #: includes/admin.php:226
63
+ msgid ""
64
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
65
+ "answer a short survey on how you use this plugin and what you'd like to see "
66
+ "changed or added in the future."
67
+ msgstr ""
68
+ "<strong>У вас есть замечания по работе Code Snippets?</strong> Тогда "
69
+ "пожалуйста заполните анкету на сайте плагина."
70
+
71
+ #: includes/admin.php:229
72
+ msgid "Take the survey now"
73
+ msgstr "Оставить отзыв"
74
+
75
+ #: includes/class-export.php:102
76
+ msgid ""
77
+ "This is a code snippets export file generated by the Code Snippets WordPress "
78
+ "plugin."
79
+ msgstr ""
80
+ "Это файл экспорта сниппетов кода, созданный плагином Code Snippets для "
81
+ "WordPress."
82
+
83
+ #: includes/class-export.php:103
84
+ msgid "http://wordpress.org/plugins/code-snippets"
85
+ msgstr "http://wordpress.org/plugins/code-snippets"
86
+
87
+ #: includes/class-export.php:104
88
+ msgid "To import these snippets a WordPress site follow these steps:"
89
+ msgstr "Для импорта сниппетов на сайт WordPress выполните эти действия:"
90
+
91
+ #: includes/class-export.php:105
92
+ msgid "1. Log in to that site as an administrator."
93
+ msgstr "1. Войдите на сайт как администратор."
94
+
95
+ #: includes/class-export.php:106
96
+ msgid ""
97
+ "2. Install the Code Snippets plugin using the directions provided at the "
98
+ "above link."
99
+ msgstr "2. Установите плагин Code Snippets, следуя указаниям по ссылке выше."
100
+
101
+ #: includes/class-export.php:107
102
+ msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
103
+ msgstr "3. Перейдите в 'Инструменты: Импорт' в консоли WordPress."
104
+
105
+ #: includes/class-export.php:108
106
+ msgid "4. Click on the \"Code Snippets\" importer in the list"
107
+ msgstr "4. Нажмите на импорт \"Code Snippets\" в списке"
108
+
109
+ #: includes/class-export.php:109
110
+ msgid "5. Upload this file using the form provided on that page."
111
+ msgstr "5. Загрузите этот файл через форму на той странице."
112
+
113
+ #: includes/class-export.php:110
114
+ msgid ""
115
+ "6. Code Snippets will then import all of the snippets and associated "
116
+ "information contained in this file into your site."
117
+ msgstr ""
118
+ "6. Code Snippets импортирует из этого файла на сайт все сниппеты и "
119
+ "сопутствующую информацию."
120
+
121
+ #: includes/class-export.php:111
122
+ msgid ""
123
+ "7. You will then have to visit the 'Snippets: Manage' admin menu and "
124
+ "activate desired snippets."
125
+ msgstr ""
126
+ "7. Потребуется зайти в <a href=\"%s\">Сниппеты: управление</a>, и "
127
+ "активировать нужные сниппеты."
128
+
129
+ #: includes/edit/admin-help.php:15 includes/import/admin-help.php:16
130
+ #: includes/manage/admin-help.php:15
131
+ msgid "Overview"
132
+ msgstr "Обзор"
133
+
134
+ #: includes/edit/admin-help.php:17
135
+ msgid ""
136
+ "Snippets are similar to plugins - they both extend and expand the "
137
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
138
+ "of code, and do not put as much load on your server. Here you can add a new "
139
+ "snippet, or edit an existing one."
140
+ msgstr ""
141
+ "Сниппеты похожи на плагины — и те и другие расширяют функциональность "
142
+ "WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
143
+ "сильно нагружают ваш сервер. Здесь можно добавить или отредактировать "
144
+ "сниппет."
145
+
146
+ #: includes/edit/admin-help.php:22
147
+ msgid "Finding Snippets"
148
+ msgstr "Поиск сниппетов"
149
+
150
+ #: includes/edit/admin-help.php:24
151
+ msgid ""
152
+ "Here are some links to websites which host a large number of snippets that "
153
+ "you can add to your site.\n"
154
+ "\t\t<ul>\n"
155
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
156
+ "Snippets</a></li>\n"
157
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
158
+ "li>\n"
159
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
160
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
161
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
162
+ "\t\t</ul>"
163
+ msgstr ""
164
+ "Здесь приведены ссылки на некоторые сайты со множеством сниппетов:\n"
165
+ "\t\t<ul>\n"
166
+ "\t\t\t<li><a href=\"http://www.wphook.ru\" title=\"WPHook.ru\">WPHook.ru</"
167
+ "a></li>\n"
168
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
169
+ "Snippets</a></li>\n"
170
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
171
+ "li>\n"
172
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
173
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
174
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
175
+ "\t\t</ul>"
176
+
177
+ #: includes/edit/admin-help.php:31
178
+ msgid ""
179
+ "More places to find snippets, as well as a selection of example snippets, "
180
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
181
+ "wiki/Finding-snippets\">plugin documentation</a>"
182
+ msgstr ""
183
+ "Места, где можно найти сниппеты, а также избранные примеры, находятся на <a "
184
+ "href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
185
+ "\">странице плагина</a>"
186
+
187
+ #: includes/edit/admin-help.php:36
188
+ msgid "Adding Snippets"
189
+ msgstr "Добавление сниппетов"
190
+
191
+ #: includes/edit/admin-help.php:38
192
+ msgid ""
193
+ "You need to fill out the name and code fields for your snippet to be added. "
194
+ "While the description field will add more information about how your snippet "
195
+ "works, what is does and where you found it, it is completely optional."
196
+ msgstr ""
197
+ "Для добавление сниппета нужно заполнить поля названия и кода. В поле "
198
+ "описания можно добавить дополнительные сведения о том, как работает сниппет, "
199
+ "но это совершенно необязательно."
200
+
201
+ #: includes/edit/admin-help.php:39
202
+ msgid ""
203
+ "Please be sure to check that your snippet is valid PHP code and will not "
204
+ "produce errors before adding it through this page. While doing so will not "
205
+ "become active straight away, it will help to minimise the chance of a faulty "
206
+ "snippet becoming active on your site."
207
+ msgstr ""
208
+ "Пожалуйста, перед добавление сниппета убедитесь в том, что он является "
209
+ "корректным PHP кодом, и не приведет к сбоям. Хотя добавляемый сниппет сразу "
210
+ "не активизируется, это поможет сократить вероятность включения неисправного "
211
+ "сниппета в будущем."
212
+
213
+ #: includes/edit/admin-help.php:43 includes/import/admin-help.php:37
214
+ #: includes/manage/admin-help.php:37
215
+ msgid "For more information:"
216
+ msgstr "Дополнительная информация:"
217
+
218
+ #: includes/edit/admin-help.php:44 includes/import/admin-help.php:38
219
+ msgid ""
220
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
221
+ "\">WordPress Extend</a>"
222
+ msgstr ""
223
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
224
+ "\">Страница плагина</a>"
225
+
226
+ #: includes/edit/admin-help.php:45 includes/import/admin-help.php:39
227
+ #: includes/manage/admin-help.php:39
228
+ msgid ""
229
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
230
+ "\">Support Forums</a>"
231
+ msgstr ""
232
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
233
+ "\">Форумы поддержки</a>"
234
+
235
+ #: includes/edit/admin-help.php:46 includes/import/admin-help.php:40
236
+ #: includes/manage/admin-help.php:40
237
+ msgid ""
238
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
239
+ "\">Project Website</a>"
240
+ msgstr ""
241
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank"
242
+ "\">Сайт плагина</a>"
243
+
244
+ #: includes/edit/admin-messages.php:14
245
+ msgid "An error occurred when saving the snippet."
246
+ msgstr "Произошла ошибка при сохранении сниппета."
247
+
248
+ #: includes/edit/admin-messages.php:18
249
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
250
+ msgstr "Сниппет <strong>обновлен</strong> и <strong>активирован</strong>."
251
+
252
+ #: includes/edit/admin-messages.php:22
253
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
254
+ msgstr "Сниппет <strong>добавлен</strong> и <strong>активирован</strong>."
255
+
256
+ #: includes/edit/admin-messages.php:26
257
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
258
+ msgstr "Сниппет <strong>обновлен</strong> и <strong>деактивирован</strong>."
259
+
260
+ #: includes/edit/admin-messages.php:30
261
+ msgid "Snippet <strong>updated</strong>."
262
+ msgstr "Сниппет <strong>обновлен</strong>."
263
+
264
+ #: includes/edit/admin-messages.php:34
265
+ msgid "Snippet <strong>added</strong>."
266
+ msgstr "Сниппет <strong>добавлен</strong>."
267
+
268
+ #: includes/edit/admin.php:26 includes/edit/edit.php:48
269
+ #: includes/edit/edit.php:49
270
+ msgid "Edit Snippet"
271
+ msgstr "Редактирование сниппета"
272
+
273
+ #: includes/edit/admin.php:29 includes/manage/admin.php:24
274
+ msgctxt "snippet"
275
+ msgid "Add New"
276
+ msgstr "Добавить новый"
277
+
278
+ #: includes/edit/admin.php:32 includes/edit/edit.php:34
279
+ msgid "Add New Snippet"
280
+ msgstr "Добавление нового сниппета"
281
+
282
+ #: includes/edit/admin.php:49 includes/edit/admin.php:50
283
+ msgid "Name (short title)"
284
+ msgstr "Название (короткий заголовок на английском)"
285
+
286
+ #: includes/edit/admin.php:55
287
+ msgid "Code"
288
+ msgstr "Код"
289
+
290
+ #: includes/edit/admin.php:75 includes/edit/admin.php:89
291
+ msgid "Save Changes and Activate"
292
+ msgstr "Сохранить изменения и активировать"
293
+
294
+ #: includes/edit/admin.php:95
295
+ msgid "Save Changes and Deactivate"
296
+ msgstr "Сохранить изменения и деактивировать"
297
+
298
+ #: includes/edit/admin.php:105 includes/manage/class-list-table.php:141
299
+ #: includes/manage/class-list-table.php:266
300
+ msgid "Export"
301
+ msgstr "Экспорт"
302
+
303
+ #: includes/edit/admin.php:112
304
+ msgid ""
305
+ "You are about to permanently delete this snippet.\n"
306
+ "'Cancel' to stop, 'OK' to delete."
307
+ msgstr ""
308
+ "Вы собираетесь удалить этот сниппет.\n"
309
+ "'Отмена' — прекратить, 'OK' — удалить."
310
+
311
+ #: includes/edit/admin.php:117 includes/manage/class-list-table.php:150
312
+ #: includes/manage/class-list-table.php:267
313
+ msgid "Delete"
314
+ msgstr "Удалить"
315
+
316
+ #: includes/edit/edit.php:35
317
+ msgid "Add New"
318
+ msgstr "Добавить новый"
319
+
320
+ #: includes/edit/edit.php:83 includes/manage/manage.php:67
321
+ msgid "You are not authorized to access this page."
322
+ msgstr "У вас нет доступа к этой странице."
323
+
324
+ #: includes/edit/edit.php:177 includes/manage/class-list-table.php:226
325
+ msgid "Description"
326
+ msgstr "Описание"
327
+
328
+ #: includes/edit/edit.php:204
329
+ msgid "Run snippet everywhere"
330
+ msgstr "Запускать сниппет везде"
331
+
332
+ #: includes/edit/edit.php:205
333
+ msgid "Only run in adminstration area"
334
+ msgstr "Запускать только в консоли администратора"
335
+
336
+ #: includes/edit/edit.php:206
337
+ msgid "Only run on site front-end"
338
+ msgstr "Запускать только на фронт-энде сайта"
339
+
340
+ #: includes/edit/edit.php:210
341
+ msgid "Scope"
342
+ msgstr "Область"
343
+
344
+ #: includes/edit/edit.php:231 includes/manage/class-list-table.php:227
345
+ msgid "Tags"
346
+ msgstr "Метки"
347
+
348
+ #: includes/edit/edit.php:235
349
+ msgid "Enter a list of tags; separated by commas"
350
+ msgstr "Введите метки через запятую"
351
+
352
+ #: includes/import/admin-help.php:18
353
+ msgid ""
354
+ "Snippets are similar to plugins - they both extend and expand the "
355
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
356
+ "of code, and do not put as much load on your server. Here you can load "
357
+ "snippets from a Code Snippets (.xml) import file into the database with your "
358
+ "existing snippets."
359
+ msgstr ""
360
+ "Сниппеты похожи на плагины — и те и другие расширяют функциональность "
361
+ "WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
362
+ "сильно нагружают ваш сервер. Здесь вы можете загрузить ваши сниппеты из "
363
+ "файла экспорта плагина (.xml), чтобы добавить их на ваш сайт."
364
+
365
+ #: includes/import/admin-help.php:23
366
+ msgid "Importing"
367
+ msgstr "Импорт"
368
+
369
+ #: includes/import/admin-help.php:25
370
+ msgid ""
371
+ "You can load your snippets from a code snippets (.xml) export file using "
372
+ "this page."
373
+ msgstr ""
374
+ "На этой странице вы можете загрузить свои сниппеты из файла экспорта (.xml)."
375
+
376
+ #: includes/import/admin-help.php:26
377
+ #, php-format
378
+ msgid ""
379
+ "Snippets will be added to the database along with your existing snippets. "
380
+ "Regardless of whether the snippets were active on the previous site, "
381
+ "imported snippets are always inactive until activated using the <a href=\"%s"
382
+ "\">Manage Snippets</a> page.</p>"
383
+ msgstr ""
384
+ "Сниппеты будут добавлены в вашу базу к уже имеющимся. Независимо от того, "
385
+ "были ли они активны на предыдущем сайте, импортированные сниппеты всегда "
386
+ "неактивны, пока их не активировать на странице <a href=\"%s\">Управление "
387
+ "сниппетами</a>).</p>"
388
+
389
+ #: includes/import/admin-help.php:31
390
+ msgid "Exporting"
391
+ msgstr "Экспорт"
392
+
393
+ #: includes/import/admin-help.php:33
394
+ #, php-format
395
+ msgid ""
396
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
397
+ "<a href=\"%s\">Manage Snippets</a> page."
398
+ msgstr ""
399
+ "Вы можете сохранить свои сниппеты в файл экспорта (.xml) на странице <a href="
400
+ "\"%s\">Управление сниппетами</a>."
401
+
402
+ #: includes/import/admin-messages.php:16
403
+ #, php-format
404
+ msgid ""
405
+ "Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
406
+ "a>"
407
+ msgid_plural ""
408
+ "Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
409
+ "</a>"
410
+ msgstr[0] ""
411
+ "Успешно импортирован <strong>%d</strong> сниппет. <a href=\"%s\">Удачи!</a>"
412
+ msgstr[1] ""
413
+ "Успешно импортировано <strong>%d</strong> сниппета. <a href=\"%s\">Удачи!</a>"
414
+ msgstr[2] ""
415
+ "Усеешно импортировано <strong>%d</strong> сниппетов. <a href=\"%s\">Удачи!</"
416
+ "a>"
417
+
418
+ #: includes/import/admin-messages.php:30
419
+ msgid "An error occurred when processing the import file."
420
+ msgstr "Произошла ошибка при импортировании сниппета."
421
+
422
+ #: includes/import/admin.php:18 includes/import/import.php:55
423
+ msgid "Import Snippets"
424
+ msgstr "Импортирование сниппетов"
425
+
426
+ #: includes/import/admin.php:22
427
+ msgid ""
428
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
429
+ "snippets to this site."
430
+ msgstr ""
431
+ "Привет! Загрузите файл экспорта, чтобы импортировать сниппеты на этот сайт."
432
+
433
+ #: includes/import/admin.php:24
434
+ #, php-format
435
+ msgid ""
436
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
437
+ "activate the imported snippets."
438
+ msgstr ""
439
+ "Чтобы активировать импортированные сниппеты, потребуется зайти в <a href=\"%s"
440
+ "\">Управление сниппетами</a>, "
441
+
442
+ #: includes/import/admin.php:26
443
+ msgid ""
444
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
445
+ "import."
446
+ msgstr ""
447
+ "Выберите файл экспорта (.xml), а затем нажмите \"Загрузить файл и "
448
+ "импортировать\"."
449
+
450
+ #: includes/import/admin.php:33
451
+ msgid "Choose a file from your computer:"
452
+ msgstr "Выберите файл на вашем компьютере:"
453
+
454
+ #: includes/import/admin.php:34
455
+ msgid "(Maximum size: 8MB)"
456
+ msgstr "(Максимальный размер: 8МБ)"
457
+
458
+ #: includes/import/admin.php:40
459
+ msgid "Upload file and import"
460
+ msgstr "Загрузить файл и импортировать"
461
+
462
+ #: includes/import/import.php:34
463
+ msgid "Code Snippets"
464
+ msgstr "Code Snippets"
465
+
466
+ #: includes/import/import.php:35
467
+ msgid "Import snippets from a code snippets export file"
468
+ msgstr "Импортировать сниппеты из файла экспорта плагина \"Code Snippets\"."
469
+
470
+ #: includes/import/import.php:56
471
+ msgid "Import"
472
+ msgstr "Импорт"
473
+
474
+ #: includes/import/import.php:92
475
+ msgid "You are not access this page."
476
+ msgstr "У вас нет доступа к этой странице."
477
+
478
+ #: includes/manage/admin-help.php:17
479
+ msgid ""
480
+ "Snippets are similar to plugins - they both extend and expand the "
481
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
482
+ "of code, and do not put as much load on your server. Here you can manage "
483
+ "your existing snippets and perform tasks on them such as activating, "
484
+ "deactivating, deleting and exporting."
485
+ msgstr ""
486
+ "Сниппеты похожи на плагины — и те и другие расширяют функциональность "
487
+ "WordPress. Сниппеты меньше, они состоят лишь из нескольких строк кода и не "
488
+ "сильно нагружают ваш сервер. Отсюда вы можете управлять вашими сниппетами "
489
+ "(добавлять, редактировать, активировать и деактивировать)."
490
+
491
+ #: includes/manage/admin-help.php:22
492
+ msgid "Safe Mode"
493
+ msgstr "Безопасный режим"
494
+
495
+ #: includes/manage/admin-help.php:24
496
+ msgid ""
497
+ "Be sure to check your snippets for errors before you activate them, as a "
498
+ "faulty snippet could bring your whole blog down. If your site starts doing "
499
+ "strange things, deactivate all your snippets and activate them one at a time."
500
+ msgstr ""
501
+ "Прежде чем активировать сниппеты, убедитесь, что они не содержат ошибок. "
502
+ "Некорректные сниппеты могут положить вам сайт! Если ваш сайт начинает вести "
503
+ "себя странно, отключите все сниппеты и включайте их по одному."
504
+
505
+ #: includes/manage/admin-help.php:25
506
+ msgid ""
507
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
508
+ "cause all snippets to stop executing by adding "
509
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
510
+ "config.php</code> file. After you have deactivated the offending snippet, "
511
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
512
+ "strong> with <strong>false</strong>."
513
+ msgstr ""
514
+ "На случай любых проблем со сниппетом, приводящим к сбою WordPress, можно "
515
+ "отключить все сниппеты, добавив строчку "
516
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> в ваш файл "
517
+ "конфигурации <code>wp-config.php</code> . Отключив виновный сниппет, можно "
518
+ "отключить безопасный режим, удалив указанную строчку или "
519
+ "поменяв<strong>true</strong> на <strong>false</strong>."
520
+
521
+ #: includes/manage/admin-help.php:30
522
+ msgid "Uninstall"
523
+ msgstr "Удаление"
524
+
525
+ #: includes/manage/admin-help.php:32
526
+ #, php-format
527
+ msgid ""
528
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
529
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
530
+ "the database. If you want to keep this data (ie: you are only temporally "
531
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
532
+ "FTP."
533
+ msgstr ""
534
+ "При удалении плагина через меню \"Плагины\" консоли таблица <code>%1$s</"
535
+ "code> в базе данных и кое-какие еще следы в базе данных будут удалены. Если "
536
+ "вы хотите сохранить настройки (сниппеты) плагина, то удаляйте плагин (<code>"
537
+ "%2$s</code>) через FTP, а не через консоль."
538
+
539
+ #: includes/manage/admin-help.php:33
540
+ msgid ""
541
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
542
+ "this WordPress installation, you may want to use the export feature to back "
543
+ "up your snippets."
544
+ msgstr ""
545
+ "Даже если вы уверены, что никогда больше не будете использовать данный "
546
+ "плагин на этом сайте, на всякий случай сделайте экспорт всех сниппетов."
547
+
548
+ #: includes/manage/admin-help.php:38
549
+ msgid ""
550
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
551
+ "\">WordPress Extend</a></p>"
552
+ msgstr ""
553
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
554
+ "\">Страница плагина</a></p>"
555
+
556
+ #: includes/manage/admin-messages.php:14
557
+ msgid ""
558
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
559
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
560
+ "config.php</code> to turn off safe mode. <a href=\"https://github.com/"
561
+ "sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
562
+ msgstr ""
563
+ "<strong>Внимание:</strong> включен безопасный режим, и сниппеты не будут "
564
+ "выполняются! Удалите константу <code>CODE_SNIPPETS_SAFE_MODE</code> из файла "
565
+ "<code>wp-config.php</code>, чтобы выключить безопасный режим. <a href="
566
+ "\"https://github.com/sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank"
567
+ "\">Помощь</a>"
568
+
569
+ #: includes/manage/admin-messages.php:20
570
+ msgid "Snippet <strong>activated</strong>."
571
+ msgstr "Сниппет <strong>активирован</strong>."
572
+
573
+ #: includes/manage/admin-messages.php:24
574
+ msgid "Selected snippets <strong>activated</strong>."
575
+ msgstr "Выбранные сниппеты <strong>активированы</strong>."
576
+
577
+ #: includes/manage/admin-messages.php:28
578
+ msgid "Snippet <strong>deactivated</strong>."
579
+ msgstr "Сниппет <strong>деактивирован</strong>."
580
+
581
+ #: includes/manage/admin-messages.php:32
582
+ msgid "Selected snippets <strong>deactivated</strong>."
583
+ msgstr "Выбранные сниппеты <strong>деактивированы</strong>."
584
+
585
+ #: includes/manage/admin-messages.php:36
586
+ msgid "Snippet <strong>deleted</strong>."
587
+ msgstr "Сниппет <strong>удален</strong>."
588
+
589
+ #: includes/manage/admin-messages.php:40
590
+ msgid "Selected snippets <strong>deleted</strong>."
591
+ msgstr "Выбранные сниппеты <strong>удалены</strong>."
592
+
593
+ #: includes/manage/admin.php:36
594
+ msgid "Search Installed Snippets"
595
+ msgstr "Искать установленные сниппеты"
596
+
597
+ #: includes/manage/class-list-table.php:53
598
+ msgid "Snippets per page"
599
+ msgstr "Сниппетов на странице"
600
+
601
+ #: includes/manage/class-list-table.php:116
602
+ #: includes/manage/class-list-table.php:265
603
+ msgid "Network Deactivate"
604
+ msgstr "Деактивировать в сети"
605
+
606
+ #: includes/manage/class-list-table.php:116
607
+ #: includes/manage/class-list-table.php:265
608
+ msgid "Deactivate"
609
+ msgstr "Деактивировать"
610
+
611
+ #: includes/manage/class-list-table.php:125
612
+ #: includes/manage/class-list-table.php:264
613
+ msgid "Network Activate"
614
+ msgstr "Активировать в сети"
615
+
616
+ #: includes/manage/class-list-table.php:125
617
+ #: includes/manage/class-list-table.php:264
618
+ msgid "Activate"
619
+ msgstr "Активировать"
620
+
621
+ #: includes/manage/class-list-table.php:135
622
+ msgid "Edit"
623
+ msgstr "Изменить"
624
+
625
+ #: includes/manage/class-list-table.php:157
626
+ msgid ""
627
+ "You are about to permanently delete the selected item.\n"
628
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
629
+ msgstr ""
630
+ "Вы действительно хотите удалить выбранный сниппет?\n"
631
+ "\t\t\t\t'Отмена' — прекратить, 'OK' — удалить."
632
+
633
+ #: includes/manage/class-list-table.php:165
634
+ #, php-format
635
+ msgid "Untitled #%d"
636
+ msgstr "Без названия #%d"
637
+
638
+ #: includes/manage/class-list-table.php:224
639
+ msgid "Name"
640
+ msgstr "Название"
641
+
642
+ #: includes/manage/class-list-table.php:225
643
+ msgid "ID"
644
+ msgstr "ID"
645
+
646
+ #: includes/manage/class-list-table.php:268
647
+ msgid "Export to PHP"
648
+ msgstr "Экспорт в PHP"
649
+
650
+ #: includes/manage/class-list-table.php:305
651
+ #, php-format
652
+ msgid "All <span class=\"count\">(%s)</span>"
653
+ msgid_plural "All <span class=\"count\">(%s)</span>"
654
+ msgstr[0] "Все <span class=\"count\">(%s)</span>"
655
+ msgstr[1] "Все <span class=\"count\">(%s)</span>"
656
+ msgstr[2] "Все <span class=\"count\">(%s)</span>"
657
+
658
+ #: includes/manage/class-list-table.php:308
659
+ #, php-format
660
+ msgid "Active <span class=\"count\">(%s)</span>"
661
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
662
+ msgstr[0] "Активный <span class=\"count\">(%s)</span>"
663
+ msgstr[1] "Активные <span class=\"count\">(%s)</span>"
664
+ msgstr[2] "Активные <span class=\"count\">(%s)</span>"
665
+
666
+ #: includes/manage/class-list-table.php:311
667
+ #, php-format
668
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
669
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
670
+ msgstr[0] "Недавно активный <span class=\"count\">(%s)</span>"
671
+ msgstr[1] "Недавно активные <span class=\"count\">(%s)</span>"
672
+ msgstr[2] "Недавно активные <span class=\"count\">(%s)</span>"
673
+
674
+ #: includes/manage/class-list-table.php:314
675
+ #, php-format
676
+ msgid "Inactive <span class=\"count\">(%s)</span>"
677
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
678
+ msgstr[0] "Неактивный <span class=\"count\">(%s)</span>"
679
+ msgstr[1] "Неактивные <span class=\"count\">(%s)</span>"
680
+ msgstr[2] "Неактивные <span class=\"count\">(%s)</span>"
681
+
682
+ #: includes/manage/class-list-table.php:317
683
+ #, php-format
684
+ msgid "Admin <span class=\"count\">(%s)</span>"
685
+ msgid_plural "Admin <span class=\"count\">(%s)</span>"
686
+ msgstr[0] "В консоли <span class=\"count\">(%s)</span>"
687
+ msgstr[1] "В консоли <span class=\"count\">(%s)</span>"
688
+ msgstr[2] "В консоли <span class=\"count\">(%s)</span>"
689
+
690
+ #: includes/manage/class-list-table.php:320
691
+ #, php-format
692
+ msgid "Front End <span class=\"count\">(%s)</span>"
693
+ msgid_plural "Front End <span class=\"count\">(%s)</span>"
694
+ msgstr[0] "На сайте <span class=\"count\">(%s)</span>"
695
+ msgstr[1] "На сайте <span class=\"count\">(%s)</span>"
696
+ msgstr[2] "На сайте <span class=\"count\">(%s)</span>"
697
+
698
+ #: includes/manage/class-list-table.php:380
699
+ msgid "Show all tags"
700
+ msgstr "Показать все метки"
701
+
702
+ #: includes/manage/class-list-table.php:394
703
+ msgid "Filter"
704
+ msgstr "Фильтр"
705
+
706
+ #: includes/manage/class-list-table.php:402
707
+ msgid "Clear List"
708
+ msgstr "Очистить список"
709
+
710
+ #: includes/manage/class-list-table.php:551
711
+ #, php-format
712
+ msgid ""
713
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
714
+ "\">Add New&rarr;</a>"
715
+ msgstr "Нет доступных сниппетов. <a href=\"%s\">Добавить новый&rarr;</a>"
716
+
717
+ #: includes/manage/class-list-table.php:783
718
+ msgid "Search results"
719
+ msgstr "Результаты поиска"
720
+
721
+ #: includes/manage/class-list-table.php:786
722
+ #, php-format
723
+ msgid " for &#8220;%s&#8221;"
724
+ msgstr " по запросу &#8220;%s&#8221;"
725
+
726
+ #: includes/manage/class-list-table.php:790
727
+ #, php-format
728
+ msgid " in tag &#8220;%s&#8221;"
729
+ msgstr " в метке &#8220;%s&#8221;"
730
+
731
+ #: includes/manage/class-list-table.php:796
732
+ msgid "Clear Filters"
733
+ msgstr "Очистить фильтры"
734
+
735
+ #: includes/settings/admin.php:20
736
+ msgid "Snippets Settings"
737
+ msgstr "Настройки сниппетов"
738
+
739
+ #: includes/settings/admin.php:21 includes/settings/admin.php:39
740
+ msgid "Settings"
741
+ msgstr "Настройки"
742
+
743
+ #: includes/settings/class-settings.php:51
744
+ msgid "Activate by Default"
745
+ msgstr "Включать по умолчанию"
746
+
747
+ #: includes/settings/class-settings.php:53
748
+ msgid ""
749
+ "Make the 'Save and Activate' button the default action when saving a snippet."
750
+ msgstr ""
751
+ "Сделать кнопку 'Сохранить и активировать' действием по умолчанию при "
752
+ "сохранении сниппета"
753
+
754
+ #: includes/settings/class-settings.php:59
755
+ msgid "Enable Scope Selector"
756
+ msgstr "Включить селектор области"
757
+
758
+ #: includes/settings/class-settings.php:61
759
+ msgid "Enable the scope selector when editing a snippet"
760
+ msgstr "Включить селектор области применения при редактировании сниппета"
761
+
762
+ #: includes/settings/class-settings.php:71
763
+ msgid "Row Height"
764
+ msgstr "Высота в строках"
765
+
766
+ #: includes/settings/class-settings.php:73
767
+ msgid "rows"
768
+ msgstr "строк"
769
+
770
+ #: includes/settings/class-settings.php:80
771
+ msgid "Use Full Editor"
772
+ msgstr "Использовать расширенный редактор"
773
+
774
+ #: includes/settings/class-settings.php:82
775
+ msgid "Enable all features of the visual editor"
776
+ msgstr "Включить все функции визуального редактора"
777
+
778
+ #: includes/settings/class-settings.php:88
779
+ msgid "Media Buttons"
780
+ msgstr "Кнопки медиа"
781
+
782
+ #: includes/settings/class-settings.php:90
783
+ msgid "Enable the add media buttons"
784
+ msgstr "Включить кнопки добавления медиафайла"
785
+
786
+ #: includes/settings/class-settings.php:100
787
+ msgid "Theme"
788
+ msgstr "Тема"
789
+
790
+ #: includes/settings/class-settings.php:108
791
+ msgid "Indent With Tabs"
792
+ msgstr "Сдвигать табуляторами"
793
+
794
+ #: includes/settings/class-settings.php:110
795
+ msgid "Use hard tabs (not spaces) for indentation."
796
+ msgstr "Использовать жесткие табуляторы (не пробелы) для сдвига"
797
+
798
+ #: includes/settings/class-settings.php:117
799
+ msgid "Tab Size"
800
+ msgstr "Размер табулятора"
801
+
802
+ #: includes/settings/class-settings.php:119
803
+ msgid "The width of a tab character."
804
+ msgstr "Ширина символа табуляции"
805
+
806
+ #: includes/settings/class-settings.php:127
807
+ msgid "Indent Unit"
808
+ msgstr "Шаг сдвига"
809
+
810
+ #: includes/settings/class-settings.php:129
811
+ msgid "How many spaces a block should be indented."
812
+ msgstr "На сколько пробелов сдвигать блок"
813
+
814
+ #: includes/settings/class-settings.php:137
815
+ msgid "Wrap Lines"
816
+ msgstr "Переносить строки"
817
+
818
+ #: includes/settings/class-settings.php:139
819
+ msgid "Whether the editor should scroll or wrap for long lines."
820
+ msgstr "Прокручивать или переносить длинные строки в редакторе"
821
+
822
+ #: includes/settings/class-settings.php:146
823
+ msgid "Line Numbers"
824
+ msgstr "Номера строк"
825
+
826
+ #: includes/settings/class-settings.php:148
827
+ msgid "Show line numbers to the left of the editor."
828
+ msgstr "Показывать номера строк в редакторе слева"
829
+
830
+ #: includes/settings/class-settings.php:155
831
+ msgid "Auto Close Brackets"
832
+ msgstr "Автоматически закрывать скобки"
833
+
834
+ #: includes/settings/class-settings.php:157
835
+ msgid "Auto-close brackets and quotes when typed."
836
+ msgstr "Автоматически закрывать скобки и кавычки при наборе"
837
+
838
+ #: includes/settings/class-settings.php:164
839
+ msgid "Highlight Selection Matches"
840
+ msgstr "Выделять совпадения"
841
+
842
+ #: includes/settings/class-settings.php:165
843
+ msgid "Highlight all instances of a currently selected word."
844
+ msgstr "Выделять все вхождения выбранного слова"
845
+
846
+ #: includes/settings/settings.php:84
847
+ msgid "General"
848
+ msgstr "Основные"
849
+
850
+ #: includes/settings/settings.php:85
851
+ msgid "Description Editor"
852
+ msgstr "Редактор описания"
853
+
854
+ #: includes/settings/settings.php:86
855
+ msgid "Code Editor"
856
+ msgstr "Редактор кода"
857
+
858
+ #: includes/settings/settings.php:134
859
+ msgid "Editor Preview"
860
+ msgstr "Предварительный просмотр в редакторе"
861
+
862
+ #: includes/settings/settings.php:180
863
+ msgid "Settings saved."
864
+ msgstr "Настройки сохранены."
865
+
866
+ #~ msgid "Вы действительно хотите удалить выбранный сниппет?"
867
+ #~ msgstr "Вы действительно хотите удалить выбранный сниппет?"
868
+
869
+ #, fuzzy
870
+ #~ msgid "Все <span class=\"count\">(%s)</span>"
871
+ #~ msgid_plural "Все <span class=\"count\">(%s)</span>"
872
+ #~ msgstr[0] "All <span class=\"count\">(%s)</span>"
873
+ #~ msgstr[1] "All <span class=\"count\">(%s)</span>"
874
+ #~ msgstr[2] "All <span class=\"count\">(%s)</span>"
trunk/languages/code-snippets-sk_SK.mo ADDED
Binary file
trunk/languages/code-snippets-sk_SK.po ADDED
@@ -0,0 +1,596 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Code Snippets SK\n"
4
+ "POT-Creation-Date: 2014-12-09 06:55+0100\n"
5
+ "PO-Revision-Date: 2014-12-09 07:10+0100\n"
6
+ "Last-Translator: Jan Fajcak <ja@fajo.name>\n"
7
+ "Language-Team: WordPress Slovensko <info@wp.sk>\n"
8
+ "Language: sk\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.1\n"
13
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;gettext;gettext_noop\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+ "X-Poedit-SearchPath-1: ..\n"
19
+
20
+ #: ../admin/help/import.php:16 ../admin/help/manage.php:16
21
+ #: ../admin/help/single.php:15
22
+ msgid "Overview"
23
+ msgstr "Prehľad"
24
+
25
+ #: ../admin/help/import.php:18
26
+ msgid ""
27
+ "Snippets are similar to plugins - they both extend and expand the "
28
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
29
+ "of code, and do not put as much load on your server. Here you can load "
30
+ "snippets from a Code Snippets (.xml) import file into the database with your "
31
+ "existing snippets."
32
+ msgstr ""
33
+ "Snippety sa podobajú modulom- oba rozširujú a prehlbujú funkčnosť WordPress. "
34
+ "Snippety sú jednoduché kusy kódu veľké len pár riadkov, ktoré svojim objemom "
35
+ "nezaťažujú server. Tu môžete nahrať snippety z Code Snippets (.xml) súboru "
36
+ "do databáze k už existujúcim snippetom."
37
+
38
+ #: ../admin/help/import.php:23
39
+ msgid "Importing"
40
+ msgstr "Import"
41
+
42
+ #: ../admin/help/import.php:25
43
+ msgid ""
44
+ "You can load your snippets from a code snippets (.xml) export file using "
45
+ "this page."
46
+ msgstr ""
47
+ "Môžete nahrať vaše snippety zo súboru Code Snippets (.xml) prostredníctvom "
48
+ "tejto stránky."
49
+
50
+ #: ../admin/help/import.php:26
51
+ #, php-format
52
+ msgid ""
53
+ "Snippets will be added to the database along with your existing snippets. "
54
+ "Regardless of whether the snippets were active on the previous site, "
55
+ "imported snippets are always inactive until activated using the <a href=\"%s"
56
+ "\">Manage Snippets</a> page.</p>"
57
+ msgstr ""
58
+ "Snippety budú pridané do databáze k už existujúcim snippetom. Bez ohľadu na "
59
+ "to, že na predchádzajúcom webe boli aktívne, po importe je potrebné ich opäť "
60
+ "aktivovať na stránke <a href=\"%s\">Spravovať snippety</a>.</p>"
61
+
62
+ #: ../admin/help/import.php:31
63
+ msgid "Exporting"
64
+ msgstr "Export"
65
+
66
+ #: ../admin/help/import.php:33
67
+ #, php-format
68
+ msgid ""
69
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
70
+ "<a href=\"%s\">Manage Snippets</a> page."
71
+ msgstr ""
72
+ "Vaše snippety môžete uložiť pomocou súboru Code Snippets (.xml) na stránke "
73
+ "<a href=\"%s\">Spravovať snippety</a>."
74
+
75
+ #: ../admin/help/import.php:37 ../admin/help/manage.php:38
76
+ #: ../admin/help/single.php:43
77
+ msgid "For more information:"
78
+ msgstr "Viac informácií:"
79
+
80
+ #: ../admin/help/import.php:38 ../admin/help/single.php:44
81
+ msgid ""
82
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
83
+ "\">WordPress Extend</a>"
84
+ msgstr ""
85
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
86
+ "\">WordPress Extend</a>"
87
+
88
+ #: ../admin/help/import.php:39 ../admin/help/manage.php:40
89
+ #: ../admin/help/single.php:45
90
+ msgid ""
91
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
92
+ "\">Support Forums</a>"
93
+ msgstr ""
94
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
95
+ "\">Fórum podpory</a>"
96
+
97
+ #: ../admin/help/import.php:40 ../admin/help/manage.php:41
98
+ #: ../admin/help/single.php:46
99
+ msgid ""
100
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
101
+ "Website</a>"
102
+ msgstr ""
103
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Webová "
104
+ "stránka projektu</a>"
105
+
106
+ #: ../admin/help/manage.php:18
107
+ msgid ""
108
+ "Snippets are similar to plugins - they both extend and expand the "
109
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
110
+ "of code, and do not put as much load on your server. Here you can manage "
111
+ "your existing snippets and perform tasks on them such as activating, "
112
+ "deactivating, deleting and exporting."
113
+ msgstr ""
114
+ "Snippety sa podobajú modulom- oba rozširujú a prehlbujú funkčnosť WordPress. "
115
+ "Snippety sú jednoduché kusy kódu veľké len pár riadkov, ktoré svojim objemom "
116
+ "nezaťažujú server. Tu môžete spravovať svoje snippety: aktivovať ich a "
117
+ "deaktivovať, mazať alebo exportovať."
118
+
119
+ #: ../admin/help/manage.php:23
120
+ msgid "Safe Mode"
121
+ msgstr "Safe Mode"
122
+
123
+ #: ../admin/help/manage.php:25
124
+ msgid ""
125
+ "Be sure to check your snippets for errors before you activate them, as a "
126
+ "faulty snippet could bring your whole blog down. If your site starts doing "
127
+ "strange things, deactivate all your snippets and activate them one at a time."
128
+ msgstr ""
129
+ "Pred aktivovaním vašich snippetov sa uistite, že neobsahujú žiadne chyby, "
130
+ "inak riskujete pád vašich stránok. Ak sa začne diať niečo neočakávané, "
131
+ "deaktivujte všetky snippety a aktivujte ich ešte raz."
132
+
133
+ #: ../admin/help/manage.php:26
134
+ msgid ""
135
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
136
+ "cause all snippets to stop executing by adding "
137
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
138
+ "config.php</code> file. After you have deactivated the offending snippet, "
139
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
140
+ "strong> with <strong>false</strong>."
141
+ msgstr ""
142
+ "Ak došlo k problému a nie je možné použiť WordPress, môžete zastaviť všetky "
143
+ "snippety vložením <code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> do "
144
+ "súboru <code>wp-config.php</code>. Potom, ako deaktivujete problémový "
145
+ "snippet, môžete tento kus kódu opäť odobrať alebo prepísať hodnotu "
146
+ "<strong>true</strong> na <strong>false</strong>."
147
+
148
+ #: ../admin/help/manage.php:31
149
+ msgid "Uninstall"
150
+ msgstr "Odinštalovať"
151
+
152
+ #: ../admin/help/manage.php:33
153
+ #, php-format
154
+ msgid ""
155
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
156
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
157
+ "the database. If you want to keep this data (ie: you are only temporally "
158
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
159
+ "FTP."
160
+ msgstr ""
161
+ "Keď zmažete modul Code Snippets štandardnou cestou cez položku Moduly v "
162
+ "administrácii WordPress, bude zmazaná aj tabuľka <code>%1$s</code> a ďalšie "
163
+ "dáta, uložené v databáze. Ak chcete tieto dáta uchovať (napr. odinštalujete "
164
+ "Code Snippets len dočasne), potom odstráňte zložku <code>%2$s</code> cez FTP "
165
+ "ručne."
166
+
167
+ #: ../admin/help/manage.php:34
168
+ msgid ""
169
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
170
+ "this WordPress installation, you may want to use the export feature to back "
171
+ "up your snippets."
172
+ msgstr ""
173
+ "Ak máte istotu, že už v tejto inštalácii nechcete používať Code Snippets, "
174
+ "môžete vaše snippety pomocou funkcie Export zálohovať."
175
+
176
+ #: ../admin/help/manage.php:39
177
+ msgid ""
178
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
179
+ "\">WordPress Extend</a></p>"
180
+ msgstr ""
181
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
182
+ "\">WordPress Extend</a></p>"
183
+
184
+ #: ../admin/help/single.php:17
185
+ msgid ""
186
+ "Snippets are similar to plugins - they both extend and expand the "
187
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
188
+ "of code, and do not put as much load on your server. Here you can add a new "
189
+ "snippet, or edit an existing one."
190
+ msgstr ""
191
+ "Snippety sa podobajú modulom- oba rozširujú a prehlbujú funkčnosť WordPress. "
192
+ "Snippety sú jednoduché kusy kódu veľké len pár riadkov, ktoré svojim objemom "
193
+ "nezaťažujú server. Tu môžete pridávať nové snippety, alebo upravovať už "
194
+ "existujúce."
195
+
196
+ #: ../admin/help/single.php:22
197
+ msgid "Finding Snippets"
198
+ msgstr "Nájsť snippety"
199
+
200
+ #: ../admin/help/single.php:24
201
+ msgid ""
202
+ "Here are some links to websites which host a large number of snippets that "
203
+ "you can add to your site.\n"
204
+ "\t\t<ul>\n"
205
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
206
+ "Snippets</a></li>\n"
207
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
208
+ "li>\n"
209
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
210
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
211
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
212
+ "\t\t</ul>"
213
+ msgstr ""
214
+ "Tu je niekoľko odkazov na weby, kde môžete nájsť množstvo snippetov, "
215
+ "použiteľných aj na vašich stránkach.\n"
216
+ "\t\t<ul>\n"
217
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
218
+ "Snippets</a></li>\n"
219
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
220
+ "li>\n"
221
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
222
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
223
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
224
+ "\t\t</ul>"
225
+
226
+ #: ../admin/help/single.php:31
227
+ msgid ""
228
+ "More places to find snippets, as well as a selection of example snippets, "
229
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/"
230
+ "Finding-snippets\">plugin documentation</a>"
231
+ msgstr ""
232
+ "Viac miest, kde nájdete snippety a niekoľko ukážok snippetov nájdete v <a "
233
+ "href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
234
+ "\">dokumentácii modulu</a>"
235
+
236
+ #: ../admin/help/single.php:36
237
+ msgid "Adding Snippets"
238
+ msgstr "Ako pridať snippet?"
239
+
240
+ #: ../admin/help/single.php:38
241
+ msgid ""
242
+ "You need to fill out the name and code fields for your snippet to be added. "
243
+ "While the description field will add more information about how your snippet "
244
+ "works, what is does and where you found it, it is completely optional."
245
+ msgstr "Je potrebné vyplniť názov snippetu a vložiť jeho kód."
246
+
247
+ #: ../admin/help/single.php:39
248
+ msgid ""
249
+ "Please be sure to check that your snippet is valid PHP code and will not "
250
+ "produce errors before adding it through this page. While doing so will not "
251
+ "become active straight away, it will help to minimise the chance of a faulty "
252
+ "snippet becoming active on your site."
253
+ msgstr ""
254
+ "Prosím skontrolujte, či vaše snippety obsahujú overený PHP kód a nespôsobia "
255
+ "na tejto stránke chyby. Keďže nebudú hneď aktívne, nemusíte sa obávať "
256
+ "možného pádu stránky po ich nahratí."
257
+
258
+ #: ../admin/messages/import.php:32
259
+ msgid "An error occurred when processing the import file."
260
+ msgstr "Pri importe došlo ku chybe."
261
+
262
+ #: ../admin/messages/manage.php:14
263
+ msgid ""
264
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
265
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
266
+ "config.php</code> to turn off safe mode. <a href=\"http://code-snippets."
267
+ "bungeshea.com/docs/safe-mode/\" target=\"_blank\">Help</a>"
268
+ msgstr ""
269
+ "<strong>Upozornenie:</strong> Safe mode je aktívny a snippety nebudú "
270
+ "fungovať! Odstráňte konštantu <code>CODE_SNIPPETS_SAFE_MODE</code> z "
271
+ "<code>wp-config.php</code> pre vypnutie safe mode. <a href=\"http://code-"
272
+ "snippets.bungeshea.com/docs/safe-mode/\" target=\"_blank\">Pomoc</a>"
273
+
274
+ #: ../admin/messages/manage.php:20
275
+ msgid "Snippet <strong>activated</strong>."
276
+ msgstr "Snippet <strong>aktivovaný</strong>."
277
+
278
+ #: ../admin/messages/manage.php:24
279
+ msgid "Selected snippets <strong>activated</strong>."
280
+ msgstr "Vybrané snippety <strong>aktivované</strong>."
281
+
282
+ #: ../admin/messages/manage.php:28
283
+ msgid "Snippet <strong>deactivated</strong>."
284
+ msgstr "Snippet <strong>deaktivovaný</strong>."
285
+
286
+ #: ../admin/messages/manage.php:32
287
+ msgid "Selected snippets <strong>deactivated</strong>."
288
+ msgstr "Vybrané snippety <strong>deaktivované</strong>."
289
+
290
+ #: ../admin/messages/manage.php:36
291
+ msgid "Snippet <strong>deleted</strong>."
292
+ msgstr "Snippet <strong>zmazaný</strong>."
293
+
294
+ #: ../admin/messages/manage.php:40
295
+ msgid "Selected snippets <strong>deleted</strong>."
296
+ msgstr "Vybrané snippety <strong>zmazané</strong>."
297
+
298
+ #: ../admin/messages/single.php:14
299
+ msgid "An error occurred when saving the snippet."
300
+ msgstr "Pri ukladaní snippetu došlo ku chybe."
301
+
302
+ #: ../admin/messages/single.php:18
303
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
304
+ msgstr "Snippet <strong>aktualizovaný</strong> a <strong>aktivovaný</strong>."
305
+
306
+ #: ../admin/messages/single.php:22
307
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
308
+ msgstr "Snippet <strong>pridaný</strong> a <strong>aktivovaný</strong>."
309
+
310
+ #: ../admin/messages/single.php:26
311
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
312
+ msgstr ""
313
+ "Snippet <strong>aktualizovaný</strong> a <strong>deaktivovaný</strong>."
314
+
315
+ #: ../admin/messages/single.php:30
316
+ msgid "Snippet <strong>updated</strong>."
317
+ msgstr "Snippet <strong>aktualizovaný</strong>."
318
+
319
+ #: ../admin/messages/single.php:34
320
+ msgid "Snippet <strong>added</strong>."
321
+ msgstr "Snippet <strong>pridaný</strong>."
322
+
323
+ #: ../admin/views/import.php:20 ../includes/class-admin.php:327
324
+ msgid "Import Snippets"
325
+ msgstr "Importovať snippety"
326
+
327
+ #: ../admin/views/import.php:24
328
+ msgid ""
329
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
330
+ "snippets to this site."
331
+ msgstr ""
332
+ "Nahrajte súbor Code Snippets (.xml) a naimportujte snippety na túto stránku."
333
+
334
+ #: ../admin/views/import.php:26
335
+ #, php-format
336
+ msgid ""
337
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
338
+ "activate the imported snippets."
339
+ msgstr ""
340
+ "Po ukončení importu musíte ísť na stránku <a href=\"%s\">Spravovať snippety</"
341
+ "a> a aktivovať importované snippety."
342
+
343
+ #: ../admin/views/import.php:28
344
+ msgid ""
345
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
346
+ "import."
347
+ msgstr ""
348
+ "Zvoľte súbor Code Snippets (.xml) a kliknite na tlačidlo Nahrať súbor a "
349
+ "importovať."
350
+
351
+ #: ../admin/views/import.php:35
352
+ msgid "Choose a file from your computer:"
353
+ msgstr "Zvoľte súbor vo vašom počítači:"
354
+
355
+ #: ../admin/views/import.php:36
356
+ msgid "(Maximum size: 8MB)"
357
+ msgstr "(Maximálna veľkosť: 8MB)"
358
+
359
+ #: ../admin/views/import.php:42
360
+ msgid "Upload file and import"
361
+ msgstr "Nahrať súbor a importovať"
362
+
363
+ #: ../admin/views/manage.php:21 ../includes/class-admin.php:152
364
+ #: ../includes/class-admin.php:276 ../includes/class-admin.php:277
365
+ #: ../includes/class-admin.php:287
366
+ msgid "Snippets"
367
+ msgstr "Snippety"
368
+
369
+ #: ../admin/views/manage.php:39
370
+ msgid "Search Installed Snippets"
371
+ msgstr "Hľadať nainštalované snippety"
372
+
373
+ #: ../admin/views/single.php:29 ../includes/class-admin.php:299
374
+ msgid "Edit Snippet"
375
+ msgstr "Upraviť snippety"
376
+
377
+ #: ../admin/views/single.php:37 ../includes/class-admin.php:299
378
+ msgid "Add New Snippet"
379
+ msgstr "Pridať nový snippet"
380
+
381
+ #: ../admin/views/single.php:53 ../admin/views/single.php:54
382
+ msgid "Name (short title)"
383
+ msgstr "Názov (krátky nadpis)"
384
+
385
+ #: ../admin/views/single.php:59
386
+ msgid "Code"
387
+ msgstr "Kód"
388
+
389
+ #: ../admin/views/single.php:85
390
+ msgid "Save Changes &amp; Activate"
391
+ msgstr "Uložiť zmeny a aktivovať"
392
+
393
+ #: ../admin/views/single.php:91
394
+ msgid "Save Changes &amp; Deactivate"
395
+ msgstr "Uložiť zmeny a deaktivovať"
396
+
397
+ #: ../admin/views/single.php:100 ../includes/class-list-table.php:166
398
+ #: ../includes/class-list-table.php:266
399
+ msgid "Export"
400
+ msgstr "Export"
401
+
402
+ #: ../admin/views/single.php:107
403
+ msgid ""
404
+ "You are about to permanently delete this snippet.\n"
405
+ "'Cancel' to stop, 'OK' to delete."
406
+ msgstr ""
407
+ "Chcete navždy zmazať tento snippet. \n"
408
+ "'Cancel' pre zrušenie, 'OK' pre zmazanie."
409
+
410
+ #: ../admin/views/single.php:112 ../includes/class-list-table.php:175
411
+ #: ../includes/class-list-table.php:267
412
+ msgid "Delete"
413
+ msgstr "Zmazať"
414
+
415
+ #: ../includes/class-admin.php:185
416
+ msgid "Code Snippets"
417
+ msgstr "Code Snippets"
418
+
419
+ #: ../includes/class-admin.php:186
420
+ msgid "Import snippets from a Code Snippets export file"
421
+ msgstr "Importovať snippety zo súboru Code Snippets"
422
+
423
+ #: ../includes/class-admin.php:246
424
+ msgid "You are not authorized to access this page."
425
+ msgstr "Nemáte prístup na túto stránku."
426
+
427
+ #: ../includes/class-admin.php:288 ../includes/class-admin.php:695
428
+ msgid "Manage"
429
+ msgstr "Spravovať"
430
+
431
+ #: ../includes/class-admin.php:300 ../includes/class-list-table.php:160
432
+ msgid "Edit"
433
+ msgstr "Upraviť"
434
+
435
+ #: ../includes/class-admin.php:300
436
+ msgid "Add New"
437
+ msgstr "Pridať nový"
438
+
439
+ #: ../includes/class-admin.php:328
440
+ msgid "Import"
441
+ msgstr "Import"
442
+
443
+ #: ../includes/class-admin.php:663 ../includes/class-list-table.php:228
444
+ msgid "Description"
445
+ msgstr "Popis"
446
+
447
+ #: ../includes/class-admin.php:694
448
+ msgid "Manage your existing snippets"
449
+ msgstr "Spravovať existujúce snippety"
450
+
451
+ #: ../includes/class-admin.php:722
452
+ msgid "Visit the WordPress.org plugin page"
453
+ msgstr "Navštíviť stránku modulu na WordPress.org"
454
+
455
+ #: ../includes/class-admin.php:723
456
+ msgid "About"
457
+ msgstr "O module"
458
+
459
+ #: ../includes/class-admin.php:727
460
+ msgid "Visit the support forums"
461
+ msgstr "Navštíviť fórum podpory"
462
+
463
+ #: ../includes/class-admin.php:728
464
+ msgid "Support"
465
+ msgstr "Podpora"
466
+
467
+ #: ../includes/class-admin.php:732
468
+ msgid "Support this plugin's development"
469
+ msgstr "Podporiť vývoj tohoto modulu"
470
+
471
+ #: ../includes/class-admin.php:733
472
+ msgid "Donate"
473
+ msgstr "Podporiť"
474
+
475
+ #: ../includes/class-admin.php:764
476
+ msgid ""
477
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
478
+ "answer a short survey on how you use this plugin and what you'd like to see "
479
+ "changed or added in the future."
480
+ msgstr ""
481
+ "<strong>Máte spätnú väzbu na Code Snippets?</strong>Prosím, nájdite si čas a "
482
+ "zúčastnite sa prieskumu o tom, ako používate tento modul a čo by ste na ňom "
483
+ "v budúcnosti zmenili, alebo čím ho doplnili."
484
+
485
+ #: ../includes/class-admin.php:767
486
+ msgid "Take the survey now"
487
+ msgstr "Zúčastnite sa prieskumu"
488
+
489
+ #: ../includes/class-list-table.php:49
490
+ msgid "Snippets per page"
491
+ msgstr "Počet snippetov na stránke"
492
+
493
+ #: ../includes/class-list-table.php:141 ../includes/class-list-table.php:265
494
+ msgid "Network Deactivate"
495
+ msgstr "Sieť deaktivovaná"
496
+
497
+ #: ../includes/class-list-table.php:141 ../includes/class-list-table.php:265
498
+ msgid "Deactivate"
499
+ msgstr "Deaktivovať"
500
+
501
+ #: ../includes/class-list-table.php:150 ../includes/class-list-table.php:264
502
+ msgid "Network Activate"
503
+ msgstr "Sieť aktivovaná"
504
+
505
+ #: ../includes/class-list-table.php:150 ../includes/class-list-table.php:264
506
+ msgid "Activate"
507
+ msgstr "Aktivovať"
508
+
509
+ #: ../includes/class-list-table.php:182
510
+ msgid ""
511
+ "You are about to permanently delete the selected item.\n"
512
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
513
+ msgstr ""
514
+ "Chcete navždy zmazať túto položku. \n"
515
+ "\t\t\t\t'Cancel' pre zrušenie, 'OK' úre zmazanie."
516
+
517
+ #: ../includes/class-list-table.php:190
518
+ #, php-format
519
+ msgid "Untitled #%d"
520
+ msgstr "Bez názvu #%d"
521
+
522
+ #: ../includes/class-list-table.php:226
523
+ msgid "Name"
524
+ msgstr "Názov"
525
+
526
+ #: ../includes/class-list-table.php:227
527
+ msgid "ID"
528
+ msgstr "ID"
529
+
530
+ #: ../includes/class-list-table.php:268
531
+ msgid "Export to PHP"
532
+ msgstr "Export do PHP"
533
+
534
+ #: ../includes/class-list-table.php:342
535
+ msgid "Filter"
536
+ msgstr "Filter"
537
+
538
+ #: ../includes/class-list-table.php:350
539
+ msgid "Clear List"
540
+ msgstr "Vyčistiť zoznam"
541
+
542
+ #: ../includes/class-list-table.php:492
543
+ #, php-format
544
+ msgid ""
545
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
546
+ "\">Add New&rarr;</a>"
547
+ msgstr ""
548
+ "Momentálne nemáte k dispozícii žiadne snippety. <a href=\"%s\">Pridať nový "
549
+ "&rarr;</a>"
550
+
551
+ #: ../includes/class-list-table.php:676
552
+ msgid "Search results"
553
+ msgstr "Výsledky hľadania"
554
+
555
+ #: ../includes/class-list-table.php:679
556
+ #, php-format
557
+ msgid " for &#8220;%s&#8221;"
558
+ msgstr "pre &#8220;%s&#8221;"
559
+
560
+ #: ../includes/class-list-table.php:685
561
+ msgid "Clear Filters"
562
+ msgstr "Vyčistiť filtre"
563
+
564
+ #~ msgid "Manage Snippets"
565
+ #~ msgstr "Spravovať snippety"
566
+
567
+ #~ msgid "Sorry, you&#8217;re not allowed to edit snippets"
568
+ #~ msgstr "Prepáčte, ale nemáte oprávnenie na úpravu snippetov"
569
+
570
+ #~ msgid "Please provide a name for the snippet and its code."
571
+ #~ msgstr "Prosím, uveďte názov snippetu a vložte jeho kód."
572
+
573
+ #~ msgid ""
574
+ #~ "Enter or paste the snippet code without the <code>&lt;?php</code> and "
575
+ #~ "<code>?&gt;</code> tags."
576
+ #~ msgstr ""
577
+ #~ "Napíšte alebo skopírujte kód snippetu bez značiek <code>&lt;?php</code> a "
578
+ #~ "<code>?&gt;</code>."
579
+
580
+ #~ msgid "(Optional)"
581
+ #~ msgstr "(voliteľné)"
582
+
583
+ #~ msgid "Save"
584
+ #~ msgstr "Uložiť"
585
+
586
+ #~ msgid "Cancel"
587
+ #~ msgstr "Zrušiť"
588
+
589
+ #~ msgid ""
590
+ #~ "Make sure that you don't add the <code>&lt;?php</code>, <code>&lt;?</"
591
+ #~ "code> or <code>?&gt;</code> the beginning and end of the code. You can "
592
+ #~ "however use these tags in the code to stop and start PHP sections"
593
+ #~ msgstr ""
594
+ #~ "Uistite sa, že ste nevložili <code>&lt;?php</code>, <code>&lt;?</code> "
595
+ #~ "alebo <code>?&gt;</code> v priebehu alebo na konci kódu. Tieto značky "
596
+ #~ "však môžete použiť pre zastavenie alebo spustenie úsekov PHP."
trunk/languages/code-snippets-sr_RS.mo ADDED
Binary file
trunk/languages/code-snippets-sr_RS.po ADDED
@@ -0,0 +1,571 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "PO-Revision-Date: 2014-08-11 10:18+0100\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
9
+ "X-Generator: Poedit 1.5.5\n"
10
+ "Project-Id-Version: Code Snippets\n"
11
+ "POT-Creation-Date: \n"
12
+ "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
13
+ "Language-Team: \n"
14
+
15
+ #: code-snippets.php:0 code-snippets.php:262
16
+ msgid "Code Snippets"
17
+ msgstr "Code Snippets"
18
+
19
+ #: code-snippets.php:0
20
+ msgid ""
21
+ "An easy, clean and simple way to add code snippets to your site. No need to "
22
+ "edit to your theme's functions.php file again!"
23
+ msgstr ""
24
+ "Lak, jednostavan i jasan način da svom sajtu dodate dodate isečke koda! Nema "
25
+ "potrebe da ponovo uređujete .php datoteku sa funkcijama teme! "
26
+
27
+ #: code-snippets.php:0
28
+ msgid "Shea Bunge"
29
+ msgstr "Shea Bunge"
30
+
31
+ #: code-snippets.php:0
32
+ msgid "http://bungeshea.com"
33
+ msgstr "http://bungeshea.com"
34
+
35
+ #: code-snippets.php:577 code-snippets.php:578 code-snippets.php:588
36
+ #: includes/admin/manage.php:36
37
+ msgid "Snippets"
38
+ msgstr "Isečci"
39
+
40
+ #: code-snippets.php:612 code-snippets.php:1145 includes/admin/single.php:45
41
+ msgid "Add New Snippet"
42
+ msgstr "Dodaj novi isečak"
43
+
44
+ #: code-snippets.php:613
45
+ msgid "Add New"
46
+ msgstr "Dodaj novi"
47
+
48
+ #: code-snippets.php:641 includes/admin/import.php:34
49
+ msgid "Import Snippets"
50
+ msgstr "Uvezi isečke"
51
+
52
+ #: code-snippets.php:642
53
+ msgid "Import"
54
+ msgstr "Uvezi"
55
+
56
+ #: code-snippets.php:601 code-snippets.php:1146 includes/admin/single.php:37
57
+ msgid "Edit Snippet"
58
+ msgstr "Uredi isečak"
59
+
60
+ #: code-snippets.php:1465
61
+ msgid "Manage your existing snippets"
62
+ msgstr "Upravljaj svojim postojećim isečcima"
63
+
64
+ #: code-snippets.php:589 code-snippets.php:1466
65
+ msgid "Manage"
66
+ msgstr "Upravljaj"
67
+
68
+ #: code-snippets.php:1486
69
+ msgid "Visit the WordPress.org plugin page"
70
+ msgstr "Posetite stranicu WordPress.org plugin"
71
+
72
+ #: code-snippets.php:1487
73
+ msgid "About"
74
+ msgstr "O"
75
+
76
+ #: code-snippets.php:1491
77
+ msgid "Visit the support forums"
78
+ msgstr "Posetite forume za podršku"
79
+
80
+ #: code-snippets.php:1492
81
+ msgid "Support"
82
+ msgstr "Podrška"
83
+
84
+ #: code-snippets.php:1496
85
+ msgid "Support this plugin's development"
86
+ msgstr "Podržite razvoj ovog plugin-a"
87
+
88
+ #: code-snippets.php:1497
89
+ msgid "Donate"
90
+ msgstr "Donirajte"
91
+
92
+ #: includes/admin/import.php:38
93
+ msgid ""
94
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
95
+ "snippets to this site."
96
+ msgstr ""
97
+ "Ćao! Otpremite svoju izvoznu datoteku sa isečcima koda, a mi&#8217 ćemo "
98
+ "uvesti isečke na sajt."
99
+
100
+ #: includes/admin/import.php:40
101
+ msgid ""
102
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
103
+ "activate the imported snippets."
104
+ msgstr ""
105
+ "Da biste aktivirali uvezene isečke, idite na stranicu: <a href=\"%s\">Manage "
106
+ "Snippets</a>. "
107
+
108
+ #: includes/admin/import.php:42
109
+ msgid ""
110
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
111
+ "import."
112
+ msgstr ""
113
+ "Izaberite (.xml) datoteku sa isečcima koda za otpremanje, a zatim kliknite "
114
+ "na Otpremi datoteku i Uvezi."
115
+
116
+ #: includes/admin/import.php:46
117
+ msgid "Choose a file from your computer:"
118
+ msgstr "Izaberite datoteku sa svog kompjutera:"
119
+
120
+ #: includes/admin/import.php:46
121
+ msgid "(Maximum size: 8MB)"
122
+ msgstr "(Maksimalna veličina: 8MB)"
123
+
124
+ #: includes/admin/import.php:55
125
+ msgid "Upload file and import"
126
+ msgstr "Otpremi datoteku i uvezi"
127
+
128
+ #: includes/admin/manage.php:21
129
+ msgid "Snippet <strong>activated</strong>."
130
+ msgstr "Isečak <strong>aktiviran</strong>."
131
+
132
+ #: includes/admin/manage.php:23
133
+ msgid "Selected snippets <strong>activated</strong>."
134
+ msgstr "Odabrani isečci <strong>aktivirani</strong>."
135
+
136
+ #: includes/admin/manage.php:25
137
+ msgid "Snippet <strong>deactivated</strong>."
138
+ msgstr "Isečak <strong>deaktiviran</strong>."
139
+
140
+ #: includes/admin/manage.php:27
141
+ msgid "Selected snippets <strong>deactivated</strong>."
142
+ msgstr "Odabrani isečci <strong>deaktivirani</strong>."
143
+
144
+ #: includes/admin/manage.php:29
145
+ msgid "Snippet <strong>deleted</strong>."
146
+ msgstr "Isečak <strong>obrisan</strong>."
147
+
148
+ #: includes/admin/manage.php:31
149
+ msgid "Selected snippets <strong>deleted</strong>."
150
+ msgstr "Odabrani isečci <strong>obrisani</strong>."
151
+
152
+ #: includes/admin/manage.php:38 includes/admin/single.php:42
153
+ msgctxt "snippet"
154
+ msgid "Add New"
155
+ msgstr "Dodaj novi"
156
+
157
+ #: includes/admin/manage.php:47
158
+ msgid "Search Installed Snippets"
159
+ msgstr "Pretraži instalirane isečke"
160
+
161
+ #: includes/admin/single.php:22
162
+ msgid "Please provide a name for the snippet and its code."
163
+ msgstr "Unesite naziv isečka i njegov kod."
164
+
165
+ #: includes/admin/single.php:28
166
+ msgid "Snippet <strong>updated</strong>."
167
+ msgstr "Isečak <strong>ažuriran</strong>."
168
+
169
+ #: includes/admin/single.php:30
170
+ msgid "Snippet <strong>added</strong>."
171
+ msgstr "Isećak <strong>dodat</strong>."
172
+
173
+ #: includes/admin/single.php:55 includes/admin/single.php:56
174
+ msgid "Name (short title)"
175
+ msgstr "Naziv (kratak naslov)"
176
+
177
+ #: includes/admin/single.php:61
178
+ msgid "Code"
179
+ msgstr "Kod"
180
+
181
+ #: code-snippets.php:1433 includes/class-list-table.php:189
182
+ msgid "Description"
183
+ msgstr "Opsi"
184
+
185
+ #: code-snippets.php:1434
186
+ msgid "(Optional)"
187
+ msgstr "(Opcioni)"
188
+
189
+ #: includes/class-list-table.php:36
190
+ msgid "Snippets per page"
191
+ msgstr "Isečci po stranici"
192
+
193
+ #: code-snippets.php:1118 includes/class-list-table.php:127
194
+ #: includes/class-list-table.php:213
195
+ msgid "Network Deactivate"
196
+ msgstr "Deaktiviraj mrežu"
197
+
198
+ #: code-snippets.php:1118 includes/class-list-table.php:127
199
+ #: includes/class-list-table.php:213
200
+ msgid "Deactivate"
201
+ msgstr "Deaktiviraj"
202
+
203
+ #: code-snippets.php:1127 includes/class-list-table.php:137
204
+ #: includes/class-list-table.php:212
205
+ msgid "Network Activate"
206
+ msgstr "Aktiviraj mrežu"
207
+
208
+ #: code-snippets.php:1127 includes/class-list-table.php:137
209
+ #: includes/class-list-table.php:212
210
+ msgid "Activate"
211
+ msgstr "Aktiviraj"
212
+
213
+ #: includes/class-list-table.php:187
214
+ msgid "Name"
215
+ msgstr "Naziv"
216
+
217
+ #: includes/class-list-table.php:188
218
+ msgid "ID"
219
+ msgstr "ID"
220
+
221
+ #: includes/class-list-table.php:147 includes/class-list-table.php:214
222
+ msgid "Export"
223
+ msgstr "Izvezi"
224
+
225
+ #: includes/class-list-table.php:155 includes/class-list-table.php:215
226
+ msgid "Delete"
227
+ msgstr "Obriši"
228
+
229
+ #: includes/class-list-table.php:216
230
+ msgid "Export to PHP"
231
+ msgstr "Izvezi u PHP"
232
+
233
+ #: includes/class-list-table.php:236
234
+ msgid "All <span class=\"count\">(%s)</span>"
235
+ msgid_plural "All <span class=\"count\">(%s)</span>"
236
+ msgstr[0] ""
237
+ msgstr[1] ""
238
+
239
+ #: includes/class-list-table.php:239
240
+ msgid "Active <span class=\"count\">(%s)</span>"
241
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
242
+ msgstr[0] ""
243
+ msgstr[1] ""
244
+
245
+ #: includes/class-list-table.php:242
246
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
247
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
248
+ msgstr[0] ""
249
+ msgstr[1] ""
250
+
251
+ #: includes/class-list-table.php:245
252
+ msgid "Inactive <span class=\"count\">(%s)</span>"
253
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
254
+ msgstr[0] ""
255
+ msgstr[1] ""
256
+
257
+ #: includes/class-list-table.php:279
258
+ msgid "Clear List"
259
+ msgstr "Obriši listu"
260
+
261
+ #: includes/class-list-table.php:374
262
+ msgid ""
263
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
264
+ "\">Add New&rarr;</a>"
265
+ msgstr ""
266
+ "Čini se da trenutno nemate raspoložive isečke. <a href=\"%s\">Add New&rarr;"
267
+ "</a>"
268
+
269
+ #: includes/help/import.php:5 includes/help/manage.php:5
270
+ #: includes/help/single.php:5
271
+ msgid "Overview"
272
+ msgstr "Pregled"
273
+
274
+ #: includes/help/import.php:7
275
+ msgid ""
276
+ "Snippets are similar to plugins - they both extend and expand the "
277
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
278
+ "of code, and do not put as much load on your server. Here you can load "
279
+ "snippets from a Code Snippets (.xml) import file into the database with your "
280
+ "existing snippets."
281
+ msgstr ""
282
+ "Isečci liče na plugin-ove - i jedni i drugi proširuju funkcije WordPress-a. "
283
+ "Isečci su lakši - sadrže samo nekoliko linija koda i ne opterećuju server. "
284
+ "Ovde možete učitati isečke iz Code Snippets (.xml) datoteke za uvoz u bazu "
285
+ "podataka sa svojim postojećim isečcima."
286
+
287
+ #: includes/help/import.php:12
288
+ msgid "Importing"
289
+ msgstr "Uvoz u toku..."
290
+
291
+ #: includes/help/import.php:15
292
+ msgid ""
293
+ "Snippets will be added to the database along with your existing snippets. "
294
+ "Regardless of whether the snippets were active on the previous site, "
295
+ "imported snippets are always inactive until activated using the <a href=\"%s"
296
+ "\">Manage Snippets</a> page.</p>"
297
+ msgstr ""
298
+ "Isečci će biti dodati bazi podataka zajedno s vašim postojećim isečcima. Bez "
299
+ "obzira na to da li su isečci bili aktivni na prethodnom sajtu, uvezeni "
300
+ "isečci uvek su neaktivni sve dok se ne aktiviraju uz pomoć stranice: <a href="
301
+ "\"%s\">Manage Snippets</a>."
302
+
303
+ #: includes/help/import.php:20
304
+ msgid "Exporting"
305
+ msgstr "Izvoz u toku..."
306
+
307
+ #: includes/help/import.php:22
308
+ msgid ""
309
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
310
+ "<a href=\"%s\">Manage Snippets</a> page."
311
+ msgstr ""
312
+ "Možete sačuvati svoje isečke u Code Snippets (.xml) datoteci sa isečcima uz "
313
+ "pomoć stranice <a href=\"%s\">Manage Snippets</a>."
314
+
315
+ #: includes/help/import.php:26 includes/help/manage.php:27
316
+ #: includes/help/single.php:31
317
+ msgid "For more information:"
318
+ msgstr "Za više informacija:"
319
+
320
+ #: includes/help/import.php:27 includes/help/single.php:32
321
+ msgid ""
322
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
323
+ "\">WordPress Extend</a>"
324
+ msgstr ""
325
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
326
+ "\">WordPress Extend</a>"
327
+
328
+ #: includes/help/import.php:28 includes/help/manage.php:29
329
+ #: includes/help/single.php:33
330
+ msgid ""
331
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
332
+ "\">Support Forums</a>"
333
+ msgstr ""
334
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
335
+ "\">Support Forums</a>"
336
+
337
+ #: includes/help/manage.php:7
338
+ msgid ""
339
+ "Snippets are similar to plugins - they both extend and expand the "
340
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
341
+ "of code, and do not put as much load on your server. Here you can manage "
342
+ "your existing snippets and perform tasks on them such as activating, "
343
+ "deactivating, deleting and exporting."
344
+ msgstr ""
345
+ "Isečci liče na plugin-ove - i jedni i drugi proširuju funkcije WordPress-a. "
346
+ "Isečci su lakši - sadrže samo nekoliko linija koda i ne opterećuju server. "
347
+ "Ovde možete upravljati svojim postojećim isečcima i izvoditi operacije na "
348
+ "njima, kao što su: aktiviranje, deaktiviranje, brisanje i izvoz."
349
+
350
+ #: includes/help/manage.php:12
351
+ msgid "Safe Mode"
352
+ msgstr "Bezbedan režim"
353
+
354
+ #: includes/help/manage.php:14
355
+ msgid ""
356
+ "Be sure to check your snippets for errors before you activate them, as a "
357
+ "faulty snippet could bring your whole blog down. If your site starts doing "
358
+ "strange things, deactivate all your snippets and activate them one at a time."
359
+ msgstr ""
360
+ "Proverite da li u vašim isečcima ima grešaka pre nego što ih aktivirate jer "
361
+ "isečak sa greškom može da vam sruši ceo blog. Ako vam se sajt čudno ponaša, "
362
+ "deaktivirajte sve isečke i aktivirajte jedan po jedan."
363
+
364
+ #: includes/help/manage.php:20
365
+ msgid "Uninstall"
366
+ msgstr "Deinstaliraj"
367
+
368
+ #: includes/help/manage.php:22
369
+ msgid ""
370
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
371
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
372
+ "the database. If you want to keep this data (ie: you are only temporally "
373
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
374
+ "FTP."
375
+ msgstr ""
376
+ "Kad brišete isečke koda kroz Plugins meni u WordPress-u, obrisaće vam se "
377
+ "<code>%1$s</code> tabela i još nekoliko bitova podataka sačuvanih u bazi "
378
+ "podataka. Ako želite da zadržite ove podatke (tj. ako samo privremeno "
379
+ "deinstalirate Code Snippets), uklonite <code>%2$s</code> folder koristeći "
380
+ "FTP."
381
+
382
+ #: includes/help/manage.php:23
383
+ msgid ""
384
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
385
+ "this WordPress installation, you may want to use the export feature to back "
386
+ "up your snippets."
387
+ msgstr ""
388
+ "Čak i ako ste sigurni kako nikad više nećete poželeti da koristite Code "
389
+ "Snippets na ovoj WordPress instalaciji, možda ćete hteti da koristite "
390
+ "funkciju izvoza da biste obezbedili podršku za svoje isečke. "
391
+
392
+ #: includes/help/manage.php:28
393
+ msgid ""
394
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
395
+ "\">WordPress Extend</a></p>"
396
+ msgstr ""
397
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
398
+ "\">WordPress Extend</a></p>"
399
+
400
+ #: includes/help/single.php:7
401
+ msgid ""
402
+ "Snippets are similar to plugins - they both extend and expand the "
403
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
404
+ "of code, and do not put as much load on your server. Here you can add a new "
405
+ "snippet, or edit an existing one."
406
+ msgstr ""
407
+ "Isečci liče na plugin-ove - i jedni i drugi proširuju funkcije WordPress-a. "
408
+ "Isečci su lakši - sadrže samo nekoliko linija koda i ne opterećuju server. "
409
+ "Ovde možete dodati novi isečak ili urediti postojeći."
410
+
411
+ #: includes/help/single.php:11
412
+ msgid "Finding Snippets"
413
+ msgstr "Pretraživanje isečaka"
414
+
415
+ #: includes/help/single.php:13
416
+ msgid ""
417
+ "Here are some links to websites which host a large number of snippets that "
418
+ "you can add to your site.\n"
419
+ "\t\t<ul>\n"
420
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
421
+ "Snippets</a></li>\n"
422
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
423
+ "li>\n"
424
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
425
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
426
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
427
+ "\t\t</ul>"
428
+ msgstr ""
429
+ "Navedeni su linkovi za web sajtove sa velikim brojem isečaka koje možete "
430
+ "dodati svom sajtu: .\n"
431
+ "\t\t<ul>\n"
432
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
433
+ "Snippets</a></li>\n"
434
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
435
+ "li>\n"
436
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
437
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
438
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
439
+ "\t\t</ul>"
440
+
441
+ #: includes/help/single.php:24
442
+ msgid "Adding Snippets"
443
+ msgstr "Dodavanje isečaka"
444
+
445
+ #: includes/help/single.php:26
446
+ msgid ""
447
+ "You need to fill out the name and code fields for your snippet to be added. "
448
+ "While the description field will add more information about how your snippet "
449
+ "works, what is does and where you found it, it is completely optional."
450
+ msgstr ""
451
+ "Morate popuniti polja sa nazivom i kodom za isečak koji želite da dodate. "
452
+ "Iako opisno polje sadrži više podataka o tome kako vaš isečak funkcioniše, "
453
+ "šta radi i gde ga možete naći, potpuno je proizvoljno."
454
+
455
+ #: includes/help/single.php:27
456
+ msgid ""
457
+ "Please be sure to check that your snippet is valid PHP code and will not "
458
+ "produce errors before adding it through this page. While doing so will not "
459
+ "become active straight away, it will help to minimise the chance of a faulty "
460
+ "snippet becoming active on your site."
461
+ msgstr ""
462
+ "Proverite da li vam je isečak važeći PHP kod i uverite se da neće praviti "
463
+ "greške pre nego što ga dodate putem ove stranice. Dok to radite, neće odmah "
464
+ "postati aktivan; pomoći će vam da smanjite na minimum šanse da se na vašem "
465
+ "sajtu aktivira isečak sa greškom. "
466
+
467
+ #: code-snippets.php:0
468
+ msgid "http://bungeshea.com/plugins/code-snippets"
469
+ msgstr "http://bungeshea.com/plugins/code-snippets"
470
+
471
+ #: code-snippets.php:263
472
+ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
473
+ msgstr "Uvezi isečke iz <strong>Code Snippets</strong> datoteke za izvoz."
474
+
475
+ #: includes/admin/import.php:20
476
+ msgid "Imported <strong>%d</strong> snippet."
477
+ msgid_plural "Imported <strong>%d</strong> snippets."
478
+ msgstr[0] ""
479
+ msgstr[1] ""
480
+
481
+ #: includes/help/import.php:29 includes/help/manage.php:30
482
+ #: includes/help/single.php:34
483
+ msgid ""
484
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
485
+ "Website</a>"
486
+ msgstr ""
487
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
488
+ "Website</a>"
489
+
490
+ #: includes/help/manage.php:15
491
+ msgid ""
492
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
493
+ "cause all snippets to stop executing by adding <code>define"
494
+ "('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-config.php</code> "
495
+ "file. After you have deactivated the offending snippet, you can turn off "
496
+ "safe mode by removing this line or replacing <strong>true</strong> with "
497
+ "<strong>false</strong>."
498
+ msgstr ""
499
+ "Ako se nešto u vezi sa isečkom pokvari i ne možete da koristite WordPress, "
500
+ "možete deaktivirati sve isečke tako što ćete uneti: <code>define"
501
+ "('CODE_SNIPPETS_SAFE_MODE', true);</code> u svoju <code>wp-config.php</code> "
502
+ "datoteku. Kad deaktivirate pogrešan isečak, možete isključiti bezbedan režim "
503
+ "tako što ćete ukloniti ovu liniju ili zameniti <strong>true</strong> sa "
504
+ "<strong>false</strong>."
505
+
506
+ #: includes/help/single.php:20
507
+ msgid ""
508
+ "More places to find snippets, as well as a selection of example snippets, "
509
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/"
510
+ "Finding-snippets\">plugin documentation</a>"
511
+ msgstr ""
512
+ "Više mesta za pronalaženje isečaka, kao i odabrane primere isečaka, možete "
513
+ "naći na: <a href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets"
514
+ "\">plugin documentation</a>"
515
+
516
+ #: code-snippets.php:0
517
+ msgid "1.7"
518
+ msgstr "1.7"
519
+
520
+ #: code-snippets.php:602 includes/class-list-table.php:142
521
+ msgid "Edit"
522
+ msgstr "Uredi"
523
+
524
+ #: code-snippets.php:1227
525
+ msgid "Sorry, you're not allowed to edit snippets"
526
+ msgstr "Žao nam je, nije vam dozvoljeno da uređujete isečke."
527
+
528
+ #: includes/admin/single.php:24
529
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
530
+ msgstr "Isečak <strong>ažuriran</strong> i <strong>aktiviran</strong>."
531
+
532
+ #: includes/admin/single.php:26
533
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
534
+ msgstr "Isečak <strong>dodat </strong> i <strong>aktiviran</strong>."
535
+
536
+ #: includes/class-list-table.php:163
537
+ msgid ""
538
+ "You are about to permanently delete the selected item.\n"
539
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
540
+ msgstr ""
541
+ "Spremate se da trajno obrišete odabranu jedinicu. \n"
542
+ "\t\t\t\t Kliknite na 'Poništi' da biste otkazali ili na 'OK' da biste "
543
+ "obrisali. "
544
+
545
+ #: includes/class-list-table.php:270
546
+ msgid "Filter"
547
+ msgstr "Filter"
548
+
549
+ #: includes/class-list-table.php:541
550
+ msgid "Search results"
551
+ msgstr "Rezultati pretrage"
552
+
553
+ #: includes/class-list-table.php:544
554
+ msgid " for &#8220;%s&#8221;"
555
+ msgstr "za &#8220;%s&#8221;"
556
+
557
+ #: includes/class-list-table.php:550
558
+ msgid "Clear Filters"
559
+ msgstr "Obriši filtere"
560
+
561
+ #: includes/help/import.php:14
562
+ msgid ""
563
+ "You can load your snippets from a code snippets (.xml) export file using "
564
+ "this page."
565
+ msgstr ""
566
+ "Možete otpremiti svoje isečke iz code snippets (.xml) datoteke za izvoz uz "
567
+ "pomoć sledeće stranice. "
568
+
569
+ #: includes/admin/single.php:74
570
+ msgid "Save Changes &amp; Activate"
571
+ msgstr "Sačuvaj izmene &amp; Aktiviraj "
trunk/languages/code-snippets-zh_CN.mo ADDED
Binary file
trunk/languages/code-snippets-zh_CN.po ADDED
@@ -0,0 +1,517 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "PO-Revision-Date: 2014-09-06 15:42+0800\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
9
+ "X-Generator: Poedit 1.6.9\n"
10
+ "Project-Id-Version: Code Snippets\n"
11
+ "POT-Creation-Date: \n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: Jincheng Shan <hi@shanjincheng.com>\n"
14
+ "Language: zh_Hans_CN\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+
17
+ #: code-snippets.php:0 code-snippets.php:262
18
+ msgid "Code Snippets"
19
+ msgstr "Code Snippets"
20
+
21
+ #: code-snippets.php:0
22
+ msgid ""
23
+ "An easy, clean and simple way to add code snippets to your site. No need to "
24
+ "edit to your theme's functions.php file again!"
25
+ msgstr ""
26
+ "以简单、简洁、简约的方式添加代码片段到您的站点。再也没有必要去编辑主题的 "
27
+ "functions.php 文件!"
28
+
29
+ #: code-snippets.php:0
30
+ msgid "Shea Bunge"
31
+ msgstr "Shea Bunge"
32
+
33
+ #: code-snippets.php:0
34
+ msgid "http://bungeshea.com"
35
+ msgstr "http://bungeshea.com"
36
+
37
+ #: code-snippets.php:577 code-snippets.php:578 code-snippets.php:588
38
+ #: includes/admin/manage.php:36
39
+ msgid "Snippets"
40
+ msgstr "片段"
41
+
42
+ #: code-snippets.php:612 code-snippets.php:1145 includes/admin/single.php:45
43
+ msgid "Add New Snippet"
44
+ msgstr "添加片段"
45
+
46
+ #: code-snippets.php:613
47
+ msgid "Add New"
48
+ msgstr "添加"
49
+
50
+ #: code-snippets.php:641 includes/admin/import.php:34
51
+ msgid "Import Snippets"
52
+ msgstr "导入片段"
53
+
54
+ #: code-snippets.php:642
55
+ msgid "Import"
56
+ msgstr "导入"
57
+
58
+ #: code-snippets.php:601 code-snippets.php:1146 includes/admin/single.php:37
59
+ msgid "Edit Snippet"
60
+ msgstr "编辑片段"
61
+
62
+ #: code-snippets.php:1465
63
+ msgid "Manage your existing snippets"
64
+ msgstr "管理现有片段"
65
+
66
+ #: code-snippets.php:589 code-snippets.php:1466
67
+ msgid "Manage"
68
+ msgstr "管理"
69
+
70
+ #: code-snippets.php:1486
71
+ msgid "Visit the WordPress.org plugin page"
72
+ msgstr "访问往于 WordPress.org 的插件页面"
73
+
74
+ #: code-snippets.php:1487
75
+ msgid "About"
76
+ msgstr "关于"
77
+
78
+ #: code-snippets.php:1491
79
+ msgid "Visit the support forums"
80
+ msgstr "访问帮助论坛"
81
+
82
+ #: code-snippets.php:1492
83
+ msgid "Support"
84
+ msgstr "支持"
85
+
86
+ #: code-snippets.php:1496
87
+ msgid "Support this plugin's development"
88
+ msgstr "帮助此插件的开发"
89
+
90
+ #: code-snippets.php:1497
91
+ msgid "Donate"
92
+ msgstr "捐助"
93
+
94
+ #: includes/admin/import.php:38
95
+ msgid ""
96
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
97
+ "snippets to this site."
98
+ msgstr "您好!请上传你的 Code Snippets 导出文件,我们会导入片段到此站点。"
99
+
100
+ #: includes/admin/import.php:40
101
+ msgid ""
102
+ "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to "
103
+ "activate the imported snippets."
104
+ msgstr "您需要访问 <a href=\"%s\">管理片段</a> 页面来激活导入的片段。"
105
+
106
+ #: includes/admin/import.php:42
107
+ msgid ""
108
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
109
+ "import."
110
+ msgstr "选择一个 Code Snippets 导出文件(.xml)上传,并点击上传文件来导入。"
111
+
112
+ #: includes/admin/import.php:46
113
+ msgid "Choose a file from your computer:"
114
+ msgstr "选择一个您电脑上的文件:"
115
+
116
+ #: includes/admin/import.php:46
117
+ msgid "(Maximum size: 8MB)"
118
+ msgstr "(最大上传文件大小:8 MB)"
119
+
120
+ #: includes/admin/import.php:55
121
+ msgid "Upload file and import"
122
+ msgstr "上传文件并导入"
123
+
124
+ #: includes/admin/manage.php:21
125
+ msgid "Snippet <strong>activated</strong>."
126
+ msgstr "片段 <strong>已激活</strong>。"
127
+
128
+ #: includes/admin/manage.php:23
129
+ msgid "Selected snippets <strong>activated</strong>."
130
+ msgstr "选择的片段 <strong>已激活</strong>。"
131
+
132
+ #: includes/admin/manage.php:25
133
+ msgid "Snippet <strong>deactivated</strong>."
134
+ msgstr "片段 <strong>已禁用</strong>。"
135
+
136
+ #: includes/admin/manage.php:27
137
+ msgid "Selected snippets <strong>deactivated</strong>."
138
+ msgstr "选择的片段 <strong>已禁用</strong>。"
139
+
140
+ #: includes/admin/manage.php:29
141
+ msgid "Snippet <strong>deleted</strong>."
142
+ msgstr "片段 <strong>已删除</strong>。"
143
+
144
+ #: includes/admin/manage.php:31
145
+ msgid "Selected snippets <strong>deleted</strong>."
146
+ msgstr "选择的片段 <strong>已删除</strong>。"
147
+
148
+ #: includes/admin/manage.php:38 includes/admin/single.php:42
149
+ msgctxt "snippet"
150
+ msgid "Add New"
151
+ msgstr "添加片段"
152
+
153
+ #: includes/admin/manage.php:47
154
+ msgid "Search Installed Snippets"
155
+ msgstr "搜索已安装的片段"
156
+
157
+ #: includes/admin/single.php:22
158
+ msgid "Please provide a name for the snippet and its code."
159
+ msgstr "请为片段命名。"
160
+
161
+ #: includes/admin/single.php:28
162
+ msgid "Snippet <strong>updated</strong>."
163
+ msgstr "片段 <strong>已上传</strong>。"
164
+
165
+ #: includes/admin/single.php:30
166
+ msgid "Snippet <strong>added</strong>."
167
+ msgstr "片段 <strong>已添加</strong>。"
168
+
169
+ #: includes/admin/single.php:55 includes/admin/single.php:56
170
+ msgid "Name (short title)"
171
+ msgstr "名称(简称)"
172
+
173
+ #: includes/admin/single.php:61
174
+ msgid "Code"
175
+ msgstr "代码"
176
+
177
+ #: code-snippets.php:1433 includes/class-list-table.php:189
178
+ msgid "Description"
179
+ msgstr "简介"
180
+
181
+ #: code-snippets.php:1434
182
+ msgid "(Optional)"
183
+ msgstr "(可选)"
184
+
185
+ #: includes/class-list-table.php:36
186
+ msgid "Snippets per page"
187
+ msgstr "每页显示的片段数"
188
+
189
+ #: code-snippets.php:1118 includes/class-list-table.php:127
190
+ #: includes/class-list-table.php:213
191
+ msgid "Network Deactivate"
192
+ msgstr "网络禁用"
193
+
194
+ #: code-snippets.php:1118 includes/class-list-table.php:127
195
+ #: includes/class-list-table.php:213
196
+ msgid "Deactivate"
197
+ msgstr "禁用"
198
+
199
+ #: code-snippets.php:1127 includes/class-list-table.php:137
200
+ #: includes/class-list-table.php:212
201
+ msgid "Network Activate"
202
+ msgstr "网络启用"
203
+
204
+ #: code-snippets.php:1127 includes/class-list-table.php:137
205
+ #: includes/class-list-table.php:212
206
+ msgid "Activate"
207
+ msgstr "启用"
208
+
209
+ #: includes/class-list-table.php:187
210
+ msgid "Name"
211
+ msgstr "名称"
212
+
213
+ #: includes/class-list-table.php:188
214
+ msgid "ID"
215
+ msgstr "ID"
216
+
217
+ #: includes/class-list-table.php:147 includes/class-list-table.php:214
218
+ msgid "Export"
219
+ msgstr "导出"
220
+
221
+ #: includes/class-list-table.php:155 includes/class-list-table.php:215
222
+ msgid "Delete"
223
+ msgstr "删除"
224
+
225
+ #: includes/class-list-table.php:216
226
+ msgid "Export to PHP"
227
+ msgstr "导出到 PHP"
228
+
229
+ #: includes/class-list-table.php:236
230
+ msgid "All <span class=\"count\">(%s)</span>"
231
+ msgid_plural "All <span class=\"count\">(%s)</span>"
232
+ msgstr[0] "所有<span class=\"count\">(%s)</span>"
233
+ msgstr[1] "所有<span class=\"count\">(%s)</span>"
234
+
235
+ #: includes/class-list-table.php:239
236
+ msgid "Active <span class=\"count\">(%s)</span>"
237
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
238
+ msgstr[0] "启用<span class=\"count\">(%s)</span>"
239
+ msgstr[1] "启用<span class=\"count\">(%s)</span>"
240
+
241
+ #: includes/class-list-table.php:242
242
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
243
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
244
+ msgstr[0] "最近启用<span class=\"count\">(%s)</span>"
245
+ msgstr[1] "最近启用<span class=\"count\">(%s)</span>"
246
+
247
+ #: includes/class-list-table.php:245
248
+ msgid "Inactive <span class=\"count\">(%s)</span>"
249
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
250
+ msgstr[0] "禁用<span class=\"count\">(%s)</span>"
251
+ msgstr[1] "禁用<span class=\"count\">(%s)</span>"
252
+
253
+ #: includes/class-list-table.php:279
254
+ msgid "Clear List"
255
+ msgstr "清除列表"
256
+
257
+ #: includes/class-list-table.php:374
258
+ msgid ""
259
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
260
+ "\">Add New&rarr;</a>"
261
+ msgstr "目前还没有一个可用的代码片段。<a href=\"%s\">添加&rarr;</a>"
262
+
263
+ #: includes/help/import.php:5 includes/help/manage.php:5
264
+ #: includes/help/single.php:5
265
+ msgid "Overview"
266
+ msgstr "概述"
267
+
268
+ #: includes/help/import.php:7
269
+ msgid ""
270
+ "Snippets are similar to plugins - they both extend and expand the "
271
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
272
+ "of code, and do not put as much load on your server. Here you can load "
273
+ "snippets from a Code Snippets (.xml) import file into the database with your "
274
+ "existing snippets."
275
+ msgstr ""
276
+
277
+ #: includes/help/import.php:12
278
+ msgid "Importing"
279
+ msgstr "导入"
280
+
281
+ #: includes/help/import.php:15
282
+ msgid ""
283
+ "Snippets will be added to the database along with your existing snippets. "
284
+ "Regardless of whether the snippets were active on the previous site, "
285
+ "imported snippets are always inactive until activated using the <a href=\"%s"
286
+ "\">Manage Snippets</a> page.</p>"
287
+ msgstr ""
288
+
289
+ #: includes/help/import.php:20
290
+ msgid "Exporting"
291
+ msgstr "导出"
292
+
293
+ #: includes/help/import.php:22
294
+ msgid ""
295
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
296
+ "<a href=\"%s\">Manage Snippets</a> page."
297
+ msgstr ""
298
+
299
+ #: includes/help/import.php:26 includes/help/manage.php:27
300
+ #: includes/help/single.php:31
301
+ msgid "For more information:"
302
+ msgstr "更多信息:"
303
+
304
+ #: includes/help/import.php:27 includes/help/single.php:32
305
+ msgid ""
306
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
307
+ "\">WordPress Extend</a>"
308
+ msgstr ""
309
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
310
+ "\">WordPress 插件页面</a>"
311
+
312
+ #: includes/help/import.php:28 includes/help/manage.php:29
313
+ #: includes/help/single.php:33
314
+ msgid ""
315
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
316
+ "\">Support Forums</a>"
317
+ msgstr ""
318
+ "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank"
319
+ "\">帮助论坛</a>"
320
+
321
+ #: includes/help/manage.php:7
322
+ msgid ""
323
+ "Snippets are similar to plugins - they both extend and expand the "
324
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
325
+ "of code, and do not put as much load on your server. Here you can manage "
326
+ "your existing snippets and perform tasks on them such as activating, "
327
+ "deactivating, deleting and exporting."
328
+ msgstr ""
329
+
330
+ #: includes/help/manage.php:12
331
+ msgid "Safe Mode"
332
+ msgstr "安全模式"
333
+
334
+ #: includes/help/manage.php:14
335
+ msgid ""
336
+ "Be sure to check your snippets for errors before you activate them, as a "
337
+ "faulty snippet could bring your whole blog down. If your site starts doing "
338
+ "strange things, deactivate all your snippets and activate them one at a time."
339
+ msgstr ""
340
+
341
+ #: includes/help/manage.php:20
342
+ msgid "Uninstall"
343
+ msgstr "卸载"
344
+
345
+ #: includes/help/manage.php:22
346
+ msgid ""
347
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
348
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
349
+ "the database. If you want to keep this data (ie: you are only temporally "
350
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
351
+ "FTP."
352
+ msgstr ""
353
+
354
+ #: includes/help/manage.php:23
355
+ msgid ""
356
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
357
+ "this WordPress installation, you may want to use the export feature to back "
358
+ "up your snippets."
359
+ msgstr ""
360
+
361
+ #: includes/help/manage.php:28
362
+ msgid ""
363
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
364
+ "\">WordPress Extend</a></p>"
365
+ msgstr ""
366
+ "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank"
367
+ "\">WordPress 插件页面</a></p>"
368
+
369
+ #: includes/help/single.php:7
370
+ msgid ""
371
+ "Snippets are similar to plugins - they both extend and expand the "
372
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
373
+ "of code, and do not put as much load on your server. Here you can add a new "
374
+ "snippet, or edit an existing one."
375
+ msgstr ""
376
+
377
+ #: includes/help/single.php:11
378
+ msgid "Finding Snippets"
379
+ msgstr "寻找片段"
380
+
381
+ #: includes/help/single.php:13
382
+ msgid ""
383
+ "Here are some links to websites which host a large number of snippets that "
384
+ "you can add to your site.\n"
385
+ "\t\t<ul>\n"
386
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
387
+ "Snippets</a></li>\n"
388
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
389
+ "li>\n"
390
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
391
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
392
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
393
+ "\t\t</ul>"
394
+ msgstr ""
395
+ "您可以将这里有着数量巨大的代码片段的网站中的片段添加到您的站点。\n"
396
+ "\t\t<ul>\n"
397
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-"
398
+ "Snippets</a></li>\n"
399
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></"
400
+ "li>\n"
401
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats "
402
+ "Who Code Snippet Library\">Cats Who Code</a></li>\n"
403
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
404
+ "\t\t</ul>"
405
+
406
+ #: includes/help/single.php:24
407
+ msgid "Adding Snippets"
408
+ msgstr "添加片段"
409
+
410
+ #: includes/help/single.php:26
411
+ msgid ""
412
+ "You need to fill out the name and code fields for your snippet to be added. "
413
+ "While the description field will add more information about how your snippet "
414
+ "works, what is does and where you found it, it is completely optional."
415
+ msgstr ""
416
+
417
+ #: includes/help/single.php:27
418
+ msgid ""
419
+ "Please be sure to check that your snippet is valid PHP code and will not "
420
+ "produce errors before adding it through this page. While doing so will not "
421
+ "become active straight away, it will help to minimise the chance of a faulty "
422
+ "snippet becoming active on your site."
423
+ msgstr ""
424
+
425
+ #: code-snippets.php:0
426
+ msgid "http://bungeshea.com/plugins/code-snippets"
427
+ msgstr "http://bungeshea.com/plugins/code-snippets"
428
+
429
+ #: code-snippets.php:263
430
+ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
431
+ msgstr "上传来自于 <strong>Code Snippets</strong> 导出文件的代码片段。"
432
+
433
+ #: includes/admin/import.php:20
434
+ msgid "Imported <strong>%d</strong> snippet."
435
+ msgid_plural "Imported <strong>%d</strong> snippets."
436
+ msgstr[0] "已上传 <strong>%d</strong> 个片段。"
437
+ msgstr[1] "已上传 <strong>%d</strong> 个片段。"
438
+
439
+ #: includes/help/import.php:29 includes/help/manage.php:30
440
+ #: includes/help/single.php:34
441
+ msgid ""
442
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project "
443
+ "Website</a>"
444
+ msgstr ""
445
+ "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">项目站点</"
446
+ "a>"
447
+
448
+ #: includes/help/manage.php:15
449
+ msgid ""
450
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
451
+ "cause all snippets to stop executing by adding "
452
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
453
+ "config.php</code> file. After you have deactivated the offending snippet, "
454
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
455
+ "strong> with <strong>false</strong>."
456
+ msgstr ""
457
+
458
+ #: includes/help/single.php:20
459
+ msgid ""
460
+ "More places to find snippets, as well as a selection of example snippets, "
461
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/"
462
+ "Finding-snippets\">plugin documentation</a>"
463
+ msgstr ""
464
+
465
+ #: code-snippets.php:0
466
+ msgid "1.7"
467
+ msgstr "1.7"
468
+
469
+ #: code-snippets.php:602 includes/class-list-table.php:142
470
+ msgid "Edit"
471
+ msgstr "编辑"
472
+
473
+ #: code-snippets.php:1227
474
+ msgid "Sorry, you're not allowed to edit snippets"
475
+ msgstr "对不起,您未被授予修改片段的权限。"
476
+
477
+ #: includes/admin/single.php:24
478
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
479
+ msgstr "片段 <strong>已上传</strong> 并 <strong>已启用</strong>。"
480
+
481
+ #: includes/admin/single.php:26
482
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
483
+ msgstr "片段 <strong>已添加</strong> 并 <strong>已启用</strong>。"
484
+
485
+ #: includes/class-list-table.php:163
486
+ msgid ""
487
+ "You are about to permanently delete the selected item.\n"
488
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
489
+ msgstr ""
490
+ "您即将彻底删除所选条目。\n"
491
+ "\t\t\t\t点击「取消」以停止, 「确认」以删除。"
492
+
493
+ #: includes/class-list-table.php:270
494
+ msgid "Filter"
495
+ msgstr "关键词"
496
+
497
+ #: includes/class-list-table.php:541
498
+ msgid "Search results"
499
+ msgstr "&#8220;%s&#8221"
500
+
501
+ #: includes/class-list-table.php:544
502
+ msgid " for &#8220;%s&#8221;"
503
+ msgstr "的搜索结果"
504
+
505
+ #: includes/class-list-table.php:550
506
+ msgid "Clear Filters"
507
+ msgstr "清除关键词"
508
+
509
+ #: includes/help/import.php:14
510
+ msgid ""
511
+ "You can load your snippets from a code snippets (.xml) export file using "
512
+ "this page."
513
+ msgstr "您可以于此页加载 Code Snippets 导出文件(.xml)中的代码片段。"
514
+
515
+ #: includes/admin/single.php:74
516
+ msgid "Save Changes &amp; Activate"
517
+ msgstr "保存设置并启用"
trunk/languages/code-snippets.mo ADDED
Binary file
trunk/languages/code-snippets.po ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Code Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "PO-Revision-Date: 2013-03-27 15:45:42+0000\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
9
+ "X-Generator: GlotPress/0.1\n"
10
+ "Project-Id-Version: Code Snippets\n"
11
+
12
+ #: code-snippets.php:0 code-snippets.php:262
13
+ msgid "Code Snippets"
14
+ msgstr ""
15
+
16
+ #: code-snippets.php:0
17
+ msgid "An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again!"
18
+ msgstr ""
19
+
20
+ #: code-snippets.php:0
21
+ msgid "Shea Bunge"
22
+ msgstr ""
23
+
24
+ #: code-snippets.php:0
25
+ msgid "http://bungeshea.com"
26
+ msgstr ""
27
+
28
+ #: code-snippets.php:577 code-snippets.php:578 code-snippets.php:588
29
+ #: includes/admin/manage.php:36
30
+ msgid "Snippets"
31
+ msgstr ""
32
+
33
+ #: code-snippets.php:612 code-snippets.php:1145 includes/admin/single.php:45
34
+ msgid "Add New Snippet"
35
+ msgstr ""
36
+
37
+ #: code-snippets.php:613
38
+ msgid "Add New"
39
+ msgstr ""
40
+
41
+ #: code-snippets.php:641 includes/admin/import.php:34
42
+ msgid "Import Snippets"
43
+ msgstr ""
44
+
45
+ #: code-snippets.php:642
46
+ msgid "Import"
47
+ msgstr ""
48
+
49
+ #: code-snippets.php:601 code-snippets.php:1146 includes/admin/single.php:37
50
+ msgid "Edit Snippet"
51
+ msgstr ""
52
+
53
+ #: code-snippets.php:1465
54
+ msgid "Manage your existing snippets"
55
+ msgstr ""
56
+
57
+ #: code-snippets.php:589 code-snippets.php:1466
58
+ msgid "Manage"
59
+ msgstr ""
60
+
61
+ #: code-snippets.php:1486
62
+ msgid "Visit the WordPress.org plugin page"
63
+ msgstr ""
64
+
65
+ #: code-snippets.php:1487
66
+ msgid "About"
67
+ msgstr ""
68
+
69
+ #: code-snippets.php:1491
70
+ msgid "Visit the support forums"
71
+ msgstr ""
72
+
73
+ #: code-snippets.php:1492
74
+ msgid "Support"
75
+ msgstr ""
76
+
77
+ #: code-snippets.php:1496
78
+ msgid "Support this plugin's development"
79
+ msgstr ""
80
+
81
+ #: code-snippets.php:1497
82
+ msgid "Donate"
83
+ msgstr ""
84
+
85
+ #: includes/admin/import.php:38
86
+ msgid "Howdy! Upload your Code Snippets export file and we&#8217;ll import the snippets to this site."
87
+ msgstr ""
88
+
89
+ #: includes/admin/import.php:40
90
+ msgid "You will need to go to the <a href=\"%s\">Manage Snippets</a> page to activate the imported snippets."
91
+ msgstr ""
92
+
93
+ #: includes/admin/import.php:42
94
+ msgid "Choose a Code Snippets (.xml) file to upload, then click Upload file and import."
95
+ msgstr ""
96
+
97
+ #: includes/admin/import.php:46
98
+ msgid "Choose a file from your computer:"
99
+ msgstr ""
100
+
101
+ #: includes/admin/import.php:46
102
+ msgid "(Maximum size: 8MB)"
103
+ msgstr ""
104
+
105
+ #: includes/admin/import.php:55
106
+ msgid "Upload file and import"
107
+ msgstr ""
108
+
109
+ #: includes/admin/manage.php:21
110
+ msgid "Snippet <strong>activated</strong>."
111
+ msgstr ""
112
+
113
+ #: includes/admin/manage.php:23
114
+ msgid "Selected snippets <strong>activated</strong>."
115
+ msgstr ""
116
+
117
+ #: includes/admin/manage.php:25
118
+ msgid "Snippet <strong>deactivated</strong>."
119
+ msgstr ""
120
+
121
+ #: includes/admin/manage.php:27
122
+ msgid "Selected snippets <strong>deactivated</strong>."
123
+ msgstr ""
124
+
125
+ #: includes/admin/manage.php:29
126
+ msgid "Snippet <strong>deleted</strong>."
127
+ msgstr ""
128
+
129
+ #: includes/admin/manage.php:31
130
+ msgid "Selected snippets <strong>deleted</strong>."
131
+ msgstr ""
132
+
133
+ #: includes/admin/manage.php:38 includes/admin/single.php:42
134
+ msgctxt "snippet"
135
+ msgid "Add New"
136
+ msgstr ""
137
+
138
+ #: includes/admin/manage.php:47
139
+ msgid "Search Installed Snippets"
140
+ msgstr ""
141
+
142
+ #: includes/admin/single.php:22
143
+ msgid "Please provide a name for the snippet and its code."
144
+ msgstr ""
145
+
146
+ #: includes/admin/single.php:28
147
+ msgid "Snippet <strong>updated</strong>."
148
+ msgstr ""
149
+
150
+ #: includes/admin/single.php:30
151
+ msgid "Snippet <strong>added</strong>."
152
+ msgstr ""
153
+
154
+ #: includes/admin/single.php:55 includes/admin/single.php:56
155
+ msgid "Name (short title)"
156
+ msgstr ""
157
+
158
+ #: includes/admin/single.php:61
159
+ msgid "Code"
160
+ msgstr ""
161
+
162
+ #: code-snippets.php:1433 includes/class-list-table.php:189
163
+ msgid "Description"
164
+ msgstr ""
165
+
166
+ #: code-snippets.php:1434
167
+ msgid "(Optional)"
168
+ msgstr ""
169
+
170
+ #: includes/class-list-table.php:36
171
+ msgid "Snippets per page"
172
+ msgstr ""
173
+
174
+ #: code-snippets.php:1118 includes/class-list-table.php:127
175
+ #: includes/class-list-table.php:213
176
+ msgid "Network Deactivate"
177
+ msgstr ""
178
+
179
+ #: code-snippets.php:1118 includes/class-list-table.php:127
180
+ #: includes/class-list-table.php:213
181
+ msgid "Deactivate"
182
+ msgstr ""
183
+
184
+ #: code-snippets.php:1127 includes/class-list-table.php:137
185
+ #: includes/class-list-table.php:212
186
+ msgid "Network Activate"
187
+ msgstr ""
188
+
189
+ #: code-snippets.php:1127 includes/class-list-table.php:137
190
+ #: includes/class-list-table.php:212
191
+ msgid "Activate"
192
+ msgstr ""
193
+
194
+ #: includes/class-list-table.php:187
195
+ msgid "Name"
196
+ msgstr ""
197
+
198
+ #: includes/class-list-table.php:188
199
+ msgid "ID"
200
+ msgstr ""
201
+
202
+ #: includes/class-list-table.php:147 includes/class-list-table.php:214
203
+ msgid "Export"
204
+ msgstr ""
205
+
206
+ #: includes/class-list-table.php:155 includes/class-list-table.php:215
207
+ msgid "Delete"
208
+ msgstr ""
209
+
210
+ #: includes/class-list-table.php:216
211
+ msgid "Export to PHP"
212
+ msgstr ""
213
+
214
+ #: includes/class-list-table.php:236
215
+ msgid "All <span class=\"count\">(%s)</span>"
216
+ msgid_plural "All <span class=\"count\">(%s)</span>"
217
+ msgstr[0] ""
218
+ msgstr[1] ""
219
+
220
+ #: includes/class-list-table.php:239
221
+ msgid "Active <span class=\"count\">(%s)</span>"
222
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
223
+ msgstr[0] ""
224
+ msgstr[1] ""
225
+
226
+ #: includes/class-list-table.php:242
227
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
228
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
229
+ msgstr[0] ""
230
+ msgstr[1] ""
231
+
232
+ #: includes/class-list-table.php:245
233
+ msgid "Inactive <span class=\"count\">(%s)</span>"
234
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
235
+ msgstr[0] ""
236
+ msgstr[1] ""
237
+
238
+ #: includes/class-list-table.php:279
239
+ msgid "Clear List"
240
+ msgstr ""
241
+
242
+ #: includes/class-list-table.php:374
243
+ msgid "You do not appear to have any snippets available at this time. <a href=\"%s\">Add New&rarr;</a>"
244
+ msgstr ""
245
+
246
+ #: includes/help/import.php:5 includes/help/manage.php:5
247
+ #: includes/help/single.php:5
248
+ msgid "Overview"
249
+ msgstr ""
250
+
251
+ #: includes/help/import.php:7
252
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can load snippets from a Code Snippets (.xml) import file into the database with your existing snippets."
253
+ msgstr ""
254
+
255
+ #: includes/help/import.php:12
256
+ msgid "Importing"
257
+ msgstr ""
258
+
259
+ #: includes/help/import.php:15
260
+ msgid "Snippets will be added to the database along with your existing snippets. Regardless of whether the snippets were active on the previous site, imported snippets are always inactive until activated using the <a href=\"%s\">Manage Snippets</a> page.</p>"
261
+ msgstr ""
262
+
263
+ #: includes/help/import.php:20
264
+ msgid "Exporting"
265
+ msgstr ""
266
+
267
+ #: includes/help/import.php:22
268
+ msgid "You can save your snippets to a Code Snippets (.xml) export file using the <a href=\"%s\">Manage Snippets</a> page."
269
+ msgstr ""
270
+
271
+ #: includes/help/import.php:26 includes/help/manage.php:27
272
+ #: includes/help/single.php:31
273
+ msgid "For more information:"
274
+ msgstr ""
275
+
276
+ #: includes/help/import.php:27 includes/help/single.php:32
277
+ msgid "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank\">WordPress Extend</a>"
278
+ msgstr ""
279
+
280
+ #: includes/help/import.php:28 includes/help/manage.php:29
281
+ #: includes/help/single.php:33
282
+ msgid "<a href=\"http://wordpress.org/support/plugin/code-snippets\" target=\"_blank\">Support Forums</a>"
283
+ msgstr ""
284
+
285
+ #: includes/help/manage.php:7
286
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can manage your existing snippets and perform tasks on them such as activating, deactivating, deleting and exporting."
287
+ msgstr ""
288
+
289
+ #: includes/help/manage.php:12
290
+ msgid "Safe Mode"
291
+ msgstr ""
292
+
293
+ #: includes/help/manage.php:14
294
+ msgid "Be sure to check your snippets for errors before you activate them, as a faulty snippet could bring your whole blog down. If your site starts doing strange things, deactivate all your snippets and activate them one at a time."
295
+ msgstr ""
296
+
297
+ #: includes/help/manage.php:20
298
+ msgid "Uninstall"
299
+ msgstr ""
300
+
301
+ #: includes/help/manage.php:22
302
+ msgid "When you delete Code Snippets through the Plugins menu in WordPress it will clear up the <code>%1$s</code> table and a few other bits of data stored in the database. If you want to keep this data (ie: you are only temporally uninstalling Code Snippets) then remove the <code>%2$s</code> folder using FTP."
303
+ msgstr ""
304
+
305
+ #: includes/help/manage.php:23
306
+ msgid "Even if you're sure that you don't want to use Code Snippets ever again on this WordPress installation, you may want to use the export feature to back up your snippets."
307
+ msgstr ""
308
+
309
+ #: includes/help/manage.php:28
310
+ msgid "<a href=\"http://wordpress.org/plugins/code-snippets\" target=\"_blank\">WordPress Extend</a></p>"
311
+ msgstr ""
312
+
313
+ #: includes/help/single.php:7
314
+ msgid "Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can add a new snippet, or edit an existing one."
315
+ msgstr ""
316
+
317
+ #: includes/help/single.php:11
318
+ msgid "Finding Snippets"
319
+ msgstr ""
320
+
321
+ #: includes/help/single.php:13
322
+ msgid ""
323
+ "Here are some links to websites which host a large number of snippets that you can add to your site.\n"
324
+ "\t\t<ul>\n"
325
+ "\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets\">WP-Snippets</a></li>\n"
326
+ "\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</a></li>\n"
327
+ "\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title=\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
328
+ "\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
329
+ "\t\t</ul>"
330
+ msgstr ""
331
+
332
+ #: includes/help/single.php:24
333
+ msgid "Adding Snippets"
334
+ msgstr ""
335
+
336
+ #: includes/help/single.php:26
337
+ msgid "You need to fill out the name and code fields for your snippet to be added. While the description field will add more information about how your snippet works, what is does and where you found it, it is completely optional."
338
+ msgstr ""
339
+
340
+ #: includes/help/single.php:27
341
+ msgid "Please be sure to check that your snippet is valid PHP code and will not produce errors before adding it through this page. While doing so will not become active straight away, it will help to minimise the chance of a faulty snippet becoming active on your site."
342
+ msgstr ""
343
+
344
+ #: code-snippets.php:0
345
+ msgid "http://bungeshea.com/plugins/code-snippets"
346
+ msgstr ""
347
+
348
+ #: code-snippets.php:263
349
+ msgid "Import snippets from a <strong>Code Snippets</strong> export file"
350
+ msgstr ""
351
+
352
+ #: includes/admin/import.php:20
353
+ msgid "Imported <strong>%d</strong> snippet."
354
+ msgid_plural "Imported <strong>%d</strong> snippets."
355
+ msgstr[0] ""
356
+ msgstr[1] ""
357
+
358
+ #: includes/help/import.php:29 includes/help/manage.php:30
359
+ #: includes/help/single.php:34
360
+ msgid "<a href=\"http://bungeshea.com/plugins/code-snippets/\" target=\"_blank\">Project Website</a>"
361
+ msgstr ""
362
+
363
+ #: includes/help/manage.php:15
364
+ msgid "If something goes wrong with a snippet and you can't use WordPress, you can cause all snippets to stop executing by adding <code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-config.php</code> file. After you have deactivated the offending snippet, you can turn off safe mode by removing this line or replacing <strong>true</strong> with <strong>false</strong>."
365
+ msgstr ""
366
+
367
+ #: includes/help/single.php:20
368
+ msgid "More places to find snippets, as well as a selection of example snippets, can be found in the <a href=\"https://github.com/sheabunge/code-snippets/wiki/Finding-snippets\">plugin documentation</a>"
369
+ msgstr ""
370
+
371
+ #: code-snippets.php:0
372
+ msgid "1.7"
373
+ msgstr ""
374
+
375
+ #: code-snippets.php:602 includes/class-list-table.php:142
376
+ msgid "Edit"
377
+ msgstr ""
378
+
379
+ #: code-snippets.php:1227
380
+ msgid "Sorry, you're not allowed to edit snippets"
381
+ msgstr ""
382
+
383
+ #: includes/admin/single.php:24
384
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
385
+ msgstr ""
386
+
387
+ #: includes/admin/single.php:26
388
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
389
+ msgstr ""
390
+
391
+ #: includes/class-list-table.php:163
392
+ msgid ""
393
+ "You are about to permanently delete the selected item.\n"
394
+ "\t\t\t\t'Cancel' to stop, 'OK' to delete."
395
+ msgstr ""
396
+
397
+ #: includes/class-list-table.php:270
398
+ msgid "Filter"
399
+ msgstr ""
400
+
401
+ #: includes/class-list-table.php:541
402
+ msgid "Search results"
403
+ msgstr ""
404
+
405
+ #: includes/class-list-table.php:544
406
+ msgid " for &#8220;%s&#8221;"
407
+ msgstr ""
408
+
409
+ #: includes/class-list-table.php:550
410
+ msgid "Clear Filters"
411
+ msgstr ""
412
+
413
+ #: includes/help/import.php:14
414
+ msgid "You can load your snippets from a code snippets (.xml) export file using this page."
415
+ msgstr ""
416
+
417
+ #: includes/admin/single.php:74
418
+ msgid "Save Changes &amp; Activate"
419
+ msgstr ""
trunk/languages/code-snippets.pot ADDED
@@ -0,0 +1,820 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the code-snippets package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: code-snippets 2.8.2\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2017-02-27 23:06+1100\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "Language: \n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=CHARSET\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
+
21
+ #: php/admin-menus/class-admin-menu.php:103
22
+ msgid "You are not authorized to access this page."
23
+ msgstr ""
24
+
25
+ #: php/admin-menus/class-edit-menu.php:13
26
+ #: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:25
27
+ msgid "Edit Snippet"
28
+ msgstr ""
29
+
30
+ #: php/admin-menus/class-edit-menu.php:39
31
+ msgctxt "menu label"
32
+ msgid "Add New"
33
+ msgstr ""
34
+
35
+ #: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:31
36
+ msgid "Add New Snippet"
37
+ msgstr ""
38
+
39
+ #: php/admin-menus/class-edit-menu.php:156
40
+ msgid "Don't Panic"
41
+ msgstr ""
42
+
43
+ #: php/admin-menus/class-edit-menu.php:157
44
+ #, php-format
45
+ msgid ""
46
+ "The code snippet you are trying to save produced a fatal error on line %d:"
47
+ msgstr ""
48
+
49
+ #: php/admin-menus/class-edit-menu.php:159
50
+ msgid ""
51
+ "The previous version of the snippet is unchanged, and the rest of this site "
52
+ "should be functioning normally as before."
53
+ msgstr ""
54
+
55
+ #: php/admin-menus/class-edit-menu.php:160
56
+ msgid ""
57
+ "Please use the back button in your browser to return to the previous page "
58
+ "and try to fix the code error."
59
+ msgstr ""
60
+
61
+ #: php/admin-menus/class-edit-menu.php:161
62
+ msgid ""
63
+ "If you prefer, you can close this page and discard the changes you just "
64
+ "made. No changes will be made to this site."
65
+ msgstr ""
66
+
67
+ #: php/admin-menus/class-edit-menu.php:281 php/class-list-table.php:324
68
+ msgid "Description"
69
+ msgstr ""
70
+
71
+ #: php/admin-menus/class-edit-menu.php:312 php/class-list-table.php:325
72
+ msgid "Tags"
73
+ msgstr ""
74
+
75
+ #: php/admin-menus/class-edit-menu.php:316
76
+ msgid "Enter a list of tags; separated by commas"
77
+ msgstr ""
78
+
79
+ #: php/admin-menus/class-edit-menu.php:336
80
+ msgid "Run snippet everywhere"
81
+ msgstr ""
82
+
83
+ #: php/admin-menus/class-edit-menu.php:337
84
+ msgid "Only run in administration area"
85
+ msgstr ""
86
+
87
+ #: php/admin-menus/class-edit-menu.php:338
88
+ msgid "Only run on site front-end"
89
+ msgstr ""
90
+
91
+ #: php/admin-menus/class-edit-menu.php:342
92
+ msgid "Scope"
93
+ msgstr ""
94
+
95
+ #: php/admin-menus/class-edit-menu.php:362
96
+ msgid "Sharing"
97
+ msgstr ""
98
+
99
+ #: php/admin-menus/class-edit-menu.php:366
100
+ msgid "Allow this snippet to be activated on individual sites on the network"
101
+ msgstr ""
102
+
103
+ #: php/admin-menus/class-edit-menu.php:426
104
+ #, php-format
105
+ msgid "The snippet has been deactivated due to an error on line %d:"
106
+ msgstr ""
107
+
108
+ #: php/admin-menus/class-edit-menu.php:431
109
+ msgid "The snippet has been deactivated due to an error in the code."
110
+ msgstr ""
111
+
112
+ #: php/admin-menus/class-edit-menu.php:438
113
+ msgid "An error occurred when saving the snippet."
114
+ msgstr ""
115
+
116
+ #: php/admin-menus/class-edit-menu.php:443
117
+ msgid "Snippet <strong>added</strong>."
118
+ msgstr ""
119
+
120
+ #: php/admin-menus/class-edit-menu.php:444
121
+ msgid "Snippet <strong>updated</strong>."
122
+ msgstr ""
123
+
124
+ #: php/admin-menus/class-edit-menu.php:445
125
+ msgid "Snippet <strong>added</strong> and <strong>activated</strong>."
126
+ msgstr ""
127
+
128
+ #: php/admin-menus/class-edit-menu.php:446
129
+ msgid "Snippet <strong>updated</strong> and <strong>activated</strong>."
130
+ msgstr ""
131
+
132
+ #: php/admin-menus/class-edit-menu.php:447
133
+ msgid "Snippet <strong>updated</strong> and <strong>deactivated</strong>."
134
+ msgstr ""
135
+
136
+ #: php/admin-menus/class-import-menu.php:15
137
+ msgctxt "menu label"
138
+ msgid "Import"
139
+ msgstr ""
140
+
141
+ #: php/admin-menus/class-import-menu.php:16 php/views/import.php:17
142
+ msgid "Import Snippets"
143
+ msgstr ""
144
+
145
+ #: php/admin-menus/class-import-menu.php:84
146
+ msgid "Code Snippets"
147
+ msgstr ""
148
+
149
+ #: php/admin-menus/class-import-menu.php:85
150
+ msgid "Import snippets from a code snippets export file"
151
+ msgstr ""
152
+
153
+ #: php/admin-menus/class-import-menu.php:99
154
+ #, php-format
155
+ msgid ""
156
+ "Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
157
+ "a>"
158
+ msgid_plural ""
159
+ "Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
160
+ "</a>"
161
+ msgstr[0] ""
162
+ msgstr[1] ""
163
+
164
+ #: php/admin-menus/class-import-menu.php:112
165
+ msgid "An error occurred when processing the import file."
166
+ msgstr ""
167
+
168
+ #: php/admin-menus/class-manage-menu.php:22
169
+ msgctxt "menu label"
170
+ msgid "All Snippets"
171
+ msgstr ""
172
+
173
+ #: php/admin-menus/class-manage-menu.php:23
174
+ #: php/admin-menus/class-manage-menu.php:45 php/class-admin.php:61
175
+ #: php/class-admin.php:144 php/views/manage.php:19
176
+ msgid "Snippets"
177
+ msgstr ""
178
+
179
+ #: php/admin-menus/class-manage-menu.php:46
180
+ msgctxt "top-level menu label"
181
+ msgid "Snippets"
182
+ msgstr ""
183
+
184
+ #: php/admin-menus/class-manage-menu.php:81
185
+ msgid ""
186
+ "<strong>Warning:</strong> Safe mode is active and snippets will not execute! "
187
+ "Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-"
188
+ "config.php</code> to turn off safe mode. <a href=\"https://github.com/"
189
+ "sheabunge/code-snippets/wiki/Safe-Mode\" target=\"_blank\">Help</a>"
190
+ msgstr ""
191
+
192
+ #: php/admin-menus/class-manage-menu.php:87
193
+ msgid "Snippet <strong>activated</strong>."
194
+ msgstr ""
195
+
196
+ #: php/admin-menus/class-manage-menu.php:88
197
+ msgid "Selected snippets <strong>activated</strong>."
198
+ msgstr ""
199
+
200
+ #: php/admin-menus/class-manage-menu.php:89
201
+ msgid "Snippet <strong>deactivated</strong>."
202
+ msgstr ""
203
+
204
+ #: php/admin-menus/class-manage-menu.php:90
205
+ msgid "Selected snippets <strong>deactivated</strong>."
206
+ msgstr ""
207
+
208
+ #: php/admin-menus/class-manage-menu.php:91
209
+ msgid "Snippet <strong>deleted</strong>."
210
+ msgstr ""
211
+
212
+ #: php/admin-menus/class-manage-menu.php:92
213
+ msgid "Selected snippets <strong>deleted</strong>."
214
+ msgstr ""
215
+
216
+ #: php/admin-menus/class-settings-menu.php:16
217
+ msgctxt "menu label"
218
+ msgid "Settings"
219
+ msgstr ""
220
+
221
+ #: php/admin-menus/class-settings-menu.php:17
222
+ msgid "Snippets Settings"
223
+ msgstr ""
224
+
225
+ #: php/admin-menus/class-settings-menu.php:39 php/views/edit.php:135
226
+ msgid "Settings"
227
+ msgstr ""
228
+
229
+ #: php/class-admin.php:143
230
+ msgid "Manage your existing snippets"
231
+ msgstr ""
232
+
233
+ #: php/class-admin.php:174
234
+ msgid "Visit the WordPress.org plugin page"
235
+ msgstr ""
236
+
237
+ #: php/class-admin.php:175
238
+ msgid "About"
239
+ msgstr ""
240
+
241
+ #: php/class-admin.php:179
242
+ msgid "Visit the support forums"
243
+ msgstr ""
244
+
245
+ #: php/class-admin.php:180
246
+ msgid "Support"
247
+ msgstr ""
248
+
249
+ #: php/class-admin.php:184
250
+ msgid "Support this plugin's development"
251
+ msgstr ""
252
+
253
+ #: php/class-admin.php:185
254
+ msgid "Donate"
255
+ msgstr ""
256
+
257
+ #: php/class-admin.php:216
258
+ msgid ""
259
+ "<strong>Have feedback on Code Snippets?</strong> Please take the time to "
260
+ "answer a short survey on how you use this plugin and what you'd like to see "
261
+ "changed or added in the future."
262
+ msgstr ""
263
+
264
+ #: php/class-admin.php:220
265
+ msgid "Take the survey now"
266
+ msgstr ""
267
+
268
+ #: php/class-admin.php:223
269
+ msgid "Dismiss"
270
+ msgstr ""
271
+
272
+ #: php/class-contextual-help.php:40
273
+ msgid "For more information:"
274
+ msgstr ""
275
+
276
+ #: php/class-contextual-help.php:41
277
+ msgid "About Plugin"
278
+ msgstr ""
279
+
280
+ #: php/class-contextual-help.php:42
281
+ msgid "FAQ"
282
+ msgstr ""
283
+
284
+ #: php/class-contextual-help.php:43
285
+ msgid "Support Forums"
286
+ msgstr ""
287
+
288
+ #: php/class-contextual-help.php:44
289
+ msgid "Plugin Website"
290
+ msgstr ""
291
+
292
+ #: php/class-contextual-help.php:55 php/class-contextual-help.php:81
293
+ #: php/class-contextual-help.php:114
294
+ msgid "Overview"
295
+ msgstr ""
296
+
297
+ #: php/class-contextual-help.php:56
298
+ msgid ""
299
+ "Snippets are similar to plugins - they both extend and expand the "
300
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
301
+ "of code, and do not put as much load on your server. Here you can manage "
302
+ "your existing snippets and perform tasks on them such as activating, "
303
+ "deactivating, deleting and exporting."
304
+ msgstr ""
305
+
306
+ #: php/class-contextual-help.php:61
307
+ msgid "Safe Mode"
308
+ msgstr ""
309
+
310
+ #: php/class-contextual-help.php:62
311
+ msgid ""
312
+ "Be sure to check your snippets for errors before you activate them, as a "
313
+ "faulty snippet could bring your whole blog down. If your site starts doing "
314
+ "strange things, deactivate all your snippets and activate them one at a time."
315
+ msgstr ""
316
+
317
+ #: php/class-contextual-help.php:63
318
+ msgid ""
319
+ "If something goes wrong with a snippet and you can't use WordPress, you can "
320
+ "cause all snippets to stop executing by adding "
321
+ "<code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-"
322
+ "config.php</code> file. After you have deactivated the offending snippet, "
323
+ "you can turn off safe mode by removing this line or replacing <strong>true</"
324
+ "strong> with <strong>false</strong>."
325
+ msgstr ""
326
+
327
+ #: php/class-contextual-help.php:68
328
+ msgid "Uninstall"
329
+ msgstr ""
330
+
331
+ #: php/class-contextual-help.php:69
332
+ #, php-format
333
+ msgid ""
334
+ "When you delete Code Snippets through the Plugins menu in WordPress it will "
335
+ "clear up the <code>%1$s</code> table and a few other bits of data stored in "
336
+ "the database. If you want to keep this data (ie: you are only temporally "
337
+ "uninstalling Code Snippets) then remove the <code>%2$s</code> folder using "
338
+ "FTP."
339
+ msgstr ""
340
+
341
+ #: php/class-contextual-help.php:70
342
+ msgid ""
343
+ "Even if you're sure that you don't want to use Code Snippets ever again on "
344
+ "this WordPress installation, you may want to use the export feature to back "
345
+ "up your snippets."
346
+ msgstr ""
347
+
348
+ #: php/class-contextual-help.php:82
349
+ msgid ""
350
+ "Snippets are similar to plugins - they both extend and expand the "
351
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
352
+ "of code, and do not put as much load on your server. Here you can add a new "
353
+ "snippet, or edit an existing one."
354
+ msgstr ""
355
+
356
+ #: php/class-contextual-help.php:87
357
+ msgid "Finding Snippets"
358
+ msgstr ""
359
+
360
+ #: php/class-contextual-help.php:88
361
+ msgid ""
362
+ "Here are some links to websites which host a large number of snippets that "
363
+ "you can add to your site.\n"
364
+ "\t\t\t\t<ul>\n"
365
+ "\t\t\t\t\t<li><a href=\"http://wp-snippets.com\" title=\"WordPress Snippets"
366
+ "\">WP-Snippets</a></li>\n"
367
+ "\t\t\t\t\t<li><a href=\"http://wpsnipp.com\" title=\"WP Snipp\">WP Snipp</"
368
+ "a></li>\n"
369
+ "\t\t\t\t\t<li><a href=\"http://www.catswhocode.com/blog/snippets\" title="
370
+ "\"Cats Who Code Snippet Library\">Cats Who Code</a></li>\n"
371
+ "\t\t\t\t\t<li><a href=\"http://www.wpfunction.me\">WP Function Me</a></li>\n"
372
+ "\t\t\t\t</ul>"
373
+ msgstr ""
374
+
375
+ #: php/class-contextual-help.php:95
376
+ msgid ""
377
+ "More places to find snippets, as well as a selection of example snippets, "
378
+ "can be found in the <a href=\"https://github.com/sheabunge/code-snippets/"
379
+ "wiki/Finding-snippets\">plugin documentation</a>"
380
+ msgstr ""
381
+
382
+ #: php/class-contextual-help.php:100
383
+ msgid "Adding Snippets"
384
+ msgstr ""
385
+
386
+ #: php/class-contextual-help.php:101
387
+ msgid ""
388
+ "You need to fill out the name and code fields for your snippet to be added. "
389
+ "While the description field will add more information about how your snippet "
390
+ "works, what is does and where you found it, it is completely optional."
391
+ msgstr ""
392
+
393
+ #: php/class-contextual-help.php:102
394
+ msgid ""
395
+ "Please be sure to check that your snippet is valid PHP code and will not "
396
+ "produce errors before adding it through this page. While doing so will not "
397
+ "become active straight away, it will help to minimise the chance of a faulty "
398
+ "snippet becoming active on your site."
399
+ msgstr ""
400
+
401
+ #: php/class-contextual-help.php:115
402
+ msgid ""
403
+ "Snippets are similar to plugins - they both extend and expand the "
404
+ "functionality of WordPress. Snippets are more light-weight, just a few lines "
405
+ "of code, and do not put as much load on your server. Here you can load "
406
+ "snippets from a Code Snippets (.xml) import file into the database with your "
407
+ "existing snippets."
408
+ msgstr ""
409
+
410
+ #: php/class-contextual-help.php:120
411
+ msgid "Importing"
412
+ msgstr ""
413
+
414
+ #: php/class-contextual-help.php:121
415
+ msgid ""
416
+ "You can load your snippets from a code snippets (.xml) export file using "
417
+ "this page."
418
+ msgstr ""
419
+
420
+ #: php/class-contextual-help.php:122
421
+ #, php-format
422
+ msgid ""
423
+ "Snippets will be added to the database along with your existing snippets. "
424
+ "Regardless of whether the snippets were active on the previous site, "
425
+ "imported snippets are always inactive until activated using the <a href=\"%s"
426
+ "\">All Snippets</a> page.</p>"
427
+ msgstr ""
428
+
429
+ #: php/class-contextual-help.php:127
430
+ msgid "Exporting"
431
+ msgstr ""
432
+
433
+ #: php/class-contextual-help.php:128
434
+ #, php-format
435
+ msgid ""
436
+ "You can save your snippets to a Code Snippets (.xml) export file using the "
437
+ "<a href=\"%s\">Manage Snippets</a> page."
438
+ msgstr ""
439
+
440
+ #: php/class-export.php:87
441
+ msgid ""
442
+ "This is a code snippets export file generated by the Code Snippets WordPress "
443
+ "plugin."
444
+ msgstr ""
445
+
446
+ #: php/class-export.php:89
447
+ msgid "To import these snippets a WordPress site follow these steps:"
448
+ msgstr ""
449
+
450
+ #: php/class-export.php:90
451
+ msgid "1. Log in to that site as an administrator."
452
+ msgstr ""
453
+
454
+ #: php/class-export.php:91
455
+ msgid ""
456
+ "2. Install the Code Snippets plugin using the directions provided at the "
457
+ "above link."
458
+ msgstr ""
459
+
460
+ #: php/class-export.php:92
461
+ msgid "3. Go to 'Tools: Import' in the WordPress admin panel."
462
+ msgstr ""
463
+
464
+ #: php/class-export.php:93
465
+ msgid "4. Click on the \"Code Snippets\" importer in the list"
466
+ msgstr ""
467
+
468
+ #: php/class-export.php:94
469
+ msgid "5. Upload this file using the form provided on that page."
470
+ msgstr ""
471
+
472
+ #: php/class-export.php:95
473
+ msgid ""
474
+ "6. Code Snippets will then import all of the snippets and associated "
475
+ "information contained in this file into your site."
476
+ msgstr ""
477
+
478
+ #: php/class-export.php:96
479
+ msgid ""
480
+ "7. You will then have to visit the 'Snippets: All Snippets' admin menu and "
481
+ "activate desired snippets."
482
+ msgstr ""
483
+
484
+ #: php/class-list-table.php:58
485
+ msgid "Snippets per page"
486
+ msgstr ""
487
+
488
+ #: php/class-list-table.php:117 php/class-list-table.php:370
489
+ msgid "Network Deactivate"
490
+ msgstr ""
491
+
492
+ #: php/class-list-table.php:117 php/class-list-table.php:180
493
+ #: php/class-list-table.php:370
494
+ msgid "Deactivate"
495
+ msgstr ""
496
+
497
+ #: php/class-list-table.php:126 php/class-list-table.php:369
498
+ msgid "Network Activate"
499
+ msgstr ""
500
+
501
+ #: php/class-list-table.php:126 php/class-list-table.php:180
502
+ #: php/class-list-table.php:369
503
+ msgid "Activate"
504
+ msgstr ""
505
+
506
+ #: php/class-list-table.php:136 php/class-list-table.php:196
507
+ msgid "Edit"
508
+ msgstr ""
509
+
510
+ #: php/class-list-table.php:142 php/class-list-table.php:202
511
+ #: php/class-list-table.php:371 php/views/edit.php:111
512
+ msgid "Export"
513
+ msgstr ""
514
+
515
+ #: php/class-list-table.php:151 php/class-list-table.php:214
516
+ #: php/class-list-table.php:372 php/views/edit.php:124
517
+ msgid "Delete"
518
+ msgstr ""
519
+
520
+ #: php/class-list-table.php:158 php/class-list-table.php:224
521
+ msgid "You are about to permanently delete the selected item."
522
+ msgstr ""
523
+
524
+ #: php/class-list-table.php:159 php/class-list-table.php:225
525
+ #: php/views/edit.php:119
526
+ msgid "'Cancel' to stop, 'OK' to delete."
527
+ msgstr ""
528
+
529
+ #: php/class-list-table.php:244
530
+ #, php-format
531
+ msgid "Untitled #%d"
532
+ msgstr ""
533
+
534
+ #: php/class-list-table.php:261
535
+ msgid "Shared on Network"
536
+ msgstr ""
537
+
538
+ #: php/class-list-table.php:322 php/views/edit.php:48
539
+ msgid "Name"
540
+ msgstr ""
541
+
542
+ #: php/class-list-table.php:323
543
+ msgid "ID"
544
+ msgstr ""
545
+
546
+ #: php/class-list-table.php:373
547
+ msgid "Export to PHP"
548
+ msgstr ""
549
+
550
+ #: php/class-list-table.php:411
551
+ #, php-format
552
+ msgid "All <span class=\"count\">(%s)</span>"
553
+ msgid_plural "All <span class=\"count\">(%s)</span>"
554
+ msgstr[0] ""
555
+ msgstr[1] ""
556
+
557
+ #: php/class-list-table.php:412
558
+ #, php-format
559
+ msgid "Active <span class=\"count\">(%s)</span>"
560
+ msgid_plural "Active <span class=\"count\">(%s)</span>"
561
+ msgstr[0] ""
562
+ msgstr[1] ""
563
+
564
+ #: php/class-list-table.php:413
565
+ #, php-format
566
+ msgid "Inactive <span class=\"count\">(%s)</span>"
567
+ msgid_plural "Inactive <span class=\"count\">(%s)</span>"
568
+ msgstr[0] ""
569
+ msgstr[1] ""
570
+
571
+ #: php/class-list-table.php:414
572
+ #, php-format
573
+ msgid "Recently Active <span class=\"count\">(%s)</span>"
574
+ msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
575
+ msgstr[0] ""
576
+ msgstr[1] ""
577
+
578
+ #: php/class-list-table.php:477
579
+ msgid "Show all tags"
580
+ msgstr ""
581
+
582
+ #: php/class-list-table.php:491
583
+ msgid "Filter"
584
+ msgstr ""
585
+
586
+ #: php/class-list-table.php:499
587
+ msgid "Clear List"
588
+ msgstr ""
589
+
590
+ #: php/class-list-table.php:686
591
+ #, php-format
592
+ msgid ""
593
+ "You do not appear to have any snippets available at this time. <a href=\"%s"
594
+ "\">Add New&rarr;</a>"
595
+ msgstr ""
596
+
597
+ #: php/class-list-table.php:959
598
+ msgid "Search results"
599
+ msgstr ""
600
+
601
+ #: php/class-list-table.php:962
602
+ #, php-format
603
+ msgid " for &#8220;%s&#8221;"
604
+ msgstr ""
605
+
606
+ #: php/class-list-table.php:966
607
+ #, php-format
608
+ msgid " in tag &#8220;%s&#8221;"
609
+ msgstr ""
610
+
611
+ #: php/class-list-table.php:974
612
+ msgid "Clear Filters"
613
+ msgstr ""
614
+
615
+ #: php/settings/settings-fields.php:42
616
+ msgid "Activate by Default"
617
+ msgstr ""
618
+
619
+ #: php/settings/settings-fields.php:44
620
+ msgid ""
621
+ "Make the 'Save and Activate' button the default action when saving a snippet."
622
+ msgstr ""
623
+
624
+ #: php/settings/settings-fields.php:49
625
+ msgid "Enable Scope Selector"
626
+ msgstr ""
627
+
628
+ #: php/settings/settings-fields.php:51
629
+ msgid "Enable the scope selector when editing a snippet"
630
+ msgstr ""
631
+
632
+ #: php/settings/settings-fields.php:56
633
+ msgid "Enable Snippet Tags"
634
+ msgstr ""
635
+
636
+ #: php/settings/settings-fields.php:58
637
+ msgid "Show snippet tags on admin pages"
638
+ msgstr ""
639
+
640
+ #: php/settings/settings-fields.php:63
641
+ msgid "Enable Snippet Descriptions"
642
+ msgstr ""
643
+
644
+ #: php/settings/settings-fields.php:65
645
+ msgid "Show snippet descriptions on admin pages"
646
+ msgstr ""
647
+
648
+ #: php/settings/settings-fields.php:69
649
+ msgid "Disable shortcode syntax highlighter"
650
+ msgstr ""
651
+
652
+ #: php/settings/settings-fields.php:71
653
+ msgid ""
654
+ "Disable the syntax highlighting for the [code_snippet] shortcode on the "
655
+ "front-end"
656
+ msgstr ""
657
+
658
+ #: php/settings/settings-fields.php:80
659
+ msgid "Row Height"
660
+ msgstr ""
661
+
662
+ #: php/settings/settings-fields.php:82
663
+ msgid "rows"
664
+ msgstr ""
665
+
666
+ #: php/settings/settings-fields.php:88
667
+ msgid "Use Full Editor"
668
+ msgstr ""
669
+
670
+ #: php/settings/settings-fields.php:90
671
+ msgid "Enable all features of the visual editor"
672
+ msgstr ""
673
+
674
+ #: php/settings/settings-fields.php:95
675
+ msgid "Media Buttons"
676
+ msgstr ""
677
+
678
+ #: php/settings/settings-fields.php:97
679
+ msgid "Enable the add media buttons"
680
+ msgstr ""
681
+
682
+ #: php/settings/settings-fields.php:106
683
+ msgid "Theme"
684
+ msgstr ""
685
+
686
+ #: php/settings/settings-fields.php:113
687
+ msgid "Indent With Tabs"
688
+ msgstr ""
689
+
690
+ #: php/settings/settings-fields.php:115
691
+ msgid "Use hard tabs (not spaces) for indentation."
692
+ msgstr ""
693
+
694
+ #: php/settings/settings-fields.php:121
695
+ msgid "Tab Size"
696
+ msgstr ""
697
+
698
+ #: php/settings/settings-fields.php:123
699
+ msgid "The width of a tab character."
700
+ msgstr ""
701
+
702
+ #: php/settings/settings-fields.php:130
703
+ msgid "Indent Unit"
704
+ msgstr ""
705
+
706
+ #: php/settings/settings-fields.php:132
707
+ msgid "How many spaces a block should be indented."
708
+ msgstr ""
709
+
710
+ #: php/settings/settings-fields.php:139
711
+ msgid "Wrap Lines"
712
+ msgstr ""
713
+
714
+ #: php/settings/settings-fields.php:141
715
+ msgid "Whether the editor should scroll or wrap for long lines."
716
+ msgstr ""
717
+
718
+ #: php/settings/settings-fields.php:147
719
+ msgid "Line Numbers"
720
+ msgstr ""
721
+
722
+ #: php/settings/settings-fields.php:149
723
+ msgid "Show line numbers to the left of the editor."
724
+ msgstr ""
725
+
726
+ #: php/settings/settings-fields.php:155
727
+ msgid "Auto Close Brackets"
728
+ msgstr ""
729
+
730
+ #: php/settings/settings-fields.php:157
731
+ msgid "Auto-close brackets and quotes when typed."
732
+ msgstr ""
733
+
734
+ #: php/settings/settings-fields.php:163
735
+ msgid "Highlight Selection Matches"
736
+ msgstr ""
737
+
738
+ #: php/settings/settings-fields.php:164
739
+ msgid "Highlight all instances of a currently selected word."
740
+ msgstr ""
741
+
742
+ #: php/settings/settings.php:68
743
+ msgid "General"
744
+ msgstr ""
745
+
746
+ #: php/settings/settings.php:69
747
+ msgid "Description Editor"
748
+ msgstr ""
749
+
750
+ #: php/settings/settings.php:70
751
+ msgid "Code Editor"
752
+ msgstr ""
753
+
754
+ #: php/settings/settings.php:119
755
+ msgid "Editor Preview"
756
+ msgstr ""
757
+
758
+ #: php/settings/settings.php:176
759
+ msgid "Settings saved."
760
+ msgstr ""
761
+
762
+ #: php/views/edit.php:28 php/views/manage.php:22
763
+ msgctxt "snippet"
764
+ msgid "Add New"
765
+ msgstr ""
766
+
767
+ #: php/views/edit.php:49
768
+ msgid "Enter title here"
769
+ msgstr ""
770
+
771
+ #: php/views/edit.php:54
772
+ msgid "Code"
773
+ msgstr ""
774
+
775
+ #: php/views/edit.php:81 php/views/edit.php:95
776
+ msgid "Save Changes and Activate"
777
+ msgstr ""
778
+
779
+ #: php/views/edit.php:101
780
+ msgid "Save Changes and Deactivate"
781
+ msgstr ""
782
+
783
+ #: php/views/edit.php:118
784
+ msgid "You are about to permanently delete this snippet."
785
+ msgstr ""
786
+
787
+ #: php/views/import.php:21
788
+ msgid ""
789
+ "Howdy! Upload your Code Snippets export file and we&#8217;ll import the "
790
+ "snippets to this site."
791
+ msgstr ""
792
+
793
+ #: php/views/import.php:23
794
+ #, php-format
795
+ msgid ""
796
+ "You will need to go to the <a href=\"%s\">All Snippets</a> page to activate "
797
+ "the imported snippets."
798
+ msgstr ""
799
+
800
+ #: php/views/import.php:25
801
+ msgid ""
802
+ "Choose a Code Snippets (.xml) file to upload, then click Upload file and "
803
+ "import."
804
+ msgstr ""
805
+
806
+ #: php/views/import.php:32
807
+ msgid "Choose a file from your computer:"
808
+ msgstr ""
809
+
810
+ #: php/views/import.php:33
811
+ msgid "(Maximum size: 8MB)"
812
+ msgstr ""
813
+
814
+ #: php/views/import.php:39
815
+ msgid "Upload file and import"
816
+ msgstr ""
817
+
818
+ #: php/views/manage.php:34
819
+ msgid "Search Installed Snippets"
820
+ msgstr ""
trunk/license.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ Copyright (c) 2012-2017 Shea Bunge
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
trunk/php/admin-menus/class-admin-menu.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Base class for a snippets admin menu
5
+ */
6
+ class Code_Snippets_Admin_Menu {
7
+
8
+ public $name, $label, $title;
9
+
10
+ /**
11
+ * Constructor
12
+ * @param string $name The snippet page shortname
13
+ * @param string $label The label shown in the admin menu
14
+ * @param string $title The text used for the page title
15
+ */
16
+ function __construct( $name, $label, $title ) {
17
+ $this->name = $name;
18
+ $this->label = $label;
19
+ $this->title = $title;
20
+ }
21
+
22
+ /**
23
+ * Register action and filter hooks
24
+ */
25
+ public function run() {
26
+ add_action( 'admin_menu', array( $this, 'register' ) );
27
+ add_action( 'network_admin_menu', array( $this, 'register' ) );
28
+ }
29
+
30
+ /**
31
+ * Add a sub-menu to the Snippets menu
32
+ * @uses add_submenu_page() to register a submenu
33
+ * @param string $slug The slug of the menu
34
+ * @param string $label The label shown in the admin menu
35
+ * @param string $title The page title
36
+ */
37
+ public function add_menu( $slug, $label, $title ) {
38
+ $hook = add_submenu_page(
39
+ code_snippets()->get_menu_slug(),
40
+ $title,
41
+ $label,
42
+ code_snippets()->get_cap(),
43
+ $slug,
44
+ array( $this, 'render' )
45
+ );
46
+
47
+ add_action( 'load-' . $hook, array( $this, 'load' ) );
48
+ }
49
+
50
+ /**
51
+ * Register the admin menu
52
+ */
53
+ public function register() {
54
+ $this->add_menu( code_snippets()->get_menu_slug( $this->name ), $this->label, $this->title );
55
+ }
56
+
57
+ /**
58
+ * Render the menu
59
+ */
60
+ public function render() {
61
+ $this->print_messages();
62
+ include dirname( dirname( __FILE__ ) ) . "/views/{$this->name}.php";
63
+ }
64
+
65
+ /**
66
+ * Print the status and error messages
67
+ */
68
+ protected function print_messages() {}
69
+
70
+ /**
71
+ * Retrieve a result message based on a posted status
72
+ *
73
+ * @param array $messages
74
+ * @param string $request_var
75
+ * @param string $class
76
+ *
77
+ * @return string|bool The result message if a valid status was received, otherwise false
78
+ */
79
+ protected function get_result_message( $messages, $request_var = 'result', $class = 'updated' ) {
80
+
81
+ if ( empty( $_REQUEST[ $request_var ] ) ) {
82
+ return false;
83
+ }
84
+
85
+ $result = $_REQUEST[ $request_var ];
86
+
87
+ if ( isset( $messages[ $result ] ) ) {
88
+ return sprintf(
89
+ '<div id="message" class="%2$s fade"><p>%1$s</p></div>',
90
+ $messages[ $result ], $class
91
+ );
92
+ }
93
+
94
+ return false;
95
+ }
96
+
97
+ /**
98
+ * Executed when the admin page is loaded
99
+ */
100
+ public function load() {
101
+ /* Make sure the user has permission to be here */
102
+ if ( ! current_user_can( code_snippets()->get_cap() ) ) {
103
+ wp_die( __( 'You are not authorized to access this page.', 'code-snippets' ) );
104
+ }
105
+
106
+ /* Create the snippet tables if they don't exist */
107
+ code_snippets()->db->create_tables();
108
+ }
109
+ }
trunk/php/admin-menus/class-edit-menu.php ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This class handles the add/edit menu
5
+ */
6
+ class Code_Snippets_Edit_Menu extends Code_Snippets_Admin_Menu {
7
+
8
+ /**
9
+ * Constructor
10
+ */
11
+ public function __construct() {
12
+ parent::__construct( 'edit',
13
+ __( 'Edit Snippet', 'code-snippets' ),
14
+ __( 'Edit Snippet', 'code-snippets' )
15
+ );
16
+ }
17
+
18
+ /**
19
+ * Register action and filter hooks
20
+ */
21
+ public function run() {
22
+ parent::run();
23
+ $this->remove_debug_bar_codemirror();
24
+ }
25
+
26
+ /**
27
+ * Register the admin menu
28
+ */
29
+ public function register() {
30
+
31
+ /* Add edit menu if we are currently editing a snippet */
32
+ if ( isset( $_REQUEST['page'] ) && code_snippets()->get_menu_slug( 'edit' ) === $_REQUEST['page'] ) {
33
+ parent::register();
34
+ }
35
+
36
+ /* Add New Snippet menu */
37
+ $this->add_menu(
38
+ code_snippets()->get_menu_slug( 'add' ),
39
+ _x( 'Add New', 'menu label', 'code-snippets' ),
40
+ __( 'Add New Snippet', 'code-snippets' )
41
+ );
42
+ }
43
+
44
+ /**
45
+ * Executed when the menu is loaded
46
+ */
47
+ public function load() {
48
+ parent::load();
49
+
50
+ /* Don't allow visiting the edit snippet page without a valid ID */
51
+ if ( code_snippets()->get_menu_slug( 'edit' ) === $_REQUEST['page'] ) {
52
+ if ( ! isset( $_REQUEST['id'] ) || 0 == $_REQUEST['id'] ) {
53
+ wp_redirect( code_snippets()->get_menu_url( 'add' ) );
54
+ exit;
55
+ }
56
+ }
57
+
58
+ /* Load the contextual help tabs */
59
+ $contextual_help = new Code_Snippets_Contextual_Help( 'edit' );
60
+ $contextual_help->load();
61
+
62
+ /* Enqueue the code editor and other scripts and styles */
63
+ add_action( 'admin_enqueue_scripts', 'code_snippets_enqueue_codemirror' );
64
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_tagit' ), 9 );
65
+
66
+ /* Register action hooks */
67
+ if ( code_snippets_get_setting( 'general', 'enable_description' ) ) {
68
+ add_action( 'code_snippets/admin/single', array( $this, 'render_description_editor' ), 9 );
69
+ }
70
+
71
+ if ( code_snippets_get_setting( 'general', 'enable_tags' ) ) {
72
+ add_action( 'code_snippets/admin/single', array( $this, 'render_tags_editor' ) );
73
+ }
74
+
75
+ if ( code_snippets_get_setting( 'general', 'snippet_scope_enabled' ) ) {
76
+ add_action( 'code_snippets/admin/single/settings', array( $this, 'render_scope_setting' ) );
77
+ }
78
+
79
+ if ( get_current_screen()->in_admin( 'network' ) ) {
80
+ add_action( 'code_snippets/admin/single/settings', array( $this, 'render_multisite_sharing_setting' ) );
81
+ }
82
+
83
+ $this->process_actions();
84
+ }
85
+
86
+ /**
87
+ * Process data sent from the edit page
88
+ */
89
+ private function process_actions() {
90
+
91
+ /* Check for a valid nonce */
92
+ if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'save_snippet' ) ) {
93
+ return;
94
+ }
95
+
96
+ if ( isset( $_POST['save_snippet'] ) || isset( $_POST['save_snippet_activate'] ) || isset( $_POST['save_snippet_deactivate'] ) ) {
97
+ $this->save_posted_snippet();
98
+ }
99
+
100
+ if ( isset( $_POST['snippet_id'] ) ) {
101
+
102
+ /* Delete the snippet if the button was clicked */
103
+ if ( isset( $_POST['delete_snippet'] ) ) {
104
+ delete_snippet( $_POST['snippet_id'] );
105
+ wp_redirect( add_query_arg( 'result', 'delete', code_snippets()->get_menu_url( 'manage' ) ) );
106
+ exit;
107
+ }
108
+
109
+ /* Export the snippet if the button was clicked */
110
+ if ( isset( $_POST['export_snippet'] ) ) {
111
+ export_snippets( $_POST['snippet_id'] );
112
+ }
113
+ }
114
+ }
115
+
116
+ /**
117
+ * Remove the sharing status from a network snippet
118
+ * @param int $snippet_id
119
+ */
120
+ private function unshare_network_snippet( $snippet_id ) {
121
+ $shared_snippets = get_site_option( 'shared_network_snippets', array() );
122
+
123
+ if ( ! in_array( $snippet_id, $shared_snippets ) ) {
124
+ return;
125
+ }
126
+
127
+ /* Remove the snippet ID from the array */
128
+ $shared_snippets = array_diff( $shared_snippets, array( $snippet_id ) );
129
+ update_site_option( 'shared_network_snippets', array_values( $shared_snippets ) );
130
+
131
+ /* Deactivate on all sites */
132
+ global $wpdb;
133
+ if ( $sites = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" ) ) {
134
+
135
+ foreach ( $sites as $site ) {
136
+ switch_to_blog( $site );
137
+ $active_shared_snippets = get_option( 'active_shared_network_snippets' );
138
+
139
+ if ( is_array( $active_shared_snippets ) ) {
140
+ $active_shared_snippets = array_diff( $active_shared_snippets, array( $snippet_id ) );
141
+ update_option( 'active_shared_network_snippets', $active_shared_snippets );
142
+ }
143
+ }
144
+
145
+ restore_current_blog();
146
+ }
147
+ }
148
+
149
+ private function code_error_callback( $out ) {
150
+ $error = error_get_last();
151
+
152
+ if ( is_null( $error ) ) {
153
+ return $out;
154
+ }
155
+
156
+ $m = '<h2>' . __( "Don't Panic", 'code-snippets' ) . '</h2>';
157
+ $m .= '<p>' . sprintf( __( 'The code snippet you are trying to save produced a fatal error on line %d:', 'code_snippets' ), $error['line'] ) . '</p>';
158
+ $m .= '<strong>' . $error['message'] . '</strong>';
159
+ $m .= '<p>' . __( 'The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.', 'code-snippets' ) . '</p>';
160
+ $m .= '<p>' . __( 'Please use the back button in your browser to return to the previous page and try to fix the code error.', 'code-snippets' );
161
+ $m .= ' ' . __( 'If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.', 'code-snippets' ) . '</p>';
162
+
163
+ return $m;
164
+ }
165
+
166
+ /**
167
+ * Validate the snippet code before saving to database
168
+ *
169
+ * @param Snippet $snippet
170
+ *
171
+ * @return bool true if code produces errors
172
+ */
173
+ private function validate_code( Snippet $snippet ) {
174
+
175
+ if ( empty( $snippet->code ) ) {
176
+ return false;
177
+ }
178
+
179
+ ob_start( array( $this, 'code_error_callback' ) );
180
+ $result = eval( $snippet->code );
181
+ ob_end_clean();
182
+
183
+ return false === $result;
184
+ }
185
+
186
+ /**
187
+ * Save the posted snippet data to the database and redirect
188
+ */
189
+ private function save_posted_snippet() {
190
+
191
+ /* Build snippet object from fields with 'snippet_' prefix */
192
+ $snippet = new Snippet();
193
+ foreach ( $_POST as $field => $value ) {
194
+ if ( 'snippet_' === substr( $field, 0, 8 ) ) {
195
+
196
+ /* Remove 'snippet_' prefix from field name */
197
+ $field = substr( $field, 8 );
198
+ $snippet->$field = stripslashes( $value );
199
+ }
200
+ }
201
+
202
+ /* Activate or deactivate the snippet before saving if we clicked the button */
203
+
204
+ // Shared network snippets cannot be network activated
205
+ if ( isset( $_POST['snippet_sharing'] ) && 'on' === $_POST['snippet_sharing'] ) {
206
+ $snippet->active = 0;
207
+ unset( $_POST['save_snippet_activate'], $_POST['save_snippet_deactivate'] );
208
+ } elseif ( isset( $_POST['save_snippet_activate'] ) ) {
209
+ $snippet->active = 1;
210
+ } elseif ( isset( $_POST['save_snippet_deactivate'] ) ) {
211
+ $snippet->active = 0;
212
+ }
213
+
214
+ /* Deactivate snippet if code contains errors */
215
+ if ( $snippet->active ) {
216
+ if ( $code_error = $this->validate_code( $snippet ) ) {
217
+ $snippet->active = 0;
218
+ }
219
+ }
220
+
221
+ /* Save the snippet to the database */
222
+ $snippet_id = save_snippet( $snippet );
223
+
224
+ /* Update the shared network snippets if necessary */
225
+ if ( $snippet_id && get_current_screen()->in_admin( 'network' ) ) {
226
+
227
+ if ( isset( $_POST['snippet_sharing'] ) && 'on' === $_POST['snippet_sharing'] ) {
228
+ $shared_snippets = get_site_option( 'shared_network_snippets', array() );
229
+
230
+ /* Add the snippet ID to the array if it isn't already */
231
+ if ( ! in_array( $snippet_id, $shared_snippets ) ) {
232
+ $shared_snippets[] = $snippet_id;
233
+ update_site_option( 'shared_network_snippets', array_values( $shared_snippets ) );
234
+ }
235
+ } else {
236
+ $this->unshare_network_snippet( $snippet_id );
237
+ }
238
+ }
239
+
240
+ /* If the saved snippet ID is invalid, display an error message */
241
+ if ( ! $snippet_id || $snippet_id < 1 ) {
242
+ /* An error occurred */
243
+ wp_redirect( add_query_arg( 'result', 'save-error', code_snippets()->get_menu_url( 'add' ) ) );
244
+ exit;
245
+ }
246
+
247
+ /* Display message if a parse error occurred */
248
+ if ( isset( $code_error ) && $code_error ) {
249
+ wp_redirect( add_query_arg(
250
+ array( 'id' => $snippet_id, 'result' => 'code-error' ),
251
+ code_snippets()->get_menu_url( 'edit' )
252
+ ) );
253
+ exit;
254
+ }
255
+
256
+ /* Set the result depending on if the snippet was just added */
257
+ $result = isset( $_POST['snippet_id'] ) ? 'updated' : 'added';
258
+
259
+ /* Append a suffix if the snippet was activated or deactivated */
260
+ if ( isset( $_POST['save_snippet_activate'] ) ) {
261
+ $result .= '-and-activated';
262
+ } elseif ( isset( $_POST['save_snippet_deactivate'] ) ) {
263
+ $result .= '-and-deactivated';
264
+ }
265
+
266
+ /* Redirect to edit snippet page */
267
+ wp_redirect( add_query_arg(
268
+ array( 'id' => $snippet_id, 'result' => $result ),
269
+ code_snippets()->get_menu_url( 'edit' )
270
+ ) );
271
+ exit;
272
+ }
273
+
274
+ /**
275
+ * Add a description editor to the single snippet page
276
+ * @param Snippet $snippet The snippet being used for this page
277
+ */
278
+ function render_description_editor( Snippet $snippet ) {
279
+ $settings = code_snippets_get_settings();
280
+ $settings = $settings['description_editor'];
281
+ $heading = __( 'Description', 'code-snippets' );
282
+
283
+ /* Hack to remove space between heading and editor tabs */
284
+ if ( ! $settings['media_buttons'] && 'false' !== get_user_option( 'rich_editing' ) ) {
285
+ $heading = "<div>$heading</div>";
286
+ }
287
+
288
+ echo '<label for="snippet_description"><h3>', $heading, '</h3></label>';
289
+
290
+ remove_editor_styles(); // stop custom theme styling interfering with the editor
291
+
292
+ wp_editor(
293
+ $snippet->desc,
294
+ 'description',
295
+ apply_filters( 'code_snippets/admin/description_editor_settings', array(
296
+ 'textarea_name' => 'snippet_description',
297
+ 'textarea_rows' => $settings['rows'],
298
+ 'teeny' => ! $settings['use_full_mce'],
299
+ 'media_buttons' => $settings['media_buttons'],
300
+ ) )
301
+ );
302
+ }
303
+
304
+ /**
305
+ * Render the interface for editing snippet tags
306
+ * @param Snippet $snippet the snippet currently being edited
307
+ */
308
+ function render_tags_editor( Snippet $snippet ) {
309
+
310
+ ?>
311
+ <label for="snippet_tags" style="cursor: auto;">
312
+ <h3><?php esc_html_e( 'Tags', 'code-snippets' ); ?></h3>
313
+ </label>
314
+
315
+ <input type="text" id="snippet_tags" name="snippet_tags" style="width: 100%;"
316
+ placeholder="<?php esc_html_e( 'Enter a list of tags; separated by commas', 'code-snippets' ); ?>"
317
+ value="<?php echo esc_attr( $snippet->tags_list ); ?>" />
318
+
319
+ <script type="text/javascript">
320
+ jQuery('#snippet_tags').tagit({
321
+ availableTags: <?php echo json_encode( get_all_snippet_tags() ); ?>,
322
+ allowSpaces: true,
323
+ removeConfirmation: true
324
+ });
325
+ </script>
326
+ <?php
327
+ }
328
+
329
+ /**
330
+ * Render the snippet scope setting
331
+ * @param Snippet $snippet the snippet currently being edited
332
+ */
333
+ function render_scope_setting( Snippet $snippet ) {
334
+
335
+ $scopes = array(
336
+ __( 'Run snippet everywhere', 'code-snippets' ),
337
+ __( 'Only run in administration area', 'code-snippets' ),
338
+ __( 'Only run on site front-end', 'code-snippets' ),
339
+ );
340
+
341
+ echo '<tr class="snippet-scope">';
342
+ echo '<th scope="row">' . __( 'Scope', 'code-snippets' ) . '</th><td>';
343
+
344
+ foreach ( $scopes as $scope => $label ) {
345
+ printf( '<div><input type="radio" name="snippet_scope" value="%d"', $scope );
346
+ checked( $scope, $snippet->scope );
347
+ echo "> $label</div>";
348
+ }
349
+
350
+ echo '</td></tr>';
351
+ }
352
+
353
+ /**
354
+ * Render the setting for shared network snippets
355
+ * @param object $snippet The snippet currently being edited
356
+ */
357
+ function render_multisite_sharing_setting( $snippet ) {
358
+ $shared_snippets = get_site_option( 'shared_network_snippets', array() );
359
+ ?>
360
+
361
+ <tr class="snippet-sharing-setting">
362
+ <th scope="row"><?php _e( 'Sharing', 'code-snippets' ) ?></th>
363
+ <td><label for="snippet_sharing">
364
+ <input type="checkbox" name="snippet_sharing"
365
+ <?php checked( in_array( $snippet->id, $shared_snippets ) ); ?>>
366
+ <?php _e( 'Allow this snippet to be activated on individual sites on the network', 'code-snippets' ); ?>
367
+ </label></td>
368
+ </tr>
369
+
370
+ <?php
371
+ }
372
+
373
+ /**
374
+ * Retrieve the first error in a snippet's code
375
+ *
376
+ * @param $snippet_id
377
+ *
378
+ * @return array|bool
379
+ */
380
+ private function get_snippet_error( $snippet_id ) {
381
+
382
+ if ( ! intval( $snippet_id ) ) {
383
+ return false;
384
+ }
385
+
386
+ $snippet = get_snippet( intval( $snippet_id ) );
387
+
388
+ if ( '' === $snippet->code ) {
389
+ return false;
390
+ }
391
+
392
+ ob_start();
393
+ $result = eval( $snippet->code );
394
+ ob_end_clean();
395
+
396
+ if ( false !== $result ) {
397
+ return false;
398
+ }
399
+
400
+ $error = error_get_last();
401
+
402
+ if ( is_null( $error ) ) {
403
+ return false;
404
+ }
405
+
406
+ return $error;
407
+ }
408
+
409
+ /**
410
+ * Print the status and error messages
411
+ */
412
+ protected function print_messages() {
413
+
414
+ if ( ! isset( $_REQUEST['result'] ) ) {
415
+ return;
416
+ }
417
+
418
+ $result = $_REQUEST['result'];
419
+
420
+ if ( 'code-error' === $result ) {
421
+
422
+ if ( isset( $_REQUEST['id'] ) && $error = $this->get_snippet_error( $_REQUEST['id'] ) ) {
423
+
424
+ printf(
425
+ '<div id="message" class="error fade"><p>%s</p><p><strong>%s</strong></p></div>',
426
+ sprintf( __( 'The snippet has been deactivated due to an error on line %d:', 'code-snippets' ), $error['line'] ),
427
+ $error['message']
428
+ );
429
+
430
+ } else {
431
+ echo '<div id="message" class="error fade"><p>', __( 'The snippet has been deactivated due to an error in the code.', 'code-snippets' ), '</p></div>';
432
+ }
433
+
434
+ return;
435
+ }
436
+
437
+ if ( 'save-error' === $result ) {
438
+ echo '<div id="message" class="error fade"><p>', __( 'An error occurred when saving the snippet.', 'code-snippets' ), '</p></div>';
439
+ return;
440
+ }
441
+
442
+ $messages = array(
443
+ 'added' => __( 'Snippet <strong>added</strong>.', 'code-snippets' ),
444
+ 'updated' => __( 'Snippet <strong>updated</strong>.', 'code-snippets' ),
445
+ 'added-and-activated' => __( 'Snippet <strong>added</strong> and <strong>activated</strong>.', 'code-snippets' ),
446
+ 'updated-and-activated' => __( 'Snippet <strong>updated</strong> and <strong>activated</strong>.', 'code-snippets' ),
447
+ 'updated-and-deactivated' => __( 'Snippet <strong>updated</strong> and <strong>deactivated</strong>.', 'code-snippets' ),
448
+ );
449
+
450
+ if ( isset( $messages[ $result ] ) ) {
451
+ echo '<div id="message" class="updated fade"><p>', $messages[ $result ], '</p></div>';
452
+ }
453
+ }
454
+
455
+ /**
456
+ * Enqueue the Tag It library
457
+ */
458
+ function enqueue_tagit() {
459
+ $tagit_version = '2.0';
460
+ $url = plugin_dir_url( CODE_SNIPPETS_FILE );
461
+
462
+ /* Tag It UI */
463
+ wp_enqueue_script(
464
+ 'code-snippets-tag-it',
465
+ $url . 'js/min/tag-it.js',
466
+ array(
467
+ 'jquery-ui-core',
468
+ 'jquery-ui-widget',
469
+ 'jquery-ui-position',
470
+ 'jquery-ui-autocomplete',
471
+ 'jquery-effects-blind',
472
+ 'jquery-effects-highlight',
473
+ ),
474
+ $tagit_version
475
+ );
476
+
477
+ wp_enqueue_style(
478
+ 'code-snippets-tag-it',
479
+ $url . 'css/min/tagit.css',
480
+ false, $tagit_version
481
+ );
482
+ }
483
+
484
+ /**
485
+ * Remove the old CodeMirror version used by the Debug Bar Console plugin
486
+ * that is messing up the snippet editor
487
+ */
488
+ function remove_debug_bar_codemirror() {
489
+
490
+ /* Try to discern if we are on the single snippet page as best as we can at this early time */
491
+ if ( ! is_admin() || 'admin.php' !== $GLOBALS['pagenow'] ) {
492
+ return;
493
+ }
494
+
495
+ if ( ! isset( $_GET['page'] ) || code_snippets()->get_menu_slug( 'edit' ) !== $_GET['page'] && code_snippets()->get_menu_slug( 'settings' ) ) {
496
+ return;
497
+ }
498
+
499
+ remove_action( 'debug_bar_enqueue_scripts', 'debug_bar_console_scripts' );
500
+ }
501
+ }
trunk/php/admin-menus/class-import-menu.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This class handles the import admin menu
5
+ * @since 2.4.0
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets_Import_Menu extends Code_Snippets_Admin_Menu {
9
+
10
+ /**
11
+ * Class constructor
12
+ */
13
+ function __construct() {
14
+ parent::__construct( 'import',
15
+ _x( 'Import', 'menu label', 'code-snippets' ),
16
+ __( 'Import Snippets', 'code-snippets' )
17
+ );
18
+ }
19
+
20
+ /**
21
+ * Register action and filter hooks
22
+ */
23
+ public function run() {
24
+ parent::run();
25
+ add_action( 'admin_init', array( $this, 'register_importer' ) );
26
+ add_action( 'load-importer-code-snippets', array( $this, 'load' ) );
27
+ }
28
+
29
+ /**
30
+ * Executed when the menu is loaded
31
+ */
32
+ public function load() {
33
+ parent::load();
34
+
35
+ $contextual_help = new Code_Snippets_Contextual_Help( 'import' );
36
+ $contextual_help->load();
37
+
38
+ $this->process_import_file();
39
+ }
40
+
41
+ /**
42
+ * Process the uploaded import file
43
+ *
44
+ * @uses import_snippets() to process the import file
45
+ * @uses wp_redirect() to pass the import results to the page
46
+ * @uses add_query_arg() to append the results to the current URI
47
+ */
48
+ private function process_import_file() {
49
+
50
+ /* Ensure the import file exists */
51
+ if ( ! isset( $_FILES['code_snippets_import_file']['tmp_name'] ) ) {
52
+ return;
53
+ }
54
+
55
+ $network = get_current_screen()->in_admin( 'network' );
56
+
57
+ /* Import the snippets */
58
+ $result = import_snippets( $_FILES['code_snippets_import_file']['tmp_name'], $network );
59
+
60
+ /* Send the amount of imported snippets to the page */
61
+ $url = add_query_arg(
62
+ $result ?
63
+ array( 'imported' => count( $result ) ) :
64
+ array( 'error' => true )
65
+ );
66
+
67
+ wp_redirect( esc_url_raw( $url ) );
68
+ exit;
69
+ }
70
+
71
+ /**
72
+ * Add the importer to the Tools > Import menu
73
+ */
74
+ function register_importer() {
75
+
76
+ /* Only register the importer if the current user can manage snippets */
77
+ if ( ! defined( 'WP_LOAD_IMPORTERS' ) || ! code_snippets()->current_user_can() ) {
78
+ return;
79
+ }
80
+
81
+ /* Register the Code Snippets importer with WordPress */
82
+ register_importer(
83
+ 'code-snippets',
84
+ __( 'Code Snippets', 'code-snippets' ),
85
+ __( 'Import snippets from a code snippets export file', 'code-snippets' ),
86
+ array( $this, 'render' )
87
+ );
88
+ }
89
+
90
+ /**
91
+ * Print the status and error messages
92
+ */
93
+ protected function print_messages() {
94
+ if ( isset( $_REQUEST['imported'] ) ) {
95
+ echo '<div id="message" class="updated fade"><p>';
96
+
97
+ printf(
98
+ _n(
99
+ 'Successfully imported <strong>%d</strong> snippet. <a href="%s">Have fun!</a>',
100
+ 'Successfully imported <strong>%d</strong> snippets. <a href="%s">Have fun!</a>',
101
+ count( $_REQUEST['imported'] ),
102
+ 'code-snippets'
103
+ ),
104
+ $_REQUEST['imported'],
105
+ code_snippets()->get_menu_url( 'manage' )
106
+ );
107
+
108
+ echo '</p></div>';
109
+
110
+ } elseif ( isset( $_REQUEST['error'] ) && $_REQUEST['error'] ) {
111
+ echo '<div id="message" class="error fade"><p>';
112
+ _e( 'An error occurred when processing the import file.', 'code-snippets' );
113
+ echo '</p></div>';
114
+ }
115
+ }
116
+ }
trunk/php/admin-menus/class-manage-menu.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This class handles the manage snippets menu
5
+ * @since 2.4.0
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets_Manage_Menu extends Code_Snippets_Admin_Menu {
9
+
10
+ /**
11
+ * Holds the list table class
12
+ * @var Code_Snippets_List_Table
13
+ */
14
+ public $list_table;
15
+
16
+ /**
17
+ * Class constructor
18
+ */
19
+ public function __construct() {
20
+
21
+ parent::__construct( 'manage',
22
+ _x( 'All Snippets', 'menu label', 'code-snippets' ),
23
+ __( 'Snippets', 'code-snippets' )
24
+ );
25
+ }
26
+
27
+ /**
28
+ * Register action and filter hooks
29
+ */
30
+ public function run() {
31
+ parent::run();
32
+ add_filter( 'set-screen-option', array( $this, 'save_screen_option' ), 10, 3 );
33
+ }
34
+
35
+ /**
36
+ * Register the top-level 'Snippets' menu and associated 'Manage' subpage
37
+ *
38
+ * @uses add_menu_page() to register a top-level menu
39
+ * @uses add_submenu_page() to register a sub-menu
40
+ */
41
+ function register() {
42
+
43
+ /* Register the top-level menu */
44
+ add_menu_page(
45
+ __( 'Snippets', 'code-snippets' ),
46
+ _x( 'Snippets', 'top-level menu label', 'code-snippets' ),
47
+ code_snippets()->get_cap(),
48
+ code_snippets()->get_menu_slug(),
49
+ array( $this, 'render' ),
50
+ 'div', // icon is added through CSS
51
+ is_network_admin() ? 21 : 67
52
+ );
53
+
54
+ /* Register the sub-menu */
55
+ parent::register();
56
+ }
57
+
58
+ /**
59
+ * Executed when the admin page is loaded
60
+ */
61
+ function load() {
62
+ parent::load();
63
+
64
+ /* Load the contextual help tabs */
65
+ $contextual_help = new Code_Snippets_Contextual_Help( 'manage' );
66
+ $contextual_help->load();
67
+
68
+ /* Initialize the list table class */
69
+ $this->list_table = new Code_Snippets_List_Table();
70
+ $this->list_table->prepare_items();
71
+ }
72
+
73
+ /**
74
+ * Print the status and error messages
75
+ */
76
+ protected function print_messages() {
77
+
78
+ /* Output a warning if safe mode is active */
79
+ if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
80
+ echo '<div id="message" class="error fade"><p>';
81
+ _e( '<strong>Warning:</strong> Safe mode is active and snippets will not execute! Remove the <code>CODE_SNIPPETS_SAFE_MODE</code> constant from <code>wp-config.php</code> to turn off safe mode. <a href="https://github.com/sheabunge/code-snippets/wiki/Safe-Mode" target="_blank">Help</a>', 'code-snippets' );
82
+ echo '</p></div>';
83
+ }
84
+
85
+ echo $this->get_result_message(
86
+ array(
87
+ 'activated' => __( 'Snippet <strong>activated</strong>.', 'code-snippets' ),
88
+ 'activated-multi' => __( 'Selected snippets <strong>activated</strong>.', 'code-snippets' ),
89
+ 'deactivated' => __( 'Snippet <strong>deactivated</strong>.', 'code-snippets' ),
90
+ 'deactivated-multi' => __( 'Selected snippets <strong>deactivated</strong>.', 'code-snippets' ),
91
+ 'deleted' => __( 'Snippet <strong>deleted</strong>.', 'code-snippets' ),
92
+ 'deleted-multi' => __( 'Selected snippets <strong>deleted</strong>.', 'code-snippets' ),
93
+ )
94
+ );
95
+ }
96
+
97
+ /**
98
+ * Handles saving the user's snippets per page preference
99
+ *
100
+ * @param unknown $status
101
+ * @param string $option The screen option name
102
+ * @param unknown $value
103
+ * @return unknown
104
+ */
105
+ function save_screen_option( $status, $option, $value ) {
106
+ if ( 'snippets_per_page' === $option ) {
107
+ return $value;
108
+ }
109
+
110
+ return $status;
111
+ }
112
+ }
trunk/php/admin-menus/class-settings-menu.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This class handles the settings admin menu
5
+ * @since 2.4.0
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets_Settings_Menu extends Code_Snippets_Admin_Menu {
9
+
10
+ /**
11
+ * Constructor
12
+ */
13
+ public function __construct() {
14
+
15
+ parent::__construct( 'settings',
16
+ _x( 'Settings', 'menu label', 'code-snippets' ),
17
+ __( 'Snippets Settings', 'code-snippets' )
18
+ );
19
+ }
20
+
21
+ /**
22
+ * Executed when the admin page is loaded
23
+ */
24
+ function load() {
25
+ parent::load();
26
+
27
+ if ( is_network_admin() ) {
28
+ wp_redirect( code_snippets()->get_menu_url( 'settings', 'admin' ) );
29
+ exit;
30
+ }
31
+ }
32
+
33
+ /**
34
+ * Render the admin screen
35
+ */
36
+ function render() {
37
+ ?>
38
+ <div class="wrap">
39
+ <h2><?php esc_html_e( 'Settings', 'code-snippets' ); ?></h2>
40
+
41
+ <?php settings_errors( 'code-snippets-settings-notices' ); ?>
42
+
43
+ <form action="<?php echo admin_url( 'options.php' ); ?>" method="post">
44
+ <?php
45
+
46
+ settings_fields( 'code-snippets' );
47
+ do_settings_sections( 'code-snippets' );
48
+ submit_button();
49
+
50
+ ?>
51
+ </form>
52
+ </div>
53
+ <?php
54
+ }
55
+ }
trunk/php/class-admin.php ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Functions specific to the administration interface
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets_Admin {
9
+
10
+ public $menus = array();
11
+
12
+ function __construct() {
13
+
14
+ if ( is_admin() ) {
15
+ $this->run();
16
+ }
17
+ }
18
+
19
+ public function load_classes() {
20
+ $this->menus['manage'] = new Code_Snippets_Manage_Menu();
21
+ $this->menus['edit'] = new Code_Snippets_Edit_Menu();
22
+ $this->menus['import'] = new Code_Snippets_Import_Menu();
23
+
24
+ if ( ! is_network_admin() ) {
25
+ $this->menus['settings'] = new Code_Snippets_Settings_Menu();
26
+ }
27
+
28
+ foreach ( $this->menus as $menu ) {
29
+ $menu->run();
30
+ }
31
+ }
32
+
33
+ public function run() {
34
+ add_action( 'init', array( $this, 'load_classes' ), 11 );
35
+
36
+ add_filter( 'mu_menu_items', array( $this, 'mu_menu_items' ) );
37
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylesheet' ) );
38
+ add_filter( 'plugin_action_links_' . plugin_basename( CODE_SNIPPETS_FILE ), array( $this, 'plugin_settings_link' ) );
39
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_meta_links' ), 10, 2 );
40
+ add_action( 'code_snippets/admin/manage', array( $this, 'survey_message' ) );
41
+
42
+ if ( isset( $_POST['save_snippet'] ) && $_POST['save_snippet'] ) {
43
+ add_action( 'code_snippets/allow_execute_snippet', array( $this, 'prevent_exec_on_save' ), 10, 2 );
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Allow super admins to control site admin access to
49
+ * snippet admin menus
50
+ *
51
+ * Adds a checkbox to the *Settings > Network Settings*
52
+ * network admin menu
53
+ *
54
+ * @since 1.7.1
55
+ *
56
+ * @param array $menu_items The current mu menu items
57
+ *
58
+ * @return array The modified mu menu items
59
+ */
60
+ function mu_menu_items( $menu_items ) {
61
+ $menu_items['snippets'] = __( 'Snippets', 'code-snippets' );
62
+ return $menu_items;
63
+ }
64
+
65
+ /**
66
+ * Enqueue the stylesheet for a snippet menu
67
+ *
68
+ * @since 2.2.0
69
+ * @uses wp_enqueue_style() to add the stylesheet to the queue
70
+ * @uses get_user_option() to check if MP6 mode is active
71
+ * @uses plugins_url() to retrieve a URL to assets
72
+ *
73
+ * @param string $hook the current page hook
74
+ */
75
+ function enqueue_admin_stylesheet( $hook ) {
76
+ $pages = array( 'manage', 'add', 'edit', 'settings' );
77
+ $hooks = array_map( 'code_snippets_get_menu_hook', $pages );
78
+
79
+ /* First, load the menu icon stylesheet */
80
+ wp_enqueue_style(
81
+ 'menu-icon-snippets',
82
+ plugins_url( 'css/min/menu-icon.css', CODE_SNIPPETS_FILE ),
83
+ false,
84
+ CODE_SNIPPETS_VERSION
85
+ );
86
+
87
+ /* Only load the stylesheet on the right snippets page */
88
+ if ( ! in_array( $hook, $hooks ) ) {
89
+ return;
90
+ }
91
+
92
+ $hooks = array_combine( $hooks, $pages );
93
+ $page = $hooks[ $hook ];
94
+
95
+ // add snippet page uses edit stylesheet
96
+ 'add' === $page && $page = 'edit';
97
+
98
+ wp_enqueue_style(
99
+ "code-snippets-$page",
100
+ plugins_url( "css/min/$page.css", CODE_SNIPPETS_FILE ),
101
+ false,
102
+ CODE_SNIPPETS_VERSION
103
+ );
104
+ }
105
+
106
+ /**
107
+ * Prevent the snippet currently being saved from being executed
108
+ * so it is not run twice (once normally, once
109
+ *
110
+ * @param bool $exec Whether the snippet will be executed
111
+ * @param int $exec_id The ID of the snippet being executed
112
+ *
113
+ * @return bool Whether the snippet will be executed
114
+ */
115
+ function prevent_exec_on_save( $exec, $exec_id ) {
116
+
117
+ if ( ! isset( $_POST['save_snippet'], $_POST['snippet_id'] ) ) {
118
+ return $exec;
119
+ }
120
+
121
+ $id = intval( $_POST['snippet_id'] );
122
+
123
+ if ( $id == $exec_id ) {
124
+ return false;
125
+ }
126
+
127
+ return $exec;
128
+ }
129
+
130
+ /**
131
+ * Adds a link pointing to the Manage Snippets page
132
+ *
133
+ * @since 2.0
134
+ *
135
+ * @param array $links The existing plugin action links
136
+ *
137
+ * @return array The modified plugin action links
138
+ */
139
+ function plugin_settings_link( $links ) {
140
+ array_unshift( $links, sprintf(
141
+ '<a href="%1$s" title="%2$s">%3$s</a>',
142
+ code_snippets()->get_menu_url(),
143
+ __( 'Manage your existing snippets', 'code-snippets' ),
144
+ __( 'Snippets', 'code-snippets' )
145
+ ) );
146
+
147
+ return $links;
148
+ }
149
+
150
+ /**
151
+ * Adds extra links related to the plugin
152
+ *
153
+ * @since 2.0
154
+ *
155
+ * @param array $links The existing plugin info links
156
+ * @param string $file The plugin the links are for
157
+ *
158
+ * @return array The modified plugin info links
159
+ */
160
+ function plugin_meta_links( $links, $file ) {
161
+
162
+ /* We only want to affect the Code Snippets plugin listing */
163
+ if ( plugin_basename( CODE_SNIPPETS_FILE ) !== $file ) {
164
+ return $links;
165
+ }
166
+
167
+ $format = '<a href="%1$s" title="%2$s">%3$s</a>';
168
+
169
+ /* array_merge appends the links to the end */
170
+
171
+ return array_merge( $links, array(
172
+ sprintf( $format,
173
+ 'http://wordpress.org/plugins/code-snippets/',
174
+ __( 'Visit the WordPress.org plugin page', 'code-snippets' ),
175
+ __( 'About', 'code-snippets' )
176
+ ),
177
+ sprintf( $format,
178
+ 'http://wordpress.org/support/plugin/code-snippets/',
179
+ __( 'Visit the support forums', 'code-snippets' ),
180
+ __( 'Support', 'code-snippets' )
181
+ ),
182
+ sprintf( $format,
183
+ 'http://bungeshea.com/donate/',
184
+ __( "Support this plugin's development", 'code-snippets' ),
185
+ __( 'Donate', 'code-snippets' )
186
+ ),
187
+ ) );
188
+ }
189
+
190
+ /**
191
+ * Print a notice inviting people to participate in the Code Snippets Survey
192
+ *
193
+ * @since 1.9
194
+ * @return void
195
+ */
196
+ function survey_message() {
197
+ global $current_user;
198
+
199
+ $key = 'ignore_code_snippets_survey_message';
200
+
201
+ /* Bail now if the user has dismissed the message */
202
+ if ( get_user_meta( $current_user->ID, $key ) ) {
203
+ return;
204
+ } elseif ( isset( $_GET[ $key ], $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], $key ) ) {
205
+ add_user_meta( $current_user->ID, $key, true, true );
206
+
207
+ return;
208
+ }
209
+
210
+ ?>
211
+
212
+ <br/>
213
+
214
+ <div class="updated"><p>
215
+
216
+ <?php _e( "<strong>Have feedback on Code Snippets?</strong> Please take the time to answer a short survey on how you use this plugin and what you'd like to see changed or added in the future.", 'code-snippets' ); ?>
217
+
218
+ <a href="http://sheabunge.polldaddy.com/s/code-snippets-feedback" class="button secondary"
219
+ target="_blank" style="margin: auto .5em;">
220
+ <?php _e( 'Take the survey now', 'code-snippets' ); ?>
221
+ </a>
222
+
223
+ <a href="<?php echo esc_url( wp_nonce_url( add_query_arg( $key, true ), $key ) ); ?>"><?php _e( 'Dismiss', 'code-snippets' ); ?></a>
224
+
225
+ </p></div>
226
+
227
+ <?php
228
+ }
229
+ }
trunk/php/class-code-snippets.php ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * The main plugin class
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets {
9
+
10
+ /**
11
+ * The current plugin version
12
+ * @var string
13
+ */
14
+ public $version;
15
+
16
+ /**
17
+ * Filesystem path to the main plugin file
18
+ * @var string
19
+ */
20
+ public $file;
21
+
22
+ /**
23
+ * @var Code_Snippets_DB
24
+ */
25
+ public $db;
26
+
27
+ /**
28
+ * @var Code_Snippets_Admin
29
+ */
30
+ public $admin;
31
+
32
+ /**
33
+ * Class constructor
34
+ *
35
+ * @param string $version The current plugin version
36
+ * @param string $file The main plugin file
37
+ */
38
+ function __construct( $version, $file ) {
39
+ $this->version = $version;
40
+ $this->file = $file;
41
+
42
+ add_action( 'grant_super_admin', array( $this, 'grant_network_cap' ) );
43
+ add_action( 'remove_super_admin', array( $this, 'remove_network_cap' ) );
44
+
45
+ add_action( 'init', array( $this, 'load_textdomain' ), 9 );
46
+ }
47
+
48
+ function load_plugin() {
49
+ $includes_path = dirname( __FILE__ );
50
+
51
+ /* Database operation functions */
52
+ $this->db = new Code_Snippets_DB();
53
+
54
+ /* Snippet operation functions */
55
+ require_once $includes_path . '/snippet-ops.php';
56
+
57
+ /* Upgrade function */
58
+ require_once $includes_path . '/upgrade.php';
59
+
60
+ /* CodeMirror editor functions */
61
+ require_once $includes_path . '/editor.php';
62
+
63
+ /* Backwards compatability functions */
64
+ require_once $includes_path . '/functions.php';
65
+
66
+ /* General Administration functions */
67
+ if ( is_admin() ) {
68
+ $this->admin = new Code_Snippets_Admin();
69
+ }
70
+
71
+ /* Settings component */
72
+ require_once $includes_path . '/settings/settings-fields.php';
73
+ require_once $includes_path . '/settings/editor-preview.php';
74
+ require_once $includes_path . '/settings/render-fields.php';
75
+ require_once $includes_path . '/settings/settings.php';
76
+
77
+ $this->shortcode = new Code_Snippets_Shortcode();
78
+ }
79
+
80
+ /**
81
+ * Fetch the admin menu slug for a snippets menu
82
+ * @param string $menu The menu to retrieve the slug for
83
+ * @return string The menu's slug
84
+ */
85
+ public function get_menu_slug( $menu = '' ) {
86
+ $add = array( 'single', 'add', 'add-new', 'add-snippet', 'new-snippet', 'add-new-snippet' );
87
+ $edit = array( 'edit', 'edit-snippet' );
88
+ $import = array( 'import', 'import-snippets' );
89
+ $settings = array( 'settings', 'snippets-settings' );
90
+
91
+ if ( in_array( $menu, $edit ) ) {
92
+ return 'edit-snippet';
93
+ } elseif ( in_array( $menu, $add ) ) {
94
+ return 'add-snippet';
95
+ } elseif ( in_array( $menu, $import ) ) {
96
+ return 'import-snippets';
97
+ } elseif ( in_array( $menu, $settings ) ) {
98
+ return 'snippets-settings';
99
+ } else {
100
+ return 'snippets';
101
+ }
102
+ }
103
+
104
+ /**
105
+ * Fetch the URL to a snippets admin menu
106
+ * @param string $menu The menu to retrieve the URL to
107
+ * @param string $context The URL scheme to use
108
+ * @return string The menu's URL
109
+ */
110
+ public function get_menu_url( $menu = '', $context = 'self' ) {
111
+ $slug = $this->get_menu_slug( $menu );
112
+ $url = 'admin.php?page=' . $slug;
113
+
114
+ if ( 'network' === $context ) {
115
+ return network_admin_url( $url );
116
+ } elseif ( 'admin' === $context ) {
117
+ return admin_url( $url );
118
+ } else {
119
+ return self_admin_url( $url );
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Fetch the admin menu hook for a snippets menu
125
+ * @param string $menu The menu to retrieve the hook for
126
+ * @return string The menu's hook
127
+ */
128
+ public function get_menu_hook( $menu = '' ) {
129
+ $slug = $this->get_menu_slug( $menu );
130
+ return get_plugin_page_hookname( $slug, 'snippets' );
131
+ }
132
+
133
+ /**
134
+ * Fetch the admin menu slug for a snippets menu
135
+ * @param int $snippet_id The snippet
136
+ * @param string $context The URL scheme to use
137
+ * @return string The URL to the edit snippet page for that snippet
138
+ */
139
+ public function get_snippet_edit_url( $snippet_id, $context = 'self' ) {
140
+ return add_query_arg(
141
+ 'id', absint( $snippet_id ),
142
+ $this->get_menu_url( 'edit', $context )
143
+ );
144
+ }
145
+
146
+ /**
147
+ * Determine whether the current user can perform actions on snippets.
148
+ *
149
+ * @since [NEXT_VERSION]
150
+ * @return boolean Whether the current user has the required capability
151
+ */
152
+ public function current_user_can() {
153
+ return current_user_can( $this->get_cap() );
154
+ }
155
+
156
+ /**
157
+ * Get the required capability to perform a certain action on snippets.
158
+ * Does not check if the user has this capability or not.
159
+ *
160
+ * If multisite, checks if *Enable Administration Menus: Snippets* is active
161
+ * under the *Settings > Network Settings* network admin menu
162
+ *
163
+ * @since 2.0
164
+ * @return string The capability required to manage snippets
165
+ */
166
+ public function get_cap() {
167
+
168
+ if ( is_multisite() ) {
169
+ $menu_perms = get_site_option( 'menu_items', array() );
170
+
171
+ /* If multisite is enabled and the snippet menu is not activated,
172
+ restrict snippet operations to super admins only */
173
+ if ( empty( $menu_perms['snippets'] ) ) {
174
+ return apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' );
175
+ }
176
+ }
177
+
178
+ return apply_filters( 'code_snippets_cap', 'manage_snippets' );
179
+ }
180
+
181
+ /**
182
+ * Add the multisite capabilities to a user
183
+ *
184
+ * @since 2.0
185
+ * @param int $user_id The ID of the user to add the cap to
186
+ */
187
+ function grant_network_cap( $user_id ) {
188
+
189
+ /* Get the user from the ID */
190
+ $user = new WP_User( $user_id );
191
+
192
+ /* Add the capability */
193
+ $user->add_cap( apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' ) );
194
+ }
195
+
196
+ /**
197
+ * Remove the multisite capabilities from a user
198
+ *
199
+ * @since 2.0
200
+ * @param int $user_id The ID of the user to remove the cap from
201
+ */
202
+ function remove_network_cap( $user_id ) {
203
+
204
+ /* Get the user from the ID */
205
+ $user = new WP_User( $user_id );
206
+
207
+ /* Remove the capability */
208
+ $user->remove_cap( apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' ) );
209
+ }
210
+
211
+ /**
212
+ * Load up the localization file if we're using WordPress in a different language.
213
+ *
214
+ * If you wish to contribute a language file to be included in the Code Snippets package,
215
+ * please see create an issue on GitHub: https://github.com/sheabunge/code-snippets/issues
216
+ */
217
+ function load_textdomain() {
218
+ $domain = 'code-snippets';
219
+ $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
220
+
221
+ // wp-content/languages/code-snippets/code-snippets-[locale].mo
222
+ load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . "$domain/$domain-$locale.mo" );
223
+
224
+ // wp-content/plugins/code-snippets/languages/code-snippets-[locale].mo
225
+ load_plugin_textdomain( $domain, false, dirname( plugin_basename( $this->file ) ) . '/languages' );
226
+ }
227
+ }
trunk/php/class-contextual-help.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file holds all of the content for the contextual help screens
5
+ * @package Code_Snippets
6
+ */
7
+ class Code_Snippets_Contextual_Help {
8
+
9
+ /**
10
+ * @var WP_Screen
11
+ */
12
+ public $screen;
13
+
14
+ /**
15
+ * @param string $screen_name
16
+ */
17
+ function __construct( $screen_name ) {
18
+ $this->screen_name = $screen_name;
19
+ }
20
+
21
+ /**
22
+ * Load the contextual help
23
+ */
24
+ public function load() {
25
+ $this->screen = get_current_screen();
26
+
27
+ if ( method_exists( $this, "load_{$this->screen_name}_help" ) ) {
28
+ call_user_func( array( $this, "load_{$this->screen_name}_help" ) );
29
+ }
30
+
31
+ $this->load_help_sidebar();
32
+ }
33
+
34
+ /**
35
+ * Load the help sidebar
36
+ */
37
+ private function load_help_sidebar() {
38
+
39
+ $this->screen->set_help_sidebar(
40
+ '<p><strong>' . __( 'For more information:', 'code-snippets' ) . '</strong></p>' .
41
+ '<p><a href="https://wordpress.org/plugins/code-snippets">' . __( 'About Plugin', 'code-snippets' ) . '</a></p>' .
42
+ '<p><a href="https://wordpress.org/plugins/code-snippets/faq">' . __( 'FAQ', 'code-snippets' ) . '</a></p>' .
43
+ '<p><a href="https://wordpress.org/support/plugin/code-snippets">' . __( 'Support Forums', 'code-snippets' ) . '</a></p>' .
44
+ '<p><a href="https://bungeshea.com/plugins/code-snippets/">' . __( 'Plugin Website', 'code-snippets' ) . '</a></p>'
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Register and handle the help tabs for the manage snippets admin page
50
+ */
51
+ private function load_manage_help() {
52
+
53
+ $this->screen->add_help_tab( array(
54
+ 'id' => 'overview',
55
+ 'title' => __( 'Overview', 'code-snippets' ),
56
+ 'content' => '<p>' . __( 'Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can manage your existing snippets and perform tasks on them such as activating, deactivating, deleting and exporting.', 'code-snippets' ) . '</p>',
57
+ ) );
58
+
59
+ $this->screen->add_help_tab( array(
60
+ 'id' => 'safe-mode',
61
+ 'title' => __( 'Safe Mode', 'code-snippets' ),
62
+ 'content' => '<p>' . __( 'Be sure to check your snippets for errors before you activate them, as a faulty snippet could bring your whole blog down. If your site starts doing strange things, deactivate all your snippets and activate them one at a time.', 'code-snippets' ) . '</p>' .
63
+ '<p>' . __( "If something goes wrong with a snippet and you can't use WordPress, you can cause all snippets to stop executing by adding <code>define('CODE_SNIPPETS_SAFE_MODE', true);</code> to your <code>wp-config.php</code> file. After you have deactivated the offending snippet, you can turn off safe mode by removing this line or replacing <strong>true</strong> with <strong>false</strong>.", 'code-snippets' ) . '</p>',
64
+ ) );
65
+
66
+ $this->screen->add_help_tab( array(
67
+ 'id' => 'uninstall',
68
+ 'title' => __( 'Uninstall', 'code-snippets' ),
69
+ 'content' => '<p>' . sprintf( __( 'When you delete Code Snippets through the Plugins menu in WordPress it will clear up the <code>%1$s</code> table and a few other bits of data stored in the database. If you want to keep this data (ie: you are only temporally uninstalling Code Snippets) then remove the <code>%2$s</code> folder using FTP.', 'code-snippets' ), code_snippets()->db->get_table_name(), dirname( CODE_SNIPPETS_FILE ) ) .
70
+ '<p>' . __( "Even if you're sure that you don't want to use Code Snippets ever again on this WordPress installation, you may want to use the export feature to back up your snippets.", 'code-snippets' ) . '</p>',
71
+ ) );
72
+ }
73
+
74
+ /**
75
+ * Register and handle the help tabs for the single snippet admin page
76
+ */
77
+ private function load_edit_help() {
78
+
79
+ $this->screen->add_help_tab( array(
80
+ 'id' => 'overview',
81
+ 'title' => __( 'Overview', 'code-snippets' ),
82
+ 'content' => '<p>' . __( 'Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can add a new snippet, or edit an existing one.', 'code-snippets' ) . '</p>',
83
+ ) );
84
+
85
+ $this->screen->add_help_tab( array(
86
+ 'id' => 'finding',
87
+ 'title' => __( 'Finding Snippets', 'code-snippets' ),
88
+ 'content' => '<p>' . __( 'Here are some links to websites which host a large number of snippets that you can add to your site.
89
+ <ul>
90
+ <li><a href="http://wp-snippets.com" title="WordPress Snippets">WP-Snippets</a></li>
91
+ <li><a href="http://wpsnipp.com" title="WP Snipp">WP Snipp</a></li>
92
+ <li><a href="http://www.catswhocode.com/blog/snippets" title="Cats Who Code Snippet Library">Cats Who Code</a></li>
93
+ <li><a href="http://www.wpfunction.me">WP Function Me</a></li>
94
+ </ul>', 'code-snippets' ) .
95
+ __( 'More places to find snippets, as well as a selection of example snippets, can be found in the <a href="https://github.com/sheabunge/code-snippets/wiki/Finding-snippets">plugin documentation</a>', 'code-snippets' ) . '</p>',
96
+ ) );
97
+
98
+ $this->screen->add_help_tab( array(
99
+ 'id' => 'adding',
100
+ 'title' => __( 'Adding Snippets', 'code-snippets' ),
101
+ 'content' => '<p>' . __( 'You need to fill out the name and code fields for your snippet to be added. While the description field will add more information about how your snippet works, what is does and where you found it, it is completely optional.', 'code-snippets' ) . '</p>' .
102
+ '<p>' . __( 'Please be sure to check that your snippet is valid PHP code and will not produce errors before adding it through this page. While doing so will not become active straight away, it will help to minimise the chance of a faulty snippet becoming active on your site.', 'code-snippets' ) . '</p>',
103
+ ) );
104
+ }
105
+
106
+ /**
107
+ * Register and handle the help tabs for the import snippets admin page
108
+ */
109
+ private function load_import_help() {
110
+ $manage_url = code_snippets()->get_menu_url( 'manage' );
111
+
112
+ $this->screen->add_help_tab( array(
113
+ 'id' => 'overview',
114
+ 'title' => __( 'Overview', 'code-snippets' ),
115
+ 'content' => '<p>' . __( 'Snippets are similar to plugins - they both extend and expand the functionality of WordPress. Snippets are more light-weight, just a few lines of code, and do not put as much load on your server. Here you can load snippets from a Code Snippets (.xml) import file into the database with your existing snippets.', 'code-snippets' ) . '</p>',
116
+ ) );
117
+
118
+ $this->screen->add_help_tab( array(
119
+ 'id' => 'import',
120
+ 'title' => __( 'Importing', 'code-snippets' ),
121
+ 'content' => '<p>' . __( 'You can load your snippets from a code snippets (.xml) export file using this page.', 'code-snippets' ) .
122
+ sprintf( __( 'Snippets will be added to the database along with your existing snippets. Regardless of whether the snippets were active on the previous site, imported snippets are always inactive until activated using the <a href="%s">All Snippets</a> page.</p>', 'code-snippets' ), $manage_url ) . '</p>',
123
+ ) );
124
+
125
+ $this->screen->add_help_tab( array(
126
+ 'id' => 'export',
127
+ 'title' => __( 'Exporting', 'code-snippets' ),
128
+ 'content' => '<p>' . sprintf( __( 'You can save your snippets to a Code Snippets (.xml) export file using the <a href="%s">Manage Snippets</a> page.', 'code-snippets' ), $manage_url ) . '</p>',
129
+ ) );
130
+ }
131
+ }
trunk/php/class-db.php ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Functions used to manage the database tables
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+ class Code_Snippets_DB {
9
+
10
+ /**
11
+ * Class constructor
12
+ */
13
+ function __construct() {
14
+ $this->set_table_vars();
15
+ }
16
+
17
+ /**
18
+ * Register the snippet table names with WordPress
19
+ *
20
+ * @since 2.0
21
+ * @uses $wpdb
22
+ */
23
+ function set_table_vars() {
24
+ global $wpdb;
25
+
26
+ /* Register the snippet table names with WordPress */
27
+ $wpdb->tables[] = 'snippets';
28
+ $wpdb->ms_global_tables[] = 'ms_snippets';
29
+
30
+ /* Setup initial table variables */
31
+ $wpdb->snippets = $wpdb->prefix . 'snippets';
32
+ $wpdb->ms_snippets = $wpdb->base_prefix . 'ms_snippets';
33
+ }
34
+
35
+ /**
36
+ * Return the appropriate snippet table name
37
+ *
38
+ * @since 2.0
39
+ *
40
+ * @param string|bool|null $multisite Retrieve the multisite table name or the site table name?
41
+ *
42
+ * @return string The snippet table name
43
+ */
44
+ function get_table_name( $multisite = null ) {
45
+ global $wpdb;
46
+
47
+ /* If the first parameter is a string, assume it is a table name */
48
+ if ( is_string( $multisite ) ) {
49
+ return $multisite;
50
+ }
51
+
52
+ /* If $multisite is null, try to base it on the current admin page */
53
+ if ( ! isset( $multisite ) && function_exists( 'get_current_screen' ) ) {
54
+ $multisite = get_current_screen()->in_admin( 'network' );
55
+ }
56
+
57
+ /* If multisite is not active, always return the site-wide table name */
58
+ if ( ! is_multisite() ) {
59
+ $multisite = false;
60
+ }
61
+
62
+ /* Retrieve the table name from $wpdb depending on the above conditionals */
63
+
64
+ return ( $multisite ? $wpdb->ms_snippets : $wpdb->snippets );
65
+ }
66
+
67
+ /**
68
+ * Create the snippet tables
69
+ * This function will only execute once per page load, except if $redo is true
70
+ *
71
+ * @since 1.7.1
72
+ *
73
+ * @param bool $upgrade Run the table creation code even if the table exists
74
+ */
75
+ function create_tables( $upgrade = false ) {
76
+ global $wpdb;
77
+
78
+ /* Set the table name variables if not yet defined */
79
+ if ( ! isset( $wpdb->snippets, $wpdb->ms_snippets ) ) {
80
+ $this->set_table_vars();
81
+ }
82
+
83
+ if ( is_multisite() ) {
84
+
85
+ /* Create the network snippets table if it doesn't exist, or upgrade it */
86
+ if ( $upgrade || $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->ms_snippets'" ) !== $wpdb->ms_snippets ) {
87
+ $this->create_table( $wpdb->ms_snippets );
88
+ }
89
+ }
90
+
91
+ /* Create the table if it doesn't exist, or upgrade it */
92
+ if ( $upgrade || $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->snippets'" ) !== $wpdb->snippets ) {
93
+ $this->create_table( $wpdb->snippets );
94
+ }
95
+ }
96
+
97
+ /**
98
+ * Create a single snippet table
99
+ *
100
+ * @since 1.6
101
+ * @uses dbDelta() to apply the SQL code
102
+ *
103
+ * @param string $table_name The name of the table to create
104
+ */
105
+ function create_table( $table_name ) {
106
+ global $wpdb;
107
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
108
+
109
+ /* Set the database charset */
110
+ $charset_collate = '';
111
+
112
+ if ( ! empty( $wpdb->charset ) ) {
113
+ $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
114
+ }
115
+
116
+ if ( ! empty( $wpdb->collate ) ) {
117
+ $charset_collate .= " COLLATE $wpdb->collate";
118
+ }
119
+
120
+ /* Create the database table */
121
+ $sql = "CREATE TABLE $table_name (
122
+ id bigint(20) NOT NULL AUTO_INCREMENT,
123
+ name tinytext NOT NULL default '',
124
+ description text NOT NULL default '',
125
+ code longtext NOT NULL default '',
126
+ tags longtext NOT NULL default '',
127
+ scope tinyint(1) NOT NULL default 0,
128
+ active tinyint(1) NOT NULL default 0,
129
+ PRIMARY KEY (id)
130
+ ) $charset_collate;";
131
+
132
+ dbDelta( $sql );
133
+ do_action( 'code_snippets/create_table', $table_name );
134
+ }
135
+ }
trunk/php/class-export.php ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Exports selected snippets to a XML or PHP file.
5
+ *
6
+ * It's better to call the export_snippets()
7
+ * function than directly using this class
8
+ *
9
+ * @since 1.9
10
+ * @package Code_Snippets
11
+ */
12
+ class Code_Snippets_Export {
13
+
14
+ /**
15
+ * The IDs
16
+ * @var array
17
+ */
18
+ protected $snippet_ids = array();
19
+
20
+ /**
21
+ * The name of the table to fetch snippets from
22
+ * @var string
23
+ */
24
+ protected $table_name = '';
25
+
26
+ /**
27
+ * The export file format.
28
+ * Either 'xml' or 'php'
29
+ * @var string
30
+ */
31
+ protected $format;
32
+
33
+ /**
34
+ * The DOM document.
35
+ * Only used in XML exports
36
+ * @var DOMDocument
37
+ */
38
+ protected $dom;
39
+
40
+ /**
41
+ * The DOM document root element
42
+ * Only used in XML exports
43
+ * @var DOMElement
44
+ */
45
+ protected $root;
46
+
47
+ /**
48
+ * Constructor function
49
+ *
50
+ * @param array $ids The IDs of the snippets to export
51
+ * @param string $table The name of the table to fetch snippets from
52
+ * @param string $format The format of the export file
53
+ */
54
+ public function __construct( $ids, $table, $format = 'xml' ) {
55
+ $this->snippet_ids = (array) $ids;
56
+ $this->table_name = $table;
57
+ $this->format = 'php' === $format ? 'php' : 'xml';
58
+ }
59
+
60
+ /**
61
+ * Build the export file name
62
+ * @return string
63
+ */
64
+ public function get_filename() {
65
+
66
+ if ( 1 == count( $this->snippet_ids ) ) {
67
+ /* If there is only snippet to export, use its name instead of the site name */
68
+ $snippet = get_snippet( $this->snippet_ids[0], $this->table_name );
69
+ $title = strtolower( $snippet->name );
70
+ } else {
71
+ /* Otherwise, use the site name as set in Settings > General */
72
+ $title = strtolower( get_bloginfo( 'name' ) );
73
+ }
74
+
75
+ $filename = "{$title}.code-snippets.{$this->format}";
76
+ $filename = apply_filters( 'code_snippets/export/filename', $filename, $title );
77
+ return sanitize_file_name( $filename );
78
+ }
79
+
80
+ /**
81
+ * Append header comments to the DOM document
82
+ */
83
+ protected function do_header_comments() {
84
+
85
+ /* Array of translated comment lines */
86
+ $lines = array(
87
+ __( 'This is a code snippets export file generated by the Code Snippets WordPress plugin.', 'code-snippets' ),
88
+ 'https://wordpress.org/plugins/code-snippets',
89
+ __( 'To import these snippets a WordPress site follow these steps:', 'code-snippets' ),
90
+ __( '1. Log in to that site as an administrator.', 'code-snippets' ),
91
+ __( '2. Install the Code Snippets plugin using the directions provided at the above link.', 'code-snippets' ),
92
+ __( "3. Go to 'Tools: Import' in the WordPress admin panel.", 'code-snippets' ),
93
+ __( '4. Click on the "Code Snippets" importer in the list', 'code-snippets' ),
94
+ __( '5. Upload this file using the form provided on that page.', 'code-snippets' ),
95
+ __( '6. Code Snippets will then import all of the snippets and associated information contained in this file into your site.', 'code-snippets' ),
96
+ __( "7. You will then have to visit the 'Snippets: All Snippets' admin menu and activate desired snippets.", 'code-snippets' ),
97
+ );
98
+
99
+ /* Add each line as a comment element */
100
+ foreach ( $lines as $line ) {
101
+ $comment = $this->dom->createComment( " $line " );
102
+ $this->dom->appendChild( $comment );
103
+ }
104
+
105
+ /* Build a generator line, like the WordPress export files */
106
+ $gen = sprintf(
107
+ 'generator="Code Snippets/%s" created="%s"',
108
+ CODE_SNIPPETS_VERSION,
109
+ date( 'Y-m-d H:i' )
110
+ );
111
+
112
+ /* Run the generator line through the standard WordPress filter */
113
+ $type = 'code_snippets_export';
114
+ $gen = apply_filters( "get_the_generator_$type", $gen, $type );
115
+
116
+ /* Add it to the file as a comment */
117
+ $gen = $this->dom->createComment( " $gen " );
118
+ $this->dom->appendChild( $gen );
119
+ }
120
+
121
+ /**
122
+ * Process all snippet items
123
+ */
124
+ protected function do_items() {
125
+ global $wpdb;
126
+
127
+ if ( 'xml' === $this->format ) {
128
+
129
+ /* Create the root element */
130
+ $root_element = $this->dom->createElement( 'snippets' );
131
+ $this->root = $this->dom->appendChild( $root_element );
132
+ }
133
+
134
+ /* Loop through the snippets */
135
+ foreach ( $this->snippet_ids as $id ) {
136
+
137
+ /* Grab the snippet from the database */
138
+ $snippet = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$this->table_name} WHERE id = %d", $id ), ARRAY_A );
139
+ $snippet = new Snippet( $snippet );
140
+
141
+ /* Process the snippet item */
142
+ if ( 'php' === $this->format ) {
143
+ $this->do_item_php( $snippet );
144
+ } else {
145
+ $this->do_item( $snippet );
146
+ }
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Append a single snippet item to the document
152
+ * @param Snippet $snippet
153
+ */
154
+ protected function do_item( Snippet $snippet ) {
155
+ $item_element = $this->dom->createElement( 'snippet' );
156
+ $item = $this->root->appendChild( $item_element );
157
+
158
+ /* Set the scope attribute */
159
+ /** @var $item DOMElement */
160
+ $item->setAttribute( 'scope', $snippet->scope );
161
+
162
+ /* Fields to include in the export file */
163
+ $fields = array(
164
+ 'name' => $snippet->name,
165
+ 'desc' => $snippet->desc,
166
+ 'tags' => $snippet->tags_list,
167
+ 'code' => $snippet->code,
168
+ );
169
+
170
+ $fields = apply_filters( 'code_snippets/export/xml_fields', $fields, $snippet );
171
+
172
+ foreach ( $fields as $field_name => $field_value ) {
173
+
174
+ /* Create a new element for each field */
175
+ $field_element = $this->dom->createElement( $field_name );
176
+ $field = $item->appendChild( $field_element );
177
+
178
+ /* Add the field content */
179
+ $value = $this->dom->createTextNode( $field_value );
180
+ $field->appendChild( $value );
181
+ }
182
+ }
183
+
184
+ /**
185
+ * Format single snippet item as PHP code
186
+ * @param Snippet $snippet
187
+ */
188
+ protected function do_item_php( Snippet $snippet ) {
189
+ echo "\n/**\n * {$snippet->name}\n";
190
+
191
+ if ( ! empty( $snippet->desc ) ) {
192
+
193
+ /* Convert description to PhpDoc */
194
+ $desc = strip_tags( str_replace( "\n", "\n * ", $snippet->desc ) );
195
+
196
+ echo " *\n * $desc\n";
197
+ }
198
+
199
+ echo " */\n{$snippet->code}\n";
200
+ }
201
+
202
+ /**
203
+ * Export the snippets
204
+ */
205
+ public function do_export() {
206
+
207
+ /* Make the page act like a downloadable file instead of being shown in the browser */
208
+ $filename = $this->get_filename();
209
+ header( 'Content-Disposition: attachment; filename=' . $filename );
210
+
211
+ if ( 'xml' === $this->format ) {
212
+
213
+ /* Set the HTTP content type header */
214
+ header( 'Content-Type: text/xml; charset=' . get_bloginfo( 'charset' ) );
215
+
216
+ /* Create DOM document and root element */
217
+ $this->dom = new DOMDocument( '1.0', get_bloginfo( 'charset' ) );
218
+ $this->dom->formatOutput = true;
219
+
220
+ /* Add file header comments */
221
+ $this->do_header_comments();
222
+ }
223
+
224
+ elseif ( 'php' === $this->format ) {
225
+ echo '<?php';
226
+ }
227
+
228
+ /* Process the snippet items */
229
+ $this->do_items();
230
+
231
+ if ( 'xml' === $this->format ) {
232
+
233
+ /* Filter DOM document */
234
+ apply_filters( 'code_snippets/export_dom_document', $this->dom, $this->snippet_ids, $filename );
235
+
236
+ /* Send the document to the browser */
237
+ echo $this->dom->saveXML();
238
+ }
239
+
240
+ exit;
241
+ }
242
+ }
trunk/php/class-list-table.php ADDED
@@ -0,0 +1,999 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Contains the class for handling the snippets table
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+
9
+ /* The WP_List_Table base class is not included by default, so we need to load it */
10
+ if ( ! class_exists( 'WP_List_Table' ) ) {
11
+ require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
12
+ }
13
+
14
+ /**
15
+ * This class handles the table for the manage snippets menu
16
+ *
17
+ * @since 1.5
18
+ * @package Code_Snippets
19
+ */
20
+ class Code_Snippets_List_Table extends WP_List_Table {
21
+
22
+ /**
23
+ * true if the current screen is in the network admin
24
+ * @var bool
25
+ */
26
+ public $is_network;
27
+
28
+ /**
29
+ * A list of statuses (views)
30
+ * @var array
31
+ */
32
+ public $statuses = array( 'all', 'active', 'inactive', 'recently_activated' );
33
+
34
+ /**
35
+ * The constructor function for our class.
36
+ * Adds hooks, initializes variables, setups class.
37
+ */
38
+ public function __construct() {
39
+ global $status, $page;
40
+ $screen = get_current_screen();
41
+ $this->is_network = $screen->in_admin( 'network' );
42
+
43
+ /* Determine the status */
44
+ $status = 'all';
45
+ if ( isset( $_REQUEST['status'] ) && in_array( $_REQUEST['status'], $this->statuses ) ) {
46
+ $status = $_REQUEST['status'];
47
+ }
48
+
49
+ /* Add the search query to the URL */
50
+ if ( isset( $_REQUEST['s'] ) ) {
51
+ $_SERVER['REQUEST_URI'] = add_query_arg( 's', stripslashes( $_REQUEST['s'] ) );
52
+ }
53
+
54
+ /* Add a snippets per page screen option */
55
+ $page = $this->get_pagenum();
56
+
57
+ add_screen_option( 'per_page', array(
58
+ 'label' => __( 'Snippets per page', 'code-snippets' ),
59
+ 'default' => 999,
60
+ 'option' => 'snippets_per_page',
61
+ ) );
62
+
63
+ /* Set the table columns hidden in Screen Options by default */
64
+ add_filter( "get_user_option_manage{$screen->id}columnshidden", array( $this, 'get_default_hidden_columns' ), 15 );
65
+
66
+ /* Strip the result query arg from the URL */
67
+ $_SERVER['REQUEST_URI'] = remove_query_arg( 'result' );
68
+
69
+ /* Add filters to format the snippet description in the same way the post content is formatted */
70
+ $filters = array( 'wptexturize', 'convert_smilies', 'convert_chars', 'wpautop', 'shortcode_unautop', 'capital_P_dangit' );
71
+
72
+ foreach ( $filters as $filter ) {
73
+ add_filter( 'code_snippets/list_table/print_snippet_description', $filter );
74
+ }
75
+
76
+ /* Setup the class */
77
+ parent::__construct( array(
78
+ 'ajax' => true,
79
+ 'plural' => 'snippets',
80
+ 'singular' => 'snippet',
81
+ ) );
82
+ }
83
+
84
+ /**
85
+ * Define the output of all columns that have no callback function
86
+ *
87
+ * @param Snippet $snippet The snippet used for the current row
88
+ * @param string $column_name The name of the column being printed
89
+ * @return string The content of the column to output
90
+ */
91
+ protected function column_default( $snippet, $column_name ) {
92
+
93
+ switch ( $column_name ) {
94
+ case 'id':
95
+ return $snippet->id;
96
+ case 'description':
97
+ return empty( $snippet->desc ) ? '&#8212;' :
98
+ apply_filters( 'code_snippets/list_table/column_description', $snippet->desc );
99
+ default:
100
+ return apply_filters( "code_snippets/list_table/column_{$column_name}", $snippet );
101
+ }
102
+ }
103
+
104
+ /**
105
+ * Build a list of action links for individual snippets
106
+ *
107
+ * @param Snippet $snippet The current snippet
108
+ * @return array The action links HTML
109
+ */
110
+ private function get_snippet_action_links( Snippet $snippet ) {
111
+ $actions = array();
112
+ $link_format = '<a href="%2$s">%1$s</a>';
113
+
114
+ if ( $snippet->active ) {
115
+ $actions['deactivate'] = sprintf(
116
+ $link_format,
117
+ $snippet->network ? __( 'Network Deactivate', 'code-snippets' ) : __( 'Deactivate', 'code-snippets' ),
118
+ esc_url( add_query_arg( array(
119
+ 'action' => 'deactivate',
120
+ 'id' => $snippet->id,
121
+ ) ) )
122
+ );
123
+ } else {
124
+ $actions['activate'] = sprintf(
125
+ $link_format,
126
+ $snippet->network ? __( 'Network Activate', 'code-snippets' ) : __( 'Activate', 'code-snippets' ),
127
+ esc_url( add_query_arg( array(
128
+ 'action' => 'activate',
129
+ 'id' => $snippet->id,
130
+ ) ) )
131
+ );
132
+ }
133
+
134
+ $actions['edit'] = sprintf(
135
+ $link_format,
136
+ __( 'Edit', 'code-snippets' ),
137
+ code_snippets()->get_snippet_edit_url( $snippet->id )
138
+ );
139
+
140
+ $actions['export'] = sprintf(
141
+ $link_format,
142
+ __( 'Export', 'code-snippets' ),
143
+ esc_url( add_query_arg( array(
144
+ 'action' => 'export',
145
+ 'id' => $snippet->id,
146
+ ) ) )
147
+ );
148
+
149
+ $actions['delete'] = sprintf(
150
+ '<a href="%2$s" class="delete" onclick="%3$s">%1$s</a>',
151
+ __( 'Delete', 'code-snippets' ),
152
+ esc_url( add_query_arg( array(
153
+ 'action' => 'delete',
154
+ 'id' => $snippet->id,
155
+ ) ) ),
156
+ esc_js( sprintf(
157
+ 'return confirm("%s");',
158
+ __( 'You are about to permanently delete the selected item.', 'code-snippets' ) . "\n" .
159
+ __( "'Cancel' to stop, 'OK' to delete.", 'code-snippets' )
160
+ ) )
161
+ );
162
+
163
+ return $actions;
164
+ }
165
+
166
+ /**
167
+ * Build a list of action links for individual shared network snippets
168
+ *
169
+ * @param Snippet $snippet The current snippet
170
+ * @return array The action links HTML
171
+ */
172
+ private function get_shared_network_snippet_action_links( Snippet $snippet ) {
173
+ $actions = array();
174
+ $link_format = '<a href="%2$s">%1$s</a>';
175
+
176
+ /* Only add Activate/Deactivate for subsites */
177
+ if ( ! $this->is_network ) {
178
+
179
+ $action = $snippet->active ? 'deactivate' : 'activate';
180
+ $label = $snippet->active ? __( 'Deactivate', 'code-snippets' ) : __( 'Activate', 'code-snippets' );
181
+ $activate_url = add_query_arg( array(
182
+ 'action' => $action . '-shared',
183
+ 'id' => $snippet->id,
184
+ ) );
185
+
186
+ $actions[ $action ] = sprintf( $link_format, $label, esc_url( $activate_url ) );
187
+ }
188
+
189
+ /* Don't add Edit/Export/Delete actions for if current user can't manage network snippets */
190
+ if ( ! current_user_can( apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' ) ) ) {
191
+ return $actions;
192
+ }
193
+
194
+ $actions['edit'] = sprintf(
195
+ $link_format,
196
+ __( 'Edit', 'code-snippets' ),
197
+ code_snippets()->get_snippet_edit_url( $snippet->id, 'network' )
198
+ );
199
+
200
+ $actions['export'] = sprintf(
201
+ $link_format,
202
+ __( 'Export', 'code-snippets' ),
203
+ add_query_arg(
204
+ array(
205
+ 'action' => 'export',
206
+ 'id' => $snippet->id,
207
+ ),
208
+ code_snippets()->get_menu_url( 'manage', 'network' )
209
+ )
210
+ );
211
+
212
+ $actions['delete'] = sprintf(
213
+ '<a href="%2$s" class="delete" onclick="%3$s">%1$s</a>',
214
+ __( 'Delete', 'code-snippets' ),
215
+ add_query_arg(
216
+ array(
217
+ 'action' => 'delete',
218
+ 'id' => $snippet->id,
219
+ ),
220
+ code_snippets()->get_menu_url( 'manage', 'network' )
221
+ ),
222
+ esc_js( sprintf(
223
+ 'return confirm("%s");',
224
+ __( 'You are about to permanently delete the selected item.', 'code-snippets' ) . "\n" .
225
+ __( "'Cancel' to stop, 'OK' to delete.", 'code-snippets' )
226
+ ) )
227
+ );
228
+
229
+ return $actions;
230
+ }
231
+
232
+ /**
233
+ * Build the content of the snippet name column
234
+ *
235
+ * @param Snippet $snippet The snippet being used for the current row
236
+ * @return string The content of the column to output
237
+ */
238
+ protected function column_name( $snippet ) {
239
+
240
+ $action_links = $snippet->shared_network ?
241
+ $this->get_shared_network_snippet_action_links( $snippet ) :
242
+ $this->get_snippet_action_links( $snippet );
243
+
244
+ $title = empty( $snippet->name ) ? sprintf( __( 'Untitled #%d', 'code-snippets' ), $snippet->id ) : $snippet->name;
245
+
246
+ $row_actions = $this->row_actions( $action_links,
247
+ apply_filters( 'code_snippets/list_table/row_actions_always_visible', false )
248
+ );
249
+
250
+ $out = sprintf(
251
+ '<a href="%s"><strong>%s</strong></a>',
252
+ code_snippets()->get_snippet_edit_url( $snippet->id, $snippet->network ? 'network' : 'admin' ),
253
+ $title
254
+ );
255
+
256
+ if ( $snippet->shared_network && ! current_user_can( apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' ) ) ) {
257
+ $out = sprintf( '<a><strong>%s</strong></a>', $title );
258
+ }
259
+
260
+ if ( $snippet->shared_network ) {
261
+ $out .= ' <span class="badge">' . esc_html__( 'Shared on Network', 'code-snippets' ) . '</span>';
262
+ }
263
+
264
+ /* Return the name contents */
265
+ return apply_filters( 'code_snippets/list_table/column_name', $out, $snippet ) . $row_actions;
266
+ }
267
+
268
+ /**
269
+ * Builds the checkbox column content
270
+ *
271
+ * @param Snippet $snippet The snippet being used for the current row
272
+ * @return string The column content to be printed
273
+ */
274
+ protected function column_cb( $snippet ) {
275
+
276
+ $out = sprintf(
277
+ '<input type="checkbox" name="%s[]" value="%s" />',
278
+ $snippet->shared_network ? 'shared_ids' : 'ids',
279
+ $snippet->id
280
+ );
281
+
282
+ return apply_filters( 'code_snippets/list_table/column_cb', $out, $snippet );
283
+ }
284
+
285
+ /**
286
+ * Output the content of the tags column
287
+ * This function is used once for each row
288
+ *
289
+ * @since 2.0
290
+ *
291
+ * @param Snippet $snippet The snippet being used for the current row
292
+ * @return string The column output
293
+ */
294
+ protected function column_tags( $snippet ) {
295
+
296
+ /* Return a placeholder if there are no tags */
297
+ if ( empty( $snippet->tags ) ) {
298
+ return '&#8212;';
299
+ }
300
+
301
+ $out = array();
302
+
303
+ /* Loop through the tags and create a link for each one */
304
+ foreach ( $snippet->tags as $tag ) {
305
+ $out[] = sprintf( '<a href="%s">%s</a>',
306
+ esc_url( add_query_arg( 'tag', esc_attr( $tag ) ) ),
307
+ esc_html( $tag )
308
+ );
309
+ }
310
+
311
+ return join( ', ', $out );
312
+ }
313
+
314
+ /**
315
+ * Define the column headers for the table
316
+ *
317
+ * @return array The column headers, ID paired with label
318
+ */
319
+ public function get_columns() {
320
+ $columns = array(
321
+ 'cb' => '<input type="checkbox">',
322
+ 'name' => __( 'Name', 'code-snippets' ),
323
+ 'id' => __( 'ID', 'code-snippets' ),
324
+ 'description' => __( 'Description', 'code-snippets' ),
325
+ 'tags' => __( 'Tags', 'code-snippets' ),
326
+ );
327
+
328
+ if ( ! code_snippets_get_setting( 'general', 'enable_description' ) ) {
329
+ unset( $columns['description'] );
330
+ }
331
+
332
+ if ( ! code_snippets_get_setting( 'general', 'enable_tags' ) ) {
333
+ unset( $columns['tags'] );
334
+ }
335
+
336
+ return apply_filters( 'code_snippets/list_table/columns', $columns );
337
+ }
338
+
339
+ /**
340
+ * Define the columns that can be sorted
341
+ *
342
+ * @return array The IDs of the columns that can be sorted
343
+ */
344
+ public function get_sortable_columns() {
345
+ $sortable_columns = array(
346
+ 'id' => array( 'id', true ),
347
+ 'name' => array( 'name', false ),
348
+ );
349
+ return apply_filters( 'code_snippets/list_table/sortable_columns', $sortable_columns );
350
+ }
351
+
352
+ /**
353
+ * Define the columns that are hidden by default
354
+ *
355
+ * @param mixed $result
356
+ * @return mixed|array
357
+ */
358
+ public function get_default_hidden_columns( $result ) {
359
+ return $result ? $result : array( 'id' );
360
+ }
361
+
362
+ /**
363
+ * Define the bulk actions to include in the drop-down menus
364
+ *
365
+ * @return array An array of menu items with the ID paired to the label
366
+ */
367
+ public function get_bulk_actions() {
368
+ $actions = array(
369
+ 'activate-selected' => $this->is_network ? __( 'Network Activate', 'code-snippets' ) : __( 'Activate', 'code-snippets' ),
370
+ 'deactivate-selected' => $this->is_network ? __( 'Network Deactivate', 'code-snippets' ) : __( 'Deactivate', 'code-snippets' ),
371
+ 'export-selected' => __( 'Export', 'code-snippets' ),
372
+ 'delete-selected' => __( 'Delete', 'code-snippets' ),
373
+ 'export-php-selected' => __( 'Export to PHP', 'code-snippets' ),
374
+ );
375
+ return apply_filters( 'code_snippets/list_table/bulk_actions', $actions );
376
+ }
377
+
378
+ /**
379
+ * Retrieve the classes for the table
380
+ *
381
+ * We override this in order to add 'snippets' as a class for custom styling
382
+ *
383
+ * @return array The classes to include on the table element
384
+ */
385
+ public function get_table_classes() {
386
+ $classes = array( 'widefat', $this->_args['plural'] );
387
+ return apply_filters( 'code_snippets/list_table/table_classes', $classes );
388
+ }
389
+
390
+ /**
391
+ * Retrieve the 'views' of the table
392
+ *
393
+ * Example: active, inactive, recently active
394
+ *
395
+ * @return array A list of the view labels linked to the view
396
+ */
397
+ public function get_views() {
398
+ global $totals, $status;
399
+ $status_links = array();
400
+
401
+ /* Loop through the view counts */
402
+ foreach ( $totals as $type => $count ) {
403
+
404
+ /* Don't show the view if there is no count */
405
+ if ( ! $count ) {
406
+ continue;
407
+ }
408
+
409
+ /* Define the labels for each view */
410
+ $labels = array(
411
+ 'all' => _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'code-snippets' ),
412
+ 'active' => _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', $count, 'code-snippets' ),
413
+ 'inactive' => _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', $count, 'code-snippets' ),
414
+ 'recently_activated' => _n( 'Recently Active <span class="count">(%s)</span>', 'Recently Active <span class="count">(%s)</span>', $count, 'code-snippets' ),
415
+ );
416
+
417
+ /* The page URL with the status parameter */
418
+ $url = esc_url( add_query_arg( 'status', $type ) );
419
+
420
+ /* Add a class if this view is currently being viewed */
421
+ $class = $type === $status ? ' class="current"' : '';
422
+
423
+ /* Add the view count to the label */
424
+ $text = sprintf( $labels[ $type ], number_format_i18n( $count ) );
425
+
426
+ /* Construct the link */
427
+ $status_links[ $type ] = sprintf( '<a href="%s"%s>%s</a>', $url, $class, $text );
428
+ }
429
+
430
+ /* Filter and return the list of views */
431
+ return apply_filters( 'code_snippets/list_table/views', $status_links );
432
+ }
433
+
434
+ /**
435
+ * Gets the tags of the snippets currently being viewed in the table
436
+ * @since 2.0
437
+ */
438
+ public function get_current_tags() {
439
+ global $snippets, $status;
440
+
441
+ /* If we're not viewing a snippets table, get all used tags instead */
442
+ if ( ! isset( $snippets, $status ) ) {
443
+ return get_all_snippet_tags();
444
+ }
445
+
446
+ $tags = array();
447
+
448
+ /* Merge all tags into a single array */
449
+ foreach ( $snippets[ $status ] as $snippet ) {
450
+ $tags = array_merge( $snippet->tags, $tags );
451
+ }
452
+
453
+ /* Remove duplicate tags */
454
+ return array_values( array_unique( $tags, SORT_REGULAR ) );
455
+ }
456
+
457
+ /**
458
+ * Add filters and extra actions above and below the table
459
+ * @param string $which Are the actions displayed on the table top or bottom
460
+ */
461
+ public function extra_tablenav( $which ) {
462
+ global $status, $wpdb;
463
+
464
+ if ( 'top' === $which ) {
465
+
466
+ /* Tags dropdown filter */
467
+ $tags = $this->get_current_tags();
468
+
469
+ if ( count( $tags ) ) {
470
+ $query = isset( $_GET['tag'] ) ? $_GET['tag'] : '';
471
+
472
+ echo '<div class="alignleft actions">';
473
+ echo '<select name="tag">';
474
+
475
+ printf( "<option %s value=''>%s</option>\n",
476
+ selected( $query, '', false ),
477
+ __( 'Show all tags', 'code-snippets' )
478
+ );
479
+
480
+ foreach ( $tags as $tag ) {
481
+
482
+ printf( "<option %s value='%s'>%s</option>\n",
483
+ selected( $query, $tag, false ),
484
+ esc_attr( $tag ),
485
+ $tag
486
+ );
487
+ }
488
+
489
+ echo '</select>';
490
+
491
+ submit_button( __( 'Filter', 'code-snippets' ), 'button', 'filter_action', false );
492
+ echo '</div>';
493
+ }
494
+ }
495
+
496
+ echo '<div class="alignleft actions">';
497
+
498
+ if ( 'recently_activated' === $status ) {
499
+ submit_button( __( 'Clear List', 'code-snippets' ), 'secondary', 'clear-recent-list', false );
500
+ }
501
+
502
+ do_action( 'code_snippets/list_table/actions', $which );
503
+
504
+ echo '</div>';
505
+ }
506
+
507
+ /**
508
+ * Output form fields needed to preserve important
509
+ * query vars over form submissions
510
+ *
511
+ * @param string $context In what context are the fields being outputted?
512
+ */
513
+ public function required_form_fields( $context = 'main' ) {
514
+
515
+ $vars = apply_filters(
516
+ 'code_snippets/list_table/required_form_fields',
517
+ array( 'page', 's', 'status', 'paged', 'tag' ),
518
+ $context
519
+ );
520
+
521
+ if ( 'search_box' === $context ) {
522
+ /* Remove the 's' var if we're doing this for the search box */
523
+ $vars = array_diff( $vars, array( 's' ) );
524
+ }
525
+
526
+ foreach ( $vars as $var ) {
527
+ if ( ! empty( $_REQUEST[ $var ] ) ) {
528
+ printf( '<input type="hidden" name="%s" value="%s" />', $var, $_REQUEST[ $var ] );
529
+ print "\n";
530
+ }
531
+ }
532
+
533
+ do_action( 'code_snippets/list_table/print_required_form_fields', $context );
534
+ }
535
+
536
+
537
+ /**
538
+ * Clear the recently activated snippets list if we've clicked the button
539
+ * @return string The action to execute
540
+ */
541
+ public function current_action() {
542
+ if ( isset( $_POST['clear-recent-list'] ) ) {
543
+ $action = 'clear-recent-list';
544
+ } else {
545
+ $action = parent::current_action();
546
+ }
547
+ return apply_filters( 'code_snippets/list_table/current_action', $action );
548
+ }
549
+
550
+ /**
551
+ * Processes a bulk action
552
+ *
553
+ * @uses activate_snippet() to activate snippets
554
+ * @uses deactivate_snippet() to deactivate snippets
555
+ * @uses delete_snippet() to delete snippets
556
+ * @uses export_snippets() to export selected snippets
557
+ * @uses wp_redirect() to pass the results to the current page
558
+ * @uses add_query_arg() to append the results to the current URI
559
+ */
560
+ public function process_bulk_actions() {
561
+
562
+ if ( isset( $_GET['action'], $_GET['id'] ) ) {
563
+
564
+ $id = absint( $_GET['id'] );
565
+ $action = sanitize_key( $_GET['action'] );
566
+ $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'action', 'id' ) );
567
+
568
+ if ( 'activate' === $action ) {
569
+ activate_snippet( $id, $this->is_network );
570
+ $result = 'activated';
571
+ }
572
+ elseif ( 'deactivate' === $action ) {
573
+ deactivate_snippet( $id, $this->is_network );
574
+ $result = 'deactivated';
575
+ }
576
+ elseif ( 'activate-shared' === $action ) {
577
+ $active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
578
+
579
+ if ( ! in_array( $id, $active_shared_snippets ) ) {
580
+ $active_shared_snippets[] = $id;
581
+ update_option( 'active_shared_network_snippets', $active_shared_snippets );
582
+ }
583
+
584
+ $result = 'activated';
585
+ }
586
+ elseif ( 'deactivate-shared' === $action ) {
587
+ $active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
588
+ update_option( 'active_shared_network_snippets', array_diff( $active_shared_snippets, array( $id ) ) );
589
+
590
+ $result = 'deactivated';
591
+ }
592
+ elseif ( 'delete' === $action ) {
593
+ delete_snippet( $id, $this->is_network );
594
+ $result = 'deleted';
595
+ }
596
+ elseif ( 'export' === $action ) {
597
+ export_snippets( array( $id ), $this->is_network );
598
+ }
599
+ elseif ( 'export-php' === $action ) {
600
+ export_snippets( array( $id ), $this->is_network, 'php' );
601
+ }
602
+
603
+ if ( isset( $result ) ) {
604
+ wp_redirect( esc_url_raw( add_query_arg( 'result', $result ) ) );
605
+ exit;
606
+ }
607
+ }
608
+
609
+ if ( ! isset( $_POST['ids'] ) && ! isset( $_POST['shared_ids'] ) ) {
610
+ return;
611
+ }
612
+
613
+ $ids = isset( $_POST['ids'] ) ? $_POST['ids'] : array();
614
+ $_SERVER['REQUEST_URI'] = remove_query_arg( 'action' );
615
+
616
+ switch ( $this->current_action() ) {
617
+
618
+ case 'activate-selected':
619
+
620
+ foreach ( $ids as $id ) {
621
+ activate_snippet( $id, $this->is_network );
622
+ }
623
+
624
+ /* Process the shared network snippets */
625
+ if ( isset( $_POST['shared_ids'] ) && is_multisite() && ! $this->is_network ) {
626
+ $active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
627
+
628
+ foreach ( $_POST['shared_ids'] as $id ) {
629
+ if ( ! in_array( $id, $active_shared_snippets ) ) {
630
+ $active_shared_snippets[] = $id;
631
+ }
632
+ }
633
+
634
+ update_option( 'active_shared_network_snippets', $active_shared_snippets );
635
+ }
636
+
637
+ wp_redirect( esc_url_raw( add_query_arg( 'result', 'activated-multi' ) ) );
638
+ exit;
639
+
640
+ case 'deactivate-selected':
641
+
642
+ foreach ( $ids as $id ) {
643
+ deactivate_snippet( $id, $this->is_network );
644
+ }
645
+
646
+ /* Process the shared network snippets */
647
+ if ( isset( $_POST['shared_ids'] ) && is_multisite() && ! $this->is_network ) {
648
+ $active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
649
+ $active_shared_snippets = array_diff( $active_shared_snippets, $_POST['shared_ids'] );
650
+ update_option( 'active_shared_network_snippets', $$active_shared_snippets );
651
+ }
652
+
653
+ wp_redirect( esc_url_raw( add_query_arg( 'result', 'deactivated-multi' ) ) );
654
+ exit;
655
+
656
+ case 'export-selected':
657
+ export_snippets( $ids, $this->is_network );
658
+ break;
659
+
660
+ case 'export-php-selected':
661
+ export_snippets( $ids, $this->is_network, 'php' );
662
+ break;
663
+
664
+ case 'delete-selected':
665
+ foreach ( $ids as $id ) {
666
+ delete_snippet( $id, $this->is_network );
667
+ }
668
+ wp_redirect( esc_url_raw( add_query_arg( 'result', 'deleted-multi' ) ) );
669
+ exit;
670
+
671
+ case 'clear-recent-list':
672
+ if ( $this->is_network ) {
673
+ update_site_option( 'recently_activated_snippets', array() );
674
+ } else {
675
+ update_option( 'recently_activated_snippets', array() );
676
+ }
677
+ break;
678
+ }
679
+ }
680
+
681
+ /**
682
+ * Message to display if no snippets are found
683
+ */
684
+ public function no_items() {
685
+ printf(
686
+ __( 'You do not appear to have any snippets available at this time. <a href="%s">Add New&rarr;</a>', 'code-snippets' ),
687
+ code_snippets()->get_menu_url( 'add' )
688
+ );
689
+ }
690
+
691
+ /**
692
+ *
693
+ */
694
+ private function fetch_shared_network_snippets() {
695
+ /** @var wpdb $wpdb */
696
+ global $snippets, $wpdb;
697
+
698
+ if ( ! is_multisite() || ! $ids = get_site_option( 'shared_network_snippets', false ) ) {
699
+ return;
700
+ }
701
+
702
+ if ( $this->is_network ) {
703
+ $limit = count( $snippets['all'] );
704
+
705
+ /** @var Snippet $snippet */
706
+ for ( $i = 0; $i < $limit; $i++ ) {
707
+ $snippet = &$snippets['all'][ $i ];
708
+
709
+ if ( in_array( $snippet->id, $ids ) ) {
710
+ $snippet->shared_network = true;
711
+ $snippet->tags = array_merge( $snippet->tags, array( 'shared on network' ) );
712
+ $snippet->active = false;
713
+ }
714
+ }
715
+ } else {
716
+
717
+ $active_shared_snippets = get_option( 'active_shared_network_snippets', array() );
718
+
719
+ $sql = sprintf( "SELECT * FROM {$wpdb->ms_snippets} WHERE id IN (%s)",
720
+ implode( ',', array_fill( 0, count( $ids ), '%d' ) )
721
+ );
722
+
723
+ $shared_snippets = $wpdb->get_results( $wpdb->prepare( $sql, $ids ), ARRAY_A );
724
+
725
+ foreach ( $shared_snippets as $index => $snippet ) {
726
+ $snippet = new Snippet( $snippet );
727
+ $snippet->network = true;
728
+ $snippet->shared_network = true;
729
+ $snippet->tags = array_merge( $snippet->tags, array( 'shared on network' ) );
730
+ $snippet->active = in_array( $snippet->id, $active_shared_snippets );
731
+
732
+ $shared_snippets[ $index ] = $snippet;
733
+ }
734
+
735
+ $snippets['all'] = array_merge( $snippets['all'], $shared_snippets );
736
+ }
737
+ }
738
+
739
+ /**
740
+ * Prepares the items to later display in the table.
741
+ * Should run before any headers are sent.
742
+ */
743
+ public function prepare_items() {
744
+ global $status, $snippets, $totals, $s;
745
+
746
+ wp_reset_vars( array( 'orderby', 'order', 's' ) );
747
+
748
+ $screen = get_current_screen();
749
+ $user = get_current_user_id();
750
+
751
+ /* First, lets process the bulk actions */
752
+ $this->process_bulk_actions();
753
+
754
+ /* Initialize the $snippets array */
755
+ $snippets = array_fill_keys( $this->statuses, array() );
756
+
757
+ /* Fetch all snippets */
758
+ $snippets['all'] = get_snippets( array(), $this->is_network );
759
+ $snippets['all'] = apply_filters( 'code_snippets/list_table/get_snippets', $snippets['all'] );
760
+
761
+ /* Fetch shared network snippets */
762
+ $this->fetch_shared_network_snippets();
763
+
764
+ /* Redirect POST'ed tag filter to GET */
765
+ if ( isset( $_POST['tag'] ) ) {
766
+ $location = empty( $_POST['tag'] ) ? remove_query_arg( 'tag' ) : add_query_arg( 'tag', $_POST['tag'] );
767
+ wp_redirect( esc_url_raw( $location ) );
768
+ exit;
769
+ }
770
+
771
+ /* Add scope tags */
772
+ if ( code_snippets_get_setting( 'general', 'snippet_scope_enabled' ) ) {
773
+ foreach ( $snippets['all'] as $snippet ) {
774
+
775
+ if ( 0 != $snippet->scope ) {
776
+ $snippet->tags = array_merge( $snippet->tags, array( $snippet->scope_name ) );
777
+ }
778
+ }
779
+ }
780
+
781
+ /* Filter snippets by tag */
782
+ if ( ! empty( $_GET['tag'] ) ) {
783
+ $snippets['all'] = array_filter( $snippets['all'], array( $this, 'tags_filter_callback' ) );
784
+ }
785
+
786
+ /* Filter snippets based on search query */
787
+ if ( $s ) {
788
+ $snippets['all'] = array_filter( $snippets['all'], array( $this, 'search_callback' ) );
789
+ }
790
+
791
+ /* Clear recently activated snippets older than a week */
792
+ $recently_activated = $this->is_network ?
793
+ get_site_option( 'recently_activated_snippets', array() ) :
794
+ get_option( 'recently_activated_snippets', array() );
795
+
796
+ foreach ( $recently_activated as $key => $time ) {
797
+
798
+ if ( $time + WEEK_IN_SECONDS < time() ) {
799
+ unset( $recently_activated[ $key ] );
800
+ }
801
+ }
802
+
803
+ $this->is_network ?
804
+ update_site_option( 'recently_activated_snippets', $recently_activated ) :
805
+ update_option( 'recently_activated_snippets', $recently_activated );
806
+
807
+ /* Filter snippets into individual sections */
808
+ foreach ( $snippets['all'] as $snippet ) {
809
+
810
+ if ( $snippet->active ) {
811
+ $snippets['active'][] = $snippet;
812
+ } else {
813
+ $snippets['inactive'][] = $snippet;
814
+
815
+ /* Was the snippet recently activated? */
816
+ if ( isset( $recently_activated[ $snippet->id ] ) ) {
817
+ $snippets['recently_activated'][] = $snippet;
818
+ }
819
+ }
820
+ }
821
+
822
+ /* Count the totals for each section */
823
+ $totals = array();
824
+ foreach ( $snippets as $type => $list ) {
825
+ $totals[ $type ] = count( $list );
826
+ }
827
+
828
+ /* If the current status is empty, default tp all */
829
+ if ( empty( $snippets[ $status ] ) ) {
830
+ $status = 'all';
831
+ }
832
+
833
+ /* Get the current data */
834
+ $data = $snippets[ $status ];
835
+
836
+ /* Decide how many records per page to show by
837
+ getting the user's setting in the Screen Options panel */
838
+ $sort_by = $screen->get_option( 'per_page', 'option' );
839
+ $per_page = get_user_meta( $user, $sort_by, true );
840
+
841
+ if ( empty( $per_page ) || $per_page < 1 ) {
842
+ $per_page = $screen->get_option( 'per_page', 'default' );
843
+ }
844
+
845
+ $per_page = (int) $per_page;
846
+
847
+ $this->_column_headers = $this->get_column_info();
848
+
849
+ usort( $data, array( $this, 'usort_reorder_callback' ) );
850
+
851
+ /* Determine what page the user is currently looking at */
852
+ $current_page = $this->get_pagenum();
853
+
854
+ /* Check how many items are in the data array */
855
+ $total_items = count( $data );
856
+
857
+ /* The WP_List_Table class does not handle pagination for us, so we need
858
+ to ensure that the data is trimmed to only the current page. */
859
+ $data = array_slice( $data, ( ( $current_page - 1 ) * $per_page ), $per_page );
860
+
861
+ /* Now we can add our *sorted* data to the items property,
862
+ where it can be used by the rest of the class. */
863
+ $this->items = $data;
864
+
865
+ /* We register our pagination options and calculations */
866
+ $this->set_pagination_args( array(
867
+ 'total_items' => $total_items, // Calculate the total number of items
868
+ 'per_page' => $per_page, // Determine how many items to show on a page
869
+ 'total_pages' => ceil( $total_items / $per_page ), // Calculate the total number of pages
870
+ ) );
871
+ }
872
+
873
+ /**
874
+ * Callback for usort() used to sort snippets
875
+ *
876
+ * @ignore
877
+ *
878
+ * @param Snippet $a The first snippet to compare
879
+ * @param Snippet $b The second snippet to compare
880
+ * @return int The sort order
881
+ */
882
+ private function usort_reorder_callback( $a, $b ) {
883
+
884
+ /* If no sort, default to ID */
885
+ $orderby = (
886
+ ! empty( $_REQUEST['orderby'] )
887
+ ? $_REQUEST['orderby']
888
+ : apply_filters( 'code_snippets/list_table/default_orderby', 'id' )
889
+ );
890
+
891
+ /* If no order, default to ascending */
892
+ $order = (
893
+ ! empty( $_REQUEST['order'] )
894
+ ? $_REQUEST['order']
895
+ : apply_filters( 'code_snippets/list_table/default_order', 'asc' )
896
+ );
897
+
898
+ /* Determine sort order */
899
+ if ( 'id' === $orderby ) {
900
+ $result = $a->$orderby - $b->$orderby; // get the result for numerical data
901
+ } else {
902
+ $result = strcmp( $a->$orderby, $b->$orderby ); // get the result for string data
903
+ }
904
+
905
+ /* Send final sort direction to usort */
906
+ return ( 'asc' === $order ) ? $result : -$result;
907
+ }
908
+
909
+ /**
910
+ * Callback for search function
911
+ * @ignore
912
+ *
913
+ * @param Snippet $snippet The snippet being filtered
914
+ * @return bool The result of the filter
915
+ */
916
+ private function search_callback( $snippet ) {
917
+ static $term;
918
+ if ( is_null( $term ) ) {
919
+ $term = stripslashes( $_REQUEST['s'] );
920
+ }
921
+
922
+ $fields = array( 'name', 'desc', 'code', 'tags_list' );
923
+
924
+ foreach ( $fields as $field ) {
925
+ if ( false !== stripos( $snippet->$field, $term ) ) {
926
+ return true;
927
+ }
928
+ }
929
+
930
+ return false;
931
+ }
932
+
933
+ /**
934
+ * Callback for filtering snippets by tag
935
+ *
936
+ * @ignore
937
+ *
938
+ * @param Snippet $snippet The snippet being filtered
939
+ * @return bool The result of the filter
940
+ */
941
+ private function tags_filter_callback( $snippet ) {
942
+ $tags = explode( ',', $_GET['tag'] );
943
+
944
+ foreach ( $tags as $tag ) {
945
+ if ( in_array( $tag, $snippet->tags ) ) {
946
+ return true;
947
+ }
948
+ }
949
+ }
950
+
951
+ /**
952
+ * Display a notice showing the current search terms
953
+ *
954
+ * @since 1.7
955
+ */
956
+ public function search_notice() {
957
+ if ( ! empty( $_REQUEST['s'] ) || ! empty( $_GET['tag'] ) ) {
958
+
959
+ echo '<span class="subtitle">' . __( 'Search results', 'code-snippets' );
960
+
961
+ if ( ! empty( $_REQUEST['s'] ) ) {
962
+ echo sprintf( __( ' for &#8220;%s&#8221;', 'code-snippets' ), esc_html( $_REQUEST['s'] ) );
963
+ }
964
+
965
+ if ( ! empty( $_GET['tag'] ) ) {
966
+ echo sprintf( __( ' in tag &#8220;%s&#8221;', 'code-snippets' ), esc_html( $_GET['tag'] ) );
967
+ }
968
+
969
+ echo '</span>';
970
+
971
+ printf(
972
+ '&nbsp;<a class="button clear-filters" href="%s">%s</a>',
973
+ esc_url( remove_query_arg( array( 's', 'tag' ) ) ),
974
+ __( 'Clear Filters', 'code-snippets' )
975
+ );
976
+ }
977
+ }
978
+
979
+ /**
980
+ * Outputs content for a single row of the table
981
+ *
982
+ * @param Snippet $snippet The snippet being used for the current row
983
+ */
984
+ public function single_row( $snippet ) {
985
+ $row_class = ( $snippet->active ? 'active' : 'inactive' );
986
+
987
+ if ( code_snippets_get_setting( 'general', 'snippet_scope_enabled' ) ) {
988
+ $row_class .= sprintf( ' %s-scope', $snippet->scope_name );
989
+ }
990
+
991
+ if ( $snippet->shared_network ) {
992
+ $row_class .= ' shared-network';
993
+ }
994
+
995
+ printf( '<tr class="%s">', $row_class );
996
+ $this->single_row_columns( $snippet );
997
+ echo '</tr>';
998
+ }
999
+ } // end of class
trunk/php/class-shortcode.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Code_Snippets_Shortcode {
4
+
5
+ function __construct() {
6
+ add_shortcode( 'code_snippet', array( $this, 'render_shortcode' ) );
7
+ add_action( 'the_posts', array( $this, 'enqueue_prism' ) );
8
+ }
9
+
10
+ function enqueue_prism( $posts ) {
11
+
12
+ if ( empty( $posts ) || code_snippets_get_setting( 'general', 'disable_prism' ) ) {
13
+ return $posts;
14
+ }
15
+
16
+ $found = false;
17
+
18
+ foreach ( $posts as $post ) {
19
+
20
+ if ( false !== stripos( $post->post_content, '[code_snippet' ) ) {
21
+ $found = true;
22
+ break;
23
+ }
24
+ }
25
+
26
+ if ( ! $found ) {
27
+ return $posts;
28
+ }
29
+
30
+ $plugin = code_snippets();
31
+
32
+ wp_enqueue_style(
33
+ 'code-snippets-prism',
34
+ plugins_url( 'js/vendor/prism.css', $plugin->file ),
35
+ array(), $plugin->version
36
+ );
37
+
38
+ wp_enqueue_script(
39
+ 'code-snippets-prism',
40
+ plugins_url( 'js/vendor/prism.js', $plugin->file ),
41
+ array(), $plugin->version, true
42
+ );
43
+
44
+ return $posts;
45
+ }
46
+
47
+ function render_shortcode( $atts ) {
48
+
49
+ $atts = shortcode_atts(
50
+ array(
51
+ 'id' => 0,
52
+ 'network' => false,
53
+ ),
54
+ $atts, 'code_snippet'
55
+ );
56
+
57
+ if ( ! $id = intval( $atts['id'] ) ) {
58
+ return '';
59
+ }
60
+
61
+ $network = $atts['network'] ? true : false;
62
+ $snippet = get_snippet( $id, $network );
63
+
64
+ if ( ! trim( $snippet->code ) ) {
65
+ return '';
66
+ }
67
+
68
+ return '<pre><code class="language-php">' . esc_html( $snippet->code ) . '</code></pre>';
69
+ }
70
+ }
71
+
trunk/php/class-snippet.php ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * A snippet object
5
+ *
6
+ * @since 2.4.0
7
+ * @package Code_Snippets
8
+ *
9
+ * @property int $id The database ID
10
+ * @property string $name The display name
11
+ * @property string $desc The formatted description
12
+ * @property string $code The executable code
13
+ * @property array $tags An array of the tags
14
+ * @property int $scope The scope number
15
+ * @property bool $active The active status
16
+ * @property bool $network true if is multisite-wide snippet, false if site-wide
17
+ * @property bool $shared_network Whether the snippet is a shared network snippet
18
+ *
19
+ * @property-read array $tags_list The tags in string list format
20
+ * @property-read string $scope_name The name of the scope
21
+ */
22
+ class Snippet {
23
+
24
+ /**
25
+ * The snippet metadata fields.
26
+ * Initialized with default values.
27
+ * @var array
28
+ */
29
+ private $fields = array(
30
+ 'id' => 0,
31
+ 'name' => '',
32
+ 'desc' => '',
33
+ 'code' => '',
34
+ 'tags' => array(),
35
+ 'scope' => 0,
36
+ 'active' => false,
37
+ 'network' => null,
38
+ 'shared_network' => null,
39
+ );
40
+
41
+ /**
42
+ * Set all of the snippet fields from an array or object
43
+ * @param array|object $fields List of fields
44
+ */
45
+ public function set_fields( $fields ) {
46
+
47
+ /* Only accept arrays or objects */
48
+ if ( ! $fields || is_string( $fields ) ) {
49
+ return;
50
+ }
51
+
52
+ /* Convert objects into arrays */
53
+ if ( is_object( $fields ) ) {
54
+ $fields = get_object_vars( $fields );
55
+ }
56
+
57
+ /* Loop through the passed fields and set them */
58
+ foreach ( $fields as $field => $value ) {
59
+ $this->__set( $field, $value );
60
+ }
61
+ }
62
+
63
+ /**
64
+ * Constructor function
65
+ * @param array|object $fields Initial snippet fields
66
+ */
67
+ public function __construct( $fields = null ) {
68
+ $this->set_fields( $fields );
69
+ }
70
+
71
+ /**
72
+ * Check if a field is set
73
+ * @param string $field The field name
74
+ * @return bool Whether the field is set
75
+ */
76
+ public function __isset( $field ) {
77
+
78
+ /* Rename the description field */
79
+ if ( 'description' === $field ) {
80
+ $field = 'desc';
81
+ }
82
+
83
+ return isset( $this->fields[ $field ] ) || method_exists( $this, 'get_' . $field );
84
+ }
85
+
86
+ /**
87
+ * Retrieve a field's value
88
+ * @param string $field The field name
89
+ * @return mixed The field value
90
+ */
91
+ public function __get( $field ) {
92
+
93
+ /* Rename the description field */
94
+ if ( 'description' === $field ) {
95
+ $field = 'desc';
96
+ }
97
+
98
+ if ( method_exists( $this, 'get_' . $field ) ) {
99
+ return call_user_func( array( $this, 'get_' . $field ) );
100
+ }
101
+
102
+ return $this->fields[ $field ];
103
+ }
104
+
105
+ /**
106
+ * Set a field's value
107
+ * @param string $field The field name
108
+ * @param mixed $value The field value
109
+ */
110
+ public function __set( $field, $value ) {
111
+
112
+ /* Rename the description field */
113
+ if ( 'description' === $field ) {
114
+ $field = 'desc';
115
+ }
116
+
117
+ /* Check if the field value should be filtered */
118
+ if ( method_exists( $this, 'prepare_' . $field ) ) {
119
+ $value = call_user_func( array( $this, 'prepare_' . $field ), $value );
120
+ }
121
+
122
+ $this->fields[ $field ] = $value;
123
+
124
+ }
125
+
126
+ /**
127
+ * Prepare the ID by ensuring it is an absolute integer
128
+ * @param int $id
129
+ * @return int
130
+ */
131
+ private function prepare_id( $id ) {
132
+ return absint( $id );
133
+ }
134
+
135
+ /**
136
+ * Prepare the code by removing php tags from beginning and end
137
+ * @param string $code
138
+ * @return string
139
+ */
140
+ private function prepare_code( $code ) {
141
+
142
+ /* Remove <?php and <? from beginning of snippet */
143
+ $code = preg_replace( '|^[\s]*<\?(php)?|', '', $code );
144
+
145
+ /* Remove ?> from end of snippet */
146
+ $code = preg_replace( '|\?>[\s]*$|', '', $code );
147
+
148
+ return $code;
149
+ }
150
+
151
+ /**
152
+ * Prepare the scope by ensuring that it is a valid number
153
+ * @param int $scope The field as provided
154
+ * @return int The field in the correct format
155
+ */
156
+ private function prepare_scope( $scope ) {
157
+ $scope = (int) $scope;
158
+
159
+ if ( in_array( $scope, array( 0, 1, 2 ) ) ) {
160
+ return $scope;
161
+ }
162
+
163
+ return $this->fields['scope'];
164
+ }
165
+
166
+ /**
167
+ * Prepare the snippet tags by ensuring they are in the correct format
168
+ * @param string|array $tags The tags as provided
169
+ * @return array The tags as an array
170
+ */
171
+ private function prepare_tags( $tags ) {
172
+ return code_snippets_build_tags_array( $tags );
173
+ }
174
+
175
+ /**
176
+ * Prepare the active field by ensuring it is the correct type
177
+ * @param bool|int $active The field as provided
178
+ * @return bool The field in the correct format
179
+ */
180
+ private function prepare_active( $active ) {
181
+ if ( is_bool( $active ) ) {
182
+ return $active;
183
+ }
184
+
185
+ return $active ? true : false;
186
+ }
187
+
188
+ /**
189
+ * If $network is anything other than true, set it to false
190
+ * @param bool $network The provided field
191
+ * @return bool The filtered field
192
+ */
193
+ private function prepare_network( $network ) {
194
+
195
+ if ( null === $network && function_exists( 'get_current_screen' ) && $screen = get_current_screen() ) {
196
+ return $screen->in_admin( 'network' );
197
+ }
198
+
199
+ return true === $network;
200
+ }
201
+
202
+ /**
203
+ * Retrieve the tags in list format
204
+ * @return string The tags seperated by a comma and a space
205
+ */
206
+ private function get_tags_list() {
207
+ return implode( ', ', $this->fields['tags'] );
208
+ }
209
+
210
+ /**
211
+ * Retrieve the string representation of the scope
212
+ * @param string $default The name to use for the default scope
213
+ * @return string The name of the scope
214
+ */
215
+ private function get_scope_name( $default = 'global' ) {
216
+
217
+ switch ( intval( $this->fields['scope'] ) ) {
218
+ case 1:
219
+ return 'admin';
220
+ case 2:
221
+ return 'front-end';
222
+ default:
223
+ case 0:
224
+ return $default;
225
+ }
226
+ }
227
+
228
+ /**
229
+ * Determine if the snippet is a shared network snippet
230
+ * @return bool
231
+ */
232
+ private function get_shared_network() {
233
+
234
+ if ( isset( $this->fields['shared_network'] ) ) {
235
+ return $this->fields['shared_network'];
236
+ }
237
+
238
+ if ( ! is_multisite() || ! $this->fields['network'] ) {
239
+ $this->fields['shared_network'] = false;
240
+ } else {
241
+ $shared_network_snippets = get_site_option( 'shared_network_snippets', array() );
242
+ $this->fields['shared_network'] = in_array( $this->fields['id'], $shared_network_snippets );
243
+ }
244
+
245
+ return $this->fields['shared_network'];
246
+ }
247
+ }
trunk/php/editor.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Get the attributes for the code editor
5
+ *
6
+ * @param array $override_atts Pass an array of attributes to override the saved ones
7
+ * @param bool $json_encode Encode the data as JSON
8
+ * @return array|string Array if $json_encode is false, JSON string if it is true
9
+ */
10
+ function code_snippets_get_editor_atts( $override_atts, $json_encode ) {
11
+ $settings = code_snippets_get_settings();
12
+ $settings = $settings['editor'];
13
+
14
+ $fields = code_snippets_get_settings_fields();
15
+ $fields = $fields['editor'];
16
+
17
+ $saved_atts = array(
18
+ 'matchBrackets' => true,
19
+ );
20
+
21
+ foreach ( $fields as $field_id => $field ) {
22
+ $saved_atts[ $field['codemirror'] ] = $settings[ $field_id ];
23
+ }
24
+
25
+ $atts = wp_parse_args( $override_atts, $saved_atts );
26
+ $atts = apply_filters( 'code_snippets_codemirror_atts', $atts );
27
+
28
+ if ( $json_encode ) {
29
+
30
+ /* JSON_UNESCAPED_SLASHES was added in PHP 5.4 */
31
+ if ( version_compare( phpversion(), '5.4.0', '>=' ) ) {
32
+ $atts = json_encode( $atts, JSON_UNESCAPED_SLASHES );
33
+ } else {
34
+ /* Use a fallback for < 5.4 */
35
+ $atts = str_replace( '\\/', '/', json_encode( $atts ) );
36
+ }
37
+ }
38
+
39
+ return $atts;
40
+ }
41
+
42
+ /**
43
+ * Registers and loads the CodeMirror library
44
+ *
45
+ * @uses wp_enqueue_style() to add the stylesheets to the queue
46
+ * @uses wp_enqueue_script() to add the scripts to the queue
47
+ */
48
+ function code_snippets_enqueue_codemirror() {
49
+ $codemirror_version = '5.24.0';
50
+ $url = plugin_dir_url( CODE_SNIPPETS_FILE );
51
+
52
+ /* Remove other CodeMirror styles */
53
+ wp_deregister_style( 'codemirror' );
54
+ wp_deregister_style( 'wpeditor' );
55
+
56
+ /* CodeMirror */
57
+ wp_enqueue_style(
58
+ 'code-snippets-codemirror',
59
+ $url . 'css/min/codemirror.css',
60
+ false, $codemirror_version
61
+ );
62
+
63
+ wp_enqueue_script(
64
+ 'code-snippets-codemirror',
65
+ $url . 'js/min/codemirror.js',
66
+ false, $codemirror_version
67
+ );
68
+
69
+ /* CodeMirror Theme */
70
+ $theme = code_snippets_get_setting( 'editor', 'theme' );
71
+
72
+ if ( 'default' !== $theme ) {
73
+
74
+ wp_enqueue_style(
75
+ 'code-snippets-codemirror-theme-' . $theme,
76
+ $url . "css/min/cmthemes/$theme.css",
77
+ array( 'code-snippets-codemirror' ),
78
+ $codemirror_version
79
+ );
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Retrieve a list of the available CodeMirror themes
85
+ * @return array the available themes
86
+ */
87
+ function code_snippets_get_available_themes() {
88
+ static $themes = null;
89
+
90
+ if ( ! is_null( $themes ) ) {
91
+ return $themes;
92
+ }
93
+
94
+ $themes = array();
95
+ $themes_dir = plugin_dir_path( CODE_SNIPPETS_FILE ) . 'css/min/cmthemes/';
96
+ $theme_files = glob( $themes_dir . '*.css' );
97
+
98
+ foreach ( $theme_files as $i => $theme ) {
99
+ $theme = str_replace( $themes_dir, '', $theme );
100
+ $theme = str_replace( '.css', '', $theme );
101
+ $themes[] = $theme;
102
+ }
103
+
104
+ return $themes;
105
+ }
trunk/php/functions.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Fetch the admin menu slug for a snippets menu
5
+ * @deprecated Use code_snippets()->get_menu_slug() instead
6
+ * @param string $menu The menu to retrieve the slug for
7
+ * @return string The menu's slug
8
+ */
9
+ function code_snippets_get_menu_slug( $menu = '' ) {
10
+ return code_snippets()->get_menu_slug( $menu );
11
+ }
12
+
13
+ /**
14
+ * Fetch the URL to a snippets admin menu
15
+ * @deprecated Use code_snippets()->get_menu_url() instead
16
+ *
17
+ * @param string $menu The menu to retrieve the URL to
18
+ * @param string $context The URL scheme to use
19
+ *
20
+ * @return string The menu's URL
21
+ */
22
+ function code_snippets_get_menu_url( $menu = '', $context = 'self' ) {
23
+ return code_snippets()->get_menu_url( $menu, $context );
24
+ }
25
+
26
+ /**
27
+ * Fetch the admin menu hook for a snippets menu
28
+ * @deprecated Use code_snippets()->get_menu_hook() instead
29
+ * @param string $menu The menu to retrieve the hook for
30
+ * @return string The menu's hook
31
+ */
32
+ function code_snippets_get_menu_hook( $menu = '' ) {
33
+ return code_snippets()->get_menu_hook( $menu );
34
+ }
35
+
36
+ /**
37
+ * Fetch the admin menu slug for a snippets menu
38
+ *
39
+ * @deprecated Use code_snippets()->get_snippet_edit_url() instead
40
+ *
41
+ * @param int $snippet_id The snippet
42
+ * @param string $context The URL scheme to use
43
+ *
44
+ * @return string The URL to the edit snippet page for that snippet
45
+ */
46
+ function get_snippet_edit_url( $snippet_id, $context = 'self' ) {
47
+ return code_snippets()->get_snippet_edit_url( $snippet_id, $context );
48
+ }
49
+
50
+ /**
51
+ * Get the required capability to perform a certain action on snippets.
52
+ * Does not check if the user has this capability or not.
53
+ *
54
+ * If multisite, checks if *Enable Administration Menus: Snippets* is active
55
+ * under the *Settings > Network Settings* network admin menu
56
+ *
57
+ * @deprecated Use code_snippets()->get_cap() instead
58
+ * @since 2.0
59
+ * @return string The capability required to manage snippets
60
+ */
61
+ function get_snippets_cap() {
62
+ return code_snippets()->get_cap();
63
+ }
64
+
65
+ /**
66
+ * Return the appropriate snippet table name
67
+ *
68
+ * @deprecated Use code_snippets()->db->get_table_name() instead
69
+ * @since 2.0
70
+ * @param string|bool|null $multisite Retrieve the multisite table name or the site table name?
71
+ * @return string The snippet table name
72
+ */
73
+ function get_snippets_table_name( $multisite = null ) {
74
+ return code_snippets()->db->get_table_name( $multisite );
75
+ }
trunk/php/settings/editor-preview.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file handles the editor preview setting
5
+ *
6
+ * @since 2.0
7
+ * @package Code_Snippets
8
+ */
9
+
10
+ /**
11
+ * Load the CSS and JavaScript for the editor preview field
12
+ *
13
+ * @param string $hook The current page hook
14
+ */
15
+ function code_snippets_editor_settings_preview_assets( $hook ) {
16
+
17
+ /* Only load on the settings page */
18
+ if ( code_snippets()->get_menu_hook( 'settings' ) !== $hook ) {
19
+ return;
20
+ }
21
+
22
+ /* Enqueue scripts for the editor preview */
23
+ code_snippets_enqueue_codemirror();
24
+
25
+ /* Enqueue ALL themes */
26
+ $themes = code_snippets_get_available_themes();
27
+
28
+ foreach ( $themes as $theme ) {
29
+
30
+ wp_enqueue_style(
31
+ 'code-snippets-codemirror-theme-' . $theme,
32
+ plugins_url( "css/min/cmthemes/$theme.css", CODE_SNIPPETS_FILE ),
33
+ array( 'code-snippets-codemirror' )
34
+ );
35
+ }
36
+
37
+ wp_enqueue_script( 'jquery' );
38
+ }
39
+
40
+ add_action( 'admin_enqueue_scripts', 'code_snippets_editor_settings_preview_assets' );
41
+
42
+ /**
43
+ * Render a theme select field
44
+ */
45
+ function code_snippets_codemirror_theme_select_field( $atts ) {
46
+
47
+ $saved_value = code_snippets_get_setting( $atts['section'], $atts['id'] );
48
+
49
+ echo '<select name="code_snippets_settings[editor][theme]">';
50
+ echo '<option value="default"' . selected( 'default', $saved_value, false ) . '>Default</option>';
51
+
52
+ /* Fetch all theme CSS files */
53
+ $themes_dir = plugin_dir_path( CODE_SNIPPETS_FILE ) . 'css/min/cmthemes/';
54
+ $themes = glob( $themes_dir . '*.css' );
55
+
56
+ /* Print dropdown entry for each theme */
57
+ foreach ( $themes as $theme ) {
58
+
59
+ /* Extract theme name from path */
60
+ $theme = str_replace( $themes_dir, '', $theme );
61
+ $theme = str_replace( '.css', '', $theme );
62
+
63
+ /* Skip mobile themes */
64
+ if ( 'ambiance-mobile' === $theme ) {
65
+ continue;
66
+ }
67
+ printf(
68
+ '<option value="%s"%s>%s</option>',
69
+ $theme,
70
+ selected( $theme, $saved_value, false ),
71
+ ucwords( str_replace( '-', ' ', $theme ) )
72
+ );
73
+ }
74
+
75
+ echo '</select>';
76
+ }
77
+
78
+ /**
79
+ * Render the editor preview setting
80
+ */
81
+ function code_snippets_settings_editor_preview() {
82
+
83
+ $example_content = "
84
+ function example_custom_admin_footer_text( \$text ) {
85
+ return 'Thank you for visiting <a href=\"' . get_home_url() . '\">' . get_bloginfo( 'name' ) . '</a>.';
86
+ }
87
+
88
+ add_filter( 'admin_footer_text', 'example_custom_admin_footer_text' );
89
+
90
+ ";
91
+
92
+ $atts = array(
93
+ 'mode' => 'text/x-php',
94
+ 'value' => $example_content,
95
+ );
96
+
97
+ ?>
98
+
99
+ <div style="max-width: 800px" id="code_snippets_editor_preview"></div>
100
+
101
+ <script>
102
+ (function () {
103
+ 'use strict';
104
+
105
+ // Load CodeMirror
106
+ var atts = [];
107
+ atts = <?php echo code_snippets_get_editor_atts( $atts, true ); ?>;
108
+ atts['viewportMargin'] = Infinity;
109
+
110
+ var editor = CodeMirror(document.getElementById('code_snippets_editor_preview'), atts);
111
+
112
+ // Dynamically change editor settings
113
+ <?php
114
+
115
+ /* Retrieve editor settings */
116
+ $fields = code_snippets_get_settings_fields();
117
+ $fields = $fields['editor'];
118
+
119
+ foreach ( $fields as $setting => $field ) {
120
+
121
+ /* Only output settings which have a CodeMirror attribute */
122
+ if ( empty( $field['codemirror'] ) ) {
123
+ continue;
124
+ }
125
+
126
+ $att_name = $field['codemirror'];
127
+
128
+ switch ( $field['type'] ) {
129
+
130
+ case 'codemirror_theme_select': ?>
131
+
132
+ document.querySelector('select[name="code_snippets_settings[editor][<?php echo $setting; ?>]"]').onchange = function () {
133
+ editor.setOption('<?php echo $att_name; ?>', this.options[this.selectedIndex].value);
134
+ };
135
+
136
+ <?php break;
137
+ case 'checkbox': ?>
138
+
139
+ document.querySelector('input[name="code_snippets_settings[editor][<?php echo $setting; ?>]"]').onchange = function () {
140
+ editor.setOption('<?php echo $att_name; ?>', this.checked);
141
+ };
142
+
143
+ <?php break;
144
+ case 'number': ?>
145
+
146
+ document.querySelector('input[name="code_snippets_settings[editor][<?php echo $setting; ?>]"]').onchange = function () {
147
+ editor.setOption( '<?php echo $att_name; ?>', this.value);
148
+ };
149
+
150
+ <?php break;
151
+ }
152
+ }
153
+
154
+ ?>
155
+ }());
156
+ </script>
157
+
158
+ <?php
159
+ }
trunk/php/settings/render-fields.php ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file handles rendering the settings fields
5
+ *
6
+ * @since 2.0.0
7
+ * @package Code_Snippets
8
+ */
9
+
10
+ /**
11
+ * Render a checkbox field for a setting
12
+ *
13
+ * @since 2.0.0
14
+ * @param array $atts The setting field's attributes
15
+ */
16
+ function code_snippets_checkbox_field( $atts ) {
17
+ $saved_value = code_snippets_get_setting( $atts['section'], $atts['id'] );
18
+ $input_name = sprintf( 'code_snippets_settings[%s][%s]', $atts['section'], $atts['id'] );
19
+
20
+ $output = sprintf(
21
+ '<input type="checkbox" name="%s"%s>',
22
+ $input_name,
23
+ checked( $saved_value, true, false )
24
+ );
25
+
26
+ // Output the checkbox field, optionally with label
27
+ if ( isset( $atts['label'] ) ) {
28
+ printf( '<label for="%s">%s %s</label>', $input_name, $output, $atts['label'] );
29
+ } else {
30
+ echo $output;
31
+ }
32
+
33
+ // Add field description if it is set
34
+ if ( ! empty( $atts['desc'] ) ) {
35
+ echo '<p class="description">' . $atts['desc'] . '</p>';
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Render a number select field for an editor setting
41
+ *
42
+ * @since 2.0.0
43
+ * @param array $atts The setting field's attributes
44
+ */
45
+ function code_snippets_number_field( $atts ) {
46
+
47
+ printf(
48
+ '<input type="number" name="code_snippets_settings[%s][%s]" value="%s"',
49
+ $atts['section'],
50
+ $atts['id'],
51
+ code_snippets_get_setting( $atts['section'], $atts['id'] )
52
+ );
53
+
54
+ if ( isset( $atts['min'] ) ) {
55
+ printf( ' min="%d"', $atts['min'] );
56
+ }
57
+
58
+ if ( isset( $atts['max'] ) ) {
59
+ printf( ' max="%d"', $atts['max'] );
60
+ }
61
+
62
+ echo '>';
63
+
64
+ if ( ! empty( $atts['label'] ) ) {
65
+ echo ' ' . $atts['label'];
66
+ }
67
+
68
+ // Add field description if it is set
69
+ if ( ! empty( $atts['desc'] ) ) {
70
+ echo '<p class="description">' . $atts['desc'] . '</p>';
71
+ }
72
+ }
trunk/php/settings/settings-fields.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Retrieve the default setting values
5
+ * @return array
6
+ */
7
+ function code_snippets_get_default_settings() {
8
+ static $defaults;
9
+
10
+ if ( isset( $defaults ) ) {
11
+ return $defaults;
12
+ }
13
+
14
+ $defaults = array();
15
+
16
+ foreach ( code_snippets_get_settings_fields() as $section_id => $fields ) {
17
+ $defaults[ $section_id ] = array();
18
+
19
+ foreach ( $fields as $field_id => $field_atts ) {
20
+ $defaults[ $section_id ][ $field_id ] = $field_atts['default'];
21
+ }
22
+ }
23
+
24
+ return $defaults;
25
+ }
26
+
27
+ /**
28
+ * Retrieve the settings fields
29
+ * @return array
30
+ */
31
+ function code_snippets_get_settings_fields() {
32
+ static $fields;
33
+
34
+ if ( isset( $fields ) ) {
35
+ return $fields;
36
+ }
37
+
38
+ $fields = array();
39
+
40
+ $fields['general'] = array(
41
+ 'activate_by_default' => array(
42
+ 'name' => __( 'Activate by Default', 'code-snippets' ),
43
+ 'type' => 'checkbox',
44
+ 'label' => __( "Make the 'Save and Activate' button the default action when saving a snippet.", 'code-snippets' ),
45
+ 'default' => false,
46
+ ),
47
+
48
+ 'snippet_scope_enabled' => array(
49
+ 'name' => __( 'Enable Scope Selector', 'code-snippets' ),
50
+ 'type' => 'checkbox',
51
+ 'label' => __( 'Enable the scope selector when editing a snippet', 'code-snippets' ),
52
+ 'default' => true,
53
+ ),
54
+
55
+ 'enable_tags' => array(
56
+ 'name' => __( 'Enable Snippet Tags', 'code-snippets' ),
57
+ 'type' => 'checkbox',
58
+ 'label' => __( 'Show snippet tags on admin pages', 'code-snippets' ),
59
+ 'default' => true,
60
+ ),
61
+
62
+ 'enable_description' => array(
63
+ 'name' => __( 'Enable Snippet Descriptions', 'code-snippets' ),
64
+ 'type' => 'checkbox',
65
+ 'label' => __( 'Show snippet descriptions on admin pages', 'code-snippets' ),
66
+ 'default' => true,
67
+ ),
68
+ 'disable_prism' => array(
69
+ 'name' => __( 'Disable shortcode syntax highlighter', 'code-snippets' ),
70
+ 'type' => 'checkbox',
71
+ 'label' => __( 'Disable the syntax highlighting for the [code_snippet] shortcode on the front-end', 'code-snippets' ),
72
+ 'default' => false,
73
+ ),
74
+ );
75
+
76
+ /* Description Editor settings section */
77
+ $fields['description_editor'] = array(
78
+
79
+ 'rows' => array(
80
+ 'name' => __( 'Row Height', 'code-snippets' ),
81
+ 'type' => 'number',
82
+ 'label' => __( 'rows', 'code-snippets' ),
83
+ 'default' => 5,
84
+ 'min' => 0,
85
+ ),
86
+
87
+ 'use_full_mce' => array(
88
+ 'name' => __( 'Use Full Editor', 'code-snippets' ),
89
+ 'type' => 'checkbox',
90
+ 'label' => __( 'Enable all features of the visual editor', 'code-snippets' ),
91
+ 'default' => false,
92
+ ),
93
+
94
+ 'media_buttons' => array(
95
+ 'name' => __( 'Media Buttons', 'code-snippets' ),
96
+ 'type' => 'checkbox',
97
+ 'label' => __( 'Enable the add media buttons', 'code-snippets' ),
98
+ 'default' => false,
99
+ ),
100
+ );
101
+
102
+ /* Code Editor settings section */
103
+
104
+ $fields['editor'] = array(
105
+ 'theme' => array(
106
+ 'name' => __( 'Theme', 'code-snippets' ),
107
+ 'type' => 'codemirror_theme_select',
108
+ 'default' => 'default',
109
+ 'codemirror' => 'theme',
110
+ ),
111
+
112
+ 'indent_with_tabs' => array(
113
+ 'name' => __( 'Indent With Tabs', 'code-snippets' ),
114
+ 'type' => 'checkbox',
115
+ 'label' => __( 'Use hard tabs (not spaces) for indentation.', 'code-snippets' ),
116
+ 'default' => true,
117
+ 'codemirror' => 'indentWithTabs',
118
+ ),
119
+
120
+ 'tab_size' => array(
121
+ 'name' => __( 'Tab Size', 'code-snippets' ),
122
+ 'type' => 'number',
123
+ 'desc' => __( 'The width of a tab character.', 'code-snippets' ),
124
+ 'default' => 4,
125
+ 'codemirror' => 'tabSize',
126
+ 'min' => 0,
127
+ ),
128
+
129
+ 'indent_unit' => array(
130
+ 'name' => __( 'Indent Unit', 'code-snippets' ),
131
+ 'type' => 'number',
132
+ 'desc' => __( 'How many spaces a block should be indented.', 'code-snippets' ),
133
+ 'default' => 2,
134
+ 'codemirror' => 'indentUnit',
135
+ 'min' => 0,
136
+ ),
137
+
138
+ 'wrap_lines' => array(
139
+ 'name' => __( 'Wrap Lines', 'code-snippets' ),
140
+ 'type' => 'checkbox',
141
+ 'label' => __( 'Whether the editor should scroll or wrap for long lines.', 'code-snippets' ),
142
+ 'default' => true,
143
+ 'codemirror' => 'lineWrapping',
144
+ ),
145
+
146
+ 'line_numbers' => array(
147
+ 'name' => __( 'Line Numbers', 'code-snippets' ),
148
+ 'type' => 'checkbox',
149
+ 'label' => __( 'Show line numbers to the left of the editor.', 'code-snippets' ),
150
+ 'default' => true,
151
+ 'codemirror' => 'lineNumbers',
152
+ ),
153
+
154
+ 'auto_close_brackets' => array(
155
+ 'name' => __( 'Auto Close Brackets', 'code-snippets' ),
156
+ 'type' => 'checkbox',
157
+ 'label' => __( 'Auto-close brackets and quotes when typed.', 'code-snippets' ),
158
+ 'default' => true,
159
+ 'codemirror' => 'autoCloseBrackets',
160
+ ),
161
+
162
+ 'highlight_selection_matches' => array(
163
+ 'name' => __( 'Highlight Selection Matches', 'code-snippets' ),
164
+ 'label' => __( 'Highlight all instances of a currently selected word.', 'code-snippets' ),
165
+ 'type' => 'checkbox',
166
+ 'default' => true,
167
+ 'codemirror' => 'highlightSelectionMatches',
168
+ ),
169
+ );
170
+
171
+ $fields = apply_filters( 'code_snippets_settings_fields', $fields );
172
+ return $fields;
173
+ }
trunk/php/settings/settings.php ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file registers the settings
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+
9
+ /**
10
+ * Retrieve the setting values from the database.
11
+ * If a setting does not exist in the database, the default value will be returned.
12
+ *
13
+ * @return array
14
+ */
15
+ function code_snippets_get_settings() {
16
+
17
+ /* Check if the settings have been cached */
18
+ if ( $settings = wp_cache_get( 'code_snippets_settings' ) ) {
19
+ return $settings;
20
+ }
21
+
22
+ /* Begin with the default settings */
23
+ $settings = code_snippets_get_default_settings();
24
+
25
+ /* Retrieve saved settings from the database */
26
+ $saved = get_option( 'code_snippets_settings', array() );
27
+
28
+ /* Replace the default field values with the ones saved in the database */
29
+ if ( function_exists( 'array_replace_recursive' ) ) {
30
+
31
+ /* Use the much more efficient array_replace_recursive() function in PHP 5.3 and later */
32
+ $settings = array_replace_recursive( $settings, $saved );
33
+ } else {
34
+
35
+ /* Otherwise, do it manually */
36
+ foreach ( $settings as $section => $fields ) {
37
+ foreach ( $fields as $field => $value ) {
38
+
39
+ if ( isset( $saved[ $section ][ $field ] ) ) {
40
+ $settings[ $section ][ $field ] = $saved[ $section ][ $field ];
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ wp_cache_set( 'code_snippets_settings', $settings );
47
+ return $settings;
48
+ }
49
+
50
+ /**
51
+ * Retrieve an individual setting field value
52
+ *
53
+ * @param string $section The ID of the section the setting belongs to
54
+ * @param string $field The ID of the setting field
55
+ * @return array
56
+ */
57
+ function code_snippets_get_setting( $section, $field ) {
58
+ $settings = code_snippets_get_settings();
59
+ return $settings[ $section ][ $field ];
60
+ }
61
+
62
+ /**
63
+ * Retrieve the settings sections
64
+ * @return array
65
+ */
66
+ function code_snippets_get_settings_sections() {
67
+ $sections = array(
68
+ 'general' => __( 'General', 'code-snippets' ),
69
+ 'description_editor' => __( 'Description Editor', 'code-snippets' ),
70
+ 'editor' => __( 'Code Editor', 'code-snippets' ),
71
+ );
72
+
73
+ return apply_filters( 'code_snippets_settings_sections', $sections );
74
+ }
75
+
76
+ /**
77
+ * Register settings sections, fields, etc
78
+ */
79
+ function code_snippets_register_settings() {
80
+
81
+ if ( ! get_option( 'code_snippets_settings', false ) ) {
82
+ add_option( 'code_snippets_settings', code_snippets_get_default_settings() );
83
+ }
84
+
85
+ /* Register the setting */
86
+ register_setting( 'code-snippets', 'code_snippets_settings', 'code_snippets_settings_validate' );
87
+
88
+ /* Register settings sections */
89
+ foreach ( code_snippets_get_settings_sections() as $section_id => $section_name ) {
90
+ add_settings_section(
91
+ 'code-snippets-' . $section_id,
92
+ $section_name,
93
+ '__return_empty_string',
94
+ 'code-snippets'
95
+ );
96
+ }
97
+
98
+ /* Register settings fields */
99
+ foreach ( code_snippets_get_settings_fields() as $section_id => $fields ) {
100
+ foreach ( $fields as $field_id => $field ) {
101
+ $atts = $field;
102
+ $atts['id'] = $field_id;
103
+ $atts['section'] = $section_id;
104
+
105
+ add_settings_field(
106
+ 'code_snippets_' . $field_id,
107
+ $field['name'],
108
+ "code_snippets_{$field['type']}_field",
109
+ 'code-snippets',
110
+ 'code-snippets-' . $section_id,
111
+ $atts
112
+ );
113
+ }
114
+ }
115
+
116
+ /* Add editor preview as a field */
117
+ add_settings_field(
118
+ 'code_snippets_editor_preview',
119
+ __( 'Editor Preview', 'code-snippets' ),
120
+ 'code_snippets_settings_editor_preview',
121
+ 'code-snippets',
122
+ 'code-snippets-editor'
123
+ );
124
+ }
125
+
126
+ add_action( 'admin_init', 'code_snippets_register_settings' );
127
+
128
+ /**
129
+ * Validate the settings
130
+ *
131
+ * @param array $input The sent settings
132
+ * @return array The validated settings
133
+ */
134
+ function code_snippets_settings_validate( array $input ) {
135
+ $settings = code_snippets_get_settings();
136
+ $settings_fields = code_snippets_get_settings_fields();
137
+
138
+ // Don't directly loop through $input as it does not include as deselected checkboxes
139
+ foreach ( $settings_fields as $section_id => $fields ) {
140
+
141
+ // Loop through fields
142
+ foreach ( $fields as $field_id => $field ) {
143
+
144
+ switch ( $field['type'] ) {
145
+
146
+ case 'checkbox':
147
+ $settings[ $section_id ][ $field_id ] =
148
+ isset( $input[ $section_id ][ $field_id ] ) && 'on' === $input[ $section_id ][ $field_id ];
149
+ break;
150
+
151
+ case 'number':
152
+ $settings[ $section_id ][ $field_id ] = absint( $input[ $section_id ][ $field_id ] );
153
+ break;
154
+
155
+ case 'codemirror_theme_select':
156
+ $available_themes = code_snippets_get_available_themes();
157
+ $selected_theme = $input[ $section_id ][ $field_id ];
158
+
159
+ if ( in_array( $selected_theme, $available_themes ) ) {
160
+ $settings[ $section_id ][ $field_id ] = $selected_theme;
161
+ }
162
+
163
+ break;
164
+
165
+ default:
166
+ break;
167
+
168
+ }
169
+ }
170
+ }
171
+
172
+ /* Add an updated message */
173
+ add_settings_error(
174
+ 'code-snippets-settings-notices',
175
+ 'settings-saved',
176
+ __( 'Settings saved.', 'code-snippets' ),
177
+ 'updated'
178
+ );
179
+
180
+ return $settings;
181
+ }
trunk/php/snippet-ops.php ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Functions to perform snippet operations
5
+ *
6
+ * @package Code_Snippets
7
+ */
8
+
9
+ /**
10
+ * Retrieve a list of snippets from the database
11
+ *
12
+ * @since 2.0
13
+ *
14
+ * @uses $wpdb to query the database for snippets
15
+ * @uses code_snippets()->db->get_table_name() to dynamically retrieve the snippet table name
16
+ *
17
+ * @param array $ids The IDs of the snippets to fetch
18
+ * @param bool|null $multisite Retrieve multisite-wide or site-wide snippets?
19
+ * @return array An array of Snippet objects
20
+ */
21
+ function get_snippets( array $ids = array(), $multisite = null ) {
22
+ /** @var wpdb $wpdb */
23
+ global $wpdb;
24
+ $table = code_snippets()->db->get_table_name( $multisite );
25
+ $sql = "SELECT * FROM $table";
26
+ $ids_count = count( $ids );
27
+
28
+ if ( 1 == $ids_count ) {
29
+ return array( get_snippet( $ids[0] ) );
30
+ }
31
+
32
+ if ( $ids_count > 1 ) {
33
+ $sql .= ' WHERE id IN (';
34
+ $sql .= implode( ',', array_fill( 0, $ids_count, '%d' ) );
35
+ $sql .= ')';
36
+
37
+ $sql = $wpdb->prepare( $sql, $ids );
38
+ }
39
+
40
+ $snippets = $wpdb->get_results( $sql, ARRAY_A );
41
+
42
+ /* Convert snippets to snippet objects */
43
+ foreach ( $snippets as $index => $snippet ) {
44
+ $snippet['network'] = $multisite;
45
+ $snippets[ $index ] = new Snippet( $snippet );
46
+ }
47
+
48
+ return apply_filters( 'code_snippets/get_snippets', $snippets, $multisite );
49
+ }
50
+
51
+ /**
52
+ * Gets all of the used tags from the database
53
+ * @since 2.0
54
+ */
55
+ function get_all_snippet_tags() {
56
+ /** @var wpdb $wpdb */
57
+ global $wpdb;
58
+
59
+ /* Grab all tags from the database */
60
+ $tags = array();
61
+ $table = code_snippets()->db->get_table_name();
62
+ $all_tags = $wpdb->get_col( "SELECT `tags` FROM $table" );
63
+
64
+ /* Merge all tags into a single array */
65
+ foreach ( $all_tags as $snippet_tags ) {
66
+ $snippet_tags = code_snippets_build_tags_array( $snippet_tags );
67
+ $tags = array_merge( $snippet_tags, $tags );
68
+ }
69
+
70
+ /* Remove duplicate tags */
71
+ return array_values( array_unique( $tags, SORT_REGULAR ) );
72
+ }
73
+ /**
74
+ * Make sure that the tags are a valid array
75
+ * @since 2.0
76
+ *
77
+ * @param mixed $tags The tags to convert into an array
78
+ * @return array The converted tags
79
+ */
80
+ function code_snippets_build_tags_array( $tags ) {
81
+
82
+ /* If there are no tags set, return an empty array */
83
+ if ( empty( $tags ) ) {
84
+ return array();
85
+ }
86
+
87
+ /* If the tags are set as a string, convert them into an array */
88
+ if ( is_string( $tags ) ) {
89
+ $tags = strip_tags( $tags );
90
+ $tags = str_replace( ', ', ',', $tags );
91
+ $tags = explode( ',', $tags );
92
+ }
93
+
94
+ /* If we still don't have an array, just convert whatever we do have into one */
95
+ return (array) $tags;
96
+ }
97
+
98
+ /**
99
+ * Retrieve a single snippets from the database.
100
+ * Will return empty snippet object if no snippet
101
+ * ID is specified
102
+ *
103
+ * @since 2.0
104
+ *
105
+ * @uses $wpdb to query the database for snippets
106
+ * @uses code_snippets()->db->get_table_name() to dynamically retrieve the snippet table name
107
+ *
108
+ * @param int $id The ID of the snippet to retrieve. 0 to build a new snippet
109
+ * @param boolean|null $multisite Retrieve a multisite-wide or site-wide snippet?
110
+ * @return Snippet A single snippet object
111
+ */
112
+ function get_snippet( $id = 0, $multisite = null ) {
113
+ /** @var wpdb $wpdb */
114
+ global $wpdb;
115
+
116
+ $id = absint( $id );
117
+ $table = code_snippets()->db->get_table_name( $multisite );
118
+
119
+ if ( 0 !== $id ) {
120
+
121
+ /* Retrieve the snippet from the database */
122
+ $snippet = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $table WHERE id = %d", $id ) );
123
+
124
+ /* Unescape the snippet data, ready for use */
125
+ $snippet = new Snippet( $snippet );
126
+
127
+ } else {
128
+
129
+ /* Get an empty snippet object */
130
+ $snippet = new Snippet();
131
+ }
132
+
133
+ $snippet->network = $multisite;
134
+
135
+ return apply_filters( 'code_snippets/get_snippet', $snippet, $id, $multisite );
136
+ }
137
+
138
+ /**
139
+ * Activates a snippet
140
+ *
141
+ * @since 2.0
142
+ *
143
+ * @uses $wpdb to set the snippet's active status
144
+ *
145
+ * @param int $id The ID of the snippet to activate
146
+ * @param bool|null $multisite Are the snippets multisite-wide or site-wide?
147
+ */
148
+ function activate_snippet( $id, $multisite = null ) {
149
+ /** @var wpdb $wpdb */
150
+ global $wpdb;
151
+ $table = code_snippets()->db->get_table_name( $multisite );
152
+
153
+ $wpdb->update(
154
+ $table,
155
+ array( 'active' => '1' ),
156
+ array( 'id' => $id ),
157
+ array( '%d' ),
158
+ array( '%d' )
159
+ );
160
+
161
+ /* Remove snippet from shared network snippet list if it was Network Activated */
162
+ if ( $table == $wpdb->ms_snippets && $shared_network_snippets = get_site_option( 'shared_network_snippets', false ) ) {
163
+ $shared_network_snippets = array_diff( $shared_network_snippets, array( $id ) );
164
+ update_site_option( 'shared_network_snippets', $shared_network_snippets );
165
+ }
166
+
167
+ do_action( 'code_snippets/activate_snippet', $id, $multisite );
168
+ }
169
+
170
+ /**
171
+ * Deactivate a snippet
172
+ *
173
+ * @since 2.0
174
+ *
175
+ * @uses $wpdb to set the snippets' active status
176
+ *
177
+ * @param int $id The ID of the snippet to deactivate
178
+ * @param bool|null $multisite Are the snippets multisite-wide or site-wide?
179
+ */
180
+ function deactivate_snippet( $id, $multisite = null ) {
181
+ /** @var wpdb $wpdb */
182
+ global $wpdb;
183
+ $table = code_snippets()->db->get_table_name( $multisite );
184
+
185
+ /* Set the snippet to active */
186
+
187
+ $wpdb->update(
188
+ $table,
189
+ array( 'active' => '0' ),
190
+ array( 'id' => $id ),
191
+ array( '%d' ),
192
+ array( '%d' )
193
+ );
194
+
195
+ /* Update the recently active list */
196
+
197
+ $recently_active = array( $id => time() );
198
+
199
+ if ( $table === $wpdb->ms_snippets ) {
200
+
201
+ update_site_option(
202
+ 'recently_activated_snippets',
203
+ $recently_active + (array) get_site_option( 'recently_activated_snippets' )
204
+ );
205
+ } elseif ( $table === $wpdb->snippets ) {
206
+
207
+ update_option(
208
+ 'recently_activated_snippets',
209
+ $recently_active + (array) get_option( 'recently_activated_snippets' )
210
+ );
211
+ }
212
+
213
+ do_action( 'code_snippets/deactivate_snippet', $id, $multisite );
214
+ }
215
+
216
+ /**
217
+ * Deletes a snippet from the database
218
+ *
219
+ * @since 2.0
220
+ * @uses $wpdb to access the database
221
+ * @uses code_snippets()->db->get_table_name() to dynamically retrieve the name of the snippet table
222
+ *
223
+ * @param int $id The ID of the snippet to delete
224
+ * @param bool|null $multisite Delete from site-wide or network-wide table?
225
+ */
226
+ function delete_snippet( $id, $multisite = null ) {
227
+ /** @var wpdb $wpdb */
228
+ global $wpdb;
229
+
230
+ $wpdb->delete(
231
+ code_snippets()->db->get_table_name( $multisite ),
232
+ array( 'id' => $id ),
233
+ array( '%d' )
234
+ );
235
+
236
+ do_action( 'code_snippets/delete_snippet', $id, $multisite );
237
+ }
238
+
239
+ /**
240
+ * Saves a snippet to the database.
241
+ *
242
+ * @since 2.0
243
+ *
244
+ * @uses $wpdb to update/add the snippet to the database
245
+ * @uses code_snippets()->db->get_table_name() To dynamically retrieve the name of the snippet table
246
+ *
247
+ * @param Snippet $snippet The snippet to add/update to the database
248
+ * @return int The ID of the snippet
249
+ */
250
+ function save_snippet( Snippet $snippet ) {
251
+ /** @var wpdb $wpdb */
252
+ global $wpdb;
253
+
254
+ $table = code_snippets()->db->get_table_name( $snippet->network );
255
+
256
+ /* Build array of data to insert */
257
+ $data = array(
258
+ 'name' => $snippet->name,
259
+ 'description' => $snippet->desc,
260
+ 'code' => $snippet->code,
261
+ 'tags' => $snippet->tags_list,
262
+ 'scope' => $snippet->scope,
263
+ 'active' => intval( $snippet->active ),
264
+ );
265
+
266
+ /* Create a new snippet if the ID is not set */
267
+ if ( 0 == $snippet->id ) {
268
+
269
+ $wpdb->insert( $table, $data, '%s' );
270
+ $snippet->id = $wpdb->insert_id;
271
+
272
+ do_action( 'code_snippets/create_snippet', $snippet, $table );
273
+ } else {
274
+
275
+ /* Otherwise update the snippet data */
276
+ $wpdb->update( $table, $data, array( 'id' => $snippet->id ), null, array( '%d' ) );
277
+
278
+ do_action( 'code_snippets/update_snippet', $snippet, $table );
279
+ }
280
+
281
+ return $snippet->id;
282
+ }
283
+
284
+ /**
285
+ * Imports snippets from an XML file
286
+ *
287
+ * @since 2.0
288
+ *
289
+ * @uses save_snippet() to add the snippets to the database
290
+ *
291
+ * @param string $file The path to the XML file to import
292
+ * @param bool|null $multisite Import into network-wide table or site-wide table?
293
+ * @return array|bool An array of imported snippet IDs on success, false on failure
294
+ */
295
+ function import_snippets( $file, $multisite = null ) {
296
+
297
+ if ( ! file_exists( $file ) || ! is_file( $file ) ) {
298
+ return false;
299
+ }
300
+
301
+ $dom = new DOMDocument( '1.0', get_bloginfo( 'charset' ) );
302
+ $dom->load( $file );
303
+
304
+ $snippets_xml = $dom->getElementsByTagName( 'snippet' );
305
+ $fields = array( 'name', 'description', 'desc', 'code', 'tags', 'scope' );
306
+ $exported_snippets = array();
307
+
308
+ /* Loop through all snippets */
309
+
310
+ /** @var DOMElement $snippet_xml */
311
+ foreach ( $snippets_xml as $snippet_xml ) {
312
+ $snippet = new Snippet();
313
+ $snippet->network = $multisite;
314
+
315
+ /* Build a snippet object by looping through the field names */
316
+ foreach ( $fields as $field_name ) {
317
+
318
+ /* Fetch the field element from the document */
319
+ $field = $snippet_xml->getElementsByTagName( $field_name )->item( 0 );
320
+
321
+ /* If the field element exists, add it to the snippet object */
322
+ if ( isset( $field->nodeValue ) ) {
323
+ $snippet->$field_name = $field->nodeValue;
324
+ }
325
+ }
326
+
327
+ /* Get scope from attribute */
328
+ $scope = $snippet_xml->getAttribute( 'scope' );
329
+ if ( ! empty( $scope ) ) {
330
+ $snippet->scope = $scope;
331
+ }
332
+
333
+ /* Save the snippet and increase the counter if successful */
334
+ if ( $snippet_id = save_snippet( $snippet ) ) {
335
+ $exported_snippets[] = $snippet_id;
336
+ }
337
+ }
338
+
339
+ do_action( 'code_snippets/import', $dom, $multisite );
340
+ return $exported_snippets;
341
+ }
342
+
343
+ /**
344
+ * Exports snippets as an XML file
345
+ *
346
+ * @since 2.0
347
+ * @uses Code_Snippets_Export to export selected snippets
348
+ * @uses code_snippets()->db->get_table_name() to dynamically retrieve the name of the snippet table
349
+ *
350
+ * @param array $ids The IDs of the snippets to export
351
+ * @param bool|null $multisite Is the snippet a network-wide or site-wide snippet?
352
+ * @param string $format Export to xml or php?
353
+ */
354
+ function export_snippets( $ids, $multisite = null, $format = 'xml' ) {
355
+ $table = code_snippets()->db->get_table_name( $multisite );
356
+
357
+ if ( ! class_exists( 'Code_Snippets_Export' ) ) {
358
+ require_once plugin_dir_path( CODE_SNIPPETS_FILE ) . 'php/class-export.php';
359
+ }
360
+
361
+ $class = new Code_Snippets_Export( $ids, $table, $format );
362
+ $class->do_export();
363
+ }
364
+
365
+ /**
366
+ * Execute a snippet
367
+ *
368
+ * Code must NOT be escaped, as
369
+ * it will be executed directly
370
+ *
371
+ * @since 2.0
372
+ *
373
+ * @param string $code The snippet code to execute
374
+ * @param int $id The snippet ID
375
+ * @return mixed The result of the code execution
376
+ */
377
+ function execute_snippet( $code, $id = 0 ) {
378
+
379
+ if ( empty( $code ) ) {
380
+ return false;
381
+ }
382
+
383
+ ob_start();
384
+ $result = eval( $code );
385
+ ob_end_clean();
386
+
387
+ do_action( 'code_snippets/after_execute_snippet', $id, $code, $result );
388
+
389
+ return $result;
390
+ }
391
+
392
+ /**
393
+ * Run the active snippets
394
+ *
395
+ * @since 2.0
396
+ *
397
+ * @return bool true on success, false on failure
398
+ */
399
+ function execute_active_snippets() {
400
+
401
+ /* Bail early if safe mode is active */
402
+ if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
403
+ return false;
404
+ }
405
+
406
+ if ( isset( $_GET['snippets-safe-mode'] ) && $_GET['snippets-safe-mode'] && code_snippets()->current_user_can() ) {
407
+ return false;
408
+ }
409
+
410
+ /** @var wpdb $wpdb */
411
+ global $wpdb;
412
+
413
+ $current_scope = is_admin() ? 1 : 2;
414
+
415
+ /* Check if the snippets tables exist */
416
+ $table_exists = $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->snippets'" ) === $wpdb->snippets;
417
+ $ms_table_exists = is_multisite() && $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->ms_snippets'" ) === $wpdb->ms_snippets;
418
+ $sql = '';
419
+
420
+ /* Fetch snippets from site table */
421
+ if ( $table_exists ) {
422
+ $sql = $wpdb->prepare( "SELECT id, code FROM {$wpdb->snippets} WHERE active=1 AND (scope=0 OR scope=%d)", $current_scope );
423
+ }
424
+
425
+ /* Fetch snippets from the network table */
426
+ if ( $ms_table_exists ) {
427
+
428
+ if ( ! empty( $sql ) ) {
429
+ $sql .= ' UNION ALL ';
430
+ }
431
+
432
+ /* Only select snippets in the current scope */
433
+ $sql .= $wpdb->prepare( "SELECT id, code FROM {$wpdb->ms_snippets} WHERE active=1 AND (scope=0 OR scope=%d)", $current_scope );
434
+
435
+ /* Add shared network snippets */
436
+ if ( $active_shared_ids = get_option( 'active_shared_network_snippets', false ) ) {
437
+ $sql .= ' UNION ALL ';
438
+ $sql .= $wpdb->prepare(
439
+ sprintf(
440
+ "SELECT id, code FROM {$wpdb->ms_snippets} WHERE id IN (%s)",
441
+ implode( ',', array_fill( 0, count( $active_shared_ids ), '%d' ) )
442
+ ),
443
+ $active_shared_ids
444
+ );
445
+ }
446
+ }
447
+
448
+ /* Return false if there is no query */
449
+ if ( empty( $sql ) ) {
450
+ return false;
451
+ }
452
+
453
+ /* Grab the snippets from the database */
454
+ $active_snippets = $wpdb->get_results( $sql, OBJECT_K );
455
+
456
+ /* Loop through the returned snippets and execute the PHP code */
457
+ foreach ( $active_snippets as $snippet_id => $snippet ) {
458
+
459
+ if ( apply_filters( 'code_snippets/allow_execute_snippet', true, $snippet_id ) ) {
460
+ execute_snippet( $snippet->code, $snippet_id );
461
+ }
462
+ }
463
+
464
+ return true;
465
+ }
466
+
467
+
468
+ if ( isset( $_REQUEST['snippets-safe-mode'] ) ) {
469
+
470
+ /**
471
+ * Inject the safe mode query var into URLs
472
+ *
473
+ * @param $url
474
+ *
475
+ * @return string
476
+ */
477
+ function code_snippets_safe_mode_query_var( $url ) {
478
+ if ( isset( $_REQUEST['snippets-safe-mode'] ) ) {
479
+ return add_query_arg( 'snippets-safe-mode', $_REQUEST['snippets-safe-mode'], $url );
480
+ }
481
+ return $url;
482
+ }
483
+
484
+ add_filter( 'home_url', 'code_snippets_safe_mode_query_var' );
485
+ add_filter( 'admin_url', 'code_snippets_safe_mode_query_var' );
486
+ }
487
+
trunk/php/upgrade.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * This file manages upgrades to the database between plugin versions
5
+ */
6
+
7
+ /* Bail on direct access */
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ return;
10
+ }
11
+
12
+ /**
13
+ * Preform upgrade tasks such as deleting and updating options
14
+ * @since 2.0
15
+ */
16
+ function code_snippets_upgrader() {
17
+
18
+ /* Get the current plugin version from the database */
19
+ $prev_version = get_option( 'code_snippets_version' );
20
+
21
+ /* Check if this is the first plugin run */
22
+ if ( ! $prev_version ) {
23
+
24
+ /* Register capabilities */
25
+ $role = get_role( apply_filters( 'code_snippets_role', 'administrator' ) );
26
+ $role->add_cap( apply_filters( 'code_snippets_cap', 'manage_snippets' ) );
27
+ }
28
+
29
+ /* Check if we have upgraded from an older version */
30
+ if ( version_compare( $prev_version, CODE_SNIPPETS_VERSION, '<' ) ) {
31
+
32
+ /* Upgrade the database tables */
33
+ code_snippets()->db->create_tables( true );
34
+
35
+ /* Update the plugin version stored in the database */
36
+ update_option( 'code_snippets_version', CODE_SNIPPETS_VERSION );
37
+ }
38
+
39
+ /* Run multisite-only upgrades */
40
+
41
+ if ( is_multisite() && is_main_site() ) {
42
+
43
+ /* Get the current plugin version from the database */
44
+ $prev_ms_version = get_site_option( 'code_snippets_version' );
45
+
46
+ /* Check if this is the first plugin run */
47
+ if ( ! $prev_ms_version ) {
48
+
49
+ /* Register multisite capabilities */
50
+ $network_cap = apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' );
51
+ $supers = get_super_admins();
52
+
53
+ foreach ( $supers as $admin ) {
54
+ $user = new WP_User( 0, $admin );
55
+ $user->add_cap( $network_cap );
56
+ }
57
+ }
58
+
59
+ /* Check if we have upgraded from an older version */
60
+ if ( version_compare( $prev_ms_version, CODE_SNIPPETS_VERSION, '<' ) ) {
61
+
62
+ /* Update the plugin version stored in the database */
63
+ update_site_option( 'code_snippets_version', CODE_SNIPPETS_VERSION );
64
+ }
65
+ }
66
+ }
67
+
68
+ add_action( 'plugins_loaded', 'code_snippets_upgrader', 0 );
trunk/php/views/edit.php ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * HTML code for the Add New/Edit Snippet page
5
+ *
6
+ * @package Code_Snippets
7
+ * @subpackage Views
8
+ */
9
+
10
+ /* Bail if accessed directly */
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ return;
13
+ }
14
+
15
+ global $pagenow;
16
+
17
+ $table = code_snippets()->db->get_table_name();
18
+ $edit_id = code_snippets()->get_menu_slug( 'edit' ) === $_REQUEST['page'] ? absint( $_REQUEST['id'] ) : 0;
19
+ $snippet = get_snippet( $edit_id );
20
+
21
+ ?>
22
+ <div class="wrap">
23
+ <h1><?php
24
+ if ( $edit_id ) {
25
+ esc_html_e( 'Edit Snippet', 'code-snippets' );
26
+ printf( ' <a href="%1$s" class="page-title-action add-new-h2">%2$s</a>',
27
+ code_snippets()->get_menu_url( 'add' ),
28
+ esc_html_x( 'Add New', 'snippet', 'code-snippets' )
29
+ );
30
+ } else {
31
+ esc_html_e( 'Add New Snippet', 'code-snippets' );
32
+ }
33
+ ?></h1>
34
+
35
+ <form method="post" id="snippet-form" action="" style="margin-top: 10px;">
36
+ <?php
37
+ /* Output the hidden fields */
38
+
39
+ if ( 0 !== $snippet->id ) {
40
+ printf( '<input type="hidden" name="snippet_id" value="%d" />', $snippet->id );
41
+ }
42
+
43
+ printf( '<input type="hidden" name="snippet_active" value="%d" />', $snippet->active );
44
+
45
+ ?>
46
+ <div id="titlediv">
47
+ <div id="titlewrap">
48
+ <label for="title" style="display: none;"><?php _e( 'Name', 'code-snippets' ); ?></label>
49
+ <input id="title" type="text" autocomplete="off" name="snippet_name" value="<?php echo esc_attr( $snippet->name ); ?>" placeholder="<?php _e( 'Enter title here', 'code-snippets' ); ?>" />
50
+ </div>
51
+ </div>
52
+
53
+ <h3><label for="snippet_code">
54
+ <?php _e( 'Code', 'code-snippets' ); ?>
55
+ </label></h3>
56
+
57
+ <textarea id="snippet_code" name="snippet_code" rows="200" spellcheck="false" style="font-family: monospace; width: 100%;"><?php
58
+ echo esc_textarea( $snippet->code );
59
+ ?></textarea>
60
+
61
+ <?php
62
+ /* Allow plugins to add fields and content to this page */
63
+ do_action( 'code_snippets/admin/single', $snippet );
64
+
65
+ /* Add a nonce for security */
66
+ wp_nonce_field( 'save_snippet' );
67
+ ?>
68
+
69
+ <p class="submit">
70
+ <?php
71
+
72
+ /* Make the 'Save and Activate' button the default if the setting is enabled */
73
+
74
+ if ( $snippet->shared_network && get_current_screen()->in_admin( 'network' ) ) {
75
+
76
+ submit_button( null, 'primary', 'save_snippet', false );
77
+
78
+ } elseif ( ! $snippet->active && code_snippets_get_setting( 'general', 'activate_by_default' ) ) {
79
+
80
+ submit_button(
81
+ __( 'Save Changes and Activate', 'code-snippets' ),
82
+ 'primary', 'save_snippet_activate', false
83
+ );
84
+
85
+ submit_button( null, 'secondary', 'save_snippet', false );
86
+
87
+ } else {
88
+
89
+ /* Save Snippet button */
90
+ submit_button( null, 'primary', 'save_snippet', false );
91
+
92
+ /* Save Snippet and Activate/Deactivate button */
93
+ if ( ! $snippet->active ) {
94
+ submit_button(
95
+ __( 'Save Changes and Activate', 'code-snippets' ),
96
+ 'secondary', 'save_snippet_activate', false
97
+ );
98
+
99
+ } else {
100
+ submit_button(
101
+ __( 'Save Changes and Deactivate', 'code-snippets' ),
102
+ 'secondary', 'save_snippet_deactivate', false
103
+ );
104
+ }
105
+ }
106
+
107
+ if ( 0 !== $snippet->id ) {
108
+
109
+ /* Export button */
110
+
111
+ submit_button( __( 'Export', 'code-snippets' ), 'secondary', 'export_snippet', false );
112
+
113
+ /* Delete button */
114
+
115
+ $confirm_delete_js = esc_js(
116
+ sprintf(
117
+ 'return confirm("%s");',
118
+ __( 'You are about to permanently delete this snippet.', 'code-snippets' ) . "\n" .
119
+ __( "'Cancel' to stop, 'OK' to delete.", 'code-snippets' )
120
+ )
121
+ );
122
+
123
+ submit_button(
124
+ __( 'Delete', 'code-snippets' ),
125
+ 'secondary', 'delete_snippet', false,
126
+ sprintf( 'onclick="%s"', $confirm_delete_js )
127
+ );
128
+ }
129
+
130
+ ?>
131
+ </p>
132
+
133
+ <?php if ( has_action( 'code_snippets/admin/single/settings' ) ) : ?>
134
+
135
+ <h3><?php _e( 'Settings', 'code-snippets' ); ?></h3>
136
+ <table class="form-table">
137
+ <?php do_action( 'code_snippets/admin/single/settings', $snippet ); ?>
138
+ </table>
139
+
140
+ <?php endif; ?>
141
+
142
+ </form>
143
+ </div>
144
+
145
+ <script>
146
+ /* Loads CodeMirror on the snippet editor */
147
+ (function() {
148
+
149
+ var atts = [];
150
+ atts = <?php
151
+ $atts = array( 'mode' => 'text/x-php' );
152
+ echo code_snippets_get_editor_atts( $atts, true );
153
+ ?>;
154
+ atts['viewportMargin'] = Infinity;
155
+
156
+ atts['extraKeys'] = {
157
+ 'Ctrl-Enter': function (cm) {
158
+ document.getElementById('snippet-form').submit();
159
+ },
160
+ };
161
+
162
+ CodeMirror.fromTextArea(document.getElementById('snippet_code'), atts);
163
+ })();
164
+ </script>
trunk/php/views/import.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * HTML code for the Import Snippets page
5
+ *
6
+ * @package Code_Snippets
7
+ * @subpackage Views
8
+ */
9
+
10
+ /* Bail if accessed directly */
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ return;
13
+ }
14
+
15
+ ?>
16
+ <div class="wrap">
17
+ <h1><?php _e( 'Import Snippets', 'code-snippets' ); ?></h1>
18
+
19
+ <div class="narrow">
20
+
21
+ <p><?php _e( 'Howdy! Upload your Code Snippets export file and we&#8217;ll import the snippets to this site.', 'code-snippets' ); ?></p>
22
+
23
+ <p><?php printf( __( 'You will need to go to the <a href="%s">All Snippets</a> page to activate the imported snippets.', 'code-snippets' ), code_snippets_get_menu_url( 'manage' ) ); ?></p>
24
+
25
+ <p><?php _e( 'Choose a Code Snippets (.xml) file to upload, then click Upload file and import.', 'code-snippets' ); ?></p>
26
+
27
+ <form enctype="multipart/form-data" method="post" action="" id="import-upload-form" name="code_snippets_import">
28
+ <p>
29
+ <input type="hidden" name="action" value="save" />
30
+ <input type="hidden" name="max_file_size" value="8388608" />
31
+
32
+ <label for="upload"><?php _e( 'Choose a file from your computer:', 'code-snippets' ); ?></label>
33
+ <?php _e( '(Maximum size: 8MB)', 'code-snippets' ); ?>
34
+ <input type="file" id="upload" name="code_snippets_import_file" size="25" accept="text/xml" />
35
+ </p>
36
+
37
+ <?php
38
+ do_action( 'code_snippets/admin/import_form' );
39
+ submit_button( __( 'Upload file and import', 'code-snippets' ) );
40
+ ?>
41
+ </form>
42
+ </div>
43
+ </div>
trunk/php/views/manage.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * HTML code for the Manage Snippets page
5
+ *
6
+ * @package Code_Snippets
7
+ * @subpackage Views
8
+ */
9
+
10
+ /* Bail if accessed directly */
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ return;
13
+ }
14
+
15
+ ?>
16
+
17
+ <div class="wrap">
18
+ <h1><?php
19
+ esc_html_e( 'Snippets', 'code-snippets' );
20
+
21
+ printf( '<a href="%2$s" class="page-title-action add-new-h2">%1$s</a>',
22
+ esc_html_x( 'Add New', 'snippet', 'code-snippets' ),
23
+ code_snippets_get_menu_url( 'add' )
24
+ );
25
+
26
+ $this->list_table->search_notice();
27
+ ?></h1>
28
+
29
+ <?php $this->list_table->views(); ?>
30
+
31
+ <form method="get" action="">
32
+ <?php
33
+ $this->list_table->required_form_fields( 'search_box' );
34
+ $this->list_table->search_box( __( 'Search Installed Snippets', 'code-snippets' ), 'search_id' );
35
+ ?>
36
+ </form>
37
+ <form method="post" action="">
38
+ <?php
39
+ $this->list_table->required_form_fields();
40
+ $this->list_table->display();
41
+ ?>
42
+ </form>
43
+
44
+ <?php do_action( 'code_snippets/admin/manage' ); ?>
45
+ </div>
trunk/readme.txt ADDED
@@ -0,0 +1,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Code Snippets ===
2
+ Contributors: bungeshea
3
+ Donate link: https://bungeshea.com/donate/
4
+ Tags: code-snippets, snippets, code, php, network, multisite
5
+ Requires at least: 3.6
6
+ Tested up to: 4.7.2
7
+ Stable tag: 2.8.2
8
+ License: MIT
9
+ License URI: license.txt
10
+
11
+ An easy, clean and simple way to add code snippets to your site.
12
+
13
+ == Description ==
14
+
15
+ Code Snippets is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme theme's `functions.php` file.
16
+
17
+ A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site.
18
+ Most snippet-hosting sites tell you to add snippet code to your active theme's `functions.php` file, which can get rather long and messy after a while.
19
+ Code Snippets changes that by providing a GUI interface for adding snippets and **actually running them on your site** just as if they were in your theme's `functions.php` file.
20
+
21
+ Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can can be activated and deactivated, just like plugins. The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor. Snippets can be exported for transfer to another side, either in XML for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme
22
+
23
+ If you have any feedback, issues, or suggestions for improvements please leave a topic in the [Support Forum](http://wordpress.org/support/plugin/code-snippets). If you like this plugin, or it is useful to you in any way, please review it on [WordPress.org](http://wordpress.org/support/view/plugin-reviews/code-snippets). If you'd like to contribute to the plugin's code or translate it into another language, please [fork the plugin on GitHub](https://github.com/sheabunge/code-snippets).
24
+
25
+ = Translations =
26
+
27
+ Code Snippets can be used in these different languages thanks to the following translators:
28
+
29
+ * German - [Mario Siegmann](http://web-alltag.de/), [Joerg Knoerchen](http://www.sensorgrafie.de/), and [David Decker](http://deckerweb.de)
30
+ * Dutch - [Sander Spies](https://github.com/sander1)
31
+ * Slovak - [Ján Fajčák](http://wp.sk)
32
+ * Russian - [Alexander Samsonov](http://www.wordpressplugins.ru/administration/code-snippets.html)
33
+ * Chinese - [Jincheng Shan](http://shanjincheng.com)
34
+ * Serbo-Croatian - [Borisa Djuraskovic from Web Hosting Hub](http://www.webhostinghub.com/)
35
+ * Japanese - [mt8](http://mt8.biz/)
36
+ * French - [oWEB](http://office-web.net)
37
+
38
+ == Installation ==
39
+
40
+ = Automatic installation =
41
+
42
+ 1. Log into your WordPress admin
43
+ 2. Click __Plugins__
44
+ 3. Click __Add New__
45
+ 4. Search for __Code Snippets__
46
+ 5. Click __Install Now__ under "Code Snippets"
47
+ 6. Activate the plugin
48
+
49
+ = Manual installation =
50
+
51
+ 1. Download the plugin
52
+ 2. Extract the contents of the zip file
53
+ 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
54
+ 4. Activate the Code Snippets plugin from 'Plugins' page.
55
+
56
+ Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
57
+
58
+ == Frequently Asked Questions ==
59
+
60
+ = How can I insert my snippet into the post text editor? =
61
+ Snippets that you add to this plugin are not meant to be inserted into the text editor. Instead, they are run on your site just as if they were added to your functions.php file.
62
+
63
+ = Do I need to include the &lt;?php, &lt;? or ?&gt; tags in my snippet? =
64
+ No, just copy all the content inside those tags. If you accidentally forget (or just like being lazy), the tags will be stripped from the beginning and end of the snippet when you save it. You can, however, use those tags *inside* your snippets to start and end HTML sections
65
+
66
+ = Help! I just activated a snippet, and my whole site broke! =
67
+ You can try activating 'safe mode'. All snippets will not execute while safe mode is active, allowing you to access your site and deactivate the snippet that is causing the error. To activate safe mode, add the following line to your wp-config.php file, just before the line that reads `/* That's all, stop editing! Happy blogging. */`:
68
+
69
+ define('CODE_SNIPPETS_SAFE_MODE', true);
70
+
71
+ To turn safe mode off, either [comment out](http://php.net/manual/language.basic-syntax.comments.php) this line or delete it.
72
+
73
+ You can also activate safe mode on a per-page basis by appending `?snippets-safe-mode=true` to the URL.
74
+
75
+ = Is there a way to add a snippet but not run it right away? =
76
+ Yes. Just add it but do not activate it yet.
77
+
78
+ = Will I lose my snippets if I change the theme or upgrade WordPress? =
79
+ No, the snippets are stored in the WordPress database and are independent of the theme and unaffected by WordPress upgrades.
80
+
81
+ = Can the plugin be completely uninstalled? =
82
+ Yes, when you delete Code Snippets using the 'Plugins' menu in WordPress it will clean up the database table and a few other bits of data. Be careful not to remove Code Snippets by deleting it from the Plugins menu unless you want this to happen.
83
+
84
+ = Can I copy any snippets I've created to another WordPress site? =
85
+ Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import Snippets' page by uploading the export file.
86
+
87
+ = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? =
88
+ Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and description in comments.
89
+
90
+ = Can I run network-wide snippets on a multisite installation? =
91
+ You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your choice.
92
+
93
+ = Where are the snippets stored in my WordPress database? =
94
+ Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to.
95
+
96
+ = I need help with Code Snippets / I have an idea for a new feature for Code Snippets =
97
+ You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/sheabunge/code-snippets)
98
+
99
+ = I want to contribute to and help develop the Code Snippets plugin! =
100
+ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/code-snippets) and send me a pull request.
101
+
102
+ == Screenshots ==
103
+
104
+ 1. Managing existing snippets
105
+ 2. Adding a new snippet
106
+ 3. Editing a snippet
107
+ 4. Importing snippets from an XML file
108
+
109
+ == Changelog ==
110
+
111
+ = 2.8.2 (27 Feb 2017) =
112
+ * Fix bug introduced in 2.8.1 that broke code verification functionality by executing code twice
113
+
114
+ = 2.8.1 (25 Feb 2017) =
115
+ * Updated German translation
116
+ * Fixed admin menu items not translating
117
+ * Removed possible conflict between Debug Bar Console plugin ([#](https://github.com/sheabunge/code-snippets/issues/52))
118
+ * Corrected editor alignment on RTL sites ([#](https://wordpress.org/support/topic/suggestion-css-fix-for-rtl-sites/))
119
+ * Fixed bulk actions running when Filter button is clicked ([#](https://wordpress.org/support/topic/bug-with-filtering-action-buttons/))
120
+ * Updated CodeMirror to version 5.24.0
121
+
122
+ = 2.8.0 (14 Dec 2016) =
123
+ * Fixed Italian translation errors. Props to @arsenalemusica
124
+ * Renamed 'Manage' admin menu label to 'All Snippets' to keep in line with other admin menu labels
125
+ * Renamed placeholder on snippet name field to 'Enter title here'
126
+ * Removed CodeMirror search functionality
127
+ * Moved 'Edit Snippet' admin menu above 'Add New' menu
128
+ * Made pressing Ctrl-Enter in the code editor save the snippet
129
+ * Updated CodeMirror to version 5.21.0
130
+
131
+ = 2.7.3 (24 Oct 2016) =
132
+ * Updated CodeMirror to version 5.10.0
133
+ * Fixed a few strings not being translated
134
+
135
+ = 2.7.2 (1 Oct 2016) =
136
+ * Updated German translation by [Mario Siegmann](http://web-alltag.de)
137
+
138
+ = 2.7.1 (30 Sep 2016) =
139
+ * Added Dutch translation by Sander Spies
140
+ * Ensured that the editor theme setting is properly validated. Thanks to [Netsparker](https://www.netsparker.com) for reporting.
141
+ * Ensured that snippet tags are properly escaped. Thanks to [Netsparker](https://www.netsparker.com) for reporting.
142
+ * Updated CodeMirror to version 5.19.0
143
+
144
+ = 2.7.0 (23 July 2016) =
145
+ * Fixed plugin translations being loaded
146
+ * Increase default snippets per page so that all are usually shown
147
+ * Fixed description field not being imported
148
+ * Updated German translation by [Mario Siegmann](http://web-alltag.de)
149
+ * Fixed issue with CodeMirror rubyblue theme [[#](https://wordpress.org/support/topic/a-problem-with-the-cursor-color-and-the-fix-that-worked-for-me)]
150
+ * Added query var to disable snippet execution. To use, add `?snippets-safe-mode=true` to the URL
151
+ * Fixed snippet fields not importing
152
+ * Updated CodeMirror to version 5.17.0
153
+ * Fixed a minor XSS vulnerability discovered by Burak Kelebek [[#](https://wordpress.org/support/topic/security-vulnerability-20)]
154
+
155
+ = 2.6.1 (10 Feb 2016) =
156
+ * Updated German translation by [Mario Siegmann](http://web-alltag.de)
157
+ * Fixed error catching not working correctly
158
+ * Updated error catching to work with snippets including functions and classes
159
+ * Fixed editor autoresizing
160
+
161
+ = 2.6.0 (31 Dec 2015) =
162
+ * Reconfigured plugin to use classloader and converted a lot of functional code into OOP code
163
+ * Updated CodeMirror to version 5.10.0
164
+ * Added `[code_snippets]` shortcode for embedding snippet code in a post
165
+ * Fixed broken snippet search feature [[#](https://wordpress.org/support/topic/search-is-not-working-6)]
166
+ * Added front-end syntax highlighting for shortcode using [PrismJS](http://prismjs.com)
167
+
168
+ = 2.5.1 (11 Oct 2016) =
169
+ * Fixed: Ensure errors are fatal before catching them during error checking
170
+ * Fixed: Escape the snippet name on the edit page to ensure it displays correctly
171
+ * Fixed: Exclude snippets with named functions from error checking so they do not run twice
172
+
173
+ = 2.5.0 (8 Oct 2015) =
174
+ * Added: Detect parse and fatal errors in code when saving a snippet, and display a user-friendly message
175
+ * Fixed: Updated access of some methods in Code_Snippets_List_Table class to match updated WP_List_Table class
176
+
177
+ = 2.4.2 (27 Sep 2015) =
178
+ * Added query variable to activate safe mode
179
+ * Fixed settings not saving
180
+ * Fixed snippet descriptions not displaying on manage menu
181
+ * Added settings to disable description and tag editors
182
+ * Fixed: Load CodeMirror after plugin styles to fix error with Zenburn theme
183
+ * Fixed: Hide snippet scope icons when the scope selector is disabled
184
+ * Fixed description heading on edt snippet menu being hidden when visual editor disabled
185
+ * Updated editor preview updating code to use vanilla JavaScript instead of jQuery
186
+ * Fixed: Deactivate a shared network snippet on all subsites when it looses its sharing status
187
+
188
+ = 2.4.1 (17 Sep 2015) =
189
+ * Fixed CodeMirror themes not being detected on settings page [[#](https://wordpress.org/support/topic/updated-to-240-now-i-cant-switch-theme)]
190
+
191
+ = 2.4.0 (17 Sep 2015) =
192
+ * Added ability to share network snippets to individual sites on WordPress multisite
193
+ * Improved code directory and class structure
194
+ * Remove legacy code for pre-3.6 compatibility
195
+ * Improved code for printing admin messages
196
+ * Updated German translation (Joerg Knoerchen)
197
+ * Added `code_snippets/after_execute_snippet` filter
198
+ * Added class for individual snippets
199
+ * Updated `get_snippets()` function to retrieve individual snippets
200
+ * Removed scope statuses and added fixed tags to indicate scope
201
+ * Changed admin page headers to use `<h1>` tags instead of `<h2>` tags
202
+ * Updated CodeMirror to version 5.6
203
+ * Removed snippet settings page from network admin
204
+
205
+ = 2.3.0 (20 May 2015) =
206
+ * Removed nested functions
207
+ * Added icons for admin and front-end snippets to manage table
208
+ * Improved settings retrieval by caching settings
209
+ * Updated Russian translation by [Alexey Chumakov](http://chumakov.ru/)
210
+ * Added filter switch to prevent a snippet from executing ([#25](https://github.com/sheabunge/code-snippets/issues/25))
211
+ * Fixed errors in string translation
212
+ * Fixed bug in import process ([#32](https://github.com/sheabunge/code-snippets/issues/32))
213
+
214
+ = 2.2.3 (13 May 2015) =
215
+ * Fixed broken call to `export_snippet()` function
216
+ * Added support for importing and exporting snippet scope
217
+ * Fixed duplicate primary key database error
218
+ * Improved database table structure
219
+
220
+ = 2.2.2 (11 May 2015) =
221
+ * Polyfilled array_replace_recursive() function for PHP 5.2
222
+ * Updated references to old plugin site
223
+ * Resolved JavaScript error on edit snippet pages
224
+ * Made minor updates to French translation file
225
+ * Added statuses for snippet scopes on manage snippets table
226
+
227
+ = 2.2.1 (10 May 2015) =
228
+ * Fixed the default values of new setting not being applied
229
+ * Fixed missing background of tags input
230
+
231
+ = 2.2.0 (10 May 2015) =
232
+ * Introduced CodeSniffer testing on code
233
+ * Fixed description heading disappearing when media buttons enabled
234
+ * Added snippet scope selector
235
+ * Minified all CSS and JS in plugin
236
+ * Made CodeMirror theme names more readable
237
+ * Fixed bug causing translations to not be loaded
238
+
239
+ = 2.1.0 (09 May 2015) =
240
+ * Added additional setting descriptions
241
+ * Added settings for code and description editor height
242
+ * Updated CodeMirror to version 5.2
243
+ * Fixed not escaping the request URL when using query arg functions
244
+ * Improved efficiency of settings component
245
+
246
+ = 2.0.3 (17 Mar 2015) =
247
+ * Updated German translation by [Joerg Knoerchen](http://www.sensorgrafie.de/)
248
+
249
+ = 2.0.2 (05 Mar 2015) =
250
+ * Fix error in table creation code
251
+ * Remove settings database option when plugin is uninstalled
252
+
253
+ = 2.0.1 (25 Feb 2015) =
254
+ * Fixed table creation code not running on upgrade
255
+ * Fixed snippets per page option not saving
256
+
257
+ = 2.0 (24 Feb 2015) =
258
+ * __Highlights:__
259
+ * Better import/export functionality
260
+ * New settings page with code editor settings
261
+ * Code rewritten for cleaner and more efficient code
262
+ * Lots of new translations
263
+ * __Added:__
264
+ * Added link to Code Snippets importer under Snippets admin menu
265
+ * Added settings component and admin page
266
+ * Added support for different CodeMirror themes
267
+ * Integrated tags component into main plugin. Current users of the Code Snippets Tags plugin can safely uninstall it.
268
+ * Added Auto Close Brackets CodeMirror addon (props to TronicLabs)
269
+ * Added Serbo-Croatian translation by Borisa Djuraskovic from [Web Hosting Hub](http://www.webhostinghub.com)
270
+ * Added Highlight Selection Matches CodeMirror addon (props to TronicLabs)
271
+ * Added Chinese translation thanks to Jincheng Shan
272
+ * Added Russian translation by Alexander Samsonov
273
+ * Added Slovak translation by [Ján Fajčák] from [WordPress Slovakia](http://wp.sk)
274
+ * Added setting to always save and activate snippets by default
275
+ * __Changed:__
276
+ * Added braces to single-line conditionals in line with [new coding standards](https://make.wordpress.org/core/2013/11/13/proposed-coding-standards-change-always-require-braces/)
277
+ * Split up large classes into separate functions
278
+ * Improved plugin file structure
279
+ * Replaced uninstall hook with single file method
280
+ * Updated CodeMirror library to version 5.0
281
+ * Rewritten import/export functionality to use DOMDocument
282
+ * Merged Code_Snippets_Export_PHP class into Code_Snippets_Export class
283
+ * __Deprecated:__
284
+ * Removed old admin style support
285
+ * Removed backwards-compatible support
286
+ * __Fixed:__
287
+ * Fixed incompatibility errors with PHP 5.2
288
+ * Fixed empty MO translation files
289
+ * Removed duplicate MySQL primary key indexing
290
+
291
+ = 1.9.1.1 (3 Jan 2014) =
292
+ * Add capability check to site snippets importer
293
+
294
+ = 1.9.1 (2 Jan 2014) =
295
+ * Use an icon font for menu icon instead of embedded SVG
296
+ * Use Sass (libsass) instead of Compass
297
+ * Unminify CodeMirror scripts
298
+ * Fixes for the WP 3.8 interface
299
+ * Fix 'enable snippets menu for site admins' multisite setting
300
+
301
+ = 1.9 (11 Nov 2013) =
302
+ * Add and remove network capabilities as super admins are added and removed
303
+ * Updated MP6 icon implementation
304
+ * Replaced buggy trim `<?php` and `?>` functionality with a much more reliable regex method ([#](http://wordpress.org/support/topic/character-gets-cut))
305
+ * Added French translation thanks to translator [oWEB](http://office-web.net)
306
+ * Fixed snippet failing to save when code contains `%` character, props to [nikan06](http://wordpress.org/support/profile/nikan06) ([#](http://wordpress.org/support/topic/percent-sign-bug))
307
+ * Added 'Save & Deactivate' button to the edit snippet page ([#](http://wordpress.org/support/topic/deactivate-button-in-edit-snippet-page))
308
+ * Removed edit and install capabilities (now only uses the manage capability)
309
+ * Fixed HTML breaking in export files ([#](http://wordpress.org/support/topic/import-problem-7))
310
+ * Make the title of each snippet on the manage page a clickable link to edit the snippet ([#](http://wordpress.org/support/topic/deactivate-button-in-edit-snippet-page?replies=9#post-4682757))
311
+ * Added nonce to edit snippet page
312
+ * Hide row actions on manage snippet page by default
313
+ * Removed screenshots from plugin
314
+ * Improved CodeMirror implementation
315
+ * Added a fallback MP6 icon
316
+ * Use the proper WordPress database APIs all of the time
317
+ * Rewritten export functionality
318
+ * Fixed incorrect export filename
319
+ * Updated CodeMirror to version 3.19
320
+ * Removed CodeMirror bundled with plugin
321
+ * Updated WordPress.org plugin banner
322
+ * Fixed CodeMirror incompatibility with the WP Editor plugin
323
+ * Fixed CodeMirror incompatibility with the Debug Bar Console plugin
324
+
325
+ = 1.8.1.1 (18 Aug 2013) =
326
+
327
+ = 1.8.1 (29 July 2013) =
328
+ * Compiled all CodeMirror scripts into a single file
329
+ * Use Sass + Compass for CSS
330
+ * Use Grunt for build automation
331
+ * Minify CSS
332
+ * Fixed code typo that was breaking export files
333
+ * Updated CodeMirror to 3.15
334
+
335
+ = 1.8 (9 July 2013) =
336
+ * Allow no snippet name or code to be set
337
+ * Prevented an error on fresh multisite installations
338
+ * Refactored code to use best practices
339
+ * Improved database table creation method: on a single-site install, the snippets table will always be created. On a multisite install, the network snippets table will always be created; the site-specific table will always be created for the main site; for sub-sites the snippets table will only be created on a visit to a snippets admin page.
340
+ * Updated to CodeMirror 3.14
341
+ * Changes to filter and action hook API
342
+ * Added error message handling for import snippets page
343
+ * Don't encode HTML entities in database
344
+
345
+ = 1.7.1.2 (3 May 2013) =
346
+ * Correct path to admin menu icon. Fixes [#8](https://github.com/sheabunge/code-snippets/issues/8)
347
+
348
+ = 1.7.1.1 (29 April 2013) =
349
+ * Fixed a bug with custom capabilities and admin menus
350
+
351
+ = 1.7.1 (22 April 2013) =
352
+ * Fix a bug with snippet being set as deactivated when saved
353
+ * Updated PHP Documentation completely. [[View online](http://bungeshea.github.io/code-snippets/api)]
354
+ * Only load admin functions when viewing dashboard
355
+ * Added German translation thanks to [David Decker](http://deckerweb.de)
356
+ * Allow or deny site administrators access to snippet admin menus. Set your preference in the **Enable Administration Menus** setting under the *Settings > Network Settings* network admin menu.
357
+ * Improve database table creation and upgrade process
358
+ * Optimized to use less database queries
359
+
360
+ = 1.7 (26 Mar 2013) =
361
+ * Improved plugin API
362
+ * Fixed a bug with saving snippets per page option ([#](http://wordpress.org/support/topic/plugin-code-snippets-snippets-per-page-does-not-work#post-3710991))
363
+ * Updated CodeMirror to version 3.11
364
+ * Allow plugin to be activated on individual sites on multisite ([#](http://wordpress.org/support/topic/dont-work-at-multisite))
365
+ * Slimmed down the description visual editor
366
+ * Added icon for the new MP6 admin UI ([#](http://wordpress.org/support/topic/icon-disappears-with-mp6))
367
+ * Strip PHP tags from the beginning and end of a snippet on save ([#](http://wordpress.org/support/topic/php-tags))
368
+ * Changed to [MIT license](http://opensource.org/licenses/mit-license.php)
369
+ * Removed HTML, CSS and JavaScript CodeMirror modes that were messing things up
370
+ * Change label in admin menu when editing a snippet
371
+ * Improved admin styling
372
+ * Made everything leaner, faster, and better
373
+
374
+ = 1.6.1 (29 Dec 2012) =
375
+ * Fixed a bug with permissions not being applied on install ([#](http://wordpress.org/support/topic/permissions-problem-after-install))
376
+ * Fixed a bug in the uninstall method ([#](http://wordpress.org/support/topic/bug-in-delete-script))
377
+
378
+ = 1.6 (22 Dec 2012) =
379
+ * Updated code editor to use CodeMirror 3
380
+ * Improved compatibility with Clean Options plugin
381
+ * Code improvements and optimization
382
+ * Changed namespace from `cs` to `code_snippets`
383
+ * Move css and js under assets
384
+ * Organized CodeMirror scripts
385
+ * Improved updating process
386
+ * Current line of code editor is now highlighted
387
+ * Highlight matches of selected text in code editor
388
+ * Only create snippet tables when needed
389
+ * Store multisite only options in site options table
390
+ * Fixed compatibility bugs with WordPress 3.5
391
+
392
+ = 1.5 (18 Sep 2012) =
393
+ * Updated CodeMirror to version 2.33
394
+ * Updated the 'Manage Snippets' page to use the WP_List_Table class
395
+ * Added 'Screen Options' tab to 'Manage Snippets' page
396
+ * Added search capability to 'Manage Snippets' page
397
+ * Added views to easily filter activated, deactivated and recently activated snippets
398
+ * Added ID column to 'Manage Snippets' page
399
+ * Added sortable name and ID column on 'Manage Snippets' page ([#](http://wordpress.org/support/topic/plugin-code-snippets-suggestion-sort-by-snippet-name))
400
+ * Added custom capabilities
401
+ * Improved API
402
+ * Added 'Export to PHP' feature ([#](http://wordpress.org/support/topic/plugin-code-snippets-suggestion-bulk-export-to-php))
403
+ * Lengthened snippet name field to 64 characters ([#](http://wordpress.org/support/topic/plugin-code-snippets-snippet-title-limited-to-36-characters))
404
+ * Added i18n
405
+
406
+ = 1.4 (20 Aug 2012) =
407
+ * Added interface to Network Dashboard
408
+ * Updated uninstall to support multisite
409
+ * Replaced EditArea with [CodeMirror](http://codemirror.net)
410
+ * Small improvements
411
+
412
+ = 1.3.2 (17 Aug 2012) =
413
+ * Fixed a bug with version 1.3.1
414
+
415
+ = 1.3.1 (17 Aug 2012) =
416
+ * Changed plugin website URI
417
+ * Cleaned up some code
418
+
419
+ = 1.3 (1 Aug 2012) =
420
+ * Added export option to 'Manage Snippets' page
421
+ * Added 'Import Snippets' page
422
+
423
+ = 1.2 (29 July 2012) =
424
+ * Minor improvements
425
+ * Added code highlighting
426
+ * Removed 'Uninstall Plugin' page
427
+ * Data will now be cleaned up when plugin is deleted through WordPress admin
428
+
429
+ = 1.1 (24 June 2012) =
430
+ * Fixed a permissions bug with `DISALLOW_FILE_EDIT` being set to true ([#](http://wordpress.org/support/topic/plugin-code-snippets-cant-add-new))
431
+ * Fixed a bug with the page title reading 'Add New Snippet' on the 'Edit Snippets' page
432
+ * Fixed a bug not allowing the plugin to be Network Activated ([#](http://wordpress.org/support/topic/plugin-code-snippets-network-activate-does-not-create-snippets-tables))
433
+
434
+ = 1.0 (13 June 2012) =
435
+ * Stable version released.
436
+
437
+ == Upgrade Notice ==
438
+
439
+ = 2.8.2 =
440
+ Fixed fatal error preventing activated snippets from saving
441
+
442
+ = 2.8.0 =
443
+ Interface tweaks
444
+
445
+ = 2.7.2 =
446
+ Update to German translation by Mario Siegmann
447
+
448
+ = 2.7.0 =
449
+ Fix translation loading and description importing
450
+
451
+ = 2.5.1 =
452
+ Prevent Don't Panic message from being triggered accidentally
453
+
454
+ = 2.5.0 =
455
+ Now detects errors in snippet code when saving
456
+
457
+ = 2.4.1 =
458
+ Fixed CodeMirror themes not being detected on settings page
459
+
460
+ = 2.4.0 =
461
+ New snippet sharing feature for multisite networks; new Snippet class
462
+
463
+ = 2.3.0 =
464
+ Numerous fixes and Russian translation update. Props to @signo and @achumakov.
465
+
466
+ = 2.2.3 =
467
+ Fixed error when exporting; snippet scopes can now be imported
468
+
469
+ = 2.2.2 =
470
+ Fix error with PHP 5.2 added statuses for scopes to manage snippets table
471
+
472
+ = 2.2.1 =
473
+ New snippet scope feature; fixed bug with translations not loading; minified all css and js
474
+
475
+ = 2.1.0 =
476
+ Minor improvements to settings component; added description editor settings; minor security fixes
477
+
478
+ = 2.0.2 =
479
+ Fix snippets not saving
480
+
481
+ = 2.0 =
482
+ Improved import/export; new settings page; improved core code; more translations
483
+
484
+ = 1.9.1.1 =
485
+ Add capability check to snippets importer
486
+
487
+ = 1.9.1 =
488
+ UI improvements for WordPress 3.8
489
+
490
+ = 1.8.1 =
491
+ Minimize CSS and JS; updated CodeMirror; fixed export files
492
+
493
+ = 1.8 =
494
+ Setting a snippet name and code are now optional; better table creation method; changes to API; bug fixes
495
+
496
+ = 1.7.1.2 =
497
+ Fixes the admin menu icon not loading
498
+
499
+ = 1.7.1.1 =
500
+ Fixes a minor bug with custom capabilities and admin menus
501
+
502
+ = 1.7.1 =
503
+ Added German translation thanks to David Decker; bug fixes and improvements
504
+
505
+ = 1.7 =
506
+ Many improvements and optimization. Download "Code Snippets Tags" plugin to add tags to snippets
507
+
508
+ = 1.6 =
509
+ Improvements and optimization with WordPress 3.5
510
+
511
+ = 1.5 =
512
+ Improvements on the 'Manage Snippets' page and localization
513
+
514
+ = 1.4 =
515
+ Better code highlighting and improved multisite support
516
+
517
+ = 1.3 =
518
+ Added import/export feature
519
+
520
+ = 1.2 =
521
+ Minor improvements |
522
+ Added code highlighting |
523
+ Plugin data will now be cleaned up when you delete the plugin.
524
+
525
+ = 1.1 =
526
+ Minor bug fixes and improvements on the the 'Edit Snippet' page
trunk/uninstall.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Cleans up data created by this plugin
5
+ * @package Code_Snippets
6
+ * @since 2.0
7
+ */
8
+
9
+ /* Ensure this plugin is actually being uninstalled */
10
+ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
11
+ exit();
12
+ }
13
+
14
+ /**
15
+ * Clean up data created by this plugin for a single site
16
+ * @since 2.0
17
+ */
18
+ function code_snippets_uninstall_site() {
19
+ global $wpdb;
20
+
21
+ /* Remove snippets database table */
22
+ $wpdb->query( "DROP TABLE IF EXISTS $wpdb->snippets" );
23
+
24
+ /* Remove saved options */
25
+ delete_option( 'code_snippets_version' );
26
+ delete_option( 'recently_activated_snippets' );
27
+ delete_option( 'code_snippets_settings' );
28
+
29
+ /* Deregister capabilities */
30
+ $role = get_role( apply_filters( 'code_snippets_role', 'administrator' ) );
31
+ $role->remove_cap( apply_filters( 'code_snippets_cap', 'manage_snippets' ) );
32
+ }
33
+
34
+
35
+ global $wpdb;
36
+
37
+ $wpdb->snippets = $wpdb->prefix . 'snippets';
38
+ $wpdb->ms_snippets = $wpdb->prefix . 'ms_snippets';
39
+
40
+ /* Multisite uninstall */
41
+
42
+ if ( is_multisite() ) {
43
+
44
+ /* Loop through sites */
45
+ $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
46
+
47
+ if ( $blog_ids ) {
48
+
49
+ foreach ( $blog_ids as $blog_id ) {
50
+ switch_to_blog( $blog_id );
51
+ code_snippets_uninstall_site();
52
+ }
53
+
54
+ restore_current_blog();
55
+ }
56
+
57
+ /* Remove multisite snippets database table */
58
+ $wpdb->query( "DROP TABLE IF EXISTS $wpdb->ms_snippets" );
59
+
60
+ /* Remove saved options */
61
+ delete_site_option( 'code_snippets_version' );
62
+ delete_site_option( 'recently_activated_snippets' );
63
+
64
+ /* Remove multisite capabilities */
65
+ $network_cap = apply_filters( 'code_snippets_network_cap', 'manage_network_snippets' );
66
+ $supers = get_super_admins();
67
+
68
+ foreach ( $supers as $admin ) {
69
+ $user = new WP_User( 0, $admin );
70
+ $user->remove_cap( $network_cap );
71
+ }
72
+ } else {
73
+ code_snippets_uninstall_site();
74
+ }