Version Description
- Fixed so existing pages/posts keep their original author and last modified time. Thanks Heikki Paananen for finding and fixing this.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.2.31 |
Comparing to | |
See all releases |
Code changes from version 1.2.30 to 1.2.31
- cms-tree-page-view.sublime-project +0 -9
- cms-tree-page-view.sublime-workspace +0 -2258
- functions.php +228 -145
- index.php +2 -2
- readme.txt +5 -1
cms-tree-page-view.sublime-project
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"folders":
|
3 |
-
[
|
4 |
-
{
|
5 |
-
"follow_symlinks": true,
|
6 |
-
"path": "."
|
7 |
-
}
|
8 |
-
]
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cms-tree-page-view.sublime-workspace
DELETED
@@ -1,2258 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"auto_complete":
|
3 |
-
{
|
4 |
-
"selected_items":
|
5 |
-
[
|
6 |
-
[
|
7 |
-
"ignored",
|
8 |
-
"ignored_post_types"
|
9 |
-
],
|
10 |
-
[
|
11 |
-
"function",
|
12 |
-
"function_exists"
|
13 |
-
],
|
14 |
-
[
|
15 |
-
"pos",
|
16 |
-
"position"
|
17 |
-
],
|
18 |
-
[
|
19 |
-
"l",
|
20 |
-
"like"
|
21 |
-
],
|
22 |
-
[
|
23 |
-
"border",
|
24 |
-
"border"
|
25 |
-
],
|
26 |
-
[
|
27 |
-
"never",
|
28 |
-
"neverever_get_confession_box"
|
29 |
-
],
|
30 |
-
[
|
31 |
-
"backg",
|
32 |
-
"background"
|
33 |
-
],
|
34 |
-
[
|
35 |
-
"user",
|
36 |
-
"user_liked_items"
|
37 |
-
],
|
38 |
-
[
|
39 |
-
"array_ke",
|
40 |
-
"array_key_exists"
|
41 |
-
],
|
42 |
-
[
|
43 |
-
"liked",
|
44 |
-
"liked_items"
|
45 |
-
],
|
46 |
-
[
|
47 |
-
"lik",
|
48 |
-
"likes_count"
|
49 |
-
],
|
50 |
-
[
|
51 |
-
"update_post",
|
52 |
-
"update_post_meta"
|
53 |
-
],
|
54 |
-
[
|
55 |
-
"Confession",
|
56 |
-
"ConfessionsList-item"
|
57 |
-
],
|
58 |
-
[
|
59 |
-
"confession",
|
60 |
-
"confessionTitle"
|
61 |
-
],
|
62 |
-
[
|
63 |
-
"su",
|
64 |
-
"submitConfessionStepsStep"
|
65 |
-
],
|
66 |
-
[
|
67 |
-
"tempn",
|
68 |
-
"tempname"
|
69 |
-
],
|
70 |
-
[
|
71 |
-
"list-style",
|
72 |
-
"list-style-type"
|
73 |
-
],
|
74 |
-
[
|
75 |
-
"re",
|
76 |
-
"response"
|
77 |
-
],
|
78 |
-
[
|
79 |
-
"wpmen",
|
80 |
-
"wp_nav_menu"
|
81 |
-
],
|
82 |
-
[
|
83 |
-
"no",
|
84 |
-
"nowrap"
|
85 |
-
],
|
86 |
-
[
|
87 |
-
"p",
|
88 |
-
"pre-line"
|
89 |
-
],
|
90 |
-
[
|
91 |
-
"clas",
|
92 |
-
"classes"
|
93 |
-
],
|
94 |
-
[
|
95 |
-
"json_",
|
96 |
-
"json_encode"
|
97 |
-
],
|
98 |
-
[
|
99 |
-
"rewind",
|
100 |
-
"rewind_posts"
|
101 |
-
],
|
102 |
-
[
|
103 |
-
"first-",
|
104 |
-
"first-of-type (pseudo-class)"
|
105 |
-
],
|
106 |
-
[
|
107 |
-
"strto",
|
108 |
-
"strtotime"
|
109 |
-
],
|
110 |
-
[
|
111 |
-
"a",
|
112 |
-
"none (value)"
|
113 |
-
],
|
114 |
-
[
|
115 |
-
"n",
|
116 |
-
"nth-child( (pseudo-class)"
|
117 |
-
],
|
118 |
-
[
|
119 |
-
"backgro",
|
120 |
-
"background-image"
|
121 |
-
],
|
122 |
-
[
|
123 |
-
"inl",
|
124 |
-
"inline-block"
|
125 |
-
],
|
126 |
-
[
|
127 |
-
"plug",
|
128 |
-
"plugin_info"
|
129 |
-
],
|
130 |
-
[
|
131 |
-
"back",
|
132 |
-
"background-color"
|
133 |
-
],
|
134 |
-
[
|
135 |
-
"first",
|
136 |
-
":first-child"
|
137 |
-
],
|
138 |
-
[
|
139 |
-
"enable",
|
140 |
-
"enable_extended_return_values"
|
141 |
-
],
|
142 |
-
[
|
143 |
-
"custom",
|
144 |
-
"custom_field_key"
|
145 |
-
],
|
146 |
-
[
|
147 |
-
"font-",
|
148 |
-
"font-family"
|
149 |
-
],
|
150 |
-
[
|
151 |
-
"one_l",
|
152 |
-
"one_plugin_slug"
|
153 |
-
],
|
154 |
-
[
|
155 |
-
"border-c",
|
156 |
-
"border-color"
|
157 |
-
],
|
158 |
-
[
|
159 |
-
"di",
|
160 |
-
"display"
|
161 |
-
],
|
162 |
-
[
|
163 |
-
"list-sty",
|
164 |
-
"list-style-type"
|
165 |
-
],
|
166 |
-
[
|
167 |
-
"de",
|
168 |
-
"description"
|
169 |
-
],
|
170 |
-
[
|
171 |
-
"html",
|
172 |
-
"htmlspecialchars"
|
173 |
-
],
|
174 |
-
[
|
175 |
-
"obje",
|
176 |
-
"object_name"
|
177 |
-
],
|
178 |
-
[
|
179 |
-
"op",
|
180 |
-
"option_page"
|
181 |
-
],
|
182 |
-
[
|
183 |
-
"in",
|
184 |
-
"inline-block"
|
185 |
-
],
|
186 |
-
[
|
187 |
-
"bac",
|
188 |
-
"background"
|
189 |
-
],
|
190 |
-
[
|
191 |
-
"new",
|
192 |
-
"new_lis"
|
193 |
-
],
|
194 |
-
[
|
195 |
-
"strt",
|
196 |
-
"strtolower"
|
197 |
-
],
|
198 |
-
[
|
199 |
-
"con",
|
200 |
-
"connector_slug"
|
201 |
-
],
|
202 |
-
[
|
203 |
-
"co",
|
204 |
-
"connector"
|
205 |
-
],
|
206 |
-
[
|
207 |
-
"mr",
|
208 |
-
"merged_fields"
|
209 |
-
],
|
210 |
-
[
|
211 |
-
"array_in",
|
212 |
-
"array_intersect_key"
|
213 |
-
],
|
214 |
-
[
|
215 |
-
"key",
|
216 |
-
"keys_possibly_wrong_but_new_order (variable)"
|
217 |
-
],
|
218 |
-
[
|
219 |
-
"exi",
|
220 |
-
"existing_fields_copy"
|
221 |
-
],
|
222 |
-
[
|
223 |
-
"func",
|
224 |
-
"function_exists"
|
225 |
-
],
|
226 |
-
[
|
227 |
-
"fun",
|
228 |
-
"function_exists"
|
229 |
-
],
|
230 |
-
[
|
231 |
-
"field",
|
232 |
-
"fieldgroup"
|
233 |
-
],
|
234 |
-
[
|
235 |
-
"tes",
|
236 |
-
"testclass"
|
237 |
-
],
|
238 |
-
[
|
239 |
-
"border-r",
|
240 |
-
"border-right"
|
241 |
-
],
|
242 |
-
[
|
243 |
-
"mysql",
|
244 |
-
"mysql_connect"
|
245 |
-
],
|
246 |
-
[
|
247 |
-
"get_de",
|
248 |
-
"get_defined_constants"
|
249 |
-
],
|
250 |
-
[
|
251 |
-
"fred",
|
252 |
-
"freddys_marker"
|
253 |
-
],
|
254 |
-
[
|
255 |
-
"fre",
|
256 |
-
"freddys_map"
|
257 |
-
],
|
258 |
-
[
|
259 |
-
"pro",
|
260 |
-
"products"
|
261 |
-
],
|
262 |
-
[
|
263 |
-
"str_rep",
|
264 |
-
"str_replace"
|
265 |
-
],
|
266 |
-
[
|
267 |
-
"registp",
|
268 |
-
"register_post_type"
|
269 |
-
],
|
270 |
-
[
|
271 |
-
"prin",
|
272 |
-
"print_r"
|
273 |
-
],
|
274 |
-
[
|
275 |
-
"wp",
|
276 |
-
"wptexturize"
|
277 |
-
]
|
278 |
-
]
|
279 |
-
},
|
280 |
-
"buffers":
|
281 |
-
[
|
282 |
-
{
|
283 |
-
"file": "functions.php",
|
284 |
-
"settings":
|
285 |
-
{
|
286 |
-
"buffer_size": 62751,
|
287 |
-
"line_ending": "Unix"
|
288 |
-
}
|
289 |
-
},
|
290 |
-
{
|
291 |
-
"file": "README.md",
|
292 |
-
"settings":
|
293 |
-
{
|
294 |
-
"buffer_size": 318,
|
295 |
-
"line_ending": "Unix"
|
296 |
-
}
|
297 |
-
},
|
298 |
-
{
|
299 |
-
"contents": "Searching 60 files for \"CMS_TPV_CAN_DND\"\n\n/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/functions.php:\n 265 var CMS_TPV_AJAXURL = \"?action=cms_tpv_get_childs&view=\";\n 266 var CMS_TPV_VIEW = \"<?php echo $cms_tpv_view ?>\";\n 267: //var CMS_TPV_CAN_DND = \"<?php echo current_user_can( CMS_TPV_MOVE_PERMISSION ) ? \"dnd\" : \"\" ?>\";\n 268: var CMS_TPV_CAN_DND = \"dnd\";\n 269 var cms_tpv_jsondata = {};\n 270 /* ]]> */\n\n/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/scripts/cms_tree_page_view.js:\n 200 \n 201 treeOptions = {\n 202: plugins: [\"themes\",\"json_data\",\"cookies\",\"search\",CMS_TPV_CAN_DND, \"types\"],\n 203 core: {\n 204 \"html_titles\": true\n\n3 matches across 2 files\n\n\nSearching 60 files for \"cms_tree_page_view_post_title\"\n\n/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/functions.php:\n 1290 $title = get_the_title($onePage->ID); // so hooks and stuff will do their work\n 1291 \n 1292: $title = apply_filters(\"cms_tree_page_view_post_title\", $title, $onePage);\n 1293 \n 1294 if (empty($title)) {\n\n1 match in 1 file\n",
|
300 |
-
"settings":
|
301 |
-
{
|
302 |
-
"buffer_size": 1075,
|
303 |
-
"line_ending": "Unix",
|
304 |
-
"name": "Find Results",
|
305 |
-
"scratch": true
|
306 |
-
}
|
307 |
-
},
|
308 |
-
{
|
309 |
-
"file": "index.php",
|
310 |
-
"settings":
|
311 |
-
{
|
312 |
-
"buffer_size": 3156,
|
313 |
-
"line_ending": "Unix"
|
314 |
-
}
|
315 |
-
},
|
316 |
-
{
|
317 |
-
"file": "readme.txt",
|
318 |
-
"settings":
|
319 |
-
{
|
320 |
-
"buffer_size": 25602,
|
321 |
-
"line_ending": "Unix"
|
322 |
-
}
|
323 |
-
},
|
324 |
-
{
|
325 |
-
"file": "scripts/cms_tree_page_view.js",
|
326 |
-
"settings":
|
327 |
-
{
|
328 |
-
"buffer_size": 29065,
|
329 |
-
"line_ending": "Unix"
|
330 |
-
}
|
331 |
-
},
|
332 |
-
{
|
333 |
-
"file": "styles/styles.css",
|
334 |
-
"settings":
|
335 |
-
{
|
336 |
-
"buffer_size": 10635,
|
337 |
-
"line_ending": "Unix"
|
338 |
-
}
|
339 |
-
}
|
340 |
-
],
|
341 |
-
"build_system": "",
|
342 |
-
"command_palette":
|
343 |
-
{
|
344 |
-
"height": 375.0,
|
345 |
-
"selected_items":
|
346 |
-
[
|
347 |
-
[
|
348 |
-
"markdo",
|
349 |
-
"Set Syntax: Markdown GFM"
|
350 |
-
],
|
351 |
-
[
|
352 |
-
"ins",
|
353 |
-
"Package Control: Install Package"
|
354 |
-
],
|
355 |
-
[
|
356 |
-
"insta",
|
357 |
-
"Package Control: Install Package"
|
358 |
-
],
|
359 |
-
[
|
360 |
-
"install",
|
361 |
-
"Package Control: Install Package"
|
362 |
-
],
|
363 |
-
[
|
364 |
-
"mark",
|
365 |
-
"Set Syntax: Markdown"
|
366 |
-
],
|
367 |
-
[
|
368 |
-
"du",
|
369 |
-
"File: Duplicate"
|
370 |
-
],
|
371 |
-
[
|
372 |
-
"ren",
|
373 |
-
"File: Rename"
|
374 |
-
],
|
375 |
-
[
|
376 |
-
"dupl",
|
377 |
-
"File: Duplicate"
|
378 |
-
],
|
379 |
-
[
|
380 |
-
"wrap",
|
381 |
-
"Word Wrap: Toggle"
|
382 |
-
],
|
383 |
-
[
|
384 |
-
"wra",
|
385 |
-
"Word Wrap: Toggle"
|
386 |
-
],
|
387 |
-
[
|
388 |
-
"rena",
|
389 |
-
"File: Rename"
|
390 |
-
],
|
391 |
-
[
|
392 |
-
"cop",
|
393 |
-
"File: Copy Name"
|
394 |
-
],
|
395 |
-
[
|
396 |
-
"err",
|
397 |
-
"SublimeLinter: Show Error List"
|
398 |
-
],
|
399 |
-
[
|
400 |
-
"foramt",
|
401 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
402 |
-
],
|
403 |
-
[
|
404 |
-
"format",
|
405 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
406 |
-
],
|
407 |
-
[
|
408 |
-
"json",
|
409 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
410 |
-
],
|
411 |
-
[
|
412 |
-
"prett",
|
413 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
414 |
-
],
|
415 |
-
[
|
416 |
-
"rett",
|
417 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
418 |
-
],
|
419 |
-
[
|
420 |
-
"pr",
|
421 |
-
"Pretty JSON: Reformat (Pretty Print) JSON"
|
422 |
-
],
|
423 |
-
[
|
424 |
-
"er",
|
425 |
-
"SublimeLinter: Show Error List"
|
426 |
-
],
|
427 |
-
[
|
428 |
-
"packa",
|
429 |
-
"Package Control: Install Package"
|
430 |
-
],
|
431 |
-
[
|
432 |
-
"rename",
|
433 |
-
"File: Rename"
|
434 |
-
],
|
435 |
-
[
|
436 |
-
"toggle op",
|
437 |
-
"View: Toggle Open Files in Side Bar"
|
438 |
-
],
|
439 |
-
[
|
440 |
-
"side",
|
441 |
-
"View: Toggle Open Files in Side Bar"
|
442 |
-
],
|
443 |
-
[
|
444 |
-
"lint",
|
445 |
-
"SublimeLinter: Show Error List"
|
446 |
-
],
|
447 |
-
[
|
448 |
-
"emmet",
|
449 |
-
"Emmet: Next Edit Point"
|
450 |
-
],
|
451 |
-
[
|
452 |
-
"hold",
|
453 |
-
"Hhhhold: Insert Image"
|
454 |
-
],
|
455 |
-
[
|
456 |
-
"pack",
|
457 |
-
"Package Control: Disable Package"
|
458 |
-
],
|
459 |
-
[
|
460 |
-
"dupli",
|
461 |
-
"File: Duplicate"
|
462 |
-
],
|
463 |
-
[
|
464 |
-
"finder",
|
465 |
-
"File: Open In Browser - Production Server"
|
466 |
-
],
|
467 |
-
[
|
468 |
-
"error",
|
469 |
-
"SublimeLinter: Show Error List"
|
470 |
-
],
|
471 |
-
[
|
472 |
-
"tabs",
|
473 |
-
"Indentation: Convert to Tabs"
|
474 |
-
],
|
475 |
-
[
|
476 |
-
"ter",
|
477 |
-
"Open in terminal"
|
478 |
-
],
|
479 |
-
[
|
480 |
-
"form",
|
481 |
-
"Format: Javascript"
|
482 |
-
],
|
483 |
-
[
|
484 |
-
"term",
|
485 |
-
"Open in terminal"
|
486 |
-
],
|
487 |
-
[
|
488 |
-
"push",
|
489 |
-
"Git: Push"
|
490 |
-
],
|
491 |
-
[
|
492 |
-
"gitpu",
|
493 |
-
"Git: Pull"
|
494 |
-
],
|
495 |
-
[
|
496 |
-
"package",
|
497 |
-
"Package Control: Install Package"
|
498 |
-
],
|
499 |
-
[
|
500 |
-
"list",
|
501 |
-
"Package Control: List Packages"
|
502 |
-
],
|
503 |
-
[
|
504 |
-
"word",
|
505 |
-
"Word Wrap: Toggle"
|
506 |
-
],
|
507 |
-
[
|
508 |
-
"wordwra",
|
509 |
-
"Word Wrap: Toggle"
|
510 |
-
],
|
511 |
-
[
|
512 |
-
"remove",
|
513 |
-
"Package Control: Remove Package"
|
514 |
-
],
|
515 |
-
[
|
516 |
-
"disab",
|
517 |
-
"Package Control: Disable Package"
|
518 |
-
],
|
519 |
-
[
|
520 |
-
"disabl",
|
521 |
-
"SublimeLinter: Disable Linting"
|
522 |
-
],
|
523 |
-
[
|
524 |
-
"disable",
|
525 |
-
"Package Control: Disable Package"
|
526 |
-
],
|
527 |
-
[
|
528 |
-
"zen",
|
529 |
-
"Zen Coding: Delete tag"
|
530 |
-
]
|
531 |
-
],
|
532 |
-
"width": 579.0
|
533 |
-
},
|
534 |
-
"console":
|
535 |
-
{
|
536 |
-
"height": 125.0,
|
537 |
-
"history":
|
538 |
-
[
|
539 |
-
"import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())"
|
540 |
-
]
|
541 |
-
},
|
542 |
-
"distraction_free":
|
543 |
-
{
|
544 |
-
"menu_visible": true,
|
545 |
-
"show_minimap": false,
|
546 |
-
"show_open_files": false,
|
547 |
-
"show_tabs": false,
|
548 |
-
"side_bar_visible": false,
|
549 |
-
"status_bar_visible": false
|
550 |
-
},
|
551 |
-
"expanded_folders":
|
552 |
-
[
|
553 |
-
"/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view"
|
554 |
-
],
|
555 |
-
"file_history":
|
556 |
-
[
|
557 |
-
"/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/subl",
|
558 |
-
"/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/index.php",
|
559 |
-
"/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/.gitignore",
|
560 |
-
"/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/readme.txt",
|
561 |
-
"/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/tags/1.2.14/readme.txt",
|
562 |
-
"/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/trunk/cms-tree-page-view.sublime-project",
|
563 |
-
"/Users/bonny/Dropbox/Plugins/SVN/cms-tree-page-view/trunk/scripts/cms_tree_page_view.js",
|
564 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-includes/cache.php",
|
565 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/plugins/simple-fields/simple_fields.php",
|
566 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-includes/class-feed.php",
|
567 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-includes/option.php",
|
568 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-admin/credits.php",
|
569 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-admin/includes/class-wp-ms-themes-list-table.php",
|
570 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-admin/includes/class-wp-plugins-list-table.php",
|
571 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/ep/ep-simple-front-end-edit-buttons.php",
|
572 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/.gitignore",
|
573 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/README.md",
|
574 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/includes-enabled/1.test.php",
|
575 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/includes-enabled/2.test.php",
|
576 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/includes-enabled/test.php",
|
577 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/includes-enabled/5.test.php",
|
578 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-admin/includes/dashboard.php",
|
579 |
-
"/Users/bonny/Documents/Sites/playground-nightly/wordpress/wp-content/themes/playground-theme/functions.php",
|
580 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-admin/includes/update.php",
|
581 |
-
"/Users/bonny/Documents/Sites/playground-root/wp-config.php",
|
582 |
-
"/Users/bonny/Documents/Sites/playground-root/assets/themes/wp-theme-bonny-starter/parts/shared/html-header.php",
|
583 |
-
"/Users/bonny/Dropbox/Plugins/GIT/Simple-Fields/functions (BonnyAir2013's conflicted copy 2013-09-26).php",
|
584 |
-
"/Users/bonny/Dropbox/Plugins/GIT/Simple-Fields/functions.php",
|
585 |
-
"/Users/bonny/Documents/Sites/playground-root/playground-root.sublime-workspace",
|
586 |
-
"/Users/bonny/Dropbox/Apps/Transmit/Favorites/Favorites.sqlite",
|
587 |
-
"/Users/bonny/Documents/Sites/Localhost/index.php",
|
588 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/example_company_2_en.xml",
|
589 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/company_company_description.xsl",
|
590 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/functions-npm.php",
|
591 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/inc.templates.xsl",
|
592 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/companies_overview.xsl",
|
593 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/inc.translations.xml",
|
594 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/assets/css/ngm.css",
|
595 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/inc.variables.xsl",
|
596 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/CompanyDataSchema_1.0.xsd",
|
597 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/XML/example_company_1_en.xml",
|
598 |
-
"/Users/bonny/Documents/Sites/ngm/wp-content/themes/ngm/style.css",
|
599 |
-
"/Users/bonny/Documents/Sites/ngm/ngm.sublime-project",
|
600 |
-
"/Users/bonny/Documents/Sites/ngm/ngm.sublime-workspace",
|
601 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/ngm.sublime-project",
|
602 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/ngm/xmlrpc.php",
|
603 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/ngm/wp-load.php",
|
604 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/ngm/wp-config.php",
|
605 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/ngm/wp-content/themes/ngm/functions.php",
|
606 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-admin/includes/file.php",
|
607 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-admin/includes/media.php",
|
608 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/style-animations.css",
|
609 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/ep/ep.js",
|
610 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-includes/class-wp-admin-bar.php",
|
611 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/ep/ep-functions.php",
|
612 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/html-header.php",
|
613 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/ep/ep-simple-front-end-edit-buttons.php",
|
614 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/front-page.php",
|
615 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/.htaccess",
|
616 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/handlebars.js/src/parser-suffix.js",
|
617 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-config.php",
|
618 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/404.php",
|
619 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/single.php",
|
620 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/template-submit.php",
|
621 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/style.css",
|
622 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/style-submit.css",
|
623 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/ep/scripts.js",
|
624 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/functions.php",
|
625 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/header.php",
|
626 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/template-top.php",
|
627 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/template-latest.php",
|
628 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/modernizr.js",
|
629 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/languages/sv_SE.po",
|
630 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/modernizr/grunt.js",
|
631 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/languages/admin-sv_SE.po",
|
632 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-includes/query.php",
|
633 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/index.php",
|
634 |
-
"/Users/bonny/Desktop/ngm/CompanyDataSchema_1.0.xsd",
|
635 |
-
"/Users/bonny/Documents/Localhost/EarthPeople/neverever/app/wp/wp-content/plugins/simple-fields/functions.php",
|
636 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-config.php",
|
637 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/ep/ep-functions.php",
|
638 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/plugins/simple-fields/functions.php",
|
639 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/index.php",
|
640 |
-
"/tmp/phprun-output.tmp",
|
641 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/.htaccess",
|
642 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/style.css",
|
643 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/ep/ep-simple-front-end-edit-buttons.php",
|
644 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/tempo/classes/db/117682-tempofestival.sql",
|
645 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/style-header.css",
|
646 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/ep/scripts.js",
|
647 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/single.php",
|
648 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/html-header.php",
|
649 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/header.php",
|
650 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/footer.php",
|
651 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/single-bekannelse.php",
|
652 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/template-submit.php",
|
653 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/functions.php",
|
654 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery-cycle2/jquery.cycle2.core.js",
|
655 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery-cycle2/cycle2.jquery.json",
|
656 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/theme-compat/header.php",
|
657 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/functions.php",
|
658 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/page.php",
|
659 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/parts/shared/html-footer.php",
|
660 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/includes/file.php",
|
661 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/ep/fb.js",
|
662 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/ngm/wp-content/themes/ngm/functions.php",
|
663 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/comment.php",
|
664 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/includes/media.php",
|
665 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/custom-background.php",
|
666 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/post.php",
|
667 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/custom-header.php",
|
668 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/index.php",
|
669 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/fb-channel.php",
|
670 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/handlebars.js/dist/handlebars.js",
|
671 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/handlebars.js/dist/handlebars.runtime.js",
|
672 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/template-submit.html",
|
673 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/class-simplepie.php",
|
674 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/link-template.php",
|
675 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/class-wp-editor.php",
|
676 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/includes/ajax-actions.php",
|
677 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-admin/admin-ajax.php",
|
678 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/bower.json",
|
679 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/js/wplink.js",
|
680 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-includes/js/wplink.min.js",
|
681 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/404.php",
|
682 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/.bowerrc",
|
683 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/bower.json",
|
684 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/neverever/app/wp/wp-content/themes/neverever/js/jquery/bower.json"
|
685 |
-
],
|
686 |
-
"find":
|
687 |
-
{
|
688 |
-
"height": 37.0
|
689 |
-
},
|
690 |
-
"find_in_files":
|
691 |
-
{
|
692 |
-
"height": 95.0,
|
693 |
-
"where_history":
|
694 |
-
[
|
695 |
-
"*",
|
696 |
-
"-*.js",
|
697 |
-
"",
|
698 |
-
".*php",
|
699 |
-
"",
|
700 |
-
"/Users/bonny/Dropbox/Localhost/wptrunk",
|
701 |
-
"/Users/bonny/Dropbox/Webb/WordPress-GIT",
|
702 |
-
"",
|
703 |
-
"<open folders>",
|
704 |
-
"",
|
705 |
-
"<?php"
|
706 |
-
]
|
707 |
-
},
|
708 |
-
"find_state":
|
709 |
-
{
|
710 |
-
"case_sensitive": false,
|
711 |
-
"find_history":
|
712 |
-
[
|
713 |
-
"add_sub",
|
714 |
-
"CMS_TPV_NAME",
|
715 |
-
"cms_tree_page_view_page_title",
|
716 |
-
"apply_fil",
|
717 |
-
"CMS_TPV_NAME",
|
718 |
-
"menu",
|
719 |
-
"changel",
|
720 |
-
"changelog",
|
721 |
-
"cms_tree_page_view_post_title",
|
722 |
-
"change",
|
723 |
-
"title",
|
724 |
-
"CMS_TPV_CAN_DND",
|
725 |
-
"CMS_TPV_MOVE_PERMISSION",
|
726 |
-
"cms_tpv_version",
|
727 |
-
"wp_roles =",
|
728 |
-
"change",
|
729 |
-
"cms_tvp_setup_caps",
|
730 |
-
"add_caps_to_role",
|
731 |
-
"is_role",
|
732 |
-
"loaded",
|
733 |
-
"is_role",
|
734 |
-
"CMS_TPV_MOVE_PERMISSION",
|
735 |
-
"cms_tpv_plugins_loaded",
|
736 |
-
"cms_tpv_install",
|
737 |
-
"CMS_TPV_MOVE_PERMISSION",
|
738 |
-
"[if IE 6]>",
|
739 |
-
"[action] => cms_tpv_add_pa",
|
740 |
-
"label><input type=\"radio\" name=\"cms_tpv_add_",
|
741 |
-
"CMS_TPV_CAN_DND",
|
742 |
-
"cms_tpv_install",
|
743 |
-
"CMS_TPV_CAN_DND",
|
744 |
-
"cms_tpv_install",
|
745 |
-
"cms_tpv_setup_defaults",
|
746 |
-
"dd necessary capabilities to allo",
|
747 |
-
"cms_tpv_container",
|
748 |
-
"cms_tpv_show_annoying_box",
|
749 |
-
"show",
|
750 |
-
".cms_tpv_wrapper",
|
751 |
-
"view-switch-cstpv-icon-added",
|
752 |
-
"change",
|
753 |
-
"20",
|
754 |
-
"cms_tpv_post_type_is_ignored",
|
755 |
-
"settings",
|
756 |
-
"menu_order, post_title",
|
757 |
-
"get_userdata",
|
758 |
-
"cms_tpv_get_the_modified_author",
|
759 |
-
"st-type-dashb",
|
760 |
-
"Select where to show a tree for pages and custom post types\n\n",
|
761 |
-
"cms_tpv_save_settings",
|
762 |
-
"save",
|
763 |
-
"$screen",
|
764 |
-
"screen->post_type",
|
765 |
-
"on post",
|
766 |
-
"init cms tree page view",
|
767 |
-
"inline_edit",
|
768 |
-
"cms_tpv_install",
|
769 |
-
"cms_tpv_get_options",
|
770 |
-
"add_open_graph_tags",
|
771 |
-
"ion clean_post_cache",
|
772 |
-
"delete",
|
773 |
-
"ion wp_cache_incr",
|
774 |
-
"ns_key",
|
775 |
-
"wp_cache_incr",
|
776 |
-
"n wp_cache_incr",
|
777 |
-
"wp_cache_incr",
|
778 |
-
"n set_transient",
|
779 |
-
"n get_site_transient(",
|
780 |
-
"get_site_transient(",
|
781 |
-
"wp_cache_incr",
|
782 |
-
"ion wp_cache_flush",
|
783 |
-
"ion wp_cache_delete(",
|
784 |
-
"page_",
|
785 |
-
"add_page_slug_to_body_class",
|
786 |
-
"page_",
|
787 |
-
"n get_template_part",
|
788 |
-
"add_page_css_has_children",
|
789 |
-
" \n",
|
790 |
-
" ",
|
791 |
-
"FALSE",
|
792 |
-
"TRUE",
|
793 |
-
"ep",
|
794 |
-
"ar ep = window",
|
795 |
-
"var_template_include",
|
796 |
-
"update_right_now_message",
|
797 |
-
"wp-version-message",
|
798 |
-
"X-UA-Compatible",
|
799 |
-
"cache_group",
|
800 |
-
"is_Debug",
|
801 |
-
"FALSE",
|
802 |
-
"TRUE",
|
803 |
-
"true",
|
804 |
-
"set_Menu",
|
805 |
-
"comp",
|
806 |
-
"coma",
|
807 |
-
"omsattning",
|
808 |
-
"avskrivningar",
|
809 |
-
"före avskrivningar",
|
810 |
-
"Rörelseresultat före avskrivningar",
|
811 |
-
"mode=\"",
|
812 |
-
"table_income_statemant",
|
813 |
-
"507",
|
814 |
-
"2012",
|
815 |
-
"omsättning",
|
816 |
-
"resultat",
|
817 |
-
"earningsAfterNetFinancialItems",
|
818 |
-
"xml",
|
819 |
-
"2009",
|
820 |
-
"\n",
|
821 |
-
"270",
|
822 |
-
"KeyIndicatorsForPeriod",
|
823 |
-
"apply-te",
|
824 |
-
",",
|
825 |
-
"TabCompanyMatureness",
|
826 |
-
"--",
|
827 |
-
"<string",
|
828 |
-
"<xsl:param name=\"",
|
829 |
-
"strCEO",
|
830 |
-
"Headline",
|
831 |
-
"Advisors",
|
832 |
-
"Subsidiaries",
|
833 |
-
"Owners",
|
834 |
-
"Matureness",
|
835 |
-
"KeyIndicators",
|
836 |
-
"TabCompanyDescription",
|
837 |
-
"back",
|
838 |
-
"HeadlineCompaniesOnNPM",
|
839 |
-
"str",
|
840 |
-
"swfobject"
|
841 |
-
],
|
842 |
-
"highlight": true,
|
843 |
-
"in_selection": false,
|
844 |
-
"preserve_case": false,
|
845 |
-
"regex": false,
|
846 |
-
"replace_history":
|
847 |
-
[
|
848 |
-
"false",
|
849 |
-
"true",
|
850 |
-
"false",
|
851 |
-
"true",
|
852 |
-
"example.com",
|
853 |
-
"http://example.com/wordpress/",
|
854 |
-
"<?php ",
|
855 |
-
"<?php echo ",
|
856 |
-
".simple-history-no-more-items ",
|
857 |
-
"$one_new_field",
|
858 |
-
" foreach($new_field_group[\"fields\"] as $oneField) {\n \n // Set up default values for this field\n $fields[$field_id] = array();\n $field_slug = \"field_$field_id\";\n $field_defaults = array(\n \"name\" => \"\",\n \"slug\" => $field_slug,\n \"description\" => \"\",\n \"type\" => \"\",\n \"type_post_options\" => array(\n \"enabled_post_types\" => array(), \n \"additional_arguments\" => \"\"\n ),\n \"type_taxonomyterm_options\" => array(\n \"additional_arguments\" => \"\"\n ),\n \"id\" => \"\",\n \"deleted\" => 0\n );\n \n // If a field with this index/id exists then merge that fields values with our default values\n // @todo: should check slug here, it does some wierd index thingie instead\n // so if you add one field in php, then one in the gui, and then extend the php with one more field = \n // field from gui is overwritten since it get's the id that the php version want\n // use only slug instead and we should be fine\n#$field_groups[$field_group_id]\n#echo \"oneField:\";\n#sf_d($oneField);\n#sf_d($field_groups[$field_group_id]['fields']);\n#sf_d($new_field_group[\"fields\"]);\n/*\nArray\n(\n [type] => file\n [slug] => image_id\n [name] => Image\n [description] => Choose image for this slide\n)\n*/\n\n// Find id of possibly existing field using the slug\n$field_id_for_slug = NULL;\nforeach ($field_groups[$field_group_id][\"fields\"] as $one_field) {\n #$one_fi\n if ($one_field[\"slug\"] == $) {\n\n }\n sf_d($one_field);\n}\n if (isset($field_groups[$field_group_id]['fields'][$field_id])) {\n $field_defaults = simple_fields_merge_arrays($field_defaults, $field_groups[$field_group_id]['fields'][$field_id]);\n }\n \n // Do wierd stuff with field default values\n foreach($field_defaults as $oneDefaultFieldKey => $oneDefaultFieldValue) {\n \n if ($oneDefaultFieldKey == \"id\") {\n $fields[$field_id][\"id\"] = $field_id;\n } else {\n if (!isset($oneField[$oneDefaultFieldKey])) {\n $fields[$field_id][$oneDefaultFieldKey] = $oneDefaultFieldValue;\n }\n \n }\n \n // If the default key is an array\n if (isset($oneField[$oneDefaultFieldKey]) && is_array($oneField[$oneDefaultFieldKey]) && !empty($oneField[$oneDefaultFieldKey])) {\n\n // If this is an array with options for a field type\n // For example \"type_post_options\" or \"type_taxonomyterm_options\"\n $options_type = preg_replace(\"/type_([a-z]+)_options/i\", '$1', $oneDefaultFieldKey);\n if (!empty($options_type)) {\n \n foreach(array_keys($oneField[$oneDefaultFieldKey]) as $optionKey) {\n\n if (is_numeric($optionKey)) {\n $newOptionKey = $options_type . \"_num_\" . $optionKey;\n $fields[$field_id][$oneDefaultFieldKey][$newOptionKey] = $oneField[$oneDefaultFieldKey][$optionKey];\n unset($fields[$field_id][$oneDefaultFieldKey][$optionKey]);\n $optionKey = $newOptionKey;\n }\n if (isset($fields[$field_id][$oneDefaultFieldKey][$optionKey]) && is_array($fields[$field_id][$oneDefaultFieldKey][$optionKey]) && !empty($fields[$field_id][$oneDefaultFieldKey][$optionKey][\"value\"])) {\n if (!isset($fields[$field_id][$oneDefaultFieldKey][$optionKey][\"deleted\"])) {\n $fields[$field_id][$oneDefaultFieldKey][$optionKey][\"deleted\"] = 0;\n }\n }\n \n } // foreach\n \n }\n }\n \n if (!isset($fields[$field_id][$oneDefaultFieldKey])) {\n $fields[$field_id][$oneDefaultFieldKey] = $oneDefaultFieldValue;\n }\n }\n \n $field_id++;\n "
|
859 |
-
],
|
860 |
-
"reverse": false,
|
861 |
-
"show_context": true,
|
862 |
-
"use_buffer2": true,
|
863 |
-
"whole_word": false,
|
864 |
-
"wrap": true
|
865 |
-
},
|
866 |
-
"groups":
|
867 |
-
[
|
868 |
-
{
|
869 |
-
"selected": 0,
|
870 |
-
"sheets":
|
871 |
-
[
|
872 |
-
{
|
873 |
-
"buffer": 0,
|
874 |
-
"file": "functions.php",
|
875 |
-
"semi_transient": false,
|
876 |
-
"settings":
|
877 |
-
{
|
878 |
-
"buffer_size": 62751,
|
879 |
-
"regions":
|
880 |
-
{
|
881 |
-
},
|
882 |
-
"selection":
|
883 |
-
[
|
884 |
-
[
|
885 |
-
18351,
|
886 |
-
18351
|
887 |
-
]
|
888 |
-
],
|
889 |
-
"settings":
|
890 |
-
{
|
891 |
-
"SideBarAutoAddFoldersForOpenedFiles": 1,
|
892 |
-
"annotations":
|
893 |
-
[
|
894 |
-
"TODO",
|
895 |
-
"README",
|
896 |
-
"FIXME"
|
897 |
-
],
|
898 |
-
"csslint_options":
|
899 |
-
{
|
900 |
-
"adjoining-classes": "warning",
|
901 |
-
"box-model": true,
|
902 |
-
"box-sizing": "warning",
|
903 |
-
"compatible-vendor-prefixes": "warning",
|
904 |
-
"display-property-grouping": true,
|
905 |
-
"duplicate-background-images": "warning",
|
906 |
-
"duplicate-properties": true,
|
907 |
-
"empty-rules": true,
|
908 |
-
"errors": true,
|
909 |
-
"fallback-colors": "warning",
|
910 |
-
"floats": "warning",
|
911 |
-
"font-faces": "warning",
|
912 |
-
"font-sizes": "warning",
|
913 |
-
"gradients": "warning",
|
914 |
-
"ids": "warning",
|
915 |
-
"import": "warning",
|
916 |
-
"important": "warning",
|
917 |
-
"known-properties": true,
|
918 |
-
"outline-none": "warning",
|
919 |
-
"overqualified-elements": "warning",
|
920 |
-
"qualified-headings": "warning",
|
921 |
-
"regex-selectors": "warning",
|
922 |
-
"rules-count": "warning",
|
923 |
-
"shorthand": "warning",
|
924 |
-
"star-property-hack": "warning",
|
925 |
-
"text-indent": "warning",
|
926 |
-
"underscore-property-hack": "warning",
|
927 |
-
"unique-headings": "warning",
|
928 |
-
"universal-selector": "warning",
|
929 |
-
"vendor-prefix": true,
|
930 |
-
"zero-units": "warning"
|
931 |
-
},
|
932 |
-
"function_name_status_row": 606,
|
933 |
-
"gjslint_ignore":
|
934 |
-
[
|
935 |
-
110
|
936 |
-
],
|
937 |
-
"gjslint_options":
|
938 |
-
[
|
939 |
-
],
|
940 |
-
"javascript_linter": "jshint",
|
941 |
-
"jshint_options":
|
942 |
-
{
|
943 |
-
"browser": true,
|
944 |
-
"evil": true,
|
945 |
-
"regexdash": true,
|
946 |
-
"sub": true,
|
947 |
-
"trailing": true,
|
948 |
-
"wsh": true
|
949 |
-
},
|
950 |
-
"pep8": true,
|
951 |
-
"pep8_ignore":
|
952 |
-
[
|
953 |
-
"E501"
|
954 |
-
],
|
955 |
-
"perl_linter": "perlcritic",
|
956 |
-
"pyflakes_ignore":
|
957 |
-
[
|
958 |
-
],
|
959 |
-
"pyflakes_ignore_import_*": true,
|
960 |
-
"sublimelinter": true,
|
961 |
-
"sublimelinter_delay": 2,
|
962 |
-
"sublimelinter_disable":
|
963 |
-
[
|
964 |
-
],
|
965 |
-
"sublimelinter_executable_map":
|
966 |
-
{
|
967 |
-
},
|
968 |
-
"sublimelinter_fill_outlines": false,
|
969 |
-
"sublimelinter_gutter_marks": true,
|
970 |
-
"sublimelinter_gutter_marks_theme": "simple",
|
971 |
-
"sublimelinter_mark_style": "none",
|
972 |
-
"sublimelinter_notes": false,
|
973 |
-
"sublimelinter_objj_check_ascii": false,
|
974 |
-
"sublimelinter_popup_errors_on_save": false,
|
975 |
-
"sublimelinter_syntax_map":
|
976 |
-
{
|
977 |
-
"C++": "c",
|
978 |
-
"Python Django": "python",
|
979 |
-
"Ruby on Rails": "ruby"
|
980 |
-
},
|
981 |
-
"sublimelinter_wrap_find": true,
|
982 |
-
"syntax": "Packages/PHP/PHP.tmLanguage",
|
983 |
-
"translate_tabs_to_spaces": false
|
984 |
-
},
|
985 |
-
"translation.x": 0.0,
|
986 |
-
"translation.y": 9728.0,
|
987 |
-
"zoom_level": 1.0
|
988 |
-
},
|
989 |
-
"stack_index": 0,
|
990 |
-
"type": "text"
|
991 |
-
},
|
992 |
-
{
|
993 |
-
"buffer": 1,
|
994 |
-
"file": "README.md",
|
995 |
-
"semi_transient": true,
|
996 |
-
"settings":
|
997 |
-
{
|
998 |
-
"buffer_size": 318,
|
999 |
-
"regions":
|
1000 |
-
{
|
1001 |
-
},
|
1002 |
-
"selection":
|
1003 |
-
[
|
1004 |
-
[
|
1005 |
-
0,
|
1006 |
-
0
|
1007 |
-
]
|
1008 |
-
],
|
1009 |
-
"settings":
|
1010 |
-
{
|
1011 |
-
"function_name_status_row": 0,
|
1012 |
-
"syntax": "Packages/Text/Plain text.tmLanguage"
|
1013 |
-
},
|
1014 |
-
"translation.x": 0.0,
|
1015 |
-
"translation.y": 0.0,
|
1016 |
-
"zoom_level": 1.0
|
1017 |
-
},
|
1018 |
-
"stack_index": 4,
|
1019 |
-
"type": "text"
|
1020 |
-
},
|
1021 |
-
{
|
1022 |
-
"buffer": 2,
|
1023 |
-
"semi_transient": false,
|
1024 |
-
"settings":
|
1025 |
-
{
|
1026 |
-
"buffer_size": 1075,
|
1027 |
-
"regions":
|
1028 |
-
{
|
1029 |
-
"match":
|
1030 |
-
{
|
1031 |
-
"flags": 112,
|
1032 |
-
"regions":
|
1033 |
-
[
|
1034 |
-
[
|
1035 |
-
250,
|
1036 |
-
265
|
1037 |
-
],
|
1038 |
-
[
|
1039 |
-
355,
|
1040 |
-
370
|
1041 |
-
],
|
1042 |
-
[
|
1043 |
-
610,
|
1044 |
-
625
|
1045 |
-
],
|
1046 |
-
[
|
1047 |
-
966,
|
1048 |
-
995
|
1049 |
-
]
|
1050 |
-
],
|
1051 |
-
"scope": ""
|
1052 |
-
}
|
1053 |
-
},
|
1054 |
-
"selection":
|
1055 |
-
[
|
1056 |
-
[
|
1057 |
-
932,
|
1058 |
-
938
|
1059 |
-
]
|
1060 |
-
],
|
1061 |
-
"settings":
|
1062 |
-
{
|
1063 |
-
"detect_indentation": false,
|
1064 |
-
"function_name_status_row": 25,
|
1065 |
-
"line_numbers": false,
|
1066 |
-
"output_tag": 2,
|
1067 |
-
"result_base_dir": "",
|
1068 |
-
"result_file_regex": "^([A-Za-z\\\\/<].*):$",
|
1069 |
-
"result_line_regex": "^ +([0-9]+):",
|
1070 |
-
"scroll_past_end": true,
|
1071 |
-
"syntax": "Packages/Default/Find Results.hidden-tmLanguage"
|
1072 |
-
},
|
1073 |
-
"translation.x": 0.0,
|
1074 |
-
"translation.y": 323.0,
|
1075 |
-
"zoom_level": 1.0
|
1076 |
-
},
|
1077 |
-
"stack_index": 3,
|
1078 |
-
"type": "text"
|
1079 |
-
},
|
1080 |
-
{
|
1081 |
-
"buffer": 3,
|
1082 |
-
"file": "index.php",
|
1083 |
-
"semi_transient": false,
|
1084 |
-
"settings":
|
1085 |
-
{
|
1086 |
-
"buffer_size": 3156,
|
1087 |
-
"regions":
|
1088 |
-
{
|
1089 |
-
},
|
1090 |
-
"selection":
|
1091 |
-
[
|
1092 |
-
[
|
1093 |
-
1323,
|
1094 |
-
1335
|
1095 |
-
]
|
1096 |
-
],
|
1097 |
-
"settings":
|
1098 |
-
{
|
1099 |
-
"function_name_status_row": 30,
|
1100 |
-
"syntax": "Packages/PHP/PHP.tmLanguage",
|
1101 |
-
"tab_size": 4,
|
1102 |
-
"translate_tabs_to_spaces": true
|
1103 |
-
},
|
1104 |
-
"translation.x": 0.0,
|
1105 |
-
"translation.y": 125.0,
|
1106 |
-
"zoom_level": 1.0
|
1107 |
-
},
|
1108 |
-
"stack_index": 1,
|
1109 |
-
"type": "text"
|
1110 |
-
},
|
1111 |
-
{
|
1112 |
-
"buffer": 4,
|
1113 |
-
"file": "readme.txt",
|
1114 |
-
"semi_transient": false,
|
1115 |
-
"settings":
|
1116 |
-
{
|
1117 |
-
"buffer_size": 25602,
|
1118 |
-
"regions":
|
1119 |
-
{
|
1120 |
-
},
|
1121 |
-
"selection":
|
1122 |
-
[
|
1123 |
-
[
|
1124 |
-
0,
|
1125 |
-
0
|
1126 |
-
]
|
1127 |
-
],
|
1128 |
-
"settings":
|
1129 |
-
{
|
1130 |
-
"function_name_status_row": 0,
|
1131 |
-
"syntax": "Packages/MarkdownEditing/Markdown.tmLanguage"
|
1132 |
-
},
|
1133 |
-
"translation.x": 0.0,
|
1134 |
-
"translation.y": 2.0,
|
1135 |
-
"zoom_level": 1.0
|
1136 |
-
},
|
1137 |
-
"stack_index": 2,
|
1138 |
-
"type": "text"
|
1139 |
-
},
|
1140 |
-
{
|
1141 |
-
"buffer": 5,
|
1142 |
-
"file": "scripts/cms_tree_page_view.js",
|
1143 |
-
"semi_transient": false,
|
1144 |
-
"settings":
|
1145 |
-
{
|
1146 |
-
"buffer_size": 29065,
|
1147 |
-
"regions":
|
1148 |
-
{
|
1149 |
-
},
|
1150 |
-
"selection":
|
1151 |
-
[
|
1152 |
-
[
|
1153 |
-
0,
|
1154 |
-
0
|
1155 |
-
]
|
1156 |
-
],
|
1157 |
-
"settings":
|
1158 |
-
{
|
1159 |
-
"function_name_status_row": 0,
|
1160 |
-
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
|
1161 |
-
"translate_tabs_to_spaces": false
|
1162 |
-
},
|
1163 |
-
"translation.x": 0.0,
|
1164 |
-
"translation.y": 0.0,
|
1165 |
-
"zoom_level": 1.0
|
1166 |
-
},
|
1167 |
-
"stack_index": 5,
|
1168 |
-
"type": "text"
|
1169 |
-
},
|
1170 |
-
{
|
1171 |
-
"buffer": 6,
|
1172 |
-
"file": "styles/styles.css",
|
1173 |
-
"semi_transient": false,
|
1174 |
-
"settings":
|
1175 |
-
{
|
1176 |
-
"buffer_size": 10635,
|
1177 |
-
"regions":
|
1178 |
-
{
|
1179 |
-
"gutter_color_10040":
|
1180 |
-
{
|
1181 |
-
"flags": 144,
|
1182 |
-
"icon": "Cache/GutterColor/FAFAFA.png",
|
1183 |
-
"regions":
|
1184 |
-
[
|
1185 |
-
[
|
1186 |
-
10040,
|
1187 |
-
10067
|
1188 |
-
]
|
1189 |
-
],
|
1190 |
-
"scope": "gutter_color"
|
1191 |
-
},
|
1192 |
-
"gutter_color_10068":
|
1193 |
-
{
|
1194 |
-
"flags": 144,
|
1195 |
-
"icon": "Cache/GutterColor/dddddd.png",
|
1196 |
-
"regions":
|
1197 |
-
[
|
1198 |
-
[
|
1199 |
-
10068,
|
1200 |
-
10092
|
1201 |
-
]
|
1202 |
-
],
|
1203 |
-
"scope": "gutter_color"
|
1204 |
-
},
|
1205 |
-
"gutter_color_1091":
|
1206 |
-
{
|
1207 |
-
"flags": 144,
|
1208 |
-
"icon": "Cache/GutterColor/999999.png",
|
1209 |
-
"regions":
|
1210 |
-
[
|
1211 |
-
[
|
1212 |
-
1095,
|
1213 |
-
1108
|
1214 |
-
]
|
1215 |
-
],
|
1216 |
-
"scope": "gutter_color"
|
1217 |
-
},
|
1218 |
-
"gutter_color_1095":
|
1219 |
-
{
|
1220 |
-
"flags": 144,
|
1221 |
-
"icon": "Cache/GutterColor/999999.png",
|
1222 |
-
"regions":
|
1223 |
-
[
|
1224 |
-
[
|
1225 |
-
1095,
|
1226 |
-
1108
|
1227 |
-
]
|
1228 |
-
],
|
1229 |
-
"scope": "gutter_color"
|
1230 |
-
},
|
1231 |
-
"gutter_color_1318":
|
1232 |
-
{
|
1233 |
-
"flags": 144,
|
1234 |
-
"icon": "Cache/GutterColor/ffefba.png",
|
1235 |
-
"regions":
|
1236 |
-
[
|
1237 |
-
[
|
1238 |
-
1322,
|
1239 |
-
1349
|
1240 |
-
]
|
1241 |
-
],
|
1242 |
-
"scope": "gutter_color"
|
1243 |
-
},
|
1244 |
-
"gutter_color_1322":
|
1245 |
-
{
|
1246 |
-
"flags": 144,
|
1247 |
-
"icon": "Cache/GutterColor/ffefba.png",
|
1248 |
-
"regions":
|
1249 |
-
[
|
1250 |
-
[
|
1251 |
-
1322,
|
1252 |
-
1349
|
1253 |
-
]
|
1254 |
-
],
|
1255 |
-
"scope": "gutter_color"
|
1256 |
-
},
|
1257 |
-
"gutter_color_1696":
|
1258 |
-
{
|
1259 |
-
"flags": 144,
|
1260 |
-
"icon": "Cache/GutterColor/999999.png",
|
1261 |
-
"regions":
|
1262 |
-
[
|
1263 |
-
[
|
1264 |
-
1700,
|
1265 |
-
1713
|
1266 |
-
]
|
1267 |
-
],
|
1268 |
-
"scope": "gutter_color"
|
1269 |
-
},
|
1270 |
-
"gutter_color_1700":
|
1271 |
-
{
|
1272 |
-
"flags": 144,
|
1273 |
-
"icon": "Cache/GutterColor/999999.png",
|
1274 |
-
"regions":
|
1275 |
-
[
|
1276 |
-
[
|
1277 |
-
1700,
|
1278 |
-
1713
|
1279 |
-
]
|
1280 |
-
],
|
1281 |
-
"scope": "gutter_color"
|
1282 |
-
},
|
1283 |
-
"gutter_color_2044":
|
1284 |
-
{
|
1285 |
-
"flags": 144,
|
1286 |
-
"icon": "Cache/GutterColor/f86210.png",
|
1287 |
-
"regions":
|
1288 |
-
[
|
1289 |
-
[
|
1290 |
-
2048,
|
1291 |
-
2084
|
1292 |
-
]
|
1293 |
-
],
|
1294 |
-
"scope": "gutter_color"
|
1295 |
-
},
|
1296 |
-
"gutter_color_2048":
|
1297 |
-
{
|
1298 |
-
"flags": 144,
|
1299 |
-
"icon": "Cache/GutterColor/f86210.png",
|
1300 |
-
"regions":
|
1301 |
-
[
|
1302 |
-
[
|
1303 |
-
2048,
|
1304 |
-
2084
|
1305 |
-
]
|
1306 |
-
],
|
1307 |
-
"scope": "gutter_color"
|
1308 |
-
},
|
1309 |
-
"gutter_color_2436":
|
1310 |
-
{
|
1311 |
-
"flags": 144,
|
1312 |
-
"icon": "Cache/GutterColor/25b61a.png",
|
1313 |
-
"regions":
|
1314 |
-
[
|
1315 |
-
[
|
1316 |
-
2440,
|
1317 |
-
2476
|
1318 |
-
]
|
1319 |
-
],
|
1320 |
-
"scope": "gutter_color"
|
1321 |
-
},
|
1322 |
-
"gutter_color_2440":
|
1323 |
-
{
|
1324 |
-
"flags": 144,
|
1325 |
-
"icon": "Cache/GutterColor/25b61a.png",
|
1326 |
-
"regions":
|
1327 |
-
[
|
1328 |
-
[
|
1329 |
-
2440,
|
1330 |
-
2476
|
1331 |
-
]
|
1332 |
-
],
|
1333 |
-
"scope": "gutter_color"
|
1334 |
-
},
|
1335 |
-
"gutter_color_2594":
|
1336 |
-
{
|
1337 |
-
"flags": 144,
|
1338 |
-
"icon": "Cache/GutterColor/0069e0.png",
|
1339 |
-
"regions":
|
1340 |
-
[
|
1341 |
-
[
|
1342 |
-
2598,
|
1343 |
-
2634
|
1344 |
-
]
|
1345 |
-
],
|
1346 |
-
"scope": "gutter_color"
|
1347 |
-
},
|
1348 |
-
"gutter_color_2598":
|
1349 |
-
{
|
1350 |
-
"flags": 144,
|
1351 |
-
"icon": "Cache/GutterColor/0069e0.png",
|
1352 |
-
"regions":
|
1353 |
-
[
|
1354 |
-
[
|
1355 |
-
2598,
|
1356 |
-
2634
|
1357 |
-
]
|
1358 |
-
],
|
1359 |
-
"scope": "gutter_color"
|
1360 |
-
},
|
1361 |
-
"gutter_color_4702":
|
1362 |
-
{
|
1363 |
-
"flags": 144,
|
1364 |
-
"icon": "Cache/GutterColor/DFDFDF.png",
|
1365 |
-
"regions":
|
1366 |
-
[
|
1367 |
-
[
|
1368 |
-
4706,
|
1369 |
-
4733
|
1370 |
-
]
|
1371 |
-
],
|
1372 |
-
"scope": "gutter_color"
|
1373 |
-
},
|
1374 |
-
"gutter_color_4706":
|
1375 |
-
{
|
1376 |
-
"flags": 144,
|
1377 |
-
"icon": "Cache/GutterColor/DFDFDF.png",
|
1378 |
-
"regions":
|
1379 |
-
[
|
1380 |
-
[
|
1381 |
-
4706,
|
1382 |
-
4733
|
1383 |
-
]
|
1384 |
-
],
|
1385 |
-
"scope": "gutter_color"
|
1386 |
-
},
|
1387 |
-
"gutter_color_5029":
|
1388 |
-
{
|
1389 |
-
"flags": 144,
|
1390 |
-
"icon": "Cache/GutterColor/DFDFDF.png",
|
1391 |
-
"regions":
|
1392 |
-
[
|
1393 |
-
[
|
1394 |
-
5033,
|
1395 |
-
5098
|
1396 |
-
]
|
1397 |
-
],
|
1398 |
-
"scope": "gutter_color"
|
1399 |
-
},
|
1400 |
-
"gutter_color_5033":
|
1401 |
-
{
|
1402 |
-
"flags": 144,
|
1403 |
-
"icon": "Cache/GutterColor/DFDFDF.png",
|
1404 |
-
"regions":
|
1405 |
-
[
|
1406 |
-
[
|
1407 |
-
5033,
|
1408 |
-
5098
|
1409 |
-
]
|
1410 |
-
],
|
1411 |
-
"scope": "gutter_color"
|
1412 |
-
},
|
1413 |
-
"gutter_color_5529":
|
1414 |
-
{
|
1415 |
-
"flags": 144,
|
1416 |
-
"icon": "Cache/GutterColor/d8f5fa.png",
|
1417 |
-
"regions":
|
1418 |
-
[
|
1419 |
-
[
|
1420 |
-
5533,
|
1421 |
-
5560
|
1422 |
-
]
|
1423 |
-
],
|
1424 |
-
"scope": "gutter_color"
|
1425 |
-
},
|
1426 |
-
"gutter_color_5533":
|
1427 |
-
{
|
1428 |
-
"flags": 144,
|
1429 |
-
"icon": "Cache/GutterColor/d8f5fa.png",
|
1430 |
-
"regions":
|
1431 |
-
[
|
1432 |
-
[
|
1433 |
-
5533,
|
1434 |
-
5560
|
1435 |
-
]
|
1436 |
-
],
|
1437 |
-
"scope": "gutter_color"
|
1438 |
-
},
|
1439 |
-
"gutter_color_5842":
|
1440 |
-
{
|
1441 |
-
"flags": 144,
|
1442 |
-
"icon": "Cache/GutterColor/21759B.png",
|
1443 |
-
"regions":
|
1444 |
-
[
|
1445 |
-
[
|
1446 |
-
5846,
|
1447 |
-
5862
|
1448 |
-
]
|
1449 |
-
],
|
1450 |
-
"scope": "gutter_color"
|
1451 |
-
},
|
1452 |
-
"gutter_color_5846":
|
1453 |
-
{
|
1454 |
-
"flags": 144,
|
1455 |
-
"icon": "Cache/GutterColor/21759B.png",
|
1456 |
-
"regions":
|
1457 |
-
[
|
1458 |
-
[
|
1459 |
-
5846,
|
1460 |
-
5862
|
1461 |
-
]
|
1462 |
-
],
|
1463 |
-
"scope": "gutter_color"
|
1464 |
-
},
|
1465 |
-
"gutter_color_6000":
|
1466 |
-
{
|
1467 |
-
"flags": 144,
|
1468 |
-
"icon": "Cache/GutterColor/aaaaaa.png",
|
1469 |
-
"regions":
|
1470 |
-
[
|
1471 |
-
[
|
1472 |
-
6004,
|
1473 |
-
6034
|
1474 |
-
]
|
1475 |
-
],
|
1476 |
-
"scope": "gutter_color"
|
1477 |
-
},
|
1478 |
-
"gutter_color_6004":
|
1479 |
-
{
|
1480 |
-
"flags": 144,
|
1481 |
-
"icon": "Cache/GutterColor/aaaaaa.png",
|
1482 |
-
"regions":
|
1483 |
-
[
|
1484 |
-
[
|
1485 |
-
6004,
|
1486 |
-
6034
|
1487 |
-
]
|
1488 |
-
],
|
1489 |
-
"scope": "gutter_color"
|
1490 |
-
},
|
1491 |
-
"gutter_color_6206":
|
1492 |
-
{
|
1493 |
-
"flags": 144,
|
1494 |
-
"icon": "Cache/GutterColor/d54e21.png",
|
1495 |
-
"regions":
|
1496 |
-
[
|
1497 |
-
[
|
1498 |
-
6210,
|
1499 |
-
6226
|
1500 |
-
]
|
1501 |
-
],
|
1502 |
-
"scope": "gutter_color"
|
1503 |
-
},
|
1504 |
-
"gutter_color_6210":
|
1505 |
-
{
|
1506 |
-
"flags": 144,
|
1507 |
-
"icon": "Cache/GutterColor/d54e21.png",
|
1508 |
-
"regions":
|
1509 |
-
[
|
1510 |
-
[
|
1511 |
-
6210,
|
1512 |
-
6226
|
1513 |
-
]
|
1514 |
-
],
|
1515 |
-
"scope": "gutter_color"
|
1516 |
-
},
|
1517 |
-
"gutter_color_628":
|
1518 |
-
{
|
1519 |
-
"flags": 144,
|
1520 |
-
"icon": "Cache/GutterColor/666666.png",
|
1521 |
-
"regions":
|
1522 |
-
[
|
1523 |
-
[
|
1524 |
-
632,
|
1525 |
-
645
|
1526 |
-
]
|
1527 |
-
],
|
1528 |
-
"scope": "gutter_color"
|
1529 |
-
},
|
1530 |
-
"gutter_color_632":
|
1531 |
-
{
|
1532 |
-
"flags": 144,
|
1533 |
-
"icon": "Cache/GutterColor/666666.png",
|
1534 |
-
"regions":
|
1535 |
-
[
|
1536 |
-
[
|
1537 |
-
632,
|
1538 |
-
645
|
1539 |
-
]
|
1540 |
-
],
|
1541 |
-
"scope": "gutter_color"
|
1542 |
-
},
|
1543 |
-
"gutter_color_6609":
|
1544 |
-
{
|
1545 |
-
"flags": 144,
|
1546 |
-
"icon": "Cache/GutterColor/aaaaaa.png",
|
1547 |
-
"regions":
|
1548 |
-
[
|
1549 |
-
[
|
1550 |
-
6613,
|
1551 |
-
6642
|
1552 |
-
]
|
1553 |
-
],
|
1554 |
-
"scope": "gutter_color"
|
1555 |
-
},
|
1556 |
-
"gutter_color_6613":
|
1557 |
-
{
|
1558 |
-
"flags": 144,
|
1559 |
-
"icon": "Cache/GutterColor/aaaaaa.png",
|
1560 |
-
"regions":
|
1561 |
-
[
|
1562 |
-
[
|
1563 |
-
6613,
|
1564 |
-
6642
|
1565 |
-
]
|
1566 |
-
],
|
1567 |
-
"scope": "gutter_color"
|
1568 |
-
},
|
1569 |
-
"gutter_color_6969":
|
1570 |
-
{
|
1571 |
-
"flags": 144,
|
1572 |
-
"icon": "Cache/GutterColor/333333.png",
|
1573 |
-
"regions":
|
1574 |
-
[
|
1575 |
-
[
|
1576 |
-
6973,
|
1577 |
-
6986
|
1578 |
-
]
|
1579 |
-
],
|
1580 |
-
"scope": "gutter_color"
|
1581 |
-
},
|
1582 |
-
"gutter_color_6973":
|
1583 |
-
{
|
1584 |
-
"flags": 144,
|
1585 |
-
"icon": "Cache/GutterColor/333333.png",
|
1586 |
-
"regions":
|
1587 |
-
[
|
1588 |
-
[
|
1589 |
-
6973,
|
1590 |
-
6986
|
1591 |
-
]
|
1592 |
-
],
|
1593 |
-
"scope": "gutter_color"
|
1594 |
-
},
|
1595 |
-
"gutter_color_7096":
|
1596 |
-
{
|
1597 |
-
"flags": 144,
|
1598 |
-
"icon": "Cache/GutterColor/999999.png",
|
1599 |
-
"regions":
|
1600 |
-
[
|
1601 |
-
[
|
1602 |
-
7100,
|
1603 |
-
7113
|
1604 |
-
]
|
1605 |
-
],
|
1606 |
-
"scope": "gutter_color"
|
1607 |
-
},
|
1608 |
-
"gutter_color_7100":
|
1609 |
-
{
|
1610 |
-
"flags": 144,
|
1611 |
-
"icon": "Cache/GutterColor/999999.png",
|
1612 |
-
"regions":
|
1613 |
-
[
|
1614 |
-
[
|
1615 |
-
7100,
|
1616 |
-
7113
|
1617 |
-
]
|
1618 |
-
],
|
1619 |
-
"scope": "gutter_color"
|
1620 |
-
},
|
1621 |
-
"gutter_color_7738":
|
1622 |
-
{
|
1623 |
-
"flags": 144,
|
1624 |
-
"icon": "Cache/GutterColor/E3E3E3.png",
|
1625 |
-
"regions":
|
1626 |
-
[
|
1627 |
-
[
|
1628 |
-
7742,
|
1629 |
-
7774
|
1630 |
-
]
|
1631 |
-
],
|
1632 |
-
"scope": "gutter_color"
|
1633 |
-
},
|
1634 |
-
"gutter_color_7742":
|
1635 |
-
{
|
1636 |
-
"flags": 144,
|
1637 |
-
"icon": "Cache/GutterColor/E3E3E3.png",
|
1638 |
-
"regions":
|
1639 |
-
[
|
1640 |
-
[
|
1641 |
-
7742,
|
1642 |
-
7774
|
1643 |
-
]
|
1644 |
-
],
|
1645 |
-
"scope": "gutter_color"
|
1646 |
-
},
|
1647 |
-
"gutter_color_7892":
|
1648 |
-
{
|
1649 |
-
"flags": 144,
|
1650 |
-
"icon": "Cache/GutterColor/dddddd.png",
|
1651 |
-
"regions":
|
1652 |
-
[
|
1653 |
-
[
|
1654 |
-
7896,
|
1655 |
-
7920
|
1656 |
-
]
|
1657 |
-
],
|
1658 |
-
"scope": "gutter_color"
|
1659 |
-
},
|
1660 |
-
"gutter_color_7896":
|
1661 |
-
{
|
1662 |
-
"flags": 144,
|
1663 |
-
"icon": "Cache/GutterColor/dddddd.png",
|
1664 |
-
"regions":
|
1665 |
-
[
|
1666 |
-
[
|
1667 |
-
7896,
|
1668 |
-
7920
|
1669 |
-
]
|
1670 |
-
],
|
1671 |
-
"scope": "gutter_color"
|
1672 |
-
},
|
1673 |
-
"gutter_color_9898":
|
1674 |
-
{
|
1675 |
-
"flags": 144,
|
1676 |
-
"icon": "Cache/GutterColor/FAFAFA.png",
|
1677 |
-
"regions":
|
1678 |
-
[
|
1679 |
-
[
|
1680 |
-
10040,
|
1681 |
-
10067
|
1682 |
-
]
|
1683 |
-
],
|
1684 |
-
"scope": "gutter_color"
|
1685 |
-
},
|
1686 |
-
"gutter_color_9902":
|
1687 |
-
{
|
1688 |
-
"flags": 144,
|
1689 |
-
"icon": "Cache/GutterColor/FAFAFA.png",
|
1690 |
-
"regions":
|
1691 |
-
[
|
1692 |
-
[
|
1693 |
-
10040,
|
1694 |
-
10067
|
1695 |
-
]
|
1696 |
-
],
|
1697 |
-
"scope": "gutter_color"
|
1698 |
-
},
|
1699 |
-
"gutter_color_9926":
|
1700 |
-
{
|
1701 |
-
"flags": 144,
|
1702 |
-
"icon": "Cache/GutterColor/dddddd.png",
|
1703 |
-
"regions":
|
1704 |
-
[
|
1705 |
-
[
|
1706 |
-
10068,
|
1707 |
-
10092
|
1708 |
-
]
|
1709 |
-
],
|
1710 |
-
"scope": "gutter_color"
|
1711 |
-
},
|
1712 |
-
"gutter_color_9930":
|
1713 |
-
{
|
1714 |
-
"flags": 144,
|
1715 |
-
"icon": "Cache/GutterColor/dddddd.png",
|
1716 |
-
"regions":
|
1717 |
-
[
|
1718 |
-
[
|
1719 |
-
10068,
|
1720 |
-
10092
|
1721 |
-
]
|
1722 |
-
],
|
1723 |
-
"scope": "gutter_color"
|
1724 |
-
}
|
1725 |
-
},
|
1726 |
-
"selection":
|
1727 |
-
[
|
1728 |
-
[
|
1729 |
-
9232,
|
1730 |
-
9170
|
1731 |
-
]
|
1732 |
-
],
|
1733 |
-
"settings":
|
1734 |
-
{
|
1735 |
-
"function_name_status_row": 469,
|
1736 |
-
"syntax": "Packages/CSS/CSS.tmLanguage",
|
1737 |
-
"translate_tabs_to_spaces": false
|
1738 |
-
},
|
1739 |
-
"translation.x": 0.0,
|
1740 |
-
"translation.y": 7605.0,
|
1741 |
-
"zoom_level": 1.0
|
1742 |
-
},
|
1743 |
-
"stack_index": 6,
|
1744 |
-
"type": "text"
|
1745 |
-
}
|
1746 |
-
]
|
1747 |
-
}
|
1748 |
-
],
|
1749 |
-
"incremental_find":
|
1750 |
-
{
|
1751 |
-
"height": 25.0
|
1752 |
-
},
|
1753 |
-
"input":
|
1754 |
-
{
|
1755 |
-
"height": 34.0
|
1756 |
-
},
|
1757 |
-
"layout":
|
1758 |
-
{
|
1759 |
-
"cells":
|
1760 |
-
[
|
1761 |
-
[
|
1762 |
-
0,
|
1763 |
-
0,
|
1764 |
-
1,
|
1765 |
-
1
|
1766 |
-
]
|
1767 |
-
],
|
1768 |
-
"cols":
|
1769 |
-
[
|
1770 |
-
0.0,
|
1771 |
-
1.0
|
1772 |
-
],
|
1773 |
-
"rows":
|
1774 |
-
[
|
1775 |
-
0.0,
|
1776 |
-
1.0
|
1777 |
-
]
|
1778 |
-
},
|
1779 |
-
"menu_visible": true,
|
1780 |
-
"output.find_results":
|
1781 |
-
{
|
1782 |
-
"height": 0.0
|
1783 |
-
},
|
1784 |
-
"output.git":
|
1785 |
-
{
|
1786 |
-
"height": 100.0
|
1787 |
-
},
|
1788 |
-
"project": "cms-tree-page-view.sublime-project",
|
1789 |
-
"replace":
|
1790 |
-
{
|
1791 |
-
"height": 46.0
|
1792 |
-
},
|
1793 |
-
"save_all_on_build": true,
|
1794 |
-
"select_file":
|
1795 |
-
{
|
1796 |
-
"height": 0.0,
|
1797 |
-
"selected_items":
|
1798 |
-
[
|
1799 |
-
[
|
1800 |
-
"inde",
|
1801 |
-
"index.php"
|
1802 |
-
],
|
1803 |
-
[
|
1804 |
-
"readm",
|
1805 |
-
"readme.txt"
|
1806 |
-
],
|
1807 |
-
[
|
1808 |
-
"read",
|
1809 |
-
"readme.txt"
|
1810 |
-
],
|
1811 |
-
[
|
1812 |
-
"post.php",
|
1813 |
-
"wp-admin/post.php"
|
1814 |
-
],
|
1815 |
-
[
|
1816 |
-
"sharhe",
|
1817 |
-
"assets/themes/wp-theme-bonny-starter/parts/shared/header.php"
|
1818 |
-
],
|
1819 |
-
[
|
1820 |
-
"htmlfooter",
|
1821 |
-
"assets/themes/wp-theme-bonny-starter/parts/shared/html-footer.php"
|
1822 |
-
],
|
1823 |
-
[
|
1824 |
-
"partshead",
|
1825 |
-
"assets/themes/wp-theme-bonny-starter/parts/shared/html-header.php"
|
1826 |
-
],
|
1827 |
-
[
|
1828 |
-
"wp-config",
|
1829 |
-
"wp-config.php"
|
1830 |
-
],
|
1831 |
-
[
|
1832 |
-
"themereadme",
|
1833 |
-
"assets/themes/wp-theme-bonny-starter/README.md"
|
1834 |
-
],
|
1835 |
-
[
|
1836 |
-
"transxml",
|
1837 |
-
"wp-content/themes/ngm/XML/inc.translations.xml"
|
1838 |
-
],
|
1839 |
-
[
|
1840 |
-
"ncss",
|
1841 |
-
"wp-content/themes/ngm/assets/css/ngm.css"
|
1842 |
-
],
|
1843 |
-
[
|
1844 |
-
"example_company_1_en",
|
1845 |
-
"wp-content/themes/ngm/XML/example_company_1_en.xml"
|
1846 |
-
],
|
1847 |
-
[
|
1848 |
-
"ngm.css",
|
1849 |
-
"wp-content/themes/ngm/assets/css/ngm.css"
|
1850 |
-
],
|
1851 |
-
[
|
1852 |
-
"stylecss",
|
1853 |
-
"wp-content/themes/ngm/style.css"
|
1854 |
-
],
|
1855 |
-
[
|
1856 |
-
"wpconf",
|
1857 |
-
"wp-config.php"
|
1858 |
-
],
|
1859 |
-
[
|
1860 |
-
"neverstylecss",
|
1861 |
-
"app/wp/wp-content/themes/neverever/style-submit.css"
|
1862 |
-
],
|
1863 |
-
[
|
1864 |
-
"submit",
|
1865 |
-
"app/wp/wp-content/themes/neverever/template-submit.php"
|
1866 |
-
],
|
1867 |
-
[
|
1868 |
-
"anim",
|
1869 |
-
"app/wp/wp-content/themes/neverever/style-animations.css"
|
1870 |
-
],
|
1871 |
-
[
|
1872 |
-
"funct",
|
1873 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1874 |
-
],
|
1875 |
-
[
|
1876 |
-
"scripts.js",
|
1877 |
-
"app/wp/wp-content/themes/neverever/js/ep/scripts.js"
|
1878 |
-
],
|
1879 |
-
[
|
1880 |
-
"ep.js",
|
1881 |
-
"app/wp/wp-content/themes/neverever/ep/ep.js"
|
1882 |
-
],
|
1883 |
-
[
|
1884 |
-
"functions",
|
1885 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1886 |
-
],
|
1887 |
-
[
|
1888 |
-
"front-p",
|
1889 |
-
"app/wp/wp-content/themes/neverever/front-page.php"
|
1890 |
-
],
|
1891 |
-
[
|
1892 |
-
"bek",
|
1893 |
-
"app/wp/wp-content/themes/neverever/single-bekannelse.php"
|
1894 |
-
],
|
1895 |
-
[
|
1896 |
-
"function",
|
1897 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1898 |
-
],
|
1899 |
-
[
|
1900 |
-
"templatetop",
|
1901 |
-
"app/wp/wp-content/themes/neverever/template-top.php"
|
1902 |
-
],
|
1903 |
-
[
|
1904 |
-
"partshea",
|
1905 |
-
"app/wp/wp-content/themes/neverever/parts/shared/html-header.php"
|
1906 |
-
],
|
1907 |
-
[
|
1908 |
-
"neverfunction",
|
1909 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1910 |
-
],
|
1911 |
-
[
|
1912 |
-
"style.css",
|
1913 |
-
"app/wp/wp-content/themes/neverever/style.css"
|
1914 |
-
],
|
1915 |
-
[
|
1916 |
-
"wp-confi",
|
1917 |
-
"app/wp/wp-config.php"
|
1918 |
-
],
|
1919 |
-
[
|
1920 |
-
"scripts",
|
1921 |
-
"app/wp/wp-content/themes/neverever/js/ep/scripts.js"
|
1922 |
-
],
|
1923 |
-
[
|
1924 |
-
"query.php",
|
1925 |
-
"app/wp/wp-includes/query.php"
|
1926 |
-
],
|
1927 |
-
[
|
1928 |
-
"404",
|
1929 |
-
"app/wp/wp-content/themes/neverever/404.php"
|
1930 |
-
],
|
1931 |
-
[
|
1932 |
-
"wp-conf",
|
1933 |
-
"app/wp/wp-config.php"
|
1934 |
-
],
|
1935 |
-
[
|
1936 |
-
"single",
|
1937 |
-
"app/wp/wp-content/themes/neverever/single-bekannelse.php"
|
1938 |
-
],
|
1939 |
-
[
|
1940 |
-
"funtions",
|
1941 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1942 |
-
],
|
1943 |
-
[
|
1944 |
-
"front-e",
|
1945 |
-
"app/wp/wp-content/themes/neverever/ep/ep-simple-front-end-edit-buttons.php"
|
1946 |
-
],
|
1947 |
-
[
|
1948 |
-
"partfooter",
|
1949 |
-
"app/wp/wp-content/themes/neverever/parts/shared/footer.php"
|
1950 |
-
],
|
1951 |
-
[
|
1952 |
-
"parthed",
|
1953 |
-
"app/wp/wp-content/themes/neverever/parts/shared/header.php"
|
1954 |
-
],
|
1955 |
-
[
|
1956 |
-
"partheader",
|
1957 |
-
"app/wp/wp-content/themes/neverever/parts/shared/html-header.php"
|
1958 |
-
],
|
1959 |
-
[
|
1960 |
-
"cyclejs",
|
1961 |
-
"app/wp/wp-content/themes/neverever/js/jquery-cycle2/jquery.cycle2.core.js"
|
1962 |
-
],
|
1963 |
-
[
|
1964 |
-
"cycle",
|
1965 |
-
"app/wp/wp-content/themes/neverever/js/jquery-cycle2/cycle2.jquery.json"
|
1966 |
-
],
|
1967 |
-
[
|
1968 |
-
"themfunc",
|
1969 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1970 |
-
],
|
1971 |
-
[
|
1972 |
-
"front",
|
1973 |
-
"app/wp/wp-content/themes/neverever/ep/ep-simple-front-end-edit-buttons.php"
|
1974 |
-
],
|
1975 |
-
[
|
1976 |
-
"epfunct",
|
1977 |
-
"app/wp/wp-content/themes/neverever/ep/ep-functions.php"
|
1978 |
-
],
|
1979 |
-
[
|
1980 |
-
"header",
|
1981 |
-
"app/wp/wp-includes/theme-compat/header.php"
|
1982 |
-
],
|
1983 |
-
[
|
1984 |
-
"",
|
1985 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1986 |
-
],
|
1987 |
-
[
|
1988 |
-
"themefunctions",
|
1989 |
-
"app/wp/wp-content/themes/neverever/functions.php"
|
1990 |
-
],
|
1991 |
-
[
|
1992 |
-
"partsheae",
|
1993 |
-
"app/wp/wp-content/themes/neverever/parts/shared/header.php"
|
1994 |
-
],
|
1995 |
-
[
|
1996 |
-
"page.php",
|
1997 |
-
"app/wp/wp-content/themes/neverever/page.php"
|
1998 |
-
],
|
1999 |
-
[
|
2000 |
-
"html-foo",
|
2001 |
-
"app/wp/wp-content/themes/neverever/parts/shared/html-footer.php"
|
2002 |
-
],
|
2003 |
-
[
|
2004 |
-
"parts",
|
2005 |
-
"app/wp/wp-content/themes/neverever/parts/shared/header.php"
|
2006 |
-
],
|
2007 |
-
[
|
2008 |
-
"htmlheader",
|
2009 |
-
"app/wp/wp-content/themes/neverever/parts/shared/html-header.php"
|
2010 |
-
],
|
2011 |
-
[
|
2012 |
-
"config",
|
2013 |
-
"app/wp/wp-config.php"
|
2014 |
-
],
|
2015 |
-
[
|
2016 |
-
"wconfig",
|
2017 |
-
"app/wp/wp-config.php"
|
2018 |
-
],
|
2019 |
-
[
|
2020 |
-
"everstyle.css",
|
2021 |
-
"app/wp/wp-content/themes/neverever/style.css"
|
2022 |
-
],
|
2023 |
-
[
|
2024 |
-
"partsfooter",
|
2025 |
-
"app/wp/wp-content/themes/neverever/parts/shared/html-footer.php"
|
2026 |
-
],
|
2027 |
-
[
|
2028 |
-
"neverindex",
|
2029 |
-
"app/wp/wp-content/themes/neverever/index.php"
|
2030 |
-
],
|
2031 |
-
[
|
2032 |
-
"partsheader",
|
2033 |
-
"app/wp/wp-content/themes/neverever/parts/shared/header.php"
|
2034 |
-
],
|
2035 |
-
[
|
2036 |
-
"extrasel",
|
2037 |
-
"app/wp/wp-content/themes/neverever/js/jquery-extra-selectors.js"
|
2038 |
-
],
|
2039 |
-
[
|
2040 |
-
"nevereverfoo",
|
2041 |
-
"app/wp/wp-content/themes/neverever/parts/shared/footer.php"
|
2042 |
-
],
|
2043 |
-
[
|
2044 |
-
"footer",
|
2045 |
-
"app/wp/wp-includes/theme-compat/footer.php"
|
2046 |
-
],
|
2047 |
-
[
|
2048 |
-
"neverstyle",
|
2049 |
-
"app/wp/wp-content/themes/neverever/style.css"
|
2050 |
-
],
|
2051 |
-
[
|
2052 |
-
"select",
|
2053 |
-
"ep-theme/js/selectivizr.js"
|
2054 |
-
],
|
2055 |
-
[
|
2056 |
-
"sharedfooter",
|
2057 |
-
"ep-theme/parts/shared/html-footer.php"
|
2058 |
-
],
|
2059 |
-
[
|
2060 |
-
"ep-f",
|
2061 |
-
"ep-theme/ep/ep-functions.php"
|
2062 |
-
],
|
2063 |
-
[
|
2064 |
-
"index",
|
2065 |
-
"ep-theme/index.php"
|
2066 |
-
],
|
2067 |
-
[
|
2068 |
-
"style",
|
2069 |
-
"ep-theme/style.css"
|
2070 |
-
],
|
2071 |
-
[
|
2072 |
-
"ep-",
|
2073 |
-
"ep-theme/ep/ep-simple-front-end-edit-buttons.php"
|
2074 |
-
],
|
2075 |
-
[
|
2076 |
-
"simple",
|
2077 |
-
"simple_fields.php"
|
2078 |
-
],
|
2079 |
-
[
|
2080 |
-
"fields.php",
|
2081 |
-
"simple_fields.php"
|
2082 |
-
],
|
2083 |
-
[
|
2084 |
-
"class_simple_fields_field.php",
|
2085 |
-
"class_simple_fields_field.php"
|
2086 |
-
],
|
2087 |
-
[
|
2088 |
-
"js",
|
2089 |
-
"scripts.js"
|
2090 |
-
],
|
2091 |
-
[
|
2092 |
-
"simple_fields.php",
|
2093 |
-
"simple_fields.php"
|
2094 |
-
],
|
2095 |
-
[
|
2096 |
-
"_f",
|
2097 |
-
"simple_fields.php"
|
2098 |
-
],
|
2099 |
-
[
|
2100 |
-
"simple-f",
|
2101 |
-
".idea/Simple-Fields-GIT.iml"
|
2102 |
-
],
|
2103 |
-
[
|
2104 |
-
"simp",
|
2105 |
-
"simple_fields.php"
|
2106 |
-
],
|
2107 |
-
[
|
2108 |
-
"readme",
|
2109 |
-
"readme.txt"
|
2110 |
-
],
|
2111 |
-
[
|
2112 |
-
"func",
|
2113 |
-
"functions.php"
|
2114 |
-
],
|
2115 |
-
[
|
2116 |
-
"scrip",
|
2117 |
-
"scripts.js"
|
2118 |
-
],
|
2119 |
-
[
|
2120 |
-
"fun",
|
2121 |
-
"functions.php"
|
2122 |
-
],
|
2123 |
-
[
|
2124 |
-
"styl",
|
2125 |
-
"styles.css"
|
2126 |
-
],
|
2127 |
-
[
|
2128 |
-
".js",
|
2129 |
-
"trunk/scripts.js"
|
2130 |
-
],
|
2131 |
-
[
|
2132 |
-
"wpconfig",
|
2133 |
-
"playground/wordpress/wp-config.php"
|
2134 |
-
],
|
2135 |
-
[
|
2136 |
-
"re",
|
2137 |
-
"readme.txt"
|
2138 |
-
],
|
2139 |
-
[
|
2140 |
-
"st",
|
2141 |
-
"scripts.js"
|
2142 |
-
],
|
2143 |
-
[
|
2144 |
-
"in",
|
2145 |
-
"index.php"
|
2146 |
-
],
|
2147 |
-
[
|
2148 |
-
"options-permalink.php",
|
2149 |
-
"wordpress/wp-admin/options-permalink.php"
|
2150 |
-
],
|
2151 |
-
[
|
2152 |
-
"options-general.php",
|
2153 |
-
"wordpress/wp-admin/options-general.php"
|
2154 |
-
],
|
2155 |
-
[
|
2156 |
-
"scr",
|
2157 |
-
"scripts.js"
|
2158 |
-
],
|
2159 |
-
[
|
2160 |
-
"script",
|
2161 |
-
"scripts.js"
|
2162 |
-
],
|
2163 |
-
[
|
2164 |
-
"tut8",
|
2165 |
-
"demofiler/tut8.py"
|
2166 |
-
],
|
2167 |
-
[
|
2168 |
-
"template-",
|
2169 |
-
"wp-content/themes/johanochnystrom/template-coworkers.php"
|
2170 |
-
],
|
2171 |
-
[
|
2172 |
-
"author",
|
2173 |
-
"wp-content/themes/johanochnystrom/author.php"
|
2174 |
-
],
|
2175 |
-
[
|
2176 |
-
"johanfunc",
|
2177 |
-
"wp-content/themes/johanochnystrom/functions.php"
|
2178 |
-
],
|
2179 |
-
[
|
2180 |
-
"johanfunctions.php",
|
2181 |
-
"wp-content/themes/johanochnystrom/functions.php"
|
2182 |
-
],
|
2183 |
-
[
|
2184 |
-
"prodfilt",
|
2185 |
-
"mockups/johanochnystrom/js/modules/product_filter.js"
|
2186 |
-
],
|
2187 |
-
[
|
2188 |
-
"contentfunct",
|
2189 |
-
"wp-content/themes/johanochnystrom/functions.php"
|
2190 |
-
],
|
2191 |
-
[
|
2192 |
-
"contentfun",
|
2193 |
-
"wp-content/themes/jnatwork/functions.php"
|
2194 |
-
],
|
2195 |
-
[
|
2196 |
-
"api.json",
|
2197 |
-
"mockups/johanochnystrom/api.json"
|
2198 |
-
],
|
2199 |
-
[
|
2200 |
-
"filter.",
|
2201 |
-
"mockups/jnatwork/filter.json"
|
2202 |
-
]
|
2203 |
-
],
|
2204 |
-
"width": 0.0
|
2205 |
-
},
|
2206 |
-
"select_project":
|
2207 |
-
{
|
2208 |
-
"height": 500.0,
|
2209 |
-
"selected_items":
|
2210 |
-
[
|
2211 |
-
[
|
2212 |
-
"",
|
2213 |
-
"~/Documents/Localhost/EarthPeople/neverever-idiotbikten.sublime-project"
|
2214 |
-
],
|
2215 |
-
[
|
2216 |
-
"fiele",
|
2217 |
-
"/Users/bonny/Dropbox/Webb/simple-fields.sublime-project"
|
2218 |
-
],
|
2219 |
-
[
|
2220 |
-
"nigh",
|
2221 |
-
"/Users/bonny/Dropbox/Localhost/EarthPeople/viacom/wp-content/plugins/WordPress-Simple-Fields-master/playground nightly.sublime-project"
|
2222 |
-
],
|
2223 |
-
[
|
2224 |
-
"trib",
|
2225 |
-
"/Users/bonny/Dropbox/ep-trib.sublime-project"
|
2226 |
-
]
|
2227 |
-
],
|
2228 |
-
"width": 380.0
|
2229 |
-
},
|
2230 |
-
"select_symbol":
|
2231 |
-
{
|
2232 |
-
"height": 375.0,
|
2233 |
-
"selected_items":
|
2234 |
-
[
|
2235 |
-
[
|
2236 |
-
"ep_",
|
2237 |
-
"ep_d"
|
2238 |
-
],
|
2239 |
-
[
|
2240 |
-
"",
|
2241 |
-
"APICPictureTypeLookup"
|
2242 |
-
]
|
2243 |
-
],
|
2244 |
-
"width": 435.0
|
2245 |
-
},
|
2246 |
-
"settings":
|
2247 |
-
{
|
2248 |
-
},
|
2249 |
-
"show_minimap": true,
|
2250 |
-
"show_open_files": true,
|
2251 |
-
"show_tabs": true,
|
2252 |
-
"side_bar_visible": true,
|
2253 |
-
"side_bar_width": 330.0,
|
2254 |
-
"status_bar_visible": true,
|
2255 |
-
"template_settings":
|
2256 |
-
{
|
2257 |
-
}
|
2258 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
functions.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
*/
|
7 |
/*
|
8 |
add_action("cms_tree_page_view_post_can_edit", function($can_edit, $post_id) {
|
9 |
-
|
10 |
if ($post_id === 163) $can_edit = FALSE;
|
11 |
|
12 |
return $can_edit;
|
@@ -15,7 +15,7 @@ add_action("cms_tree_page_view_post_can_edit", function($can_edit, $post_id) {
|
|
15 |
|
16 |
|
17 |
add_action("cms_tree_page_view_post_user_can_add_inside", function($can_edit, $post_id) {
|
18 |
-
|
19 |
if ($post_id === 233) $can_edit = FALSE;
|
20 |
|
21 |
return $can_edit;
|
@@ -23,7 +23,7 @@ add_action("cms_tree_page_view_post_user_can_add_inside", function($can_edit, $p
|
|
23 |
}, 10, 2);
|
24 |
|
25 |
add_action("cms_tree_page_view_post_user_can_add_after", function($can_edit, $post_id) {
|
26 |
-
|
27 |
if ($post_id === 142) $can_edit = FALSE;
|
28 |
|
29 |
return $can_edit;
|
@@ -35,9 +35,9 @@ add_action("cms_tree_page_view_post_user_can_add_after", function($can_edit, $po
|
|
35 |
* Check if a post type is ignored
|
36 |
*/
|
37 |
function cms_tpv_post_type_is_ignored($post_type) {
|
38 |
-
|
39 |
$ignored_post_types = cms_tpv_get_ignored_post_types();
|
40 |
-
|
41 |
return in_array($post_type, $ignored_post_types);
|
42 |
|
43 |
}
|
@@ -53,13 +53,36 @@ function cms_tpv_get_ignored_post_types() {
|
|
53 |
);
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
/**
|
57 |
* Use the ajax action-thingie to catch our form with new pages
|
58 |
* Add pages and then redirect to...?
|
59 |
*/
|
60 |
function cms_tpv_add_pages() {
|
61 |
|
62 |
-
|
|
|
|
|
|
|
63 |
/*
|
64 |
Array
|
65 |
(
|
@@ -68,7 +91,7 @@ function cms_tpv_add_pages() {
|
|
68 |
(
|
69 |
[0] => xxxxx
|
70 |
[1] => yyyy
|
71 |
-
[2] =>
|
72 |
)
|
73 |
|
74 |
[cms_tpv_add_type] => inside
|
@@ -107,25 +130,25 @@ function cms_tpv_add_pages() {
|
|
107 |
}
|
108 |
|
109 |
$arr_post_names_count = sizeof($arr_post_names);
|
110 |
-
|
111 |
// check that there are pages left
|
112 |
if (empty($arr_post_names)) die("Error: no pages to add.");
|
113 |
|
114 |
$ref_post = get_post($ref_post_id);
|
115 |
if (NULL === $ref_post) die("Error: could not load reference post.");
|
116 |
-
|
117 |
// Make room for our new pages
|
118 |
// Get all pages at a level level and loop until our reference page
|
119 |
-
// and then all pages after that one will get it's menu_order
|
120 |
// increased by the same number as the number of new posts we're gonna add
|
121 |
-
|
122 |
$ok_to_continue_by_permission = TRUE;
|
123 |
$post_type_object = get_post_type_object($ref_post->post_type);
|
124 |
|
125 |
$post_parent = 0;
|
126 |
if ("after" === $post_position) {
|
127 |
$post_parent = $ref_post->post_parent;
|
128 |
-
$ok_to_continue_by_permission = apply_filters("cms_tree_page_view_post_user_can_add_after", current_user_can( $post_type_object->cap->create_posts, $ref_post_id), $ref_post_id);
|
129 |
} elseif ("inside" === $post_position) {
|
130 |
$post_parent = $ref_post->ID;
|
131 |
$ok_to_continue_by_permission = apply_filters("cms_tree_page_view_post_user_can_add_inside", current_user_can( $post_type_object->cap->create_posts, $ref_post_id), $ref_post_id);
|
@@ -165,27 +188,30 @@ function cms_tpv_add_pages() {
|
|
165 |
if (sizeof($posts) > 0) {
|
166 |
|
167 |
if ("after" === $post_position) {
|
168 |
-
|
169 |
$has_passed_ref_post = FALSE;
|
170 |
foreach ($posts as $one_post) {
|
171 |
-
|
172 |
if ($has_passed_ref_post) {
|
173 |
-
|
174 |
$post_update = array(
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
179 |
if (0 ===$return_id) die( "Error: could not update post with id " . $post_update->ID . "<br>Technical details: " . print_r($post_update) );
|
180 |
|
181 |
}
|
182 |
|
183 |
if ( ! $has_passed_ref_post && $ref_post->ID === $one_post->ID ) {
|
184 |
$has_passed_ref_post = TRUE;
|
185 |
-
}
|
186 |
|
187 |
}
|
188 |
-
|
189 |
$new_menu_order = $ref_post->menu_order;
|
190 |
|
191 |
} elseif ("inside" === $post_position) {
|
@@ -193,7 +219,7 @@ function cms_tpv_add_pages() {
|
|
193 |
// in inside, place at beginning
|
194 |
// so just get first post and use that menu order as base
|
195 |
$new_menu_order = $posts[0]->menu_order - $arr_post_names_count;
|
196 |
-
|
197 |
}
|
198 |
|
199 |
|
@@ -217,13 +243,13 @@ function cms_tpv_add_pages() {
|
|
217 |
|
218 |
$new_menu_order++;
|
219 |
$newpost_args = array(
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
|
228 |
if (0 === $new_post_id) {
|
229 |
die("Error: could not add post");
|
@@ -249,7 +275,7 @@ function cms_tpv_add_pages() {
|
|
249 |
function cms_tpv_admin_head() {
|
250 |
|
251 |
if (!cms_tpv_is_one_of_our_pages()) return;
|
252 |
-
|
253 |
cms_tpv_setup_postsoverview();
|
254 |
|
255 |
global $cms_tpv_view;
|
@@ -291,7 +317,7 @@ function cms_tpv_is_one_of_our_pages() {
|
|
291 |
$post_type = cms_tpv_get_selected_post_type();
|
292 |
|
293 |
if (! function_exists("get_current_screen")) return FALSE;
|
294 |
-
|
295 |
$current_screen = get_current_screen();
|
296 |
$is_plugin_page = FALSE;
|
297 |
|
@@ -333,7 +359,7 @@ function cms_admin_enqueue_scripts() {
|
|
333 |
wp_enqueue_script( "jquery-jstree", CMS_TPV_URL . "scripts/jquery.jstree.js", false, CMS_TPV_VERSION);
|
334 |
wp_enqueue_script( "jquery-alerts", CMS_TPV_URL . "scripts/jquery.alerts.js", false, CMS_TPV_VERSION);
|
335 |
// wp_enqueue_script( "hoverIntent");
|
336 |
-
wp_enqueue_script( "cms_tree_page_view", CMS_TPV_URL . "scripts/cms_tree_page_view.js", false, CMS_TPV_VERSION);
|
337 |
|
338 |
wp_enqueue_style( "cms_tpv_styles", CMS_TPV_URL . "styles/styles.css", false, CMS_TPV_VERSION );
|
339 |
wp_enqueue_style( "jquery-alerts", CMS_TPV_URL . "styles/jquery.alerts.css", false, CMS_TPV_VERSION );
|
@@ -384,7 +410,7 @@ function cms_tpv_load_textdomain() {
|
|
384 |
}
|
385 |
|
386 |
function cms_tpv_admin_init() {
|
387 |
-
|
388 |
// DEBUG
|
389 |
//wp_enqueue_script( "jquery-hotkeys" );
|
390 |
|
@@ -395,6 +421,57 @@ function cms_tpv_admin_init() {
|
|
395 |
#add_settings_section("cms_tree_page_view_settings", "cms_tree_page_view", "", "");
|
396 |
#register_setting( 'cms_tree_page_view_settings', "post-type-dashboard-post" );
|
397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
}
|
400 |
|
@@ -407,14 +484,14 @@ function cms_tpv_setup_postsoverview() {
|
|
407 |
$current_screen = get_current_screen();
|
408 |
|
409 |
if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
|
410 |
-
|
411 |
// Ok, this is a post overview page that we are enabled for
|
412 |
add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
|
413 |
|
414 |
cmstpv_postoverview_head();
|
415 |
|
416 |
}
|
417 |
-
|
418 |
}
|
419 |
|
420 |
/**
|
@@ -452,7 +529,7 @@ function cmstpv_postoverview_head() {
|
|
452 |
function cmstpv_filter_views_edit_postsoverview($filter_var) {
|
453 |
|
454 |
$current_screen = get_current_screen();
|
455 |
-
|
456 |
ob_start();
|
457 |
cms_tpv_print_common_tree_stuff();
|
458 |
$tree_common_stuff = ob_get_clean();
|
@@ -488,13 +565,13 @@ function cmstpv_filter_views_edit_postsoverview($filter_var) {
|
|
488 |
|
489 |
// Output tree related stuff if that view/mode is selected
|
490 |
if (isset($_GET["mode"]) && $_GET["mode"] === "tree") {
|
491 |
-
|
492 |
$out .= sprintf('
|
493 |
<div class="cmstpv-postsoverview-wrap">
|
494 |
%1$s
|
495 |
</div>
|
496 |
', $tree_common_stuff);
|
497 |
-
|
498 |
}
|
499 |
|
500 |
echo $out;
|
@@ -525,7 +602,7 @@ function cms_tpv_set_plugin_row_meta($links, $file) {
|
|
525 |
* Save settings, called when saving settings in general > cms tree page view
|
526 |
*/
|
527 |
function cms_tpv_save_settings() {
|
528 |
-
|
529 |
if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings" && check_admin_referer('update-options')) {
|
530 |
|
531 |
$options = array();
|
@@ -543,7 +620,7 @@ function cms_tpv_save_settings() {
|
|
543 |
* Add widget to dashboard
|
544 |
*/
|
545 |
function cms_tpv_wp_dashboard_setup() {
|
546 |
-
|
547 |
// echo "setup dashboard";
|
548 |
|
549 |
// add dashboard to capability edit_pages only
|
@@ -573,11 +650,11 @@ function cms_tpv_dashboard($post_type = "") {
|
|
573 |
// Add items to the wp admin menu
|
574 |
function cms_tpv_admin_menu() {
|
575 |
|
576 |
-
// add
|
577 |
$options = cms_tpv_get_options();
|
578 |
|
579 |
foreach ($options["menu"] as $one_menu_post_type) {
|
580 |
-
|
581 |
if ( cms_tpv_post_type_is_ignored($one_menu_post_type) ) {
|
582 |
continue;
|
583 |
}
|
@@ -588,7 +665,7 @@ function cms_tpv_admin_menu() {
|
|
588 |
} else {
|
589 |
$slug = "edit.php?post_type=$one_menu_post_type";
|
590 |
}
|
591 |
-
|
592 |
$post_type_object = get_post_type_object($one_menu_post_type);
|
593 |
|
594 |
// Only try to add menu if we got a valid post type object
|
@@ -606,7 +683,7 @@ function cms_tpv_admin_menu() {
|
|
606 |
$page_title = apply_filters("cms_tree_page_view_options_page_title", CMS_TPV_NAME);
|
607 |
$menu_title = apply_filters("cms_tree_page_view_options_menu_title", CMS_TPV_NAME);
|
608 |
add_submenu_page( 'options-general.php', $page_title, $menu_title, "administrator", "cms-tpv-options", "cms_tpv_options");
|
609 |
-
|
610 |
}
|
611 |
|
612 |
/**
|
@@ -616,31 +693,31 @@ function cms_tpv_options() {
|
|
616 |
|
617 |
?>
|
618 |
<div class="wrap">
|
619 |
-
|
620 |
<?php cms_tpv_show_annoying_box(); ?>
|
621 |
-
|
622 |
-
<?php screen_icon(); ?>
|
623 |
<h2><?php echo CMS_TPV_NAME ?> <?php _e("settings", 'cms-tree-page-view') ?></h2>
|
624 |
|
625 |
<form method="post" action="options.php" class="cmtpv_options_form">
|
626 |
-
|
627 |
<?php wp_nonce_field('update-options'); ?>
|
628 |
-
|
629 |
<h3><?php _e("Select where to show a tree for pages and custom post types", 'cms-tree-page-view')?></h3>
|
630 |
-
|
631 |
<table class="form-table">
|
632 |
-
|
633 |
<tbody>
|
634 |
-
|
635 |
<?php
|
636 |
-
|
637 |
$options = cms_tpv_get_options();
|
638 |
|
639 |
$post_types = get_post_types(array(
|
640 |
"show_ui" => TRUE
|
641 |
), "objects");
|
642 |
|
643 |
-
|
644 |
$arr_page_options = array();
|
645 |
foreach ($post_types as $one_post_type) {
|
646 |
|
@@ -649,7 +726,7 @@ function cms_tpv_options() {
|
|
649 |
}
|
650 |
|
651 |
$name = $one_post_type->name;
|
652 |
-
|
653 |
if ($name === "post") {
|
654 |
// no support for pages. you could show them.. but since we can't reorder them there is not idea to show them.. or..?
|
655 |
// 14 jul 2011: ok, let's enable it for posts too. some people says it useful
|
@@ -663,7 +740,7 @@ function cms_tpv_options() {
|
|
663 |
$arr_page_options[] = "post-type-dashboard-$name";
|
664 |
$arr_page_options[] = "post-type-menu-$name";
|
665 |
$arr_page_options[] = "post-type-postsoverview-$name";
|
666 |
-
|
667 |
echo "<tr>";
|
668 |
|
669 |
echo "<th scope='row'>";
|
@@ -673,10 +750,10 @@ function cms_tpv_options() {
|
|
673 |
echo "<td>";
|
674 |
|
675 |
echo "<p>";
|
676 |
-
|
677 |
$checked = (in_array($name, $options["dashboard"])) ? " checked='checked' " : "";
|
678 |
echo "<input $checked type='checkbox' name='post-type-dashboard[]' value='$name' id='post-type-dashboard-$name' /> <label for='post-type-dashboard-$name'>" . __("On dashboard", 'cms-tree-page-view') . "</label>";
|
679 |
-
|
680 |
echo "<br />";
|
681 |
$checked = (in_array($name, $options["menu"])) ? " checked='checked' " : "";
|
682 |
echo "<input $checked type='checkbox' name='post-type-menu[]' value='$name' id='post-type-menu-$name' /> <label for='post-type-menu-$name'>" . __("In menu", 'cms-tree-page-view') . "</label>";
|
@@ -708,7 +785,7 @@ function cms_tpv_options() {
|
|
708 |
</form>
|
709 |
|
710 |
</div>
|
711 |
-
|
712 |
<?php
|
713 |
}
|
714 |
|
@@ -719,7 +796,7 @@ function cms_tpv_options() {
|
|
719 |
function cms_tpv_get_options() {
|
720 |
|
721 |
$arr_options = (array) get_option('cms_tpv_options');
|
722 |
-
|
723 |
if (array_key_exists('dashboard', $arr_options)) {
|
724 |
$arr_options['dashboard'] = (array) @$arr_options['dashboard'];
|
725 |
} else {
|
@@ -731,13 +808,13 @@ function cms_tpv_get_options() {
|
|
731 |
} else {
|
732 |
$arr_options['menu'] = array();
|
733 |
}
|
734 |
-
|
735 |
if (array_key_exists('postsoverview', $arr_options)) {
|
736 |
$arr_options['postsoverview'] = (array) @$arr_options['postsoverview'];
|
737 |
} else {
|
738 |
$arr_options['postsoverview'] = array();
|
739 |
}
|
740 |
-
|
741 |
return $arr_options;
|
742 |
|
743 |
}
|
@@ -757,7 +834,7 @@ function cms_tpv_get_selected_post_type() {
|
|
757 |
$page = isset($_GET["page"]) ? $_GET["page"] : "";
|
758 |
$post_type = str_replace("cms-tpv-page-", "", $page);
|
759 |
}
|
760 |
-
|
761 |
if (!$post_type) { $post_type = "post"; }
|
762 |
return $post_type;
|
763 |
}
|
@@ -766,7 +843,7 @@ function cms_tpv_get_selected_post_type() {
|
|
766 |
* Determine if a post type is considered hierarchical
|
767 |
*/
|
768 |
function cms_tpv_is_post_type_hierarchical($post_type_object) {
|
769 |
-
$is_hierarchical = $post_type_object->hierarchical;
|
770 |
// special case for posts, fake-support hierachical
|
771 |
if ("post" == $post_type_object->name) {
|
772 |
$is_hierarchical = true;
|
@@ -824,13 +901,13 @@ function cms_tpv_get_wpml_post_counts($post_type) {
|
|
824 |
* Print tree stuff that is common for both dashboard and page
|
825 |
*/
|
826 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
827 |
-
|
828 |
global $sitepress, $cms_tpv_view, $wpdb;
|
829 |
|
830 |
if ( ! $post_type ) {
|
831 |
$post_type = cms_tpv_get_selected_post_type();
|
832 |
}
|
833 |
-
|
834 |
$post_type_object = get_post_type_object($post_type);
|
835 |
$get_pages_args = array("post_type" => $post_type);
|
836 |
|
@@ -846,7 +923,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
846 |
$wmpl_active_for_post = TRUE;
|
847 |
$wpml_current_lang = $sitepress->get_current_language();
|
848 |
}
|
849 |
-
|
850 |
}
|
851 |
|
852 |
$status_data_attributes = array("all" => "", "publish" => "", "trash" => "");
|
@@ -856,7 +933,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
856 |
|
857 |
// Count code for WPML, mostly taken/inspired from WPML Multilingual CMS, sitepress.class.php
|
858 |
$langs = array();
|
859 |
-
|
860 |
$wpml_post_counts = cms_tpv_get_wpml_post_counts($post_type);
|
861 |
|
862 |
$post_count_all = (int) @$wpml_post_counts["private"][$wpml_current_lang] + (int) @$wpml_post_counts["future"][$wpml_current_lang] + (int) @$wpml_post_counts["publish"][$wpml_current_lang] + (int) @$wpml_post_counts["draft"][$wpml_current_lang];
|
@@ -880,7 +957,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
880 |
$post_count_trash = $post_count->trash;
|
881 |
}
|
882 |
|
883 |
-
|
884 |
// output js for the root/top level
|
885 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
886 |
// @todo: make into function since used at other places
|
@@ -892,7 +969,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
892 |
$jstree_open[$i] = (int) str_replace("#cms-tpv-", "", $jstree_open[$i]);
|
893 |
}
|
894 |
}
|
895 |
-
|
896 |
|
897 |
ob_start();
|
898 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
@@ -903,7 +980,11 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
903 |
<script type="text/javascript">
|
904 |
cms_tpv_jsondata["<?php echo $post_type ?>"] = <?php echo $json_data ?>;
|
905 |
</script>
|
906 |
-
|
|
|
|
|
|
|
|
|
907 |
<div class="cms_tpv_wrapper">
|
908 |
<input type="hidden" name="cms_tpv_meta_post_type" value="<?php echo $post_type ?>" />
|
909 |
<input type="hidden" name="cms_tpv_meta_post_type_hierarchical" value="<?php echo (int) cms_tpv_is_post_type_hierarchical($post_type_object) ?>" />
|
@@ -964,7 +1045,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
964 |
<span class="count">(<?php echo $post_count_trash ?>)</span>
|
965 |
</a>
|
966 |
</li>
|
967 |
-
|
968 |
<?php
|
969 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
970 |
?>
|
@@ -985,15 +1066,15 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
985 |
</li>
|
986 |
|
987 |
</ul>
|
988 |
-
|
989 |
<div class="cms_tpv_working">
|
990 |
<?php _e("Loading...", 'cms-tree-page-view') ?>
|
991 |
</div>
|
992 |
|
993 |
<div class="cms_tpv_message updated below-h2 hidden"><p>Message goes here.</p></div>
|
994 |
-
|
995 |
<div class="updated below-h2 hidden cms_tpv_search_no_hits"><p><?php _e("Search: no pages found", 'cms-tree-page-view') ?></p></div>
|
996 |
-
|
997 |
<div class="cms_tpv_container tree-default">
|
998 |
<?php _e("Loading tree", 'cms-tree-page-view') ?>
|
999 |
</div>
|
@@ -1015,9 +1096,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
1015 |
<p class="cms_tpv_action_add_and_edit_page">
|
1016 |
|
1017 |
<span class='cms_tpv_action_add_page'><?php echo $post_type_object->labels->add_new_item ?></span>
|
1018 |
-
|
1019 |
<a class='cms_tpv_action_add_page_after' href="#" title='<?php _e("Add new page after", "cms-tree-page-view")?>' ><?php _e("After", "cms-tree-page-view")?></a>
|
1020 |
-
|
1021 |
<?php
|
1022 |
// if post type is hierarchical we can add pages inside
|
1023 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
@@ -1030,13 +1111,13 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
1030 |
</p>
|
1031 |
|
1032 |
<div class="cms_tpv_action_add_doit">
|
1033 |
-
|
1034 |
<form method="post" action="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>">
|
1035 |
|
1036 |
<input type="hidden" name="action" value="cms_tpv_add_pages">
|
1037 |
<input type="hidden" name="ref_post_id" value="">
|
1038 |
<?php wp_nonce_field("cms-tpv-add-pages") ?>
|
1039 |
-
|
1040 |
<!-- lang for wpml -->
|
1041 |
<input type="hidden" name="lang" value="">
|
1042 |
|
@@ -1077,9 +1158,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
1077 |
</div>
|
1078 |
|
1079 |
<dl>
|
1080 |
-
<dt><?php _e("Last modified",
|
1081 |
<dd>
|
1082 |
-
<span class="cms_tpv_page_actions_modified_time"></span> <?php _e("by", "cms-tree-page-view") ?>
|
1083 |
<span class="cms_tpv_page_actions_modified_by"></span>
|
1084 |
</dd>
|
1085 |
<dt><?php _e("Page ID", "cms-tree-page-view") ?></dt>
|
@@ -1093,13 +1174,13 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
1093 |
}
|
1094 |
|
1095 |
if (empty($pages)) {
|
1096 |
-
|
1097 |
echo '<div class="updated fade below-h2"><p>' . __("No posts found.", 'cms-tree-page-view') . '</p></div>';
|
1098 |
-
|
1099 |
}
|
1100 |
|
1101 |
?>
|
1102 |
-
|
1103 |
</div>
|
1104 |
<?php
|
1105 |
} // func
|
@@ -1119,7 +1200,7 @@ function cms_tpv_pages_page() {
|
|
1119 |
} else {
|
1120 |
$post_new_file = 'post-new.php';
|
1121 |
}
|
1122 |
-
|
1123 |
?>
|
1124 |
<div class="wrap">
|
1125 |
<?php echo get_screen_icon(); ?>
|
@@ -1134,7 +1215,7 @@ function cms_tpv_pages_page() {
|
|
1134 |
}
|
1135 |
|
1136 |
?></h2>
|
1137 |
-
|
1138 |
<?php
|
1139 |
cms_tpv_print_common_tree_stuff($post_type);
|
1140 |
?>
|
@@ -1175,13 +1256,13 @@ function cms_tpv_get_pages($args = null) {
|
|
1175 |
if ($r["view"] == "all") {
|
1176 |
$get_posts_args["post_status"] = "any"; // "any" seems to get all but auto-drafts
|
1177 |
} elseif ($r["view"] == "trash") {
|
1178 |
-
|
1179 |
$get_posts_args["post_status"] = "trash";
|
1180 |
|
1181 |
// if getting trash, just get all pages, don't care about parent?
|
1182 |
// because otherwise we have to mix trashed pages and pages with other statuses. messy.
|
1183 |
$get_posts_args["post_parent"] = null;
|
1184 |
-
|
1185 |
} else {
|
1186 |
$get_posts_args["post_status"] = "publish";
|
1187 |
}
|
@@ -1202,7 +1283,7 @@ function cms_tpv_get_pages($args = null) {
|
|
1202 |
// Note: get_pages filter uses orderby comma separated and with the key sort_column
|
1203 |
$get_posts_args["sort_column"] = str_replace(" ", ", ", $get_posts_args["orderby"]);
|
1204 |
$pages = apply_filters('get_pages', $pages, $get_posts_args);
|
1205 |
-
|
1206 |
return $pages;
|
1207 |
|
1208 |
}
|
@@ -1223,8 +1304,8 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1223 |
|
1224 |
global $current_screen;
|
1225 |
$screen = convert_to_screen("edit");
|
1226 |
-
#return;
|
1227 |
-
|
1228 |
// If this is set to null then quick/bul edit stops working on posts (not pages)
|
1229 |
// If did set it to null sometime. Can't remember why...
|
1230 |
// $screen->post_type = null;
|
@@ -1237,14 +1318,14 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1237 |
unset($posts_columns["cb"], $posts_columns["title"], $posts_columns["author"], $posts_columns["categories"], $posts_columns["tags"], $posts_columns["date"]);
|
1238 |
|
1239 |
global $post;
|
1240 |
-
|
1241 |
// Translated post statuses
|
1242 |
$post_statuses = get_post_statuses();
|
1243 |
|
1244 |
-
|
1245 |
?>[<?php
|
1246 |
for ($i=0, $pagesCount = sizeof($arrPages); $i<$pagesCount; $i++) {
|
1247 |
-
|
1248 |
$onePage = $arrPages[$i];
|
1249 |
$tmpPost = $post;
|
1250 |
$post = $onePage;
|
@@ -1255,7 +1336,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1255 |
$content = esc_html($onePage->post_content);
|
1256 |
$content = str_replace(array("\n","\r"), "", $content);
|
1257 |
$hasChildren = false;
|
1258 |
-
|
1259 |
// if viewing trash, don't get children. we watch them "flat" instead
|
1260 |
if ($view == "trash") {
|
1261 |
} else {
|
@@ -1270,13 +1351,13 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1270 |
if (!$hasChildren) {
|
1271 |
$strState = '';
|
1272 |
}
|
1273 |
-
|
1274 |
// type of node
|
1275 |
$rel = $onePage->post_status;
|
1276 |
if ($onePage->post_password) {
|
1277 |
$rel = "password";
|
1278 |
}
|
1279 |
-
|
1280 |
// modified time
|
1281 |
$post_modified_time = strtotime($onePage->post_modified);
|
1282 |
$post_modified_time = date_i18n(get_option('date_format'), $post_modified_time, false);
|
@@ -1288,7 +1369,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1288 |
if (empty($post_author)) {
|
1289 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1290 |
}
|
1291 |
-
|
1292 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
1293 |
|
1294 |
$title = apply_filters("cms_tree_page_view_post_title", $title, $onePage);
|
@@ -1300,7 +1381,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1300 |
$arr_page_css_styles = array();
|
1301 |
$user_can_edit_page = apply_filters("cms_tree_page_view_post_can_edit", current_user_can( $post_type_object->cap->edit_post, $page_id), $page_id);
|
1302 |
$user_can_add_inside = apply_filters("cms_tree_page_view_post_user_can_add_inside", current_user_can( $post_type_object->cap->create_posts, $page_id), $page_id);
|
1303 |
-
$user_can_add_after = apply_filters("cms_tree_page_view_post_user_can_add_after", current_user_can( $post_type_object->cap->create_posts, $page_id), $page_id);
|
1304 |
|
1305 |
if ( $user_can_edit_page ) {
|
1306 |
$arr_page_css_styles[] = "cms_tpv_user_can_edit_page_yes";
|
@@ -1413,10 +1494,10 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1413 |
if ($i < $pagesCount-1) {
|
1414 |
?>,<?php
|
1415 |
}
|
1416 |
-
|
1417 |
// return orgiginal post
|
1418 |
$post = $tmpPost;
|
1419 |
-
|
1420 |
}
|
1421 |
?>]<?php
|
1422 |
}
|
@@ -1441,13 +1522,13 @@ function cms_tpv_get_childs() {
|
|
1441 |
}
|
1442 |
|
1443 |
if ($action) {
|
1444 |
-
|
1445 |
if ($search) {
|
1446 |
-
|
1447 |
// find all pages that contains $search
|
1448 |
// collect all post_parent
|
1449 |
// for each parent id traverse up until post_parent is 0, saving all ids on the way
|
1450 |
-
|
1451 |
// what to search: since all we see in the GUI is the title, just search that
|
1452 |
global $wpdb;
|
1453 |
$sqlsearch = "%{$search}%";
|
@@ -1458,7 +1539,7 @@ function cms_tpv_get_childs() {
|
|
1458 |
foreach ($hits as $oneHit) {
|
1459 |
$arrNodesToOpen[] = $oneHit->post_parent;
|
1460 |
}
|
1461 |
-
|
1462 |
$arrNodesToOpen = array_unique($arrNodesToOpen);
|
1463 |
$arrNodesToOpen2 = array();
|
1464 |
// find all parents to the arrnodestopen
|
@@ -1475,14 +1556,14 @@ function cms_tpv_get_childs() {
|
|
1475 |
}
|
1476 |
}
|
1477 |
}
|
1478 |
-
|
1479 |
$arrNodesToOpen = array_merge($arrNodesToOpen, $arrNodesToOpen2);
|
1480 |
$sReturn = "";
|
1481 |
#foreach ($arrNodesToOpen as $oneNodeID) {
|
1482 |
# $sReturn .= "cms-tpv-{$oneNodeID},";
|
1483 |
#}
|
1484 |
#$sReturn = preg_replace("/,$/", "", $sReturn);
|
1485 |
-
|
1486 |
foreach ($arrNodesToOpen as $oneNodeID) {
|
1487 |
$sReturn .= "\"#cms-tpv-{$oneNodeID}\",";
|
1488 |
}
|
@@ -1490,7 +1571,7 @@ function cms_tpv_get_childs() {
|
|
1490 |
if ($sReturn) {
|
1491 |
$sReturn = "[" . $sReturn . "]";
|
1492 |
}
|
1493 |
-
|
1494 |
if ($sReturn) {
|
1495 |
echo $sReturn;
|
1496 |
} else {
|
@@ -1501,7 +1582,7 @@ function cms_tpv_get_childs() {
|
|
1501 |
exit;
|
1502 |
|
1503 |
} else {
|
1504 |
-
|
1505 |
// regular get
|
1506 |
|
1507 |
$id = (isset($_GET["id"])) ? $_GET["id"] : null;
|
@@ -1532,7 +1613,7 @@ function cms_tpv_add_page() {
|
|
1532 |
|
1533 |
/*
|
1534 |
(
|
1535 |
-
[action] => cms_tpv_add_page
|
1536 |
[pageID] => cms-tpv-1318
|
1537 |
type
|
1538 |
)
|
@@ -1546,7 +1627,7 @@ function cms_tpv_add_page() {
|
|
1546 |
if (!$page_title) { $page_title = __("New page", 'cms-tree-page-view'); }
|
1547 |
|
1548 |
$ref_post = get_post($pageID);
|
1549 |
-
|
1550 |
if ("after" == $type) {
|
1551 |
|
1552 |
/*
|
@@ -1554,8 +1635,8 @@ function cms_tpv_add_page() {
|
|
1554 |
*/
|
1555 |
|
1556 |
// update menu_order of all pages below our page
|
1557 |
-
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_parent = %d AND menu_order >= %d AND id <> %d ", $ref_post->post_parent, $ref_post->menu_order, $ref_post->ID ) );
|
1558 |
-
|
1559 |
// create a new page and then goto it
|
1560 |
$post_new = array();
|
1561 |
$post_new["menu_order"] = $ref_post->menu_order+1;
|
@@ -1574,7 +1655,7 @@ function cms_tpv_add_page() {
|
|
1574 |
*/
|
1575 |
|
1576 |
// update menu_order, so our new post is the only one with order 0
|
1577 |
-
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE post_parent = %d", $ref_post->ID) );
|
1578 |
|
1579 |
$post_new = array();
|
1580 |
$post_new["menu_order"] = 0;
|
@@ -1599,8 +1680,8 @@ function cms_tpv_add_page() {
|
|
1599 |
// fail, tell js
|
1600 |
echo "0";
|
1601 |
}
|
1602 |
-
|
1603 |
-
|
1604 |
exit;
|
1605 |
}
|
1606 |
|
@@ -1610,7 +1691,7 @@ function cms_tpv_move_page() {
|
|
1610 |
/*
|
1611 |
the node that was moved,
|
1612 |
the reference node in the move,
|
1613 |
-
the new position relative to the reference node (one of "before", "after" or "inside"),
|
1614 |
inside = man placerar den under en sida som inte har några barn?
|
1615 |
*/
|
1616 |
|
@@ -1625,23 +1706,23 @@ function cms_tpv_move_page() {
|
|
1625 |
|
1626 |
$node_id = str_replace("cms-tpv-", "", $node_id);
|
1627 |
$ref_node_id = str_replace("cms-tpv-", "", $ref_node_id);
|
1628 |
-
|
1629 |
$_POST["skip_sitepress_actions"] = true; // sitepress.class.php->save_post_actions
|
1630 |
-
|
1631 |
if ($node_id && $ref_node_id) {
|
1632 |
#echo "\nnode_id: $node_id";
|
1633 |
-
#echo "\ntype: $type";
|
1634 |
-
|
1635 |
$post_node = get_post($node_id);
|
1636 |
$post_ref_node = get_post($ref_node_id);
|
1637 |
-
|
1638 |
// first check that post_node (moved post) is not in trash. we do not move them
|
1639 |
if ($post_node->post_status == "trash") {
|
1640 |
exit;
|
1641 |
}
|
1642 |
|
1643 |
if ( "inside" == $type ) {
|
1644 |
-
|
1645 |
// post_node is moved inside ref_post_node
|
1646 |
// add ref_post_node as parent to post_node and set post_nodes menu_order to 0
|
1647 |
// @todo: shouldn't menu order of existing items be changed?
|
@@ -1652,11 +1733,11 @@ function cms_tpv_move_page() {
|
|
1652 |
"post_type" => $post_ref_node->post_type
|
1653 |
);
|
1654 |
wp_update_post( $post_to_save );
|
1655 |
-
|
1656 |
echo "did inside";
|
1657 |
-
|
1658 |
} elseif ( "before" == $type ) {
|
1659 |
-
|
1660 |
// post_node is placed before ref_post_node
|
1661 |
// update menu_order of all pages with a menu order more than or equal ref_node_post and with the same parent as ref_node_post
|
1662 |
// we do this so there will be room for our page if it's the first page
|
@@ -1666,7 +1747,7 @@ function cms_tpv_move_page() {
|
|
1666 |
// update menu order with +1 for all pages below ref_node, this should fix the problem with "unmovable" pages because of
|
1667 |
// multiple pages with the same menu order (...which is not the fault of this plugin!)
|
1668 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE menu_order >= %d", $post_ref_node->menu_order+1) );
|
1669 |
-
|
1670 |
$post_to_save = array(
|
1671 |
"ID" => $post_node->ID,
|
1672 |
"menu_order" => $post_ref_node->menu_order,
|
@@ -1678,9 +1759,9 @@ function cms_tpv_move_page() {
|
|
1678 |
echo "did before";
|
1679 |
|
1680 |
} elseif ( "after" == $type ) {
|
1681 |
-
|
1682 |
// post_node is placed after ref_post_node
|
1683 |
-
|
1684 |
// update menu_order of all posts with the same parent ref_post_node and with a menu_order of the same as ref_post_node, but do not include ref_post_node
|
1685 |
// +2 since multiple can have same menu order and we want our moved post to have a unique "spot"
|
1686 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_parent = %d AND menu_order >= %d AND id <> %d ", $post_ref_node->post_parent, $post_ref_node->menu_order, $post_ref_node->ID ) );
|
@@ -1695,16 +1776,16 @@ function cms_tpv_move_page() {
|
|
1695 |
"post_type" => $post_ref_node->post_type
|
1696 |
);
|
1697 |
wp_update_post( $post_to_save );
|
1698 |
-
|
1699 |
echo "did after";
|
1700 |
}
|
1701 |
-
|
1702 |
#echo "ok"; // I'm done here!
|
1703 |
-
|
1704 |
} else {
|
1705 |
// error
|
1706 |
}
|
1707 |
-
|
1708 |
// ok, we have updated the order of the pages
|
1709 |
// but we must tell wordpress that we have done something
|
1710 |
// other plugins (cache plugins) will not know to clear the cache otherwise
|
@@ -1713,9 +1794,9 @@ function cms_tpv_move_page() {
|
|
1713 |
#wp_update_post(array("ID" => $node_id));
|
1714 |
#wp_update_post(array("ID" => $post_ref_node));
|
1715 |
#clean_page_cache($node_id); clean_page_cache($post_ref_node); // hmpf.. db cache reloaded don't care
|
1716 |
-
|
1717 |
do_action("cms_tree_page_view_node_move_finish");
|
1718 |
-
|
1719 |
exit;
|
1720 |
}
|
1721 |
|
@@ -1724,7 +1805,7 @@ function cms_tpv_move_page() {
|
|
1724 |
* Show a box with some dontate-links and stuff
|
1725 |
*/
|
1726 |
function cms_tpv_show_annoying_box() {
|
1727 |
-
|
1728 |
//update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing
|
1729 |
|
1730 |
if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
|
@@ -1782,7 +1863,8 @@ function cms_tpv_install() {
|
|
1782 |
|
1783 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
1784 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
1785 |
-
|
|
|
1786 |
// first install or pre custom posts version:
|
1787 |
// make sure pages are enabled by default
|
1788 |
cms_tpv_setup_defaults();
|
@@ -1803,7 +1885,7 @@ function cms_tvp_setup_caps() {
|
|
1803 |
);
|
1804 |
|
1805 |
foreach ( $roles as $role => $caps ) {
|
1806 |
-
|
1807 |
}
|
1808 |
|
1809 |
}
|
@@ -1817,7 +1899,7 @@ function cms_tpv_uninstall() {
|
|
1817 |
);
|
1818 |
|
1819 |
foreach ( $roles as $role => $caps ) {
|
1820 |
-
|
1821 |
}
|
1822 |
|
1823 |
}
|
@@ -1825,7 +1907,7 @@ function cms_tpv_uninstall() {
|
|
1825 |
/**
|
1826 |
* Adds an array of capabilities to a role.
|
1827 |
*/
|
1828 |
-
function
|
1829 |
|
1830 |
global $wp_roles;
|
1831 |
|
@@ -1839,7 +1921,7 @@ function add_caps_to_role( $role, $caps ) {
|
|
1839 |
/**
|
1840 |
* Remove an array of capabilities from role.
|
1841 |
*/
|
1842 |
-
function
|
1843 |
|
1844 |
global $wp_roles;
|
1845 |
|
@@ -1884,7 +1966,7 @@ function cms_tpv_setup_defaults() {
|
|
1884 |
$options["postsoverview"] = array_unique($options["postsoverview"]);
|
1885 |
|
1886 |
update_option('cms_tpv_options', $options);
|
1887 |
-
|
1888 |
}
|
1889 |
|
1890 |
}
|
@@ -1896,18 +1978,19 @@ function cms_tpv_setup_defaults() {
|
|
1896 |
function cms_tpv_plugins_loaded($a) {
|
1897 |
|
1898 |
$installed_version = get_option('cms_tpv_version', 0);
|
1899 |
-
|
1900 |
//echo "installed_version in options table: $installed_version";
|
1901 |
//echo "<br>version according to this file" . CMS_TPV_VERSION;
|
1902 |
|
1903 |
if ($installed_version != CMS_TPV_VERSION) {
|
1904 |
-
|
1905 |
// new version!
|
1906 |
// upgrade stored version to current version
|
1907 |
-
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1908 |
|
1909 |
// show that annoying litte box again
|
1910 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
|
|
1911 |
|
1912 |
// setup caps/persmissions
|
1913 |
cms_tvp_setup_caps();
|
6 |
*/
|
7 |
/*
|
8 |
add_action("cms_tree_page_view_post_can_edit", function($can_edit, $post_id) {
|
9 |
+
|
10 |
if ($post_id === 163) $can_edit = FALSE;
|
11 |
|
12 |
return $can_edit;
|
15 |
|
16 |
|
17 |
add_action("cms_tree_page_view_post_user_can_add_inside", function($can_edit, $post_id) {
|
18 |
+
|
19 |
if ($post_id === 233) $can_edit = FALSE;
|
20 |
|
21 |
return $can_edit;
|
23 |
}, 10, 2);
|
24 |
|
25 |
add_action("cms_tree_page_view_post_user_can_add_after", function($can_edit, $post_id) {
|
26 |
+
|
27 |
if ($post_id === 142) $can_edit = FALSE;
|
28 |
|
29 |
return $can_edit;
|
35 |
* Check if a post type is ignored
|
36 |
*/
|
37 |
function cms_tpv_post_type_is_ignored($post_type) {
|
38 |
+
|
39 |
$ignored_post_types = cms_tpv_get_ignored_post_types();
|
40 |
+
|
41 |
return in_array($post_type, $ignored_post_types);
|
42 |
|
43 |
}
|
53 |
);
|
54 |
}
|
55 |
|
56 |
+
/**
|
57 |
+
* Fix problem with WordPress insert_post_data. In update case
|
58 |
+
* WordPress use current timestamp and logged in user. In this case
|
59 |
+
* keep these originals from post to be updated:
|
60 |
+
*
|
61 |
+
* post_author, post_modified and post_modified_gmt
|
62 |
+
*
|
63 |
+
* Heikki Paananen, Kehitysvammaliitto ry (2015-01-09)
|
64 |
+
*/
|
65 |
+
function cms_tpv_insert_post_data($data, $postarr) {
|
66 |
+
|
67 |
+
if ( ! empty( $postarr['ID'] ) ) {
|
68 |
+
$data['post_author'] = $postarr['post_author'];
|
69 |
+
$data['post_modified'] = $postarr['post_modified'];
|
70 |
+
$data['post_modified_gmt'] = $postarr['post_modified_gmt'];
|
71 |
+
}
|
72 |
+
|
73 |
+
return $data;
|
74 |
+
}
|
75 |
+
|
76 |
/**
|
77 |
* Use the ajax action-thingie to catch our form with new pages
|
78 |
* Add pages and then redirect to...?
|
79 |
*/
|
80 |
function cms_tpv_add_pages() {
|
81 |
|
82 |
+
//--- Added 2015-01-09 ---
|
83 |
+
add_filter('wp_insert_post_data', 'cms_tpv_insert_post_data', '99', 2);
|
84 |
+
|
85 |
+
#sf_d($_POST);exit;
|
86 |
/*
|
87 |
Array
|
88 |
(
|
91 |
(
|
92 |
[0] => xxxxx
|
93 |
[1] => yyyy
|
94 |
+
[2] =>
|
95 |
)
|
96 |
|
97 |
[cms_tpv_add_type] => inside
|
130 |
}
|
131 |
|
132 |
$arr_post_names_count = sizeof($arr_post_names);
|
133 |
+
|
134 |
// check that there are pages left
|
135 |
if (empty($arr_post_names)) die("Error: no pages to add.");
|
136 |
|
137 |
$ref_post = get_post($ref_post_id);
|
138 |
if (NULL === $ref_post) die("Error: could not load reference post.");
|
139 |
+
|
140 |
// Make room for our new pages
|
141 |
// Get all pages at a level level and loop until our reference page
|
142 |
+
// and then all pages after that one will get it's menu_order
|
143 |
// increased by the same number as the number of new posts we're gonna add
|
144 |
+
|
145 |
$ok_to_continue_by_permission = TRUE;
|
146 |
$post_type_object = get_post_type_object($ref_post->post_type);
|
147 |
|
148 |
$post_parent = 0;
|
149 |
if ("after" === $post_position) {
|
150 |
$post_parent = $ref_post->post_parent;
|
151 |
+
$ok_to_continue_by_permission = apply_filters("cms_tree_page_view_post_user_can_add_after", current_user_can( $post_type_object->cap->create_posts, $ref_post_id), $ref_post_id);
|
152 |
} elseif ("inside" === $post_position) {
|
153 |
$post_parent = $ref_post->ID;
|
154 |
$ok_to_continue_by_permission = apply_filters("cms_tree_page_view_post_user_can_add_inside", current_user_can( $post_type_object->cap->create_posts, $ref_post_id), $ref_post_id);
|
188 |
if (sizeof($posts) > 0) {
|
189 |
|
190 |
if ("after" === $post_position) {
|
191 |
+
|
192 |
$has_passed_ref_post = FALSE;
|
193 |
foreach ($posts as $one_post) {
|
194 |
+
|
195 |
if ($has_passed_ref_post) {
|
196 |
+
|
197 |
$post_update = array(
|
198 |
+
"ID" => $one_post->ID,
|
199 |
+
"menu_order" => $one_post->menu_order + $arr_post_names_count,
|
200 |
+
"post_author" => $one_post->post_author,
|
201 |
+
"post_modified" => $one_post->post_modified, //--- Added 2015-01-09 ---
|
202 |
+
"post_modified_gmt" => $one_post->post_modified_gmt, //--- Added 2015-01-09 ---
|
203 |
+
);
|
204 |
+
$return_id = wp_update_post($post_update);
|
205 |
if (0 ===$return_id) die( "Error: could not update post with id " . $post_update->ID . "<br>Technical details: " . print_r($post_update) );
|
206 |
|
207 |
}
|
208 |
|
209 |
if ( ! $has_passed_ref_post && $ref_post->ID === $one_post->ID ) {
|
210 |
$has_passed_ref_post = TRUE;
|
211 |
+
}
|
212 |
|
213 |
}
|
214 |
+
|
215 |
$new_menu_order = $ref_post->menu_order;
|
216 |
|
217 |
} elseif ("inside" === $post_position) {
|
219 |
// in inside, place at beginning
|
220 |
// so just get first post and use that menu order as base
|
221 |
$new_menu_order = $posts[0]->menu_order - $arr_post_names_count;
|
222 |
+
|
223 |
}
|
224 |
|
225 |
|
243 |
|
244 |
$new_menu_order++;
|
245 |
$newpost_args = array(
|
246 |
+
"menu_order" => $new_menu_order,
|
247 |
+
"post_parent" => $post_parent_id,
|
248 |
+
"post_status" => ( ('publish' == $post_status) && !current_user_can('publish_posts') ? 'pending' : $post_status ),
|
249 |
+
"post_title" => $one_new_post_name,
|
250 |
+
"post_type" => $ref_post->post_type,
|
251 |
+
);
|
252 |
+
$new_post_id = wp_insert_post($newpost_args);
|
253 |
|
254 |
if (0 === $new_post_id) {
|
255 |
die("Error: could not add post");
|
275 |
function cms_tpv_admin_head() {
|
276 |
|
277 |
if (!cms_tpv_is_one_of_our_pages()) return;
|
278 |
+
|
279 |
cms_tpv_setup_postsoverview();
|
280 |
|
281 |
global $cms_tpv_view;
|
317 |
$post_type = cms_tpv_get_selected_post_type();
|
318 |
|
319 |
if (! function_exists("get_current_screen")) return FALSE;
|
320 |
+
|
321 |
$current_screen = get_current_screen();
|
322 |
$is_plugin_page = FALSE;
|
323 |
|
359 |
wp_enqueue_script( "jquery-jstree", CMS_TPV_URL . "scripts/jquery.jstree.js", false, CMS_TPV_VERSION);
|
360 |
wp_enqueue_script( "jquery-alerts", CMS_TPV_URL . "scripts/jquery.alerts.js", false, CMS_TPV_VERSION);
|
361 |
// wp_enqueue_script( "hoverIntent");
|
362 |
+
wp_enqueue_script( "cms_tree_page_view", CMS_TPV_URL . "scripts/cms_tree_page_view.js", false, CMS_TPV_VERSION);
|
363 |
|
364 |
wp_enqueue_style( "cms_tpv_styles", CMS_TPV_URL . "styles/styles.css", false, CMS_TPV_VERSION );
|
365 |
wp_enqueue_style( "jquery-alerts", CMS_TPV_URL . "styles/jquery.alerts.css", false, CMS_TPV_VERSION );
|
410 |
}
|
411 |
|
412 |
function cms_tpv_admin_init() {
|
413 |
+
|
414 |
// DEBUG
|
415 |
//wp_enqueue_script( "jquery-hotkeys" );
|
416 |
|
421 |
#add_settings_section("cms_tree_page_view_settings", "cms_tree_page_view", "", "");
|
422 |
#register_setting( 'cms_tree_page_view_settings', "post-type-dashboard-post" );
|
423 |
|
424 |
+
// Add little promo box
|
425 |
+
add_action("cms_tree_page_view/before_wrapper", "cms_tpv_promo_above_wrapper");
|
426 |
+
|
427 |
+
}
|
428 |
+
|
429 |
+
function cms_tpv_promo_above_wrapper() {
|
430 |
+
|
431 |
+
// enable this to show box while testing
|
432 |
+
//update_option('cms_tpv_show_promo', 1);
|
433 |
+
|
434 |
+
if ( isset($_GET["action"]) && "cms_tpv_remove_promo" == $_GET["action"] ) {
|
435 |
+
$show_box = 0;
|
436 |
+
update_option('cms_tpv_show_promo', $show_box);
|
437 |
+
} else {
|
438 |
+
$show_box = get_option('cms_tpv_show_promo', 1);
|
439 |
+
}
|
440 |
+
|
441 |
+
if ( ! $show_box ) {
|
442 |
+
return;
|
443 |
+
}
|
444 |
+
?>
|
445 |
+
<style>
|
446 |
+
.cms_tpv_promo_above_wrapper {
|
447 |
+
padding: 15px;
|
448 |
+
background: #fff;
|
449 |
+
box-shadow: 0 1px 1px 0 rgba(0,0,0,.15);
|
450 |
+
}
|
451 |
+
.cms_tpv_promo_above_wrapper p {
|
452 |
+
margin: .25em 0;
|
453 |
+
}
|
454 |
+
.cms_tpv_promo_above_wrapper-close {
|
455 |
+
text-align: right;
|
456 |
+
}
|
457 |
+
</style>
|
458 |
+
<div class="cms_tpv_promo_above_wrapper">
|
459 |
+
|
460 |
+
<p>Thanks for using <b>CMS Tree Page View</b>!</p>
|
461 |
+
|
462 |
+
<p>Do you like this plugin? Then <a href="https://wordpress.org/support/view/plugin-reviews/cms-tree-page-view#topic">give it a nice review</a>!</p>
|
463 |
+
|
464 |
+
<p>Want to see who in you team edited what and when?
|
465 |
+
Then <a href="https://wordpress.org/plugins/simple-history/">Simple History</a> is the plugin you need!
|
466 |
+
|
467 |
+
<p class="cms_tpv_promo_above_wrapper-close">
|
468 |
+
<a href="<?php echo add_query_arg("action", "cms_tpv_remove_promo")?>">
|
469 |
+
<?php _e("Hide until next upgrade", 'cms-tree-page-view') ?>
|
470 |
+
</a>
|
471 |
+
</p>
|
472 |
+
|
473 |
+
</div>
|
474 |
+
<?php
|
475 |
|
476 |
}
|
477 |
|
484 |
$current_screen = get_current_screen();
|
485 |
|
486 |
if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
|
487 |
+
|
488 |
// Ok, this is a post overview page that we are enabled for
|
489 |
add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
|
490 |
|
491 |
cmstpv_postoverview_head();
|
492 |
|
493 |
}
|
494 |
+
|
495 |
}
|
496 |
|
497 |
/**
|
529 |
function cmstpv_filter_views_edit_postsoverview($filter_var) {
|
530 |
|
531 |
$current_screen = get_current_screen();
|
532 |
+
|
533 |
ob_start();
|
534 |
cms_tpv_print_common_tree_stuff();
|
535 |
$tree_common_stuff = ob_get_clean();
|
565 |
|
566 |
// Output tree related stuff if that view/mode is selected
|
567 |
if (isset($_GET["mode"]) && $_GET["mode"] === "tree") {
|
568 |
+
|
569 |
$out .= sprintf('
|
570 |
<div class="cmstpv-postsoverview-wrap">
|
571 |
%1$s
|
572 |
</div>
|
573 |
', $tree_common_stuff);
|
574 |
+
|
575 |
}
|
576 |
|
577 |
echo $out;
|
602 |
* Save settings, called when saving settings in general > cms tree page view
|
603 |
*/
|
604 |
function cms_tpv_save_settings() {
|
605 |
+
|
606 |
if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings" && check_admin_referer('update-options')) {
|
607 |
|
608 |
$options = array();
|
620 |
* Add widget to dashboard
|
621 |
*/
|
622 |
function cms_tpv_wp_dashboard_setup() {
|
623 |
+
|
624 |
// echo "setup dashboard";
|
625 |
|
626 |
// add dashboard to capability edit_pages only
|
650 |
// Add items to the wp admin menu
|
651 |
function cms_tpv_admin_menu() {
|
652 |
|
653 |
+
// add
|
654 |
$options = cms_tpv_get_options();
|
655 |
|
656 |
foreach ($options["menu"] as $one_menu_post_type) {
|
657 |
+
|
658 |
if ( cms_tpv_post_type_is_ignored($one_menu_post_type) ) {
|
659 |
continue;
|
660 |
}
|
665 |
} else {
|
666 |
$slug = "edit.php?post_type=$one_menu_post_type";
|
667 |
}
|
668 |
+
|
669 |
$post_type_object = get_post_type_object($one_menu_post_type);
|
670 |
|
671 |
// Only try to add menu if we got a valid post type object
|
683 |
$page_title = apply_filters("cms_tree_page_view_options_page_title", CMS_TPV_NAME);
|
684 |
$menu_title = apply_filters("cms_tree_page_view_options_menu_title", CMS_TPV_NAME);
|
685 |
add_submenu_page( 'options-general.php', $page_title, $menu_title, "administrator", "cms-tpv-options", "cms_tpv_options");
|
686 |
+
|
687 |
}
|
688 |
|
689 |
/**
|
693 |
|
694 |
?>
|
695 |
<div class="wrap">
|
696 |
+
|
697 |
<?php cms_tpv_show_annoying_box(); ?>
|
698 |
+
|
699 |
+
<?php screen_icon(); ?>
|
700 |
<h2><?php echo CMS_TPV_NAME ?> <?php _e("settings", 'cms-tree-page-view') ?></h2>
|
701 |
|
702 |
<form method="post" action="options.php" class="cmtpv_options_form">
|
703 |
+
|
704 |
<?php wp_nonce_field('update-options'); ?>
|
705 |
+
|
706 |
<h3><?php _e("Select where to show a tree for pages and custom post types", 'cms-tree-page-view')?></h3>
|
707 |
+
|
708 |
<table class="form-table">
|
709 |
+
|
710 |
<tbody>
|
711 |
+
|
712 |
<?php
|
713 |
+
|
714 |
$options = cms_tpv_get_options();
|
715 |
|
716 |
$post_types = get_post_types(array(
|
717 |
"show_ui" => TRUE
|
718 |
), "objects");
|
719 |
|
720 |
+
|
721 |
$arr_page_options = array();
|
722 |
foreach ($post_types as $one_post_type) {
|
723 |
|
726 |
}
|
727 |
|
728 |
$name = $one_post_type->name;
|
729 |
+
|
730 |
if ($name === "post") {
|
731 |
// no support for pages. you could show them.. but since we can't reorder them there is not idea to show them.. or..?
|
732 |
// 14 jul 2011: ok, let's enable it for posts too. some people says it useful
|
740 |
$arr_page_options[] = "post-type-dashboard-$name";
|
741 |
$arr_page_options[] = "post-type-menu-$name";
|
742 |
$arr_page_options[] = "post-type-postsoverview-$name";
|
743 |
+
|
744 |
echo "<tr>";
|
745 |
|
746 |
echo "<th scope='row'>";
|
750 |
echo "<td>";
|
751 |
|
752 |
echo "<p>";
|
753 |
+
|
754 |
$checked = (in_array($name, $options["dashboard"])) ? " checked='checked' " : "";
|
755 |
echo "<input $checked type='checkbox' name='post-type-dashboard[]' value='$name' id='post-type-dashboard-$name' /> <label for='post-type-dashboard-$name'>" . __("On dashboard", 'cms-tree-page-view') . "</label>";
|
756 |
+
|
757 |
echo "<br />";
|
758 |
$checked = (in_array($name, $options["menu"])) ? " checked='checked' " : "";
|
759 |
echo "<input $checked type='checkbox' name='post-type-menu[]' value='$name' id='post-type-menu-$name' /> <label for='post-type-menu-$name'>" . __("In menu", 'cms-tree-page-view') . "</label>";
|
785 |
</form>
|
786 |
|
787 |
</div>
|
788 |
+
|
789 |
<?php
|
790 |
}
|
791 |
|
796 |
function cms_tpv_get_options() {
|
797 |
|
798 |
$arr_options = (array) get_option('cms_tpv_options');
|
799 |
+
|
800 |
if (array_key_exists('dashboard', $arr_options)) {
|
801 |
$arr_options['dashboard'] = (array) @$arr_options['dashboard'];
|
802 |
} else {
|
808 |
} else {
|
809 |
$arr_options['menu'] = array();
|
810 |
}
|
811 |
+
|
812 |
if (array_key_exists('postsoverview', $arr_options)) {
|
813 |
$arr_options['postsoverview'] = (array) @$arr_options['postsoverview'];
|
814 |
} else {
|
815 |
$arr_options['postsoverview'] = array();
|
816 |
}
|
817 |
+
|
818 |
return $arr_options;
|
819 |
|
820 |
}
|
834 |
$page = isset($_GET["page"]) ? $_GET["page"] : "";
|
835 |
$post_type = str_replace("cms-tpv-page-", "", $page);
|
836 |
}
|
837 |
+
|
838 |
if (!$post_type) { $post_type = "post"; }
|
839 |
return $post_type;
|
840 |
}
|
843 |
* Determine if a post type is considered hierarchical
|
844 |
*/
|
845 |
function cms_tpv_is_post_type_hierarchical($post_type_object) {
|
846 |
+
$is_hierarchical = $post_type_object->hierarchical;
|
847 |
// special case for posts, fake-support hierachical
|
848 |
if ("post" == $post_type_object->name) {
|
849 |
$is_hierarchical = true;
|
901 |
* Print tree stuff that is common for both dashboard and page
|
902 |
*/
|
903 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
904 |
+
|
905 |
global $sitepress, $cms_tpv_view, $wpdb;
|
906 |
|
907 |
if ( ! $post_type ) {
|
908 |
$post_type = cms_tpv_get_selected_post_type();
|
909 |
}
|
910 |
+
|
911 |
$post_type_object = get_post_type_object($post_type);
|
912 |
$get_pages_args = array("post_type" => $post_type);
|
913 |
|
923 |
$wmpl_active_for_post = TRUE;
|
924 |
$wpml_current_lang = $sitepress->get_current_language();
|
925 |
}
|
926 |
+
|
927 |
}
|
928 |
|
929 |
$status_data_attributes = array("all" => "", "publish" => "", "trash" => "");
|
933 |
|
934 |
// Count code for WPML, mostly taken/inspired from WPML Multilingual CMS, sitepress.class.php
|
935 |
$langs = array();
|
936 |
+
|
937 |
$wpml_post_counts = cms_tpv_get_wpml_post_counts($post_type);
|
938 |
|
939 |
$post_count_all = (int) @$wpml_post_counts["private"][$wpml_current_lang] + (int) @$wpml_post_counts["future"][$wpml_current_lang] + (int) @$wpml_post_counts["publish"][$wpml_current_lang] + (int) @$wpml_post_counts["draft"][$wpml_current_lang];
|
957 |
$post_count_trash = $post_count->trash;
|
958 |
}
|
959 |
|
960 |
+
|
961 |
// output js for the root/top level
|
962 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
963 |
// @todo: make into function since used at other places
|
969 |
$jstree_open[$i] = (int) str_replace("#cms-tpv-", "", $jstree_open[$i]);
|
970 |
}
|
971 |
}
|
972 |
+
|
973 |
|
974 |
ob_start();
|
975 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
980 |
<script type="text/javascript">
|
981 |
cms_tpv_jsondata["<?php echo $post_type ?>"] = <?php echo $json_data ?>;
|
982 |
</script>
|
983 |
+
|
984 |
+
<?php
|
985 |
+
do_action("cms_tree_page_view/before_wrapper");
|
986 |
+
?>
|
987 |
+
|
988 |
<div class="cms_tpv_wrapper">
|
989 |
<input type="hidden" name="cms_tpv_meta_post_type" value="<?php echo $post_type ?>" />
|
990 |
<input type="hidden" name="cms_tpv_meta_post_type_hierarchical" value="<?php echo (int) cms_tpv_is_post_type_hierarchical($post_type_object) ?>" />
|
1045 |
<span class="count">(<?php echo $post_count_trash ?>)</span>
|
1046 |
</a>
|
1047 |
</li>
|
1048 |
+
|
1049 |
<?php
|
1050 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
1051 |
?>
|
1066 |
</li>
|
1067 |
|
1068 |
</ul>
|
1069 |
+
|
1070 |
<div class="cms_tpv_working">
|
1071 |
<?php _e("Loading...", 'cms-tree-page-view') ?>
|
1072 |
</div>
|
1073 |
|
1074 |
<div class="cms_tpv_message updated below-h2 hidden"><p>Message goes here.</p></div>
|
1075 |
+
|
1076 |
<div class="updated below-h2 hidden cms_tpv_search_no_hits"><p><?php _e("Search: no pages found", 'cms-tree-page-view') ?></p></div>
|
1077 |
+
|
1078 |
<div class="cms_tpv_container tree-default">
|
1079 |
<?php _e("Loading tree", 'cms-tree-page-view') ?>
|
1080 |
</div>
|
1096 |
<p class="cms_tpv_action_add_and_edit_page">
|
1097 |
|
1098 |
<span class='cms_tpv_action_add_page'><?php echo $post_type_object->labels->add_new_item ?></span>
|
1099 |
+
|
1100 |
<a class='cms_tpv_action_add_page_after' href="#" title='<?php _e("Add new page after", "cms-tree-page-view")?>' ><?php _e("After", "cms-tree-page-view")?></a>
|
1101 |
+
|
1102 |
<?php
|
1103 |
// if post type is hierarchical we can add pages inside
|
1104 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
1111 |
</p>
|
1112 |
|
1113 |
<div class="cms_tpv_action_add_doit">
|
1114 |
+
|
1115 |
<form method="post" action="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>">
|
1116 |
|
1117 |
<input type="hidden" name="action" value="cms_tpv_add_pages">
|
1118 |
<input type="hidden" name="ref_post_id" value="">
|
1119 |
<?php wp_nonce_field("cms-tpv-add-pages") ?>
|
1120 |
+
|
1121 |
<!-- lang for wpml -->
|
1122 |
<input type="hidden" name="lang" value="">
|
1123 |
|
1158 |
</div>
|
1159 |
|
1160 |
<dl>
|
1161 |
+
<dt><?php _e("Last modified", 'cms-tree-page-view') ?></dt>
|
1162 |
<dd>
|
1163 |
+
<span class="cms_tpv_page_actions_modified_time"></span> <?php _e("by", "cms-tree-page-view") ?>
|
1164 |
<span class="cms_tpv_page_actions_modified_by"></span>
|
1165 |
</dd>
|
1166 |
<dt><?php _e("Page ID", "cms-tree-page-view") ?></dt>
|
1174 |
}
|
1175 |
|
1176 |
if (empty($pages)) {
|
1177 |
+
|
1178 |
echo '<div class="updated fade below-h2"><p>' . __("No posts found.", 'cms-tree-page-view') . '</p></div>';
|
1179 |
+
|
1180 |
}
|
1181 |
|
1182 |
?>
|
1183 |
+
|
1184 |
</div>
|
1185 |
<?php
|
1186 |
} // func
|
1200 |
} else {
|
1201 |
$post_new_file = 'post-new.php';
|
1202 |
}
|
1203 |
+
|
1204 |
?>
|
1205 |
<div class="wrap">
|
1206 |
<?php echo get_screen_icon(); ?>
|
1215 |
}
|
1216 |
|
1217 |
?></h2>
|
1218 |
+
|
1219 |
<?php
|
1220 |
cms_tpv_print_common_tree_stuff($post_type);
|
1221 |
?>
|
1256 |
if ($r["view"] == "all") {
|
1257 |
$get_posts_args["post_status"] = "any"; // "any" seems to get all but auto-drafts
|
1258 |
} elseif ($r["view"] == "trash") {
|
1259 |
+
|
1260 |
$get_posts_args["post_status"] = "trash";
|
1261 |
|
1262 |
// if getting trash, just get all pages, don't care about parent?
|
1263 |
// because otherwise we have to mix trashed pages and pages with other statuses. messy.
|
1264 |
$get_posts_args["post_parent"] = null;
|
1265 |
+
|
1266 |
} else {
|
1267 |
$get_posts_args["post_status"] = "publish";
|
1268 |
}
|
1283 |
// Note: get_pages filter uses orderby comma separated and with the key sort_column
|
1284 |
$get_posts_args["sort_column"] = str_replace(" ", ", ", $get_posts_args["orderby"]);
|
1285 |
$pages = apply_filters('get_pages', $pages, $get_posts_args);
|
1286 |
+
|
1287 |
return $pages;
|
1288 |
|
1289 |
}
|
1304 |
|
1305 |
global $current_screen;
|
1306 |
$screen = convert_to_screen("edit");
|
1307 |
+
#return;
|
1308 |
+
|
1309 |
// If this is set to null then quick/bul edit stops working on posts (not pages)
|
1310 |
// If did set it to null sometime. Can't remember why...
|
1311 |
// $screen->post_type = null;
|
1318 |
unset($posts_columns["cb"], $posts_columns["title"], $posts_columns["author"], $posts_columns["categories"], $posts_columns["tags"], $posts_columns["date"]);
|
1319 |
|
1320 |
global $post;
|
1321 |
+
|
1322 |
// Translated post statuses
|
1323 |
$post_statuses = get_post_statuses();
|
1324 |
|
1325 |
+
|
1326 |
?>[<?php
|
1327 |
for ($i=0, $pagesCount = sizeof($arrPages); $i<$pagesCount; $i++) {
|
1328 |
+
|
1329 |
$onePage = $arrPages[$i];
|
1330 |
$tmpPost = $post;
|
1331 |
$post = $onePage;
|
1336 |
$content = esc_html($onePage->post_content);
|
1337 |
$content = str_replace(array("\n","\r"), "", $content);
|
1338 |
$hasChildren = false;
|
1339 |
+
|
1340 |
// if viewing trash, don't get children. we watch them "flat" instead
|
1341 |
if ($view == "trash") {
|
1342 |
} else {
|
1351 |
if (!$hasChildren) {
|
1352 |
$strState = '';
|
1353 |
}
|
1354 |
+
|
1355 |
// type of node
|
1356 |
$rel = $onePage->post_status;
|
1357 |
if ($onePage->post_password) {
|
1358 |
$rel = "password";
|
1359 |
}
|
1360 |
+
|
1361 |
// modified time
|
1362 |
$post_modified_time = strtotime($onePage->post_modified);
|
1363 |
$post_modified_time = date_i18n(get_option('date_format'), $post_modified_time, false);
|
1369 |
if (empty($post_author)) {
|
1370 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1371 |
}
|
1372 |
+
|
1373 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
1374 |
|
1375 |
$title = apply_filters("cms_tree_page_view_post_title", $title, $onePage);
|
1381 |
$arr_page_css_styles = array();
|
1382 |
$user_can_edit_page = apply_filters("cms_tree_page_view_post_can_edit", current_user_can( $post_type_object->cap->edit_post, $page_id), $page_id);
|
1383 |
$user_can_add_inside = apply_filters("cms_tree_page_view_post_user_can_add_inside", current_user_can( $post_type_object->cap->create_posts, $page_id), $page_id);
|
1384 |
+
$user_can_add_after = apply_filters("cms_tree_page_view_post_user_can_add_after", current_user_can( $post_type_object->cap->create_posts, $page_id), $page_id);
|
1385 |
|
1386 |
if ( $user_can_edit_page ) {
|
1387 |
$arr_page_css_styles[] = "cms_tpv_user_can_edit_page_yes";
|
1494 |
if ($i < $pagesCount-1) {
|
1495 |
?>,<?php
|
1496 |
}
|
1497 |
+
|
1498 |
// return orgiginal post
|
1499 |
$post = $tmpPost;
|
1500 |
+
|
1501 |
}
|
1502 |
?>]<?php
|
1503 |
}
|
1522 |
}
|
1523 |
|
1524 |
if ($action) {
|
1525 |
+
|
1526 |
if ($search) {
|
1527 |
+
|
1528 |
// find all pages that contains $search
|
1529 |
// collect all post_parent
|
1530 |
// for each parent id traverse up until post_parent is 0, saving all ids on the way
|
1531 |
+
|
1532 |
// what to search: since all we see in the GUI is the title, just search that
|
1533 |
global $wpdb;
|
1534 |
$sqlsearch = "%{$search}%";
|
1539 |
foreach ($hits as $oneHit) {
|
1540 |
$arrNodesToOpen[] = $oneHit->post_parent;
|
1541 |
}
|
1542 |
+
|
1543 |
$arrNodesToOpen = array_unique($arrNodesToOpen);
|
1544 |
$arrNodesToOpen2 = array();
|
1545 |
// find all parents to the arrnodestopen
|
1556 |
}
|
1557 |
}
|
1558 |
}
|
1559 |
+
|
1560 |
$arrNodesToOpen = array_merge($arrNodesToOpen, $arrNodesToOpen2);
|
1561 |
$sReturn = "";
|
1562 |
#foreach ($arrNodesToOpen as $oneNodeID) {
|
1563 |
# $sReturn .= "cms-tpv-{$oneNodeID},";
|
1564 |
#}
|
1565 |
#$sReturn = preg_replace("/,$/", "", $sReturn);
|
1566 |
+
|
1567 |
foreach ($arrNodesToOpen as $oneNodeID) {
|
1568 |
$sReturn .= "\"#cms-tpv-{$oneNodeID}\",";
|
1569 |
}
|
1571 |
if ($sReturn) {
|
1572 |
$sReturn = "[" . $sReturn . "]";
|
1573 |
}
|
1574 |
+
|
1575 |
if ($sReturn) {
|
1576 |
echo $sReturn;
|
1577 |
} else {
|
1582 |
exit;
|
1583 |
|
1584 |
} else {
|
1585 |
+
|
1586 |
// regular get
|
1587 |
|
1588 |
$id = (isset($_GET["id"])) ? $_GET["id"] : null;
|
1613 |
|
1614 |
/*
|
1615 |
(
|
1616 |
+
[action] => cms_tpv_add_page
|
1617 |
[pageID] => cms-tpv-1318
|
1618 |
type
|
1619 |
)
|
1627 |
if (!$page_title) { $page_title = __("New page", 'cms-tree-page-view'); }
|
1628 |
|
1629 |
$ref_post = get_post($pageID);
|
1630 |
+
|
1631 |
if ("after" == $type) {
|
1632 |
|
1633 |
/*
|
1635 |
*/
|
1636 |
|
1637 |
// update menu_order of all pages below our page
|
1638 |
+
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_parent = %d AND menu_order >= %d AND id <> %d ", $ref_post->post_parent, $ref_post->menu_order, $ref_post->ID ) );
|
1639 |
+
|
1640 |
// create a new page and then goto it
|
1641 |
$post_new = array();
|
1642 |
$post_new["menu_order"] = $ref_post->menu_order+1;
|
1655 |
*/
|
1656 |
|
1657 |
// update menu_order, so our new post is the only one with order 0
|
1658 |
+
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE post_parent = %d", $ref_post->ID) );
|
1659 |
|
1660 |
$post_new = array();
|
1661 |
$post_new["menu_order"] = 0;
|
1680 |
// fail, tell js
|
1681 |
echo "0";
|
1682 |
}
|
1683 |
+
|
1684 |
+
|
1685 |
exit;
|
1686 |
}
|
1687 |
|
1691 |
/*
|
1692 |
the node that was moved,
|
1693 |
the reference node in the move,
|
1694 |
+
the new position relative to the reference node (one of "before", "after" or "inside"),
|
1695 |
inside = man placerar den under en sida som inte har några barn?
|
1696 |
*/
|
1697 |
|
1706 |
|
1707 |
$node_id = str_replace("cms-tpv-", "", $node_id);
|
1708 |
$ref_node_id = str_replace("cms-tpv-", "", $ref_node_id);
|
1709 |
+
|
1710 |
$_POST["skip_sitepress_actions"] = true; // sitepress.class.php->save_post_actions
|
1711 |
+
|
1712 |
if ($node_id && $ref_node_id) {
|
1713 |
#echo "\nnode_id: $node_id";
|
1714 |
+
#echo "\ntype: $type";
|
1715 |
+
|
1716 |
$post_node = get_post($node_id);
|
1717 |
$post_ref_node = get_post($ref_node_id);
|
1718 |
+
|
1719 |
// first check that post_node (moved post) is not in trash. we do not move them
|
1720 |
if ($post_node->post_status == "trash") {
|
1721 |
exit;
|
1722 |
}
|
1723 |
|
1724 |
if ( "inside" == $type ) {
|
1725 |
+
|
1726 |
// post_node is moved inside ref_post_node
|
1727 |
// add ref_post_node as parent to post_node and set post_nodes menu_order to 0
|
1728 |
// @todo: shouldn't menu order of existing items be changed?
|
1733 |
"post_type" => $post_ref_node->post_type
|
1734 |
);
|
1735 |
wp_update_post( $post_to_save );
|
1736 |
+
|
1737 |
echo "did inside";
|
1738 |
+
|
1739 |
} elseif ( "before" == $type ) {
|
1740 |
+
|
1741 |
// post_node is placed before ref_post_node
|
1742 |
// update menu_order of all pages with a menu order more than or equal ref_node_post and with the same parent as ref_node_post
|
1743 |
// we do this so there will be room for our page if it's the first page
|
1747 |
// update menu order with +1 for all pages below ref_node, this should fix the problem with "unmovable" pages because of
|
1748 |
// multiple pages with the same menu order (...which is not the fault of this plugin!)
|
1749 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+1 WHERE menu_order >= %d", $post_ref_node->menu_order+1) );
|
1750 |
+
|
1751 |
$post_to_save = array(
|
1752 |
"ID" => $post_node->ID,
|
1753 |
"menu_order" => $post_ref_node->menu_order,
|
1759 |
echo "did before";
|
1760 |
|
1761 |
} elseif ( "after" == $type ) {
|
1762 |
+
|
1763 |
// post_node is placed after ref_post_node
|
1764 |
+
|
1765 |
// update menu_order of all posts with the same parent ref_post_node and with a menu_order of the same as ref_post_node, but do not include ref_post_node
|
1766 |
// +2 since multiple can have same menu order and we want our moved post to have a unique "spot"
|
1767 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET menu_order = menu_order+2 WHERE post_parent = %d AND menu_order >= %d AND id <> %d ", $post_ref_node->post_parent, $post_ref_node->menu_order, $post_ref_node->ID ) );
|
1776 |
"post_type" => $post_ref_node->post_type
|
1777 |
);
|
1778 |
wp_update_post( $post_to_save );
|
1779 |
+
|
1780 |
echo "did after";
|
1781 |
}
|
1782 |
+
|
1783 |
#echo "ok"; // I'm done here!
|
1784 |
+
|
1785 |
} else {
|
1786 |
// error
|
1787 |
}
|
1788 |
+
|
1789 |
// ok, we have updated the order of the pages
|
1790 |
// but we must tell wordpress that we have done something
|
1791 |
// other plugins (cache plugins) will not know to clear the cache otherwise
|
1794 |
#wp_update_post(array("ID" => $node_id));
|
1795 |
#wp_update_post(array("ID" => $post_ref_node));
|
1796 |
#clean_page_cache($node_id); clean_page_cache($post_ref_node); // hmpf.. db cache reloaded don't care
|
1797 |
+
|
1798 |
do_action("cms_tree_page_view_node_move_finish");
|
1799 |
+
|
1800 |
exit;
|
1801 |
}
|
1802 |
|
1805 |
* Show a box with some dontate-links and stuff
|
1806 |
*/
|
1807 |
function cms_tpv_show_annoying_box() {
|
1808 |
+
|
1809 |
//update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing
|
1810 |
|
1811 |
if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
|
1863 |
|
1864 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
1865 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
1866 |
+
update_option('cms_tpv_show_promo', 1);
|
1867 |
+
|
1868 |
// first install or pre custom posts version:
|
1869 |
// make sure pages are enabled by default
|
1870 |
cms_tpv_setup_defaults();
|
1885 |
);
|
1886 |
|
1887 |
foreach ( $roles as $role => $caps ) {
|
1888 |
+
cms_tpv_add_caps_to_role( $role, $caps );
|
1889 |
}
|
1890 |
|
1891 |
}
|
1899 |
);
|
1900 |
|
1901 |
foreach ( $roles as $role => $caps ) {
|
1902 |
+
cms_tpv_remove_caps_from_role( $role, $caps );
|
1903 |
}
|
1904 |
|
1905 |
}
|
1907 |
/**
|
1908 |
* Adds an array of capabilities to a role.
|
1909 |
*/
|
1910 |
+
function cms_tpv_add_caps_to_role( $role, $caps ) {
|
1911 |
|
1912 |
global $wp_roles;
|
1913 |
|
1921 |
/**
|
1922 |
* Remove an array of capabilities from role.
|
1923 |
*/
|
1924 |
+
function cms_tpv_remove_caps_from_role( $role, $caps ) {
|
1925 |
|
1926 |
global $wp_roles;
|
1927 |
|
1966 |
$options["postsoverview"] = array_unique($options["postsoverview"]);
|
1967 |
|
1968 |
update_option('cms_tpv_options', $options);
|
1969 |
+
|
1970 |
}
|
1971 |
|
1972 |
}
|
1978 |
function cms_tpv_plugins_loaded($a) {
|
1979 |
|
1980 |
$installed_version = get_option('cms_tpv_version', 0);
|
1981 |
+
|
1982 |
//echo "installed_version in options table: $installed_version";
|
1983 |
//echo "<br>version according to this file" . CMS_TPV_VERSION;
|
1984 |
|
1985 |
if ($installed_version != CMS_TPV_VERSION) {
|
1986 |
+
|
1987 |
// new version!
|
1988 |
// upgrade stored version to current version
|
1989 |
+
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1990 |
|
1991 |
// show that annoying litte box again
|
1992 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
1993 |
+
update_option('cms_tpv_show_promo', 1);
|
1994 |
|
1995 |
// setup caps/persmissions
|
1996 |
cms_tvp_setup_caps();
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
-
Version: 1.2.
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -27,7 +27,7 @@ License: GPL2
|
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
-
define( "CMS_TPV_VERSION", "1.2.
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__) . "/functions.php");
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
+
Version: 1.2.31
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
+
define( "CMS_TPV_VERSION", "1.2.31");
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__) . "/functions.php");
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
|
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
10 |
|
@@ -115,6 +115,10 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
118 |
= 1.2.30 =
|
119 |
|
120 |
- Updated German translation. Thank you translator!
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.2.31
|
8 |
|
9 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
10 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 1.2.31 =
|
119 |
+
|
120 |
+
- Fixed so existing pages/posts keep their original author and last modified time. Thanks Heikki Paananen for finding and fixing this.
|
121 |
+
|
122 |
= 1.2.30 =
|
123 |
|
124 |
- Updated German translation. Thank you translator!
|