Version Description
- Fix for tree not remembering state
- Fix for tree not opening on first click
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 0.8.8 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 0.8.8
- functions.php +172 -785
- index.php +16 -20
- languages/cms-tree-page-view-et.mo +0 -0
- languages/cms-tree-page-view-et.po +0 -267
- languages/cms-tree-page-view-lt_LT.mo +0 -0
- languages/cms-tree-page-view-lt_LT.po +323 -320
- languages/cms-tree-page-view-pl_PL.mo +0 -0
- languages/cms-tree-page-view-pl_PL.po +3 -3
- languages/cms-tree-page-view-ru_RU.po +76 -306
- languages/cms-tree-page-view-sv_SE.mo +0 -0
- languages/cms-tree-page-view.pot +73 -159
- languages/cms-tree-page-view_ro_RO.mo +0 -0
- languages/cms-tree-page-view_ro_RO.po +0 -257
- readme.txt +17 -96
- screenshot-2.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- scripts/cms_tree_page_view.js +247 -566
- scripts/jquery.hoverIntent.minified.js +9 -0
- scripts/jquery.jstree.js +0 -3
- scripts/themes/wordpress/style.css +5 -9
- styles/images/arrow-top.gif +0 -0
- styles/images/switch-view-icons.png +0 -0
- styles/images/switch-view-icons.psd +0 -0
- styles/styles.css +73 -265
functions.php
CHANGED
@@ -1,192 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Use the ajax action-thingie to catch our form with new pages
|
5 |
-
* Add pages and then redirect to...?
|
6 |
-
*/
|
7 |
-
function cms_tpv_add_pages() {
|
8 |
-
|
9 |
-
#sf_d($_POST);exit;
|
10 |
-
/*
|
11 |
-
Array
|
12 |
-
(
|
13 |
-
[action] => cms_tpv_add_pages
|
14 |
-
[cms_tpv_add_new_pages_names] => Array
|
15 |
-
(
|
16 |
-
[0] => xxxxx
|
17 |
-
[1] => yyyy
|
18 |
-
[2] =>
|
19 |
-
)
|
20 |
-
|
21 |
-
[cms_tpv_add_type] => inside
|
22 |
-
[cms_tpv_add_status] => draft
|
23 |
-
[lang] => de
|
24 |
-
)
|
25 |
-
*/
|
26 |
-
|
27 |
-
$post_position = $_POST["cms_tpv_add_type"];
|
28 |
-
$post_status = $_POST["cms_tpv_add_status"];
|
29 |
-
$post_names = (array) $_POST["cms_tpv_add_new_pages_names"];
|
30 |
-
$ref_post_id = (int) $_POST["ref_post_id"];
|
31 |
-
$lang = $_POST["lang"];
|
32 |
-
|
33 |
-
// If lang variable is set, then set some more wpml-related post/get-variables
|
34 |
-
if ($lang) {
|
35 |
-
// post seems to fix creating new posts in selcted lang
|
36 |
-
$_POST["icl_post_language"] = $lang;
|
37 |
-
// $_GET["lang"] = $lang;
|
38 |
-
}
|
39 |
-
|
40 |
-
// make sure the status is publish and nothing else (yes, perhaps I named it bad elsewhere)
|
41 |
-
if ("published" === $post_status) $post_status = "publish";
|
42 |
-
|
43 |
-
// remove possibly empty posts
|
44 |
-
$arr_post_names = array();
|
45 |
-
foreach ($post_names as $one_post_name) {
|
46 |
-
if ( trim($one_post_name) ) {
|
47 |
-
$arr_post_names[] = $one_post_name;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
$arr_post_names_count = sizeof($arr_post_names);
|
52 |
-
|
53 |
-
// check that there are pages left
|
54 |
-
if (empty($arr_post_names)) die("Error: no pages to add.");
|
55 |
-
|
56 |
-
$ref_post = get_post($ref_post_id);
|
57 |
-
if (NULL === $ref_post) die("Error: could not load reference post.");
|
58 |
-
|
59 |
-
// Make room for our new pages
|
60 |
-
// Get all pages at a level level and loop until our reference page
|
61 |
-
// and then all pages after that one will get it's menu_order
|
62 |
-
// increased by the same number as the number of new posts we're gonna add
|
63 |
-
|
64 |
-
$post_parent = 0;
|
65 |
-
if ("after" === $post_position) {
|
66 |
-
$post_parent = $ref_post->post_parent;
|
67 |
-
} elseif ("inside" === $post_position) {
|
68 |
-
$post_parent = $ref_post->ID;
|
69 |
-
}
|
70 |
-
|
71 |
-
|
72 |
-
/*
|
73 |
-
perhaps for wpml:
|
74 |
-
suppress_filters=0
|
75 |
-
|
76 |
-
*/
|
77 |
-
|
78 |
-
$args = array(
|
79 |
-
"post_status" => "any",
|
80 |
-
"post_type" => $ref_post->post_type,
|
81 |
-
"numberposts" => -1,
|
82 |
-
"offset" => 0,
|
83 |
-
"orderby" => 'menu_order',
|
84 |
-
'order' => 'asc',
|
85 |
-
'post_parent' => $post_parent,
|
86 |
-
"suppress_filters" => FALSE
|
87 |
-
);
|
88 |
-
//if ($lang) $args["lang"] = $lang;
|
89 |
-
$posts = get_posts($args);
|
90 |
-
|
91 |
-
#sf_d($_GET["lang"]);sf_d($args);sf_d($posts);exit;
|
92 |
-
|
93 |
-
// If posts exist at this level, make room for our new pages by increasing the menu order
|
94 |
-
if (sizeof($posts) > 0) {
|
95 |
-
|
96 |
-
if ("after" === $post_position) {
|
97 |
-
|
98 |
-
$has_passed_ref_post = FALSE;
|
99 |
-
foreach ($posts as $one_post) {
|
100 |
-
|
101 |
-
if ($has_passed_ref_post) {
|
102 |
-
|
103 |
-
$post_update = array(
|
104 |
-
"ID" => $one_post->ID,
|
105 |
-
"menu_order" => $one_post->menu_order + $arr_post_names_count
|
106 |
-
);
|
107 |
-
$return_id = wp_update_post($post_update);
|
108 |
-
if (0 ===$return_id) die("Error: could not update post with id " . $post_update->ID);
|
109 |
-
|
110 |
-
}
|
111 |
-
|
112 |
-
if ( ! $has_passed_ref_post && $ref_post->ID === $one_post->ID) {
|
113 |
-
$has_passed_ref_post = TRUE;
|
114 |
-
}
|
115 |
-
|
116 |
-
}
|
117 |
-
|
118 |
-
$new_menu_order = $ref_post->menu_order;
|
119 |
-
|
120 |
-
} elseif ("inside" === $post_position) {
|
121 |
-
|
122 |
-
// in inside, place at beginning
|
123 |
-
// so just get first post and use that menu order as base
|
124 |
-
$new_menu_order = $posts[0]->menu_order - $arr_post_names_count;
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
|
129 |
-
} else {
|
130 |
-
|
131 |
-
// no posts, start at 0
|
132 |
-
$new_menu_order = 0;
|
133 |
-
|
134 |
-
}
|
135 |
-
|
136 |
-
$post_parent_id = NULL;
|
137 |
-
if ("after" === $post_position) {
|
138 |
-
$post_parent_id = $ref_post->post_parent;
|
139 |
-
} elseif ("inside" === $post_position) {
|
140 |
-
$post_parent_id = $ref_post->ID;
|
141 |
-
}
|
142 |
-
|
143 |
-
// Done maybe updating menu orders, add the new pages
|
144 |
-
$arr_added_pages_ids = array();
|
145 |
-
foreach ($arr_post_names as $one_new_post_name) {
|
146 |
-
|
147 |
-
$new_menu_order++;
|
148 |
-
$newpost_args = array(
|
149 |
-
"menu_order" => $new_menu_order,
|
150 |
-
"post_parent" => $post_parent_id,
|
151 |
-
"post_status" => $post_status,
|
152 |
-
"post_title" => $one_new_post_name,
|
153 |
-
"post_type" => $ref_post->post_type
|
154 |
-
);
|
155 |
-
$new_post_id = wp_insert_post($newpost_args);
|
156 |
-
|
157 |
-
if (0 === $new_post_id) {
|
158 |
-
die("Error: could not add post");
|
159 |
-
}
|
160 |
-
|
161 |
-
$arr_added_pages_ids[] = $new_post_id;
|
162 |
-
|
163 |
-
|
164 |
-
}
|
165 |
-
|
166 |
-
// Done. Redirect to the first page created.
|
167 |
-
$first_post_edit_link = get_edit_post_link($arr_added_pages_ids[0], "");
|
168 |
-
wp_redirect($first_post_edit_link);
|
169 |
-
|
170 |
-
exit;
|
171 |
-
|
172 |
-
}
|
173 |
-
|
174 |
// for debug, remember to comment out (yes.. i *know* i will forget this later on...)
|
175 |
// require("FirePHPCore/FirePHP.class.php");
|
176 |
// $firephp = FirePHP::getInstance(true);
|
177 |
|
178 |
-
/**
|
179 |
-
* Output and add hooks in head
|
180 |
-
*/
|
181 |
function cms_tpv_admin_head() {
|
182 |
|
183 |
-
if (!cms_tpv_is_one_of_our_pages()) return;
|
184 |
-
|
185 |
-
cms_tpv_setup_postsoverview();
|
186 |
-
|
187 |
global $cms_tpv_view;
|
188 |
if (isset($_GET["cms_tpv_view"])) {
|
189 |
-
$cms_tpv_view =
|
190 |
} else {
|
191 |
$cms_tpv_view = "all";
|
192 |
}
|
@@ -212,96 +34,47 @@ function cms_tpv_admin_head() {
|
|
212 |
<?php
|
213 |
}
|
214 |
|
215 |
-
/**
|
216 |
-
* Detect if we are on a page that use CMS Tree Page View
|
217 |
-
*/
|
218 |
-
function cms_tpv_is_one_of_our_pages() {
|
219 |
-
|
220 |
-
$options = cms_tpv_get_options();
|
221 |
-
$post_type = cms_tpv_get_selected_post_type();
|
222 |
-
|
223 |
-
if (! function_exists("get_current_screen")) return FALSE;
|
224 |
-
|
225 |
-
$current_screen = get_current_screen();
|
226 |
-
$is_plugin_page = FALSE;
|
227 |
-
|
228 |
-
// Check if current page is one of the ones defined in $options["menu"]
|
229 |
-
foreach ($options["menu"] as $one_post_type) {
|
230 |
-
if ( strpos($current_screen->id, "_page_cms-tpv-page-{$one_post_type}") !== FALSE) {
|
231 |
-
$is_plugin_page = TRUE;
|
232 |
-
break;
|
233 |
-
}
|
234 |
-
}
|
235 |
-
|
236 |
-
// Check if current page is one of the ones defined in $options["postsoverview"]
|
237 |
-
if ($current_screen->base === "edit" && in_array($current_screen->post_type, $options["postsoverview"])) {
|
238 |
-
$is_plugin_page = TRUE;
|
239 |
-
}
|
240 |
-
|
241 |
-
if ($current_screen->id === "settings_page_cms-tpv-options") {
|
242 |
-
// Is settings page for plugin
|
243 |
-
$is_plugin_page = TRUE;
|
244 |
-
} elseif ($current_screen->id === "dashboard" && !empty($options["dashboard"])) {
|
245 |
-
// At least one post type is enabled to be visible on dashboard
|
246 |
-
$is_plugin_page = TRUE;
|
247 |
-
}
|
248 |
-
|
249 |
-
return $is_plugin_page;
|
250 |
-
|
251 |
-
}
|
252 |
-
|
253 |
-
/**
|
254 |
-
* Add styles and scripts to pages that use the plugin
|
255 |
-
*/
|
256 |
function cms_admin_enqueue_scripts() {
|
257 |
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
"Status_private_ucase" => ucfirst( __("private", 'cms-tree-page-view') ),
|
297 |
-
"Status_trash_ucase" => ucfirst( __("trash", 'cms-tree-page-view') ),
|
298 |
-
"Password_protected_page" => __("Password protected page", 'cms-tree-page-view'),
|
299 |
-
"Adding_page" => __("Adding page...", 'cms-tree-page-view'),
|
300 |
-
"Adding" => __("Adding ...", 'cms-tree-page-view'),
|
301 |
-
);
|
302 |
-
wp_localize_script( "cms_tree_page_view", 'cmstpv_l10n', $oLocale);
|
303 |
|
304 |
-
}
|
305 |
|
306 |
}
|
307 |
|
@@ -313,157 +86,32 @@ function cms_tpv_admin_init() {
|
|
313 |
|
314 |
load_plugin_textdomain('cms-tree-page-view', WP_CONTENT_DIR . "/plugins/languages", "/cms-tree-page-view/languages");
|
315 |
|
316 |
-
// add row to plugin page
|
317 |
-
add_filter( 'plugin_row_meta', 'cms_tpv_set_plugin_row_meta', 10, 2 );
|
318 |
-
|
319 |
-
}
|
320 |
-
|
321 |
-
/**
|
322 |
-
* Check if this is a post overview page and that plugin is enabled for this overview page
|
323 |
-
*/
|
324 |
-
function cms_tpv_setup_postsoverview() {
|
325 |
-
|
326 |
-
$options = cms_tpv_get_options();
|
327 |
-
$current_screen = get_current_screen();
|
328 |
-
|
329 |
-
if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
|
330 |
-
|
331 |
-
// Ok, this is a post overview page that we are enabled for
|
332 |
-
add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
|
333 |
-
|
334 |
-
cmstpv_postoverview_head();
|
335 |
-
|
336 |
-
}
|
337 |
-
|
338 |
-
}
|
339 |
-
|
340 |
-
/**
|
341 |
-
* Add style etc to wp head to minimize flashing content
|
342 |
-
*/
|
343 |
-
function cmstpv_postoverview_head() {
|
344 |
-
|
345 |
-
if ( isset($_GET["mode"]) && $_GET["mode"] === "tree" ) {
|
346 |
-
?>
|
347 |
-
<style>
|
348 |
-
/* hide and position WP things */
|
349 |
-
/* TODO: move this to wp head so we don't have time to see wps own stuff */
|
350 |
-
.subsubsub, .tablenav.bottom, .tablenav .actions, .wp-list-table, .search-box, .tablenav .tablenav-pages { display: none !important; }
|
351 |
-
.tablenav.top { float: right; }
|
352 |
-
.view-switch { visibility: hidden; }
|
353 |
-
</style>
|
354 |
-
<?php
|
355 |
-
} else {
|
356 |
-
// post overview is enabled, but not active
|
357 |
-
// make room for our icon directly so page does not look jerky while adding it
|
358 |
-
?>
|
359 |
-
<style>
|
360 |
-
.view-switch {
|
361 |
-
padding-right: 23px;
|
362 |
-
}
|
363 |
-
</style>
|
364 |
-
<?php
|
365 |
-
}
|
366 |
-
|
367 |
}
|
368 |
|
369 |
-
|
370 |
-
* Output tree and html code for post overview page
|
371 |
-
*/
|
372 |
-
function cmstpv_filter_views_edit_postsoverview($filter_var) {
|
373 |
-
|
374 |
-
$current_screen = get_current_screen();
|
375 |
-
|
376 |
-
ob_start();
|
377 |
-
cms_tpv_print_common_tree_stuff();
|
378 |
-
$tree_common_stuff = ob_get_clean();
|
379 |
-
|
380 |
-
/*
|
381 |
-
on non hierarcical post types this one exists:
|
382 |
-
tablenav-pages one-page
|
383 |
-
then after:
|
384 |
-
<div class="view-switch">
|
385 |
-
|
386 |
-
if view-switch exists: add item to it
|
387 |
-
if view-switch not exists: add it + item to it
|
388 |
-
|
389 |
-
http://playground.ep/wordpress/wp-admin/images/list.png
|
390 |
-
*/
|
391 |
-
$mode = "tree";
|
392 |
-
$class = isset($_GET["mode"]) && $_GET["mode"] == $mode ? " class='current' " : "";
|
393 |
-
$title = __("Tree View", 'cms-tree-page-view');
|
394 |
-
$tree_a = "<a href='" . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . "' $class> <img id='view-switch-$mode' src='" . esc_url( includes_url( 'images/blank.gif' ) ) . "' width='20' height='20' title='$title' alt='$title' /></a>\n";
|
395 |
-
|
396 |
-
// Copy of wordpress own, if it does not exist
|
397 |
-
$wp_list_a = "";
|
398 |
-
if (is_post_type_hierarchical( $current_screen->post_type ) ) {
|
399 |
-
|
400 |
-
$mode = "list";
|
401 |
-
$class = isset($_GET["mode"]) && $_GET["mode"] != $mode ? " class='cmstpv_add_list_view' " : " class='cmstpv_add_list_view current' ";
|
402 |
-
$title = __("List View");
|
403 |
-
$wp_list_a = "<a href='" . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . "' $class><img id='view-switch-$mode' src='" . esc_url( includes_url( 'images/blank.gif' ) ) . "' width='20' height='20' title='$title' alt='$title' /></a>\n";
|
404 |
-
|
405 |
-
}
|
406 |
-
|
407 |
-
$out = "";
|
408 |
-
$out .= $tree_a;
|
409 |
-
$out .= $wp_list_a;
|
410 |
-
|
411 |
-
// Output tree related stuff if that view/mode is selected
|
412 |
-
if (isset($_GET["mode"]) && $_GET["mode"] === "tree") {
|
413 |
-
|
414 |
-
$out .= sprintf('
|
415 |
-
<div class="cmstpv-postsoverview-wrap">
|
416 |
-
%1$s
|
417 |
-
</div>
|
418 |
-
', $tree_common_stuff);
|
419 |
-
|
420 |
-
}
|
421 |
-
|
422 |
-
echo $out;
|
423 |
-
|
424 |
-
return $filter_var;
|
425 |
-
|
426 |
-
}
|
427 |
-
|
428 |
-
|
429 |
-
/**
|
430 |
-
* Add settings link to plugin page
|
431 |
-
* Hopefully this helps some people to find the settings page quicker
|
432 |
-
*/
|
433 |
-
function cms_tpv_set_plugin_row_meta($links, $file) {
|
434 |
-
|
435 |
-
if ($file === "cms-tree-page-view/index.php") {
|
436 |
-
return array_merge(
|
437 |
-
$links,
|
438 |
-
array( sprintf( '<a href="options-general.php?page=%s">%s</a>', "cms-tpv-options", __('Settings') ) )
|
439 |
-
);
|
440 |
-
}
|
441 |
-
return $links;
|
442 |
-
|
443 |
-
}
|
444 |
-
|
445 |
-
|
446 |
-
/**
|
447 |
-
* Save settings, called when saving settings in general > cms tree page view
|
448 |
-
*/
|
449 |
function cms_tpv_save_settings() {
|
450 |
-
|
451 |
if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings") {
|
452 |
-
|
453 |
$options = array();
|
454 |
$options["dashboard"] = (array) $_POST["post-type-dashboard"];
|
455 |
$options["menu"] = (array) $_POST["post-type-menu"];
|
456 |
-
$options["postsoverview"] = (array) $_POST["post-type-postsoverview"];
|
457 |
-
|
458 |
update_option('cms_tpv_options', $options); // enable this to show box
|
459 |
-
|
460 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
|
|
|
462 |
}
|
463 |
|
464 |
-
/**
|
465 |
-
* Add widget to dashboard
|
466 |
-
*/
|
467 |
function cms_tpv_wp_dashboard_setup() {
|
468 |
// add dashboard to capability edit_pages only
|
469 |
if (current_user_can("edit_pages")) {
|
@@ -471,8 +119,7 @@ function cms_tpv_wp_dashboard_setup() {
|
|
471 |
foreach ($options["dashboard"] as $one_dashboard_post_type) {
|
472 |
$post_type_object = get_post_type_object($one_dashboard_post_type);
|
473 |
$new_func_name = create_function('', "cms_tpv_dashboard('$one_dashboard_post_type');");
|
474 |
-
|
475 |
-
wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $widget_name, $new_func_name );
|
476 |
}
|
477 |
}
|
478 |
}
|
@@ -482,7 +129,7 @@ function cms_tpv_wp_dashboard_setup() {
|
|
482 |
* Output on dashboard
|
483 |
*/
|
484 |
function cms_tpv_dashboard($post_type = "") {
|
485 |
-
//cms_tpv_show_annoying_box();
|
486 |
cms_tpv_print_common_tree_stuff($post_type);
|
487 |
}
|
488 |
|
@@ -498,10 +145,8 @@ function cms_tpv_admin_menu() {
|
|
498 |
$slug = "edit.php?post_type=$one_menu_post_type";
|
499 |
}
|
500 |
$post_type_object = get_post_type_object($one_menu_post_type);
|
501 |
-
|
502 |
-
$
|
503 |
-
$page_title = _x(sprintf('%1$s Tree View', $post_type_object->labels->name), "title on page with tree", "cms-tree-page-view");
|
504 |
-
add_submenu_page($slug, $page_title, $menu_name, $post_type_object->cap->edit_posts, "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");
|
505 |
}
|
506 |
|
507 |
add_submenu_page( 'options-general.php' , CMS_TPV_NAME, CMS_TPV_NAME, "administrator", "cms-tpv-options", "cms_tpv_options");
|
@@ -514,107 +159,89 @@ function cms_tpv_admin_menu() {
|
|
514 |
*/
|
515 |
function cms_tpv_options() {
|
516 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
?>
|
518 |
<div class="wrap">
|
519 |
|
520 |
-
<?php cms_tpv_show_annoying_box(); ?>
|
521 |
-
|
522 |
-
<?php screen_icon(); ?>
|
523 |
<h2><?php echo CMS_TPV_NAME ?> <?php _e("settings", 'cms-tree-page-view') ?></h2>
|
524 |
|
525 |
-
<form method="post" action="options.php"
|
526 |
-
|
527 |
<?php wp_nonce_field('update-options'); ?>
|
528 |
|
529 |
<h3><?php _e("Select where to show a tree for pages and custom post types", 'cms-tree-page-view')?></h3>
|
530 |
|
531 |
-
|
532 |
-
|
533 |
-
<tbody>
|
534 |
-
|
535 |
-
<?php
|
536 |
-
|
537 |
-
$options = cms_tpv_get_options();
|
538 |
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
// 14 jul 2011: ok, let's enable it for posts too. some people says it useful
|
551 |
-
// http://wordpress.org/support/topic/this-plugin-should-work-also-on-posts
|
552 |
-
// continue;
|
553 |
-
} else if ($name === "attachment") {
|
554 |
-
// No support for media/attachment
|
555 |
-
continue;
|
556 |
-
}
|
557 |
-
|
558 |
-
$arr_page_options[] = "post-type-dashboard-$name";
|
559 |
-
$arr_page_options[] = "post-type-menu-$name";
|
560 |
-
$arr_page_options[] = "post-type-postsoverview-$name";
|
561 |
-
|
562 |
-
echo "<tr>";
|
563 |
-
|
564 |
-
echo "<th scope='row'>";
|
565 |
-
echo "<p>".$one_post_type->label."</p>";
|
566 |
-
echo "</th>";
|
567 |
-
|
568 |
-
echo "<td>";
|
569 |
-
|
570 |
-
echo "<p>";
|
571 |
-
|
572 |
-
$checked = (in_array($name, $options["dashboard"])) ? " checked='checked' " : "";
|
573 |
-
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>";
|
574 |
-
|
575 |
-
echo "<br />";
|
576 |
-
$checked = (in_array($name, $options["menu"])) ? " checked='checked' " : "";
|
577 |
-
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>";
|
578 |
-
|
579 |
-
echo "<br />";
|
580 |
-
$checked = (in_array($name, $options["postsoverview"])) ? " checked='checked' " : "";
|
581 |
-
echo "<input $checked type='checkbox' name='post-type-postsoverview[]' value='$name' id='post-type-postsoverview-$name' /> <label for='post-type-postsoverview-$name'>" . __("On post overview screen", 'cms-tree-page-view') . "</label>";
|
582 |
-
|
583 |
-
echo "</p>";
|
584 |
-
|
585 |
-
echo "</td>";
|
586 |
-
|
587 |
-
echo "</tr>";
|
588 |
|
589 |
-
|
590 |
|
591 |
-
|
592 |
-
|
593 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
594 |
|
|
|
|
|
595 |
<input type="hidden" name="action" value="update" />
|
596 |
<input type="hidden" name="cms_tpv_action" value="save_settings" />
|
597 |
<input type="hidden" name="page_options" value="<?php echo join($arr_page_options, ",") ?>" />
|
598 |
<p class="submit">
|
599 |
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'cms-tree-page-view') ?>" />
|
600 |
</p>
|
601 |
-
|
602 |
</form>
|
603 |
-
|
604 |
</div>
|
605 |
|
606 |
<?php
|
607 |
}
|
608 |
|
609 |
-
/**
|
610 |
-
* Load settings
|
611 |
-
* @return array with options
|
612 |
-
*/
|
613 |
function cms_tpv_get_options() {
|
614 |
$arr_options = (array) get_option('cms_tpv_options');
|
615 |
-
$arr_options["dashboard"] = (array)
|
616 |
-
$arr_options["menu"] = (array)
|
617 |
-
$arr_options["postsoverview"] = (array) @$arr_options["postsoverview"];
|
618 |
return $arr_options;
|
619 |
}
|
620 |
|
@@ -630,7 +257,7 @@ function cms_tpv_get_selected_post_type() {
|
|
630 |
}
|
631 |
if (!$post_type) {
|
632 |
// no post type, happens with ozh admin drop down, so get it via page instead
|
633 |
-
$page =
|
634 |
$post_type = str_replace("cms-tpv-page-", "", $page);
|
635 |
}
|
636 |
|
@@ -650,111 +277,27 @@ function cms_tpv_is_post_type_hierarchical($post_type_object) {
|
|
650 |
return $is_hierarchical;
|
651 |
}
|
652 |
|
653 |
-
/**
|
654 |
-
* Get number of posts from WPML
|
655 |
-
*/
|
656 |
-
function cms_tpv_get_wpml_post_counts($post_type) {
|
657 |
-
|
658 |
-
global $wpdb;
|
659 |
-
|
660 |
-
$arr_statuses = array("publish", "draft", "trash");
|
661 |
-
$arr_counts = array();
|
662 |
-
|
663 |
-
foreach ($arr_statuses as $post_status) {
|
664 |
-
|
665 |
-
$extra_cond = "";
|
666 |
-
if ($post_status){
|
667 |
-
$extra_cond .= " AND post_status = '" . $post_status . "'";
|
668 |
-
}
|
669 |
-
if ($post_status != 'trash'){
|
670 |
-
$extra_cond .= " AND post_status <> 'trash'";
|
671 |
-
}
|
672 |
-
$extra_cond .= " AND post_status <> 'auto-draft'";
|
673 |
-
$sql = "
|
674 |
-
SELECT language_code, COUNT(p.ID) AS c FROM {$wpdb->prefix}icl_translations t
|
675 |
-
JOIN {$wpdb->posts} p ON t.element_id=p.ID
|
676 |
-
JOIN {$wpdb->prefix}icl_languages l ON t.language_code=l.code AND l.active = 1
|
677 |
-
WHERE p.post_type='{$post_type}' AND t.element_type='post_{$post_type}' {$extra_cond}
|
678 |
-
GROUP BY language_code
|
679 |
-
";
|
680 |
-
$res = $wpdb->get_results($sql);
|
681 |
-
|
682 |
-
$langs = array();
|
683 |
-
$langs['all'] = 0;
|
684 |
-
foreach($res as $r) {
|
685 |
-
$langs[$r->language_code] = $r->c;
|
686 |
-
$langs['all'] += $r->c;
|
687 |
-
}
|
688 |
-
|
689 |
-
$arr_counts[$post_status] = $langs;
|
690 |
-
|
691 |
-
}
|
692 |
-
|
693 |
-
return $arr_counts;
|
694 |
-
|
695 |
-
}
|
696 |
-
|
697 |
-
|
698 |
/**
|
699 |
* Print tree stuff that is common for both dashboard and page
|
700 |
*/
|
701 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
702 |
|
703 |
-
global $sitepress, $cms_tpv_view, $wpdb;
|
704 |
-
|
705 |
if (!$post_type) {
|
706 |
$post_type = cms_tpv_get_selected_post_type();
|
707 |
}
|
708 |
-
|
709 |
$post_type_object = get_post_type_object($post_type);
|
710 |
$get_pages_args = array("post_type" => $post_type);
|
711 |
|
712 |
$pages = cms_tpv_get_pages($get_pages_args);
|
713 |
|
714 |
-
// check if wpml is active and if this post type is one of its enabled ones
|
715 |
$wpml_current_lang = "";
|
716 |
-
$
|
717 |
-
|
718 |
-
|
719 |
-
$wpml_post_types = $sitepress->get_translatable_documents();
|
720 |
-
if (array_key_exists($post_type, $wpml_post_types)) {
|
721 |
-
$wmpl_active_for_post = TRUE;
|
722 |
-
$wpml_current_lang = $sitepress->get_current_language();
|
723 |
-
}
|
724 |
-
|
725 |
-
}
|
726 |
-
|
727 |
-
$status_data_attributes = array("all" => "", "publish" => "", "trash" => "");
|
728 |
-
|
729 |
-
// Calculate post counts
|
730 |
-
if ($wpml_current_lang) {
|
731 |
-
|
732 |
-
// Count code for WPML, mostly taken/inspired from WPML Multilingual CMS, sitepress.class.php
|
733 |
-
$langs = array();
|
734 |
-
|
735 |
-
$wpml_post_counts = cms_tpv_get_wpml_post_counts($post_type);
|
736 |
-
|
737 |
-
$post_count_all = @$wpml_post_counts["publish"][$wpml_current_lang] + @$wpml_post_counts["draft"][$wpml_current_lang];
|
738 |
-
$post_count_publish = @$wpml_post_counts["publish"][$wpml_current_lang];
|
739 |
-
$post_count_trash = @$wpml_post_counts["trash"][$wpml_current_lang];
|
740 |
-
|
741 |
-
foreach ($wpml_post_counts["publish"] as $one_wpml_lang => $one_wpml_lang_count) {
|
742 |
-
if ("all" === $one_wpml_lang) continue;
|
743 |
-
$lang_post_count_all = (int) @$wpml_post_counts["publish"][$one_wpml_lang] + (int) @$wpml_post_counts["draft"][$one_wpml_lang];
|
744 |
-
$lang_post_count_publish = (int) @$wpml_post_counts["publish"][$one_wpml_lang];
|
745 |
-
$lang_post_count_trash = (int) @$wpml_post_counts["trash"][$one_wpml_lang];
|
746 |
-
$status_data_attributes["all"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_all}' ";
|
747 |
-
$status_data_attributes["publish"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_publish}' ";
|
748 |
-
$status_data_attributes["trash"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_trash}' ";
|
749 |
-
}
|
750 |
-
|
751 |
-
} else {
|
752 |
-
$post_count = wp_count_posts($post_type);
|
753 |
-
$post_count_all = $post_count->publish + $post_count->future + $post_count->draft + $post_count->pending + $post_count->private;
|
754 |
-
$post_count_publish = $post_count->publish;
|
755 |
-
$post_count_trash = $post_count->trash;
|
756 |
}
|
757 |
|
|
|
758 |
// output js for the root/top level
|
759 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
760 |
// @todo: make into function since used at other places
|
@@ -769,7 +312,6 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
769 |
ob_start();
|
770 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
771 |
$json_data = ob_get_clean();
|
772 |
-
if (! $json_data) $json_data = '{}';
|
773 |
?>
|
774 |
<script type="text/javascript">
|
775 |
cms_tpv_jsondata.<?php echo $post_type ?> = <?php echo $json_data ?>;
|
@@ -781,9 +323,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
781 |
<input type="hidden" name="cms_tpv_meta_wpml_language" value="<?php echo $wpml_current_lang ?>" />
|
782 |
<?php
|
783 |
|
784 |
-
// check if WPML is activated
|
785 |
-
if
|
786 |
-
|
787 |
$wpml_langs = icl_get_languages();
|
788 |
$wpml_active_lang = null;
|
789 |
if (sizeof($wpml_langs)>=1) {
|
@@ -796,51 +338,38 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
796 |
$wpml_active_lang = $one_lang;
|
797 |
$selected = "current";
|
798 |
}
|
799 |
-
|
800 |
-
$lang_count = @$wpml_post_counts["publish"][$one_lang["language_code"]] + @$wpml_post_counts["draft"][$one_lang["language_code"]];
|
801 |
-
|
802 |
-
$lang_out .= "
|
803 |
-
<li>
|
804 |
-
<a class='cms_tvp_switch_lang $selected cms_tpv_switch_language_code_{$one_lang["language_code"]}' href='#'>
|
805 |
-
$one_lang_details[display_name]
|
806 |
-
<span class='count'>(" . $lang_count . ")</span>
|
807 |
-
</a> |</li>";
|
808 |
}
|
809 |
-
$lang_out = preg_replace('/
|
810 |
$lang_out .= "</ul>";
|
811 |
echo $lang_out;
|
812 |
}
|
813 |
-
|
814 |
}
|
815 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
if (empty($pages)) {
|
817 |
-
|
818 |
echo '<div class="updated fade below-h2"><p>' . __("No posts found.", 'cms-tree-page-view') . '</p></div>';
|
819 |
-
|
820 |
-
}
|
821 |
-
|
822 |
-
if (true) {
|
823 |
-
|
824 |
// start the party!
|
825 |
-
|
826 |
?>
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
</a> |</li>
|
833 |
-
<li class="cms_tvp_view_is_status_view">
|
834 |
-
<a class="cms_tvp_view_public <?php echo ($cms_tpv_view=="public") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["publish"] ?>>
|
835 |
-
<?php _e("Public", 'cms-tree-page-view') ?>
|
836 |
-
<span class="count">(<?php echo $post_count_publish ?>)</span>
|
837 |
-
</a> |</li>
|
838 |
-
<li class="cms_tvp_view_is_status_view">
|
839 |
-
<a class="cms_tvp_view_trash <?php echo ($cms_tpv_view=="trash") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["trash"] ?>>
|
840 |
-
<?php _e("Trash", 'cms-tree-page-view') ?>
|
841 |
-
<span class="count">(<?php echo $post_count_trash ?>)</span>
|
842 |
-
</a>
|
843 |
-
</li>
|
844 |
|
845 |
<?php
|
846 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
@@ -855,12 +384,11 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
855 |
<form class="cms_tree_view_search_form" method="get" action="">
|
856 |
<input type="text" name="search" class="cms_tree_view_search" />
|
857 |
<a title="<?php _e("Clear search", 'cms-tree-page-view') ?>" class="cms_tree_view_search_form_reset" href="#">x</a>
|
858 |
-
<input type="submit" class="cms_tree_view_search_submit
|
859 |
<span class="cms_tree_view_search_form_working"><?php _e("Searching...", 'cms-tree-page-view') ?></span>
|
860 |
<span class="cms_tree_view_search_form_no_hits"><?php _e("Nothing found.", 'cms-tree-page-view') ?></span>
|
861 |
</form>
|
862 |
</li>
|
863 |
-
|
864 |
</ul>
|
865 |
|
866 |
<div class="cms_tpv_working">
|
@@ -877,81 +405,23 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
877 |
|
878 |
<div style="clear: both;"></div>
|
879 |
|
880 |
-
<!-- template forpopup with actions -->
|
881 |
<div class="cms_tpv_page_actions">
|
882 |
-
|
883 |
-
|
884 |
-
<h4 class="cms_tpv_page_actions_headline"></h4>
|
885 |
-
|
886 |
-
<p class="cms_tpv_action_edit_and_view">
|
887 |
-
<a href="#" title='<?php _e("Edit page", "cms-tree-page-view")?>' class='cms_tpv_action_edit'><?php _e("Edit", "cms-tree-page-view")?></a>
|
888 |
<a href="#" title='<?php _e("View page", "cms-tree-page-view")?>' class='cms_tpv_action_view'><?php _e("View", "cms-tree-page-view")?></a>
|
889 |
</p>
|
890 |
-
|
891 |
-
<!-- links to add page -->
|
892 |
<p class="cms_tpv_action_add_and_edit_page">
|
893 |
-
|
894 |
<span class='cms_tpv_action_add_page'><?php echo $post_type_object->labels->add_new_item ?></span>
|
895 |
-
|
896 |
<a href="#" title='<?php _e("Add new page after", "cms-tree-page-view")?>' class='cms_tpv_action_add_page_after'><?php _e("After", "cms-tree-page-view")?></a>
|
897 |
-
|
898 |
<?php
|
899 |
// if post type is hierarchical we can add pages inside
|
900 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
901 |
-
|
902 |
}
|
903 |
// if post status = draft then we can not add pages inside because wordpress currently can not keep its parent if we edit the page
|
904 |
?>
|
905 |
<!-- <span class="cms_tpv_action_add_page_inside_disallowed"><?php _e("Can not create page inside of a page with draft status", "cms-tree-page-view")?></span> -->
|
906 |
-
|
907 |
</p>
|
908 |
-
|
909 |
-
<div class="cms_tpv_action_add_doit">
|
910 |
-
|
911 |
-
<form method="post" action="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>">
|
912 |
-
|
913 |
-
<input type="hidden" name="action" value="cms_tpv_add_pages">
|
914 |
-
<input type="hidden" name="ref_post_id" value="">
|
915 |
-
|
916 |
-
<!-- lang for wpml -->
|
917 |
-
<input type="hidden" name="lang" value="">
|
918 |
-
|
919 |
-
<!-- <fieldset> -->
|
920 |
-
|
921 |
-
<h4><?php _e("Add page(s)", "cms-tree-page-view") ?></h4>
|
922 |
-
|
923 |
-
<div>
|
924 |
-
<!-- Pages<br> -->
|
925 |
-
<ul class="cms_tpv_action_add_doit_pages">
|
926 |
-
<li><span></span><input placeholder="<?php _e("Enter title here") ?>" type="text" name="cms_tpv_add_new_pages_names[]"></li>
|
927 |
-
</ul>
|
928 |
-
</div>
|
929 |
-
|
930 |
-
<div>
|
931 |
-
<?php _e("Position", "cms-tree-page-view") ?><br>
|
932 |
-
<label><input type="radio" name="cms_tpv_add_type" value="after"> <?php _e("After", "cms-tree-page-view") ?></label>
|
933 |
-
<label><input type="radio" name="cms_tpv_add_type" value="inside"> <?php _e("Inside", "cms-tree-page-view") ?></label>
|
934 |
-
</div>
|
935 |
-
|
936 |
-
|
937 |
-
<div>
|
938 |
-
<? _e("Status", "cms-tree-page-view") ?><br>
|
939 |
-
<label><input type="radio" name="cms_tpv_add_status" value="draft" checked> <?php _e("Draft", "cms-tree-page-view") ?></label>
|
940 |
-
<label><input type="radio" name="cms_tpv_add_status" value="published"> <?php _e("Published", "cms-tree-page-view") ?></label>
|
941 |
-
</div>
|
942 |
-
|
943 |
-
<div>
|
944 |
-
<input type="submit" value="<?php _e("Add", "cms-tree-page-view") ?>" class="button-primary">
|
945 |
-
<?php _e("or", "cms-tree-page-view") ?>
|
946 |
-
<a href="#" class="cms_tpv_add_cancel"><?php _e("cancel", "cms-tree-page-view") ?></a>
|
947 |
-
</div>
|
948 |
-
|
949 |
-
<!-- </fieldset> -->
|
950 |
-
|
951 |
-
</form>
|
952 |
-
|
953 |
-
</div>
|
954 |
-
|
955 |
<dl>
|
956 |
<dt><?php _e("Last modified", "cms-tree-page-view") ?></dt>
|
957 |
<dd>
|
@@ -961,7 +431,6 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
961 |
<dt><?php _e("Page ID", "cms-tree-page-view") ?></dt>
|
962 |
<dd><span class="cms_tpv_page_actions_page_id"></span></dd>
|
963 |
</dl>
|
964 |
-
|
965 |
<div class="cms_tpv_page_actions_columns"></div>
|
966 |
<span class="cms_tpv_page_actions_arrow"></span>
|
967 |
</div>
|
@@ -983,26 +452,9 @@ function cms_tpv_pages_page() {
|
|
983 |
$post_type = cms_tpv_get_selected_post_type();
|
984 |
$post_type_object = get_post_type_object($post_type);
|
985 |
|
986 |
-
if ( 'post' != $post_type ) {
|
987 |
-
$post_new_file = "post-new.php?post_type=$post_type";
|
988 |
-
} else {
|
989 |
-
$post_new_file = 'post-new.php';
|
990 |
-
}
|
991 |
-
|
992 |
?>
|
993 |
<div class="wrap">
|
994 |
-
|
995 |
-
<h2><?php
|
996 |
-
|
997 |
-
$page_title = _x(sprintf('%1$s Tree View', $post_type_object->labels->name), "headline of page with tree", "cms-tree-page-view");
|
998 |
-
echo $page_title;
|
999 |
-
|
1000 |
-
// Add "add new" link the same way as the regular post page has
|
1001 |
-
if ( current_user_can( $post_type_object->cap->create_posts ) ) {
|
1002 |
-
echo ' <a href="' . esc_url( $post_new_file ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
1003 |
-
}
|
1004 |
-
|
1005 |
-
?></h2>
|
1006 |
|
1007 |
<?php
|
1008 |
/*
|
@@ -1107,7 +559,6 @@ function cms_tpv_get_pages($args = null) {
|
|
1107 |
|
1108 |
#do_action_ref_array('parse_query', array(&$this));
|
1109 |
#print_r($get_posts_args);
|
1110 |
-
|
1111 |
$pages = get_posts($get_posts_args);
|
1112 |
|
1113 |
// filter out pages for wpml, by applying same filter as get_pages does
|
@@ -1148,9 +599,6 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1148 |
|
1149 |
global $post;
|
1150 |
|
1151 |
-
// Translated post statuses
|
1152 |
-
$post_statuses = get_post_statuses();
|
1153 |
-
|
1154 |
#cms_tpv_firedebug(timer_stop());
|
1155 |
|
1156 |
?>[<?php
|
@@ -1161,7 +609,6 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1161 |
$tmpPost = $post;
|
1162 |
$post = $onePage;
|
1163 |
$page_id = $onePage->ID;
|
1164 |
-
$arrChildPages = NULL;
|
1165 |
|
1166 |
$editLink = get_edit_post_link($onePage->ID, 'notDisplay');
|
1167 |
$content = esc_html($onePage->post_content);
|
@@ -1174,7 +621,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1174 |
$arrChildPages = cms_tpv_get_pages("parent={$onePage->ID}&view=$view&post_type=$post_type");
|
1175 |
}
|
1176 |
|
1177 |
-
if (
|
1178 |
$hasChildren = true;
|
1179 |
}
|
1180 |
// if no children, output no state
|
@@ -1262,15 +709,15 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1262 |
"data": {
|
1263 |
"title": "<?php echo $title ?>",
|
1264 |
"attr": {
|
1265 |
-
"href": "<?php echo $editLink ?>"
|
1266 |
-
|
1267 |
-
}
|
1268 |
-
"xicon": "<?php echo CMS_TPV_URL . "images/page_white_text.png" ?>"
|
1269 |
},
|
1270 |
"attr": {
|
1271 |
-
|
1272 |
"id": "cms-tpv-<?php echo $onePage->ID ?>",
|
1273 |
-
|
1274 |
"class": "<?php echo $user_can_edit_page_css ?>"
|
1275 |
},
|
1276 |
<?php echo $strState ?>
|
@@ -1279,20 +726,17 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1279 |
"post_id": "<?php echo $onePage->ID ?>",
|
1280 |
"post_type": "<?php echo $onePage->post_type ?>",
|
1281 |
"post_status": "<?php echo $onePage->post_status ?>",
|
1282 |
-
"post_status_translated": "<?php echo isset($post_statuses[$onePage->post_status]) ? $post_statuses[$onePage->post_status] : $onePage->post_status ?>",
|
1283 |
"rel": "<?php echo $rel ?>",
|
1284 |
-
"childCount": <?php echo (
|
1285 |
"permalink": "<?php echo htmlspecialchars_decode(get_permalink($onePage->ID)) ?>",
|
1286 |
"editlink": "<?php echo htmlspecialchars_decode($editLink) ?>",
|
1287 |
"modified_time": "<?php echo $post_modified_time ?>",
|
1288 |
"modified_author": "<?php echo $post_author ?>",
|
1289 |
"columns": <?php echo $str_columns ?>,
|
1290 |
-
"user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>"
|
1291 |
-
"post_title": "<?php echo $title ?>"
|
1292 |
}
|
1293 |
<?php
|
1294 |
// if id is in $arrOpenChilds then also output children on this one
|
1295 |
-
// TODO: if only "a few" (< 100?) pages then load all, but keep closed, so we don't have to do the ajax thingie
|
1296 |
if ($hasChildren && isset($arrOpenChilds) && in_array($onePage->ID, $arrOpenChilds)) {
|
1297 |
?>, "children": <?php
|
1298 |
cms_tpv_print_childs($onePage->ID, $view, $arrOpenChilds, $post_type);
|
@@ -1316,7 +760,6 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1316 |
}
|
1317 |
|
1318 |
// Act on AJAX-call
|
1319 |
-
// Get pages
|
1320 |
function cms_tpv_get_childs() {
|
1321 |
|
1322 |
header("Content-type: application/json");
|
@@ -1527,8 +970,7 @@ function cms_tpv_move_page() {
|
|
1527 |
$post_to_save = array(
|
1528 |
"ID" => $post_node->ID,
|
1529 |
"menu_order" => 0,
|
1530 |
-
"post_parent" => $post_ref_node->ID
|
1531 |
-
"post_type" => $post_ref_node->post_type
|
1532 |
);
|
1533 |
wp_update_post( $post_to_save );
|
1534 |
|
@@ -1549,8 +991,7 @@ function cms_tpv_move_page() {
|
|
1549 |
$post_to_save = array(
|
1550 |
"ID" => $post_node->ID,
|
1551 |
"menu_order" => $post_ref_node->menu_order,
|
1552 |
-
"post_parent" => $post_ref_node->post_parent
|
1553 |
-
"post_type" => $post_ref_node->post_type
|
1554 |
);
|
1555 |
wp_update_post( $post_to_save );
|
1556 |
|
@@ -1570,8 +1011,7 @@ function cms_tpv_move_page() {
|
|
1570 |
$post_to_save = array(
|
1571 |
"ID" => $post_node->ID,
|
1572 |
"menu_order" => $post_ref_node->menu_order+1,
|
1573 |
-
"post_parent" => $post_ref_node->post_parent
|
1574 |
-
"post_type" => $post_ref_node->post_type
|
1575 |
);
|
1576 |
wp_update_post( $post_to_save );
|
1577 |
|
@@ -1602,9 +1042,7 @@ function cms_tpv_move_page() {
|
|
1602 |
* Show a box with some dontate-links and stuff
|
1603 |
*/
|
1604 |
function cms_tpv_show_annoying_box() {
|
1605 |
-
|
1606 |
-
// update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing
|
1607 |
-
|
1608 |
if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
|
1609 |
$show_box = 0;
|
1610 |
update_option('cms_tpv_show_annoying_little_box', $show_box);
|
@@ -1614,28 +1052,9 @@ function cms_tpv_show_annoying_box() {
|
|
1614 |
if ($show_box) {
|
1615 |
?>
|
1616 |
<div class="cms_tpv_annoying_little_box">
|
1617 |
-
|
1618 |
-
<
|
1619 |
-
<p
|
1620 |
-
<p><?php _e('Hi there! I just wanna says thanks for using my plugin. I hope you like it as much as I do.', 'cms-tree-page-view') ?></p>
|
1621 |
-
<p class="cms_tpv_annoying_little_box_author"><a href="https://twitter.com/eskapism"><?php _e('/Pär Thernström - plugin creator', 'cms-tree-page-view') ?></a></p>
|
1622 |
-
|
1623 |
-
<h3><?php _e('I like this plugin<br>– how can I thank you?', 'cms-tree-page-view') ?></h3>
|
1624 |
-
<p><?php _e('There are serveral ways for you to show your appreciation:', 'cms-tree-page-view') ?></p>
|
1625 |
-
<ul>
|
1626 |
-
<li><?php printf(__('<a href="%1$s">Give it a nice review</a> over at the WordPress Plugin Directory', 'cms-tree-page-view'), "http://wordpress.org/support/view/plugin-reviews/cms-tree-page-view") ?></li>
|
1627 |
-
<li><?php printf(__('<a href="%1$s">Give a donation</a> – any amount will make me happy', 'cms-tree-page-view'), "http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox") ?></li>
|
1628 |
-
<li><?php printf(__('<a href="%1$s">Post a nice tweet</a> or make a nice blog post about the plugin', 'cms-tree-page-view'), "https://twitter.com/intent/tweet?text=I really like the CMS Tree Page View plugin for WordPress http://wordpress.org/extend/plugins/cms-tree-page-view/") ?></li>
|
1629 |
-
</ul>
|
1630 |
-
|
1631 |
-
<h3><?php _e('Support', 'cms-tree-page-view') ?></h3>
|
1632 |
-
<p><?php printf(__('Plese see the <a href="%1$s">support forum</a> for help.', 'cms-tree-page-view'), "http://wordpress.org/support/plugin/cms-tree-page-view") ?></p>
|
1633 |
-
|
1634 |
-
<p class="cms_tpv_annoying_little_box_close">
|
1635 |
-
<a href="<?php echo add_query_arg("action", "cms_tpv_remove_annoying_box")?>">
|
1636 |
-
<?php _e("Hide until next upgrade", 'cms-tree-page-view') ?>
|
1637 |
-
</a>
|
1638 |
-
</p>
|
1639 |
</div>
|
1640 |
<?php
|
1641 |
}
|
@@ -1656,51 +1075,19 @@ function cms_tpv_install() {
|
|
1656 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
1657 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
1658 |
|
1659 |
-
// first install or pre custom posts version:
|
1660 |
-
// make sure pages are enabled by default
|
1661 |
-
// run on admin_init so most themes and plugins have time to setup their things. late prio too.
|
1662 |
-
add_action("admin_init", "cms_tpv_setup_defaults", 999);
|
1663 |
-
|
1664 |
-
// set to current version
|
1665 |
-
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1666 |
-
}
|
1667 |
-
#cms_tpv_install();
|
1668 |
-
|
1669 |
-
/**
|
1670 |
-
* setup some defaults
|
1671 |
-
*/
|
1672 |
-
function cms_tpv_setup_defaults() {
|
1673 |
-
|
1674 |
// check and update version
|
1675 |
$version = get_option('cms_tpv_version', 0);
|
1676 |
-
#$version = 0; // uncomment to test default settings
|
1677 |
-
|
1678 |
if ($version <= 0) {
|
1679 |
-
|
|
|
1680 |
$options = array();
|
1681 |
-
|
1682 |
-
// Add pages to both dashboard and menu
|
1683 |
$options["dashboard"] = array("page");
|
1684 |
-
|
1685 |
-
// since 0.10.1 enable menu for all hierarchical custom post types
|
1686 |
-
// since 1.2 also enable on post overview page
|
1687 |
-
$post_types = get_post_types(array(
|
1688 |
-
"show_ui" => TRUE,
|
1689 |
-
"hierarchical" => TRUE
|
1690 |
-
), "objects");
|
1691 |
-
|
1692 |
-
foreach ($post_types as $one_post_type) {
|
1693 |
-
$options["menu"][] = $one_post_type->name;
|
1694 |
-
$options["postsoverview"][] = $one_post_type->name;
|
1695 |
-
}
|
1696 |
-
|
1697 |
-
$options["menu"] = array_unique($options["menu"]);
|
1698 |
-
$options["postsoverview"] = array_unique($options["postsoverview"]);
|
1699 |
-
|
1700 |
update_option('cms_tpv_options', $options);
|
1701 |
-
|
1702 |
}
|
1703 |
-
|
|
|
|
|
1704 |
}
|
1705 |
|
1706 |
// when plugins are loaded, check if current plugin version is same as stored
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
// for debug, remember to comment out (yes.. i *know* i will forget this later on...)
|
4 |
// require("FirePHPCore/FirePHP.class.php");
|
5 |
// $firephp = FirePHP::getInstance(true);
|
6 |
|
|
|
|
|
|
|
7 |
function cms_tpv_admin_head() {
|
8 |
|
|
|
|
|
|
|
|
|
9 |
global $cms_tpv_view;
|
10 |
if (isset($_GET["cms_tpv_view"])) {
|
11 |
+
$cms_tpv_view = $_GET["cms_tpv_view"];
|
12 |
} else {
|
13 |
$cms_tpv_view = "all";
|
14 |
}
|
34 |
<?php
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
function cms_admin_enqueue_scripts() {
|
38 |
|
39 |
+
wp_enqueue_script( "jquery-cookie", CMS_TPV_URL . "scripts/jquery.biscuit.js", array("jquery")); // renamed from cookie to fix problems with mod_security
|
40 |
+
wp_enqueue_script( "jquery-jstree", CMS_TPV_URL . "scripts/jquery.jstree.js", false, CMS_TPV_VERSION);
|
41 |
+
wp_enqueue_script( "jquery-alerts", CMS_TPV_URL . "scripts/jquery.alerts.js", false, CMS_TPV_VERSION);
|
42 |
+
wp_enqueue_script( "jquery-hoverintent", CMS_TPV_URL . "scripts/jquery.hoverIntent.minified.js", false, CMS_TPV_VERSION);
|
43 |
+
#wp_enqueue_script( "jquery-ui-dialog", CMS_TPV_URL . "scripts/jquery.ui.dialog.min.js", false, CMS_TPV_VERSION);
|
44 |
+
wp_enqueue_script( "cms_tree_page_view", CMS_TPV_URL . "scripts/cms_tree_page_view.js", false, CMS_TPV_VERSION);
|
45 |
+
|
46 |
+
// @todo: only load these when we do show a tree, ie. on the dashboard or showing the tree for a post type
|
47 |
+
// see: http://devpress.com/blog/how-to-load-javascript-in-the-wordpress-admin/
|
48 |
+
// admin_enqueue_scripts-hook?
|
49 |
+
wp_enqueue_style( "cms_tpv_styles", CMS_TPV_URL . "styles/styles.css", false, CMS_TPV_VERSION );
|
50 |
+
wp_enqueue_style( "jquery-alerts", CMS_TPV_URL . "styles/jquery.alerts.css", false, CMS_TPV_VERSION );
|
51 |
+
|
52 |
+
$oLocale = array(
|
53 |
+
"Enter_title_of_new_page" => __("Enter title of new page", 'cms-tree-page-view'),
|
54 |
+
"child_pages" => __("child pages", 'cms-tree-page-view'),
|
55 |
+
"Edit_page" => __("Edit page", 'cms-tree-page-view'),
|
56 |
+
"View_page" => __("View page", 'cms-tree-page-view'),
|
57 |
+
"Edit" => __("Edit", 'cms-tree-page-view'),
|
58 |
+
"View" => __("View", 'cms-tree-page-view'),
|
59 |
+
"Add_page" => __("Add page", 'cms-tree-page-view'),
|
60 |
+
"Add_new_page_after" => __("Add new page after", 'cms-tree-page-view'),
|
61 |
+
"after" => __("after", 'cms-tree-page-view'),
|
62 |
+
"inside" => __("inside", 'cms-tree-page-view'),
|
63 |
+
"Can_not_add_sub_page_when_status_is_draft" => __("Sorry, can't create a sub page to a page with status \"draft\".", 'cms-tree-page-view'),
|
64 |
+
"Can_not_add_sub_page_when_status_is_trash" => __("Sorry, can't create a sub page to a page with status \"trash\".", 'cms-tree-page-view'),
|
65 |
+
"Can_not_add_page_after_when_status_is_trash" => __("Sorry, can't create a page after a page with status \"trash\".", 'cms-tree-page-view'),
|
66 |
+
"Add_new_page_inside" => __("Add new page inside", 'cms-tree-page-view'),
|
67 |
+
"Status_draft" => __("draft", 'cms-tree-page-view'),
|
68 |
+
"Status_future" => __("future", 'cms-tree-page-view'),
|
69 |
+
"Status_password" => __("protected", 'cms-tree-page-view'), // is "protected" word better than "password" ?
|
70 |
+
"Status_pending" => __("pending", 'cms-tree-page-view'),
|
71 |
+
"Status_private" => __("private", 'cms-tree-page-view'),
|
72 |
+
"Status_trash" => __("trash", 'cms-tree-page-view'),
|
73 |
+
"Password_protected_page" => __("Password protected page", 'cms-tree-page-view'),
|
74 |
+
"Adding_page" => __("Adding page...", 'cms-tree-page-view'),
|
75 |
+
);
|
76 |
+
wp_localize_script( "cms_tree_page_view", 'cmstpv_l10n', $oLocale);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
|
|
78 |
|
79 |
}
|
80 |
|
86 |
|
87 |
load_plugin_textdomain('cms-tree-page-view', WP_CONTENT_DIR . "/plugins/languages", "/cms-tree-page-view/languages");
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
+
// save settings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
function cms_tpv_save_settings() {
|
|
|
93 |
if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings") {
|
|
|
94 |
$options = array();
|
95 |
$options["dashboard"] = (array) $_POST["post-type-dashboard"];
|
96 |
$options["menu"] = (array) $_POST["post-type-menu"];
|
|
|
|
|
97 |
update_option('cms_tpv_options', $options); // enable this to show box
|
|
|
98 |
}
|
99 |
+
/*
|
100 |
+
[post-type-dashboard] => Array
|
101 |
+
(
|
102 |
+
[0] => post
|
103 |
+
[1] => page
|
104 |
+
)
|
105 |
+
|
106 |
+
[post-type-menu] => Array
|
107 |
+
(
|
108 |
+
[0] => post
|
109 |
+
[1] => page
|
110 |
+
)
|
111 |
|
112 |
+
*/
|
113 |
}
|
114 |
|
|
|
|
|
|
|
115 |
function cms_tpv_wp_dashboard_setup() {
|
116 |
// add dashboard to capability edit_pages only
|
117 |
if (current_user_can("edit_pages")) {
|
119 |
foreach ($options["dashboard"] as $one_dashboard_post_type) {
|
120 |
$post_type_object = get_post_type_object($one_dashboard_post_type);
|
121 |
$new_func_name = create_function('', "cms_tpv_dashboard('$one_dashboard_post_type');");
|
122 |
+
wp_add_dashboard_widget( "cms_tpv_dashboard_widget_{$one_dashboard_post_type}", $post_type_object->labels->name . " Tree View", $new_func_name );
|
|
|
123 |
}
|
124 |
}
|
125 |
}
|
129 |
* Output on dashboard
|
130 |
*/
|
131 |
function cms_tpv_dashboard($post_type = "") {
|
132 |
+
// cms_tpv_show_annoying_box();
|
133 |
cms_tpv_print_common_tree_stuff($post_type);
|
134 |
}
|
135 |
|
145 |
$slug = "edit.php?post_type=$one_menu_post_type";
|
146 |
}
|
147 |
$post_type_object = get_post_type_object($one_menu_post_type);
|
148 |
+
// print_r($post_type_object);
|
149 |
+
add_submenu_page($slug, $post_type_object->labels->name . " Tree View", $post_type_object->labels->name . " Tree View", $post_type_object->cap->edit_posts, "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");
|
|
|
|
|
150 |
}
|
151 |
|
152 |
add_submenu_page( 'options-general.php' , CMS_TPV_NAME, CMS_TPV_NAME, "administrator", "cms-tpv-options", "cms_tpv_options");
|
159 |
*/
|
160 |
function cms_tpv_options() {
|
161 |
|
162 |
+
/*
|
163 |
+
// Just som testing stuff
|
164 |
+
$args = array(
|
165 |
+
"numberposts" => "-1",
|
166 |
+
"orderby" => "menu_order",
|
167 |
+
"order" => "ASC",
|
168 |
+
"caller_get_posts" => 1, // get sticky posts in natural order (or so I understand it anyway)
|
169 |
+
"post_status" => "publish", // "any" seems to get all but auto-drafts
|
170 |
+
"post_type" => "page"
|
171 |
+
);
|
172 |
+
$posts = get_pages($args); // works
|
173 |
+
// $posts = get_posts($args); // does not work
|
174 |
+
var_dump($posts);
|
175 |
+
echo "num of posts: " . sizeof($posts);
|
176 |
+
foreach ($posts as $one_post) {
|
177 |
+
#bonny_d($one_post);
|
178 |
+
echo "<br><br>title: " . esc_html($one_post->post_title);
|
179 |
+
echo "<br>status: " . $one_post->post_status;
|
180 |
+
echo "<br>type: " . $one_post->post_type;
|
181 |
+
}
|
182 |
+
// */
|
183 |
+
|
184 |
?>
|
185 |
<div class="wrap">
|
186 |
|
|
|
|
|
|
|
187 |
<h2><?php echo CMS_TPV_NAME ?> <?php _e("settings", 'cms-tree-page-view') ?></h2>
|
188 |
|
189 |
+
<form method="post" action="options.php">
|
|
|
190 |
<?php wp_nonce_field('update-options'); ?>
|
191 |
|
192 |
<h3><?php _e("Select where to show a tree for pages and custom post types", 'cms-tree-page-view')?></h3>
|
193 |
|
194 |
+
<?php
|
195 |
+
$options = cms_tpv_get_options();
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
+
$post_types = get_post_types(array(), "objects");
|
198 |
+
$arr_page_options = array();
|
199 |
+
foreach ($post_types as $one_post_type) {
|
200 |
+
$name = $one_post_type->name;
|
201 |
+
|
202 |
+
if ($name == "post") {
|
203 |
+
// no support for pages. you could show them.. but since we can't reorder them there is not idea to show them.. or..?
|
204 |
+
// 14 jul 2011: ok, let's enable it for posts too. some people says it useful
|
205 |
+
// http://wordpress.org/support/topic/this-plugin-should-work-also-on-posts
|
206 |
+
// continue;
|
207 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
|
209 |
+
if ($one_post_type->show_ui) {
|
210 |
|
211 |
+
$arr_page_options[] = "post-type-dashboard-$name";
|
212 |
+
$arr_page_options[] = "post-type-menu-$name";
|
213 |
+
echo "<p>";
|
214 |
+
echo "<strong>".$one_post_type->label."</strong>";
|
215 |
+
|
216 |
+
$checked = (in_array($name, $options["dashboard"])) ? " checked='checked' " : "";
|
217 |
+
echo "<br />";
|
218 |
+
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>";
|
219 |
+
|
220 |
+
$checked = (in_array($name, $options["menu"])) ? " checked='checked' " : "";
|
221 |
+
echo "<br />";
|
222 |
+
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>";
|
223 |
+
echo "</p>";
|
224 |
+
}
|
225 |
+
}
|
226 |
|
227 |
+
?>
|
228 |
+
|
229 |
<input type="hidden" name="action" value="update" />
|
230 |
<input type="hidden" name="cms_tpv_action" value="save_settings" />
|
231 |
<input type="hidden" name="page_options" value="<?php echo join($arr_page_options, ",") ?>" />
|
232 |
<p class="submit">
|
233 |
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'cms-tree-page-view') ?>" />
|
234 |
</p>
|
|
|
235 |
</form>
|
|
|
236 |
</div>
|
237 |
|
238 |
<?php
|
239 |
}
|
240 |
|
|
|
|
|
|
|
|
|
241 |
function cms_tpv_get_options() {
|
242 |
$arr_options = (array) get_option('cms_tpv_options');
|
243 |
+
$arr_options["dashboard"] = (array) $arr_options["dashboard"];
|
244 |
+
$arr_options["menu"] = (array) $arr_options["menu"];
|
|
|
245 |
return $arr_options;
|
246 |
}
|
247 |
|
257 |
}
|
258 |
if (!$post_type) {
|
259 |
// no post type, happens with ozh admin drop down, so get it via page instead
|
260 |
+
$page = $_GET["page"];
|
261 |
$post_type = str_replace("cms-tpv-page-", "", $page);
|
262 |
}
|
263 |
|
277 |
return $is_hierarchical;
|
278 |
}
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
/**
|
281 |
* Print tree stuff that is common for both dashboard and page
|
282 |
*/
|
283 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
284 |
|
|
|
|
|
285 |
if (!$post_type) {
|
286 |
$post_type = cms_tpv_get_selected_post_type();
|
287 |
}
|
288 |
+
#echo "post_type: $post_type";
|
289 |
$post_type_object = get_post_type_object($post_type);
|
290 |
$get_pages_args = array("post_type" => $post_type);
|
291 |
|
292 |
$pages = cms_tpv_get_pages($get_pages_args);
|
293 |
|
|
|
294 |
$wpml_current_lang = "";
|
295 |
+
if (defined("ICL_SITEPRESS_VERSION") && $post_type == "page") {
|
296 |
+
global $sitepress;
|
297 |
+
$wpml_current_lang = $sitepress->get_current_language();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
}
|
299 |
|
300 |
+
global $cms_tpv_view;
|
301 |
// output js for the root/top level
|
302 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
303 |
// @todo: make into function since used at other places
|
312 |
ob_start();
|
313 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
314 |
$json_data = ob_get_clean();
|
|
|
315 |
?>
|
316 |
<script type="text/javascript">
|
317 |
cms_tpv_jsondata.<?php echo $post_type ?> = <?php echo $json_data ?>;
|
323 |
<input type="hidden" name="cms_tpv_meta_wpml_language" value="<?php echo $wpml_current_lang ?>" />
|
324 |
<?php
|
325 |
|
326 |
+
// check if WPML is activated
|
327 |
+
// if: show a language-menu
|
328 |
+
if (defined("ICL_SITEPRESS_VERSION") && $post_type == "page") {
|
329 |
$wpml_langs = icl_get_languages();
|
330 |
$wpml_active_lang = null;
|
331 |
if (sizeof($wpml_langs)>=1) {
|
338 |
$wpml_active_lang = $one_lang;
|
339 |
$selected = "current";
|
340 |
}
|
341 |
+
$lang_out .= "<li><a class='cms_tvp_switch_lang $selected cms_tpv_switch_language_code_{$one_lang["language_code"]}' href='#'>$one_lang_details[display_name]</a> | </li>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
+
$lang_out = preg_replace('/ \| <\/li>$/', "</li>", $lang_out);
|
344 |
$lang_out .= "</ul>";
|
345 |
echo $lang_out;
|
346 |
}
|
|
|
347 |
}
|
348 |
+
/*
|
349 |
+
Array
|
350 |
+
(
|
351 |
+
[en] => Array
|
352 |
+
(
|
353 |
+
[id] => 1
|
354 |
+
[active] => 1
|
355 |
+
[native_name] => English
|
356 |
+
[language_code] => en
|
357 |
+
[translated_name] => English
|
358 |
+
[url] => http://localhost/wordpress3
|
359 |
+
[country_flag_url] => http://localhost/wordpress3/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.png
|
360 |
+
)
|
361 |
+
*/
|
362 |
+
|
363 |
if (empty($pages)) {
|
|
|
364 |
echo '<div class="updated fade below-h2"><p>' . __("No posts found.", 'cms-tree-page-view') . '</p></div>';
|
365 |
+
} else {
|
|
|
|
|
|
|
|
|
366 |
// start the party!
|
|
|
367 |
?>
|
368 |
+
|
369 |
+
<ul class="cms-tpv-subsubsub">
|
370 |
+
<li><a class="cms_tvp_view_all <?php echo ($cms_tpv_view=="all") ? "current" : "" ?>" href="#"><?php _e("All", 'cms-tree-page-view') ?></a> |</li>
|
371 |
+
<li><a class="cms_tvp_view_public <?php echo ($cms_tpv_view=="public") ? "current" : "" ?>" href="#"><?php _e("Public", 'cms-tree-page-view') ?></a> |</li>
|
372 |
+
<li><a class="cms_tvp_view_trash <?php echo ($cms_tpv_view=="trash") ? "current" : "" ?>" href="#"><?php _e("Trash", 'cms-tree-page-view') ?></a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
|
374 |
<?php
|
375 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
384 |
<form class="cms_tree_view_search_form" method="get" action="">
|
385 |
<input type="text" name="search" class="cms_tree_view_search" />
|
386 |
<a title="<?php _e("Clear search", 'cms-tree-page-view') ?>" class="cms_tree_view_search_form_reset" href="#">x</a>
|
387 |
+
<input type="submit" class="cms_tree_view_search_submit" value="<?php _e("Search", 'cms-tree-page-view') ?>" />
|
388 |
<span class="cms_tree_view_search_form_working"><?php _e("Searching...", 'cms-tree-page-view') ?></span>
|
389 |
<span class="cms_tree_view_search_form_no_hits"><?php _e("Nothing found.", 'cms-tree-page-view') ?></span>
|
390 |
</form>
|
391 |
</li>
|
|
|
392 |
</ul>
|
393 |
|
394 |
<div class="cms_tpv_working">
|
405 |
|
406 |
<div style="clear: both;"></div>
|
407 |
|
|
|
408 |
<div class="cms_tpv_page_actions">
|
409 |
+
<p>
|
410 |
+
<a href="#" title='<?php _e("Edit page", "cms-tree-page-view")?>' class='cms_tpv_action_edit'><?php _e("Edit", "cms-tree-page-view")?></a> |
|
|
|
|
|
|
|
|
|
411 |
<a href="#" title='<?php _e("View page", "cms-tree-page-view")?>' class='cms_tpv_action_view'><?php _e("View", "cms-tree-page-view")?></a>
|
412 |
</p>
|
|
|
|
|
413 |
<p class="cms_tpv_action_add_and_edit_page">
|
|
|
414 |
<span class='cms_tpv_action_add_page'><?php echo $post_type_object->labels->add_new_item ?></span>
|
|
|
415 |
<a href="#" title='<?php _e("Add new page after", "cms-tree-page-view")?>' class='cms_tpv_action_add_page_after'><?php _e("After", "cms-tree-page-view")?></a>
|
|
|
416 |
<?php
|
417 |
// if post type is hierarchical we can add pages inside
|
418 |
if (cms_tpv_is_post_type_hierarchical($post_type_object)) {
|
419 |
+
?> | <a href="#" title='<?php _e("Add new page inside", "cms-tree-page-view")?>' class='cms_tpv_action_add_page_inside'><?php _e("Inside", "cms-tree-page-view")?></a><?php
|
420 |
}
|
421 |
// if post status = draft then we can not add pages inside because wordpress currently can not keep its parent if we edit the page
|
422 |
?>
|
423 |
<!-- <span class="cms_tpv_action_add_page_inside_disallowed"><?php _e("Can not create page inside of a page with draft status", "cms-tree-page-view")?></span> -->
|
|
|
424 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
<dl>
|
426 |
<dt><?php _e("Last modified", "cms-tree-page-view") ?></dt>
|
427 |
<dd>
|
431 |
<dt><?php _e("Page ID", "cms-tree-page-view") ?></dt>
|
432 |
<dd><span class="cms_tpv_page_actions_page_id"></span></dd>
|
433 |
</dl>
|
|
|
434 |
<div class="cms_tpv_page_actions_columns"></div>
|
435 |
<span class="cms_tpv_page_actions_arrow"></span>
|
436 |
</div>
|
452 |
$post_type = cms_tpv_get_selected_post_type();
|
453 |
$post_type_object = get_post_type_object($post_type);
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
?>
|
456 |
<div class="wrap">
|
457 |
+
<h2><?php echo ($post_type_object->labels->name); ?> Tree View</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
<?php
|
460 |
/*
|
559 |
|
560 |
#do_action_ref_array('parse_query', array(&$this));
|
561 |
#print_r($get_posts_args);
|
|
|
562 |
$pages = get_posts($get_posts_args);
|
563 |
|
564 |
// filter out pages for wpml, by applying same filter as get_pages does
|
599 |
|
600 |
global $post;
|
601 |
|
|
|
|
|
|
|
602 |
#cms_tpv_firedebug(timer_stop());
|
603 |
|
604 |
?>[<?php
|
609 |
$tmpPost = $post;
|
610 |
$post = $onePage;
|
611 |
$page_id = $onePage->ID;
|
|
|
612 |
|
613 |
$editLink = get_edit_post_link($onePage->ID, 'notDisplay');
|
614 |
$content = esc_html($onePage->post_content);
|
621 |
$arrChildPages = cms_tpv_get_pages("parent={$onePage->ID}&view=$view&post_type=$post_type");
|
622 |
}
|
623 |
|
624 |
+
if ( isset( $arrChildPages ) ) {
|
625 |
$hasChildren = true;
|
626 |
}
|
627 |
// if no children, output no state
|
709 |
"data": {
|
710 |
"title": "<?php echo $title ?>",
|
711 |
"attr": {
|
712 |
+
"href": "<?php echo $editLink ?>",
|
713 |
+
"xid": "cms-tpv-<?php echo $onePage->ID ?>"
|
714 |
+
},
|
715 |
+
"xicon": "<?php echo CMS_TPV_URL . "images/page_white_text.png" ?>"
|
716 |
},
|
717 |
"attr": {
|
718 |
+
"xhref": "<?php echo $editLink ?>",
|
719 |
"id": "cms-tpv-<?php echo $onePage->ID ?>",
|
720 |
+
"xtitle": "<?php _e("Click to edit. Drag to move.", 'cms-tree-page-view') ?>",
|
721 |
"class": "<?php echo $user_can_edit_page_css ?>"
|
722 |
},
|
723 |
<?php echo $strState ?>
|
726 |
"post_id": "<?php echo $onePage->ID ?>",
|
727 |
"post_type": "<?php echo $onePage->post_type ?>",
|
728 |
"post_status": "<?php echo $onePage->post_status ?>",
|
|
|
729 |
"rel": "<?php echo $rel ?>",
|
730 |
+
"childCount": <?php echo ( isset( $arrChildPages ) ) ? sizeof( $arrChildPages ) : 0 ; ?>,
|
731 |
"permalink": "<?php echo htmlspecialchars_decode(get_permalink($onePage->ID)) ?>",
|
732 |
"editlink": "<?php echo htmlspecialchars_decode($editLink) ?>",
|
733 |
"modified_time": "<?php echo $post_modified_time ?>",
|
734 |
"modified_author": "<?php echo $post_author ?>",
|
735 |
"columns": <?php echo $str_columns ?>,
|
736 |
+
"user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>"
|
|
|
737 |
}
|
738 |
<?php
|
739 |
// if id is in $arrOpenChilds then also output children on this one
|
|
|
740 |
if ($hasChildren && isset($arrOpenChilds) && in_array($onePage->ID, $arrOpenChilds)) {
|
741 |
?>, "children": <?php
|
742 |
cms_tpv_print_childs($onePage->ID, $view, $arrOpenChilds, $post_type);
|
760 |
}
|
761 |
|
762 |
// Act on AJAX-call
|
|
|
763 |
function cms_tpv_get_childs() {
|
764 |
|
765 |
header("Content-type: application/json");
|
970 |
$post_to_save = array(
|
971 |
"ID" => $post_node->ID,
|
972 |
"menu_order" => 0,
|
973 |
+
"post_parent" => $post_ref_node->ID
|
|
|
974 |
);
|
975 |
wp_update_post( $post_to_save );
|
976 |
|
991 |
$post_to_save = array(
|
992 |
"ID" => $post_node->ID,
|
993 |
"menu_order" => $post_ref_node->menu_order,
|
994 |
+
"post_parent" => $post_ref_node->post_parent
|
|
|
995 |
);
|
996 |
wp_update_post( $post_to_save );
|
997 |
|
1011 |
$post_to_save = array(
|
1012 |
"ID" => $post_node->ID,
|
1013 |
"menu_order" => $post_ref_node->menu_order+1,
|
1014 |
+
"post_parent" => $post_ref_node->post_parent
|
|
|
1015 |
);
|
1016 |
wp_update_post( $post_to_save );
|
1017 |
|
1042 |
* Show a box with some dontate-links and stuff
|
1043 |
*/
|
1044 |
function cms_tpv_show_annoying_box() {
|
1045 |
+
#update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box
|
|
|
|
|
1046 |
if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
|
1047 |
$show_box = 0;
|
1048 |
update_option('cms_tpv_show_annoying_little_box', $show_box);
|
1052 |
if ($show_box) {
|
1053 |
?>
|
1054 |
<div class="cms_tpv_annoying_little_box">
|
1055 |
+
<p class="cms_tpv_annoying_little_box_close"><a href="<?php echo add_query_arg("action", "cms_tpv_remove_annoying_box")?>"><?php _e("Close", 'cms-tree-page-view') ?></a></p>
|
1056 |
+
<p><?php _e('<strong>Thank you for using this plugin!</strong> If you need help please check out the <a href="http://eskapism.se/code-playground/cms-tree-page-view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox">plugin homepage</a> or the <a href="http://wordpress.org/tags/cms-tree-page-view?forum_id=10">support forum</a>.', 'cms-tree-page-view') ?></p>
|
1057 |
+
<p><?php _e('If you like this plugin, please <a href="http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox">support my work by donating</a> - or at least say something nice about this plugin in a blog post or tweet.', 'cms-tree-page-view') ?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1058 |
</div>
|
1059 |
<?php
|
1060 |
}
|
1075 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
1076 |
update_option('cms_tpv_show_annoying_little_box', 1);
|
1077 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1078 |
// check and update version
|
1079 |
$version = get_option('cms_tpv_version', 0);
|
|
|
|
|
1080 |
if ($version <= 0) {
|
1081 |
+
// first install or pre custom posts version:
|
1082 |
+
// make sure pages are enabled by default
|
1083 |
$options = array();
|
|
|
|
|
1084 |
$options["dashboard"] = array("page");
|
1085 |
+
$options["menu"] = array("page");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1086 |
update_option('cms_tpv_options', $options);
|
|
|
1087 |
}
|
1088 |
+
|
1089 |
+
// set to current version
|
1090 |
+
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1091 |
}
|
1092 |
|
1093 |
// when plugins are loaded, check if current plugin version is same as stored
|
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:
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -26,28 +26,28 @@ License: GPL2
|
|
26 |
*/
|
27 |
|
28 |
#require("functions.php");
|
|
|
29 |
|
30 |
-
define( "CMS_TPV_VERSION", "
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
-
|
|
|
|
|
34 |
|
35 |
-
//
|
36 |
-
$
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
}
|
46 |
-
$plugin_dir_url = plugin_dir_url(basename($aa)) . 'cms-tree-page-view/';
|
47 |
|
48 |
// There! Now we should have it.
|
49 |
define( "CMS_TPV_URL", $plugin_dir_url);
|
50 |
-
// define( "CMS_TPV_PLUGIN_FOLDERNAME_AND_FILENAME", basename(dirname(__FILE__)) . "/" . basename(__FILE__) );
|
51 |
|
52 |
// on admin init: add styles and scripts
|
53 |
add_action( 'admin_init', 'cms_tpv_admin_init' );
|
@@ -63,14 +63,10 @@ add_action( 'admin_head', "cms_tpv_admin_head" );
|
|
63 |
add_action('wp_ajax_cms_tpv_get_childs', 'cms_tpv_get_childs');
|
64 |
add_action('wp_ajax_cms_tpv_move_page', 'cms_tpv_move_page');
|
65 |
add_action('wp_ajax_cms_tpv_add_page', 'cms_tpv_add_page');
|
66 |
-
add_action('wp_ajax_cms_tpv_add_pages', 'cms_tpv_add_pages');
|
67 |
|
68 |
// activation
|
69 |
register_activation_hook( WP_PLUGIN_DIR . "/cms-tree-page-view/index.php" , 'cms_tpv_install' );
|
70 |
|
71 |
-
// To test activation hook, uncomment function below
|
72 |
-
// cms_tpv_install();
|
73 |
-
|
74 |
// catch upgrade
|
75 |
add_action('plugins_loaded', 'cms_tpv_plugins_loaded' , 1);
|
76 |
|
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: 0.8.8
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
26 |
*/
|
27 |
|
28 |
#require("functions.php");
|
29 |
+
require(dirname(__FILE__)."/functions.php");
|
30 |
|
31 |
+
define( "CMS_TPV_VERSION", "0.8.8");
|
32 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
33 |
|
34 |
+
// This gives the full URL including http. Apparently is does not work with https (gives http-link instead)
|
35 |
+
// On my system it will be: http://localhost/wp/wp-content/plugins/cms-tree-page-view/
|
36 |
+
// define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
|
37 |
|
38 |
+
// Define path to this plugin. This needs to be done in a kinda wierd way because of the fact that I use symblinks on my system.
|
39 |
+
$plugin_dir_url = plugin_dir_url( __FILE__ ); // Gives wrong path on my system
|
40 |
+
$arr_authors_wierd_local_paths = array(
|
41 |
+
"/Users/bonny/Dropbox/Webb/"
|
42 |
+
);
|
43 |
+
$plugin_dir_url = str_replace($arr_authors_wierd_local_paths, "/", $plugin_dir_url);
|
44 |
+
|
45 |
+
// Now we have http://localhost/wp/wp-content/pluginscms-tree-page-view/trunk/
|
46 |
+
// So replace last /trunk/ part
|
47 |
+
$plugin_dir_url = preg_replace("/\/trunk\/$/", "/", $plugin_dir_url);
|
|
|
|
|
48 |
|
49 |
// There! Now we should have it.
|
50 |
define( "CMS_TPV_URL", $plugin_dir_url);
|
|
|
51 |
|
52 |
// on admin init: add styles and scripts
|
53 |
add_action( 'admin_init', 'cms_tpv_admin_init' );
|
63 |
add_action('wp_ajax_cms_tpv_get_childs', 'cms_tpv_get_childs');
|
64 |
add_action('wp_ajax_cms_tpv_move_page', 'cms_tpv_move_page');
|
65 |
add_action('wp_ajax_cms_tpv_add_page', 'cms_tpv_add_page');
|
|
|
66 |
|
67 |
// activation
|
68 |
register_activation_hook( WP_PLUGIN_DIR . "/cms-tree-page-view/index.php" , 'cms_tpv_install' );
|
69 |
|
|
|
|
|
|
|
70 |
// catch upgrade
|
71 |
add_action('plugins_loaded', 'cms_tpv_plugins_loaded' , 1);
|
72 |
|
languages/cms-tree-page-view-et.mo
DELETED
Binary file
|
languages/cms-tree-page-view-et.po
DELETED
@@ -1,267 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010
|
2 |
-
# This file is distributed under the same license as the package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: \n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
7 |
-
"POT-Creation-Date: 2011-03-06 14:33:36+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2012-09-02 16:12+0200\n"
|
12 |
-
"Last-Translator: \n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: functions.php:53
|
16 |
-
msgid "Enter title of new page"
|
17 |
-
msgstr "Sisesta uue lehekülje pealkiri"
|
18 |
-
|
19 |
-
#: functions.php:54
|
20 |
-
msgid "child pages"
|
21 |
-
msgstr "alamleht"
|
22 |
-
|
23 |
-
#: functions.php:55 functions.php:381
|
24 |
-
msgid "Edit page"
|
25 |
-
msgstr "Muuda lehte"
|
26 |
-
|
27 |
-
#: functions.php:56 functions.php:382
|
28 |
-
msgid "View page"
|
29 |
-
msgstr "Vaata lehekülge"
|
30 |
-
|
31 |
-
#: functions.php:57 functions.php:381
|
32 |
-
msgid "Edit"
|
33 |
-
msgstr "Muuda"
|
34 |
-
|
35 |
-
#: functions.php:58 functions.php:382
|
36 |
-
msgid "View"
|
37 |
-
msgstr "Vaata"
|
38 |
-
|
39 |
-
#: functions.php:59
|
40 |
-
msgid "Add page"
|
41 |
-
msgstr "Lisa lehekülg"
|
42 |
-
|
43 |
-
#: functions.php:60 functions.php:386
|
44 |
-
msgid "Add new page after"
|
45 |
-
msgstr "Lisa uus lehekülg peale"
|
46 |
-
|
47 |
-
#: functions.php:61
|
48 |
-
msgid "after"
|
49 |
-
msgstr "peale"
|
50 |
-
|
51 |
-
#: functions.php:62
|
52 |
-
msgid "inside"
|
53 |
-
msgstr "sees"
|
54 |
-
|
55 |
-
#: functions.php:63
|
56 |
-
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
57 |
-
msgstr "Vabandust! Ei saa luua alamlehte, kui lehekülje staatus on \"draft\"."
|
58 |
-
|
59 |
-
#: functions.php:64
|
60 |
-
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
61 |
-
msgstr "Vabandust! Ei saa luua alamlehte, kui lehekülje staatus on \"trash\"."
|
62 |
-
|
63 |
-
#: functions.php:65
|
64 |
-
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
65 |
-
msgstr ""
|
66 |
-
"Vabandust! Ei ei ole võimalik luua uut lehekülge peale lehte, mille staatus "
|
67 |
-
"on \"trash\"."
|
68 |
-
|
69 |
-
#: functions.php:66 functions.php:390
|
70 |
-
msgid "Add new page inside"
|
71 |
-
msgstr "Lisa uus alamleht"
|
72 |
-
|
73 |
-
#: functions.php:67
|
74 |
-
msgid "draft"
|
75 |
-
msgstr "mustand"
|
76 |
-
|
77 |
-
#: functions.php:68
|
78 |
-
msgid "future"
|
79 |
-
msgstr "võimalus"
|
80 |
-
|
81 |
-
#: functions.php:69
|
82 |
-
msgid "protected"
|
83 |
-
msgstr "kaitstud"
|
84 |
-
|
85 |
-
#: functions.php:70 functions.php:644
|
86 |
-
msgid "pending"
|
87 |
-
msgstr "pooleliolev"
|
88 |
-
|
89 |
-
#: functions.php:71
|
90 |
-
msgid "private"
|
91 |
-
msgstr "privaatne"
|
92 |
-
|
93 |
-
#: functions.php:72
|
94 |
-
msgid "trash"
|
95 |
-
msgstr "prügi"
|
96 |
-
|
97 |
-
#: functions.php:73
|
98 |
-
msgid "Password protected page"
|
99 |
-
msgstr "Parooliga kaitstud lehekülg"
|
100 |
-
|
101 |
-
#: functions.php:74
|
102 |
-
msgid "Adding page..."
|
103 |
-
msgstr "Lisan lehekülge..."
|
104 |
-
|
105 |
-
#: functions.php:175
|
106 |
-
msgid "settings"
|
107 |
-
msgstr "seaded"
|
108 |
-
|
109 |
-
#: functions.php:180
|
110 |
-
msgid "Select where to show a tree for pages and custom post types"
|
111 |
-
msgstr "Vali kus näidatakse järiekorra muutmise võimalust"
|
112 |
-
|
113 |
-
#: functions.php:204
|
114 |
-
msgid "On dashboard"
|
115 |
-
msgstr "Töölaual"
|
116 |
-
|
117 |
-
#: functions.php:208
|
118 |
-
msgid "In menu"
|
119 |
-
msgstr "Menüüs"
|
120 |
-
|
121 |
-
#: functions.php:219
|
122 |
-
msgid "Save Changes"
|
123 |
-
msgstr "Salvesta muudatused"
|
124 |
-
|
125 |
-
#: functions.php:335
|
126 |
-
msgid "No posts found."
|
127 |
-
msgstr "Postitusi ei leitud"
|
128 |
-
|
129 |
-
#: functions.php:341
|
130 |
-
msgid "All"
|
131 |
-
msgstr "Kõik"
|
132 |
-
|
133 |
-
#: functions.php:342
|
134 |
-
msgid "Public"
|
135 |
-
msgstr "Avalik"
|
136 |
-
|
137 |
-
#: functions.php:343
|
138 |
-
msgid "Trash"
|
139 |
-
msgstr "Prügi"
|
140 |
-
|
141 |
-
#: functions.php:348
|
142 |
-
msgid "Expand"
|
143 |
-
msgstr "Laienda"
|
144 |
-
|
145 |
-
#: functions.php:349
|
146 |
-
msgid "Collapse"
|
147 |
-
msgstr "Kollaps"
|
148 |
-
|
149 |
-
#: functions.php:357
|
150 |
-
msgid "Clear search"
|
151 |
-
msgstr "Tühista otsing"
|
152 |
-
|
153 |
-
#: functions.php:358
|
154 |
-
msgid "Search"
|
155 |
-
msgstr "Otsi"
|
156 |
-
|
157 |
-
#: functions.php:359
|
158 |
-
msgid "Searching..."
|
159 |
-
msgstr "Otsin..."
|
160 |
-
|
161 |
-
#: functions.php:360
|
162 |
-
msgid "Nothing found."
|
163 |
-
msgstr "Midagi ei leitud."
|
164 |
-
|
165 |
-
#: functions.php:366
|
166 |
-
msgid "Loading..."
|
167 |
-
msgstr "Laen..."
|
168 |
-
|
169 |
-
#: functions.php:371
|
170 |
-
msgid "Search: no pages found"
|
171 |
-
msgstr "Otsing: lehekülgi ei leitud"
|
172 |
-
|
173 |
-
#: functions.php:374
|
174 |
-
msgid "Loading tree"
|
175 |
-
msgstr "Laen"
|
176 |
-
|
177 |
-
#: functions.php:386
|
178 |
-
msgid "After"
|
179 |
-
msgstr "Peale"
|
180 |
-
|
181 |
-
#: functions.php:390
|
182 |
-
msgid "Inside"
|
183 |
-
msgstr "Sees"
|
184 |
-
|
185 |
-
#: functions.php:394
|
186 |
-
msgid "Can not create page inside of a page with draft status"
|
187 |
-
msgstr "Ei saa luua alamlehte, kui lehekülg on mustand"
|
188 |
-
|
189 |
-
#: functions.php:397
|
190 |
-
msgid "Last modified"
|
191 |
-
msgstr "Viimati muudetud"
|
192 |
-
|
193 |
-
#: functions.php:399
|
194 |
-
msgid "by"
|
195 |
-
msgstr " "
|
196 |
-
|
197 |
-
#: functions.php:402
|
198 |
-
msgid "Page ID"
|
199 |
-
msgstr "Lehekülje ID"
|
200 |
-
|
201 |
-
#: functions.php:609
|
202 |
-
msgid "Unknown user"
|
203 |
-
msgstr "Tundmatu kasutaja"
|
204 |
-
|
205 |
-
#: functions.php:614
|
206 |
-
msgid "<Untitled page>"
|
207 |
-
msgstr "<Pealkirjata lehekülg>"
|
208 |
-
|
209 |
-
#: functions.php:634
|
210 |
-
msgid "Comments"
|
211 |
-
msgstr "Kommentaarid"
|
212 |
-
|
213 |
-
#: functions.php:641
|
214 |
-
msgid "%s pending"
|
215 |
-
msgstr "% pooleli"
|
216 |
-
|
217 |
-
#: functions.php:651
|
218 |
-
msgctxt "comment count"
|
219 |
-
msgid "0"
|
220 |
-
msgstr "0"
|
221 |
-
|
222 |
-
#: functions.php:651
|
223 |
-
msgctxt "comment count"
|
224 |
-
msgid "1"
|
225 |
-
msgstr "1"
|
226 |
-
|
227 |
-
#: functions.php:651
|
228 |
-
msgctxt "comment count"
|
229 |
-
msgid "%"
|
230 |
-
msgstr "%"
|
231 |
-
|
232 |
-
#: functions.php:682
|
233 |
-
msgid "Click to edit. Drag to move."
|
234 |
-
msgstr "Kliki muutmiseks. Lohista liigutamiseks."
|
235 |
-
|
236 |
-
#: functions.php:833
|
237 |
-
msgid "New page"
|
238 |
-
msgstr "Uus lehekülg"
|
239 |
-
|
240 |
-
#: functions.php:1015
|
241 |
-
msgid "Close"
|
242 |
-
msgstr "Sulge"
|
243 |
-
|
244 |
-
#: functions.php:1016
|
245 |
-
msgid ""
|
246 |
-
"<strong>Thank you for using this plugin!</strong> If you need help please "
|
247 |
-
"check out the <a href=\"http://eskapism.se/code-playground/cms-tree-page-"
|
248 |
-
"view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">plugin "
|
249 |
-
"homepage</a> or the <a href=\"http://wordpress.org/tags/cms-tree-page-view?"
|
250 |
-
"forum_id=10\">support forum</a>."
|
251 |
-
msgstr ""
|
252 |
-
"<strong>Tänan et kasutad meie pluginat!</strong> Vajadusel külasta <a href="
|
253 |
-
"\"http://eskapism.se/code-playground/cms-tree-page-view/?"
|
254 |
-
"utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">plugina "
|
255 |
-
"kodulehte</a>või <a href=\"http://wordpress.org/tags/cms-tree-page-view?"
|
256 |
-
"forum_id=10\">tugifoorumit</a>."
|
257 |
-
|
258 |
-
#: functions.php:1017
|
259 |
-
msgid ""
|
260 |
-
"If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?"
|
261 |
-
"utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my "
|
262 |
-
"work by donating</a> - or at least say something nice about this plugin in a "
|
263 |
-
"blog post or tweet."
|
264 |
-
msgstr ""
|
265 |
-
"Kui meie plugin sulle meeldib <a href=\"http://eskapism.se/sida/donate/?"
|
266 |
-
"utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">toeta meie "
|
267 |
-
"tööd annetades</a>."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/cms-tree-page-view-lt_LT.mo
CHANGED
Binary file
|
languages/cms-tree-page-view-lt_LT.po
CHANGED
@@ -1,320 +1,323 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
5 |
-
"POT-Creation-Date: 2011-03-06 14:33:36+00:00\n"
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
8 |
-
"Language-Team:
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-
|
14 |
-
"X-Poedit-
|
15 |
-
"X-
|
16 |
-
"X-Poedit-
|
17 |
-
"X-Poedit-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
#: functions.php:
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
5 |
+
"POT-Creation-Date: 2011-03-06 14:33:36+00:00\n"
|
6 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
7 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-Language: \n"
|
14 |
+
"X-Poedit-Country: \n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
+
"X-Poedit-Basepath: \n"
|
18 |
+
"X-Poedit-Bookmarks: \n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Textdomain-Support: yes"
|
21 |
+
|
22 |
+
#: functions.php:55
|
23 |
+
#@ cms-tree-page-view
|
24 |
+
msgid "Enter title of new page"
|
25 |
+
msgstr "Naujo puslapio pavadinimas"
|
26 |
+
|
27 |
+
#: functions.php:56
|
28 |
+
#@ cms-tree-page-view
|
29 |
+
msgid "child pages"
|
30 |
+
msgstr "vidinis puslapis"
|
31 |
+
|
32 |
+
#: functions.php:57
|
33 |
+
#: functions.php:401
|
34 |
+
#@ cms-tree-page-view
|
35 |
+
msgid "Edit page"
|
36 |
+
msgstr "Redaguoti puslapį"
|
37 |
+
|
38 |
+
#: functions.php:58
|
39 |
+
#: functions.php:402
|
40 |
+
#@ cms-tree-page-view
|
41 |
+
msgid "View page"
|
42 |
+
msgstr "Peržiūrėti puslapį"
|
43 |
+
|
44 |
+
#: functions.php:59
|
45 |
+
#: functions.php:401
|
46 |
+
#@ cms-tree-page-view
|
47 |
+
msgid "Edit"
|
48 |
+
msgstr "Redaguoti"
|
49 |
+
|
50 |
+
#: functions.php:60
|
51 |
+
#: functions.php:402
|
52 |
+
#@ cms-tree-page-view
|
53 |
+
msgid "View"
|
54 |
+
msgstr "Peržiūrėti"
|
55 |
+
|
56 |
+
#: functions.php:61
|
57 |
+
#@ cms-tree-page-view
|
58 |
+
msgid "Add page"
|
59 |
+
msgstr "Pridėti puslapį"
|
60 |
+
|
61 |
+
#: functions.php:62
|
62 |
+
#: functions.php:406
|
63 |
+
#@ cms-tree-page-view
|
64 |
+
msgid "Add new page after"
|
65 |
+
msgstr "Pridėti puslapį po"
|
66 |
+
|
67 |
+
#: functions.php:63
|
68 |
+
#@ cms-tree-page-view
|
69 |
+
msgid "after"
|
70 |
+
msgstr "po"
|
71 |
+
|
72 |
+
#: functions.php:64
|
73 |
+
#@ cms-tree-page-view
|
74 |
+
msgid "inside"
|
75 |
+
msgstr "viduje"
|
76 |
+
|
77 |
+
#: functions.php:65
|
78 |
+
#@ cms-tree-page-view
|
79 |
+
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
80 |
+
msgstr "Atsiprašome, negalima sukurti gylesnio meniu puslapio su \"draft\" būsena."
|
81 |
+
|
82 |
+
#: functions.php:66
|
83 |
+
#@ cms-tree-page-view
|
84 |
+
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
85 |
+
msgstr "Atsiprašome, negalima sukurti gylesnio meniu puslapio su \"trash\" būsena."
|
86 |
+
|
87 |
+
#: functions.php:67
|
88 |
+
#@ cms-tree-page-view
|
89 |
+
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
90 |
+
msgstr "Atsiprašome, negalima sukurti puslapio po puslapio su \"trash\" būsena."
|
91 |
+
|
92 |
+
#: functions.php:68
|
93 |
+
#: functions.php:410
|
94 |
+
#@ cms-tree-page-view
|
95 |
+
msgid "Add new page inside"
|
96 |
+
msgstr "Pridėti naują puslapį viduje"
|
97 |
+
|
98 |
+
#: functions.php:69
|
99 |
+
#@ cms-tree-page-view
|
100 |
+
msgid "draft"
|
101 |
+
msgstr "eskizas"
|
102 |
+
|
103 |
+
#: functions.php:70
|
104 |
+
#@ cms-tree-page-view
|
105 |
+
msgid "future"
|
106 |
+
msgstr "būsimas"
|
107 |
+
|
108 |
+
#: functions.php:71
|
109 |
+
#@ cms-tree-page-view
|
110 |
+
msgid "protected"
|
111 |
+
msgstr "apsaugotas"
|
112 |
+
|
113 |
+
#: functions.php:72
|
114 |
+
#: functions.php:673
|
115 |
+
#@ cms-tree-page-view
|
116 |
+
#@ default
|
117 |
+
msgid "pending"
|
118 |
+
msgstr "laukiamas"
|
119 |
+
|
120 |
+
#: functions.php:73
|
121 |
+
#@ cms-tree-page-view
|
122 |
+
msgid "private"
|
123 |
+
msgstr "privatus"
|
124 |
+
|
125 |
+
#: functions.php:74
|
126 |
+
#@ cms-tree-page-view
|
127 |
+
msgid "trash"
|
128 |
+
msgstr "šiukšlė"
|
129 |
+
|
130 |
+
#: functions.php:75
|
131 |
+
#@ cms-tree-page-view
|
132 |
+
msgid "Password protected page"
|
133 |
+
msgstr "Slaptažodžiu apsaugotas puslapis"
|
134 |
+
|
135 |
+
#: functions.php:76
|
136 |
+
#@ cms-tree-page-view
|
137 |
+
msgid "Adding page..."
|
138 |
+
msgstr "Pridedamas puslapis..."
|
139 |
+
|
140 |
+
#: functions.php:178
|
141 |
+
#@ cms-tree-page-view
|
142 |
+
msgid "settings"
|
143 |
+
msgstr "nustatymai"
|
144 |
+
|
145 |
+
#: functions.php:183
|
146 |
+
#@ cms-tree-page-view
|
147 |
+
msgid "Select where to show a tree for pages and custom post types"
|
148 |
+
msgstr "Pasirinkite, kur parodyti medį puslapiams ir pasirinktų pasisakymų tipų"
|
149 |
+
|
150 |
+
#: functions.php:209
|
151 |
+
#@ cms-tree-page-view
|
152 |
+
msgid "On dashboard"
|
153 |
+
msgstr "Ant skydelio"
|
154 |
+
|
155 |
+
#: functions.php:213
|
156 |
+
#@ cms-tree-page-view
|
157 |
+
msgid "In menu"
|
158 |
+
msgstr "Meniu"
|
159 |
+
|
160 |
+
#: functions.php:224
|
161 |
+
#@ cms-tree-page-view
|
162 |
+
msgid "Save Changes"
|
163 |
+
msgstr "Išsaugoti pakeitimus"
|
164 |
+
|
165 |
+
#: functions.php:355
|
166 |
+
#@ cms-tree-page-view
|
167 |
+
msgid "No posts found."
|
168 |
+
msgstr "Nerasti pasisakymai."
|
169 |
+
|
170 |
+
#: functions.php:361
|
171 |
+
#@ cms-tree-page-view
|
172 |
+
msgid "All"
|
173 |
+
msgstr "VIsi"
|
174 |
+
|
175 |
+
#: functions.php:362
|
176 |
+
#@ cms-tree-page-view
|
177 |
+
msgid "Public"
|
178 |
+
msgstr "Viešas"
|
179 |
+
|
180 |
+
#: functions.php:363
|
181 |
+
#@ cms-tree-page-view
|
182 |
+
msgid "Trash"
|
183 |
+
msgstr "Šiukšlė"
|
184 |
+
|
185 |
+
#: functions.php:368
|
186 |
+
#@ cms-tree-page-view
|
187 |
+
msgid "Expand"
|
188 |
+
msgstr "Išplėsti"
|
189 |
+
|
190 |
+
#: functions.php:369
|
191 |
+
#@ cms-tree-page-view
|
192 |
+
msgid "Collapse"
|
193 |
+
msgstr "Sutraukti"
|
194 |
+
|
195 |
+
#: functions.php:377
|
196 |
+
#@ cms-tree-page-view
|
197 |
+
msgid "Clear search"
|
198 |
+
msgstr "Išvalyti paiešką"
|
199 |
+
|
200 |
+
#: functions.php:378
|
201 |
+
#@ cms-tree-page-view
|
202 |
+
msgid "Search"
|
203 |
+
msgstr "Ieškoti"
|
204 |
+
|
205 |
+
#: functions.php:379
|
206 |
+
#@ cms-tree-page-view
|
207 |
+
msgid "Searching..."
|
208 |
+
msgstr "Ieškoma..."
|
209 |
+
|
210 |
+
#: functions.php:380
|
211 |
+
#@ cms-tree-page-view
|
212 |
+
msgid "Nothing found."
|
213 |
+
msgstr "NIeko nerasta."
|
214 |
+
|
215 |
+
#: functions.php:386
|
216 |
+
#@ cms-tree-page-view
|
217 |
+
msgid "Loading..."
|
218 |
+
msgstr "Kraunama..."
|
219 |
+
|
220 |
+
#: functions.php:391
|
221 |
+
#@ cms-tree-page-view
|
222 |
+
msgid "Search: no pages found"
|
223 |
+
msgstr "Paieška: puslapiai nerasti"
|
224 |
+
|
225 |
+
#: functions.php:394
|
226 |
+
#@ cms-tree-page-view
|
227 |
+
msgid "Loading tree"
|
228 |
+
msgstr "Kraunamas medis"
|
229 |
+
|
230 |
+
#: functions.php:406
|
231 |
+
#@ cms-tree-page-view
|
232 |
+
msgid "After"
|
233 |
+
msgstr "Po"
|
234 |
+
|
235 |
+
#: functions.php:410
|
236 |
+
#@ cms-tree-page-view
|
237 |
+
msgid "Inside"
|
238 |
+
msgstr "Viduje"
|
239 |
+
|
240 |
+
#: functions.php:414
|
241 |
+
#@ cms-tree-page-view
|
242 |
+
msgid "Can not create page inside of a page with draft status"
|
243 |
+
msgstr "Negalima sukurti puslapio viduje su statusu šiukšlė"
|
244 |
+
|
245 |
+
#: functions.php:417
|
246 |
+
#@ cms-tree-page-view
|
247 |
+
msgid "Last modified"
|
248 |
+
msgstr "Vėliausiai redaguota"
|
249 |
+
|
250 |
+
#: functions.php:419
|
251 |
+
#@ cms-tree-page-view
|
252 |
+
msgid "by"
|
253 |
+
msgstr " "
|
254 |
+
|
255 |
+
#: functions.php:422
|
256 |
+
#@ cms-tree-page-view
|
257 |
+
msgid "Page ID"
|
258 |
+
msgstr "Puslapio ID"
|
259 |
+
|
260 |
+
#: functions.php:638
|
261 |
+
#@ cms-tree-page-view
|
262 |
+
msgid "Unknown user"
|
263 |
+
msgstr "Nežinomas vartotojas"
|
264 |
+
|
265 |
+
#: functions.php:643
|
266 |
+
#@ cms-tree-page-view
|
267 |
+
msgid "<Untitled page>"
|
268 |
+
msgstr "<Nepavadintas puslapis>"
|
269 |
+
|
270 |
+
#: functions.php:663
|
271 |
+
#@ default
|
272 |
+
msgid "Comments"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: functions.php:670
|
276 |
+
#, php-format
|
277 |
+
#@ default
|
278 |
+
msgid "%s pending"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: functions.php:680
|
282 |
+
#@ default
|
283 |
+
msgctxt "comment count"
|
284 |
+
msgid "0"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: functions.php:680
|
288 |
+
#@ default
|
289 |
+
msgctxt "comment count"
|
290 |
+
msgid "1"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: functions.php:680
|
294 |
+
#@ default
|
295 |
+
msgctxt "comment count"
|
296 |
+
msgid "%"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#: functions.php:711
|
300 |
+
#@ cms-tree-page-view
|
301 |
+
msgid "Click to edit. Drag to move."
|
302 |
+
msgstr "Spragtelt redaguoti. Tempti."
|
303 |
+
|
304 |
+
#: functions.php:862
|
305 |
+
#@ cms-tree-page-view
|
306 |
+
msgid "New page"
|
307 |
+
msgstr "Naujas puslapis"
|
308 |
+
|
309 |
+
#: functions.php:1046
|
310 |
+
#@ cms-tree-page-view
|
311 |
+
msgid "Close"
|
312 |
+
msgstr "Uždaryti"
|
313 |
+
|
314 |
+
#: functions.php:1047
|
315 |
+
#@ cms-tree-page-view
|
316 |
+
msgid "<strong>Thank you for using this plugin!</strong> If you need help please check out the <a href=\"http://eskapism.se/code-playground/cms-tree-page-view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">plugin homepage</a> or the <a href=\"http://wordpress.org/tags/cms-tree-page-view?forum_id=10\">support forum</a>."
|
317 |
+
msgstr "<strong>Ačiū, kad naudojate šį įskiepį!</strong>Jei Jums reikia pagalbos, žiūrėkita čia<a href=\"http://eskapism.se/code-playground/cms-tree-page-view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">įskiepio namų puslapis</a> arba <a href=\"http://wordpress.org/tags/cms-tree-page-view?forum_id=10\">pagalbos diskusijos</a>."
|
318 |
+
|
319 |
+
#: functions.php:1048
|
320 |
+
#@ cms-tree-page-view
|
321 |
+
msgid "If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my work by donating</a> - or at least say something nice about this plugin in a blog post or tweet."
|
322 |
+
msgstr "Jei Jums patinka šis įskiepis, prašau <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">paremti mano darbą</a> - arba parašyti ką nors gražaus apie šį įskiepį bloge ar pasakyti."
|
323 |
+
|
languages/cms-tree-page-view-pl_PL.mo
DELETED
Binary file
|
languages/cms-tree-page-view-pl_PL.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: CMS Tree Page View\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
5 |
"POT-Creation-Date: 2010-08-28 21:55+0000\n"
|
6 |
-
"PO-Revision-Date: 2011-08-08 15:
|
7 |
"Last-Translator: Michał Księżuk <michal@ksiezuk.pl>\n"
|
8 |
"Language-Team: gadjukin.net <georgij@gadjukin.net>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -164,7 +164,7 @@ msgstr "Strona chroniona hasłem"
|
|
164 |
#@ cms-tree-page-view
|
165 |
#: functions.php:342
|
166 |
msgid "Public"
|
167 |
-
msgstr "
|
168 |
|
169 |
#@ cms-tree-page-view
|
170 |
#: functions.php:219
|
@@ -316,5 +316,5 @@ msgstr "<strong>Dziękuję za używanie tej wtyczki!</strong> Jeśli potrzebujes
|
|
316 |
#@ cms-tree-page-view
|
317 |
#: functions.php:1015
|
318 |
msgid "If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my work by donating</a> - or at least say something nice about this plugin in a blog post or tweet."
|
319 |
-
msgstr "
|
320 |
|
3 |
"Project-Id-Version: CMS Tree Page View\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
5 |
"POT-Creation-Date: 2010-08-28 21:55+0000\n"
|
6 |
+
"PO-Revision-Date: 2011-08-08 15:28+0100\n"
|
7 |
"Last-Translator: Michał Księżuk <michal@ksiezuk.pl>\n"
|
8 |
"Language-Team: gadjukin.net <georgij@gadjukin.net>\n"
|
9 |
"MIME-Version: 1.0\n"
|
164 |
#@ cms-tree-page-view
|
165 |
#: functions.php:342
|
166 |
msgid "Public"
|
167 |
+
msgstr "Publiczne"
|
168 |
|
169 |
#@ cms-tree-page-view
|
170 |
#: functions.php:219
|
316 |
#@ cms-tree-page-view
|
317 |
#: functions.php:1015
|
318 |
msgid "If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my work by donating</a> - or at least say something nice about this plugin in a blog post or tweet."
|
319 |
+
msgstr "Jeśli spodobała się Tobie ta wtyczka, proszę <a href=\\\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\\\">wesprzyj moją pracę</a> - albo przynajmniej napisz coś miłego o tej wtyczce na swoim blogu lub Tweeterze."
|
320 |
|
languages/cms-tree-page-view-ru_RU.po
CHANGED
@@ -1,363 +1,133 @@
|
|
1 |
-
#
|
|
|
2 |
# This file is distributed under the same license as the package.
|
|
|
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: CTPV\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
-
"Last-Translator:
|
10 |
-
"Language-Team:
|
11 |
"MIME-Version: 1.0\n"
|
12 |
-
"Content-Type: text/plain; charset=
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
-
"X-
|
15 |
-
"X-Poedit-
|
16 |
-
"X-Poedit-
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-SearchPath-0: E:\\Translate WP\\cms-tree-page-view\n"
|
19 |
|
20 |
-
#:
|
21 |
-
msgid "Enter title of new page"
|
22 |
-
msgstr "Введите название новой страницы"
|
23 |
-
|
24 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:260
|
25 |
-
msgid "child pages"
|
26 |
-
msgstr "дочерние страницы"
|
27 |
-
|
28 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:261
|
29 |
-
#: WP\cms-tree-page-view/functions.php:719
|
30 |
-
msgid "Edit page"
|
31 |
-
msgstr "Редактировать страницу"
|
32 |
-
|
33 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:262
|
34 |
-
#: WP\cms-tree-page-view/functions.php:720
|
35 |
-
msgid "View page"
|
36 |
-
msgstr "Просмотр страницы"
|
37 |
-
|
38 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:263
|
39 |
-
#: WP\cms-tree-page-view/functions.php:719
|
40 |
-
msgid "Edit"
|
41 |
-
msgstr "Изменить"
|
42 |
-
|
43 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:264
|
44 |
-
#: WP\cms-tree-page-view/functions.php:720
|
45 |
-
msgid "View"
|
46 |
-
msgstr "Показать"
|
47 |
-
|
48 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:265
|
49 |
-
msgid "Add page"
|
50 |
-
msgstr "Добавить страницу"
|
51 |
-
|
52 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:266
|
53 |
-
#: WP\cms-tree-page-view/functions.php:728
|
54 |
-
msgid "Add new page after"
|
55 |
-
msgstr "Добавить новую страницу после"
|
56 |
-
|
57 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:267
|
58 |
-
msgid "after"
|
59 |
-
msgstr "после"
|
60 |
-
|
61 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:268
|
62 |
-
msgid "inside"
|
63 |
-
msgstr "внутри"
|
64 |
-
|
65 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:269
|
66 |
-
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
67 |
-
msgstr ""
|
68 |
-
"К сожалению, невозможно создать подстраницу для страницы со статусом "
|
69 |
-
"\"черновик \"."
|
70 |
-
|
71 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:270
|
72 |
-
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
73 |
-
msgstr ""
|
74 |
-
"К сожалению, невозможно создать подстраницу для страницы со статусом \"в "
|
75 |
-
"корзине \"."
|
76 |
-
|
77 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:271
|
78 |
-
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
79 |
-
msgstr ""
|
80 |
-
"К сожалению, невозможно создать страницу после страницы со статусом \"в "
|
81 |
-
"корзине \"."
|
82 |
-
|
83 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:272
|
84 |
-
#: WP\cms-tree-page-view/functions.php:733
|
85 |
-
msgid "Add new page inside"
|
86 |
-
msgstr "Добавить новую страницу внутри"
|
87 |
-
|
88 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:273
|
89 |
-
#: WP\cms-tree-page-view/functions.php:279
|
90 |
-
msgid "draft"
|
91 |
-
msgstr "черновик"
|
92 |
-
|
93 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:274
|
94 |
-
#: WP\cms-tree-page-view/functions.php:280
|
95 |
-
msgid "future"
|
96 |
-
msgstr "будущая"
|
97 |
-
|
98 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:275
|
99 |
-
#: WP\cms-tree-page-view/functions.php:281
|
100 |
-
msgid "protected"
|
101 |
-
msgstr "защищенная"
|
102 |
-
|
103 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:276
|
104 |
-
#: WP\cms-tree-page-view/functions.php:282
|
105 |
-
#: WP\cms-tree-page-view/functions.php:1068
|
106 |
-
msgid "pending"
|
107 |
-
msgstr "в ожидании"
|
108 |
-
|
109 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:277
|
110 |
-
#: WP\cms-tree-page-view/functions.php:283
|
111 |
-
msgid "private"
|
112 |
-
msgstr "личная"
|
113 |
-
|
114 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:278
|
115 |
-
#: WP\cms-tree-page-view/functions.php:284
|
116 |
-
msgid "trash"
|
117 |
-
msgstr "в корзине"
|
118 |
-
|
119 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:285
|
120 |
-
msgid "Password protected page"
|
121 |
-
msgstr "Страница защищенная паролем"
|
122 |
-
|
123 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:286
|
124 |
-
msgid "Adding page..."
|
125 |
-
msgstr "Добавление пароля..."
|
126 |
-
|
127 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:287
|
128 |
-
msgid "Adding ..."
|
129 |
-
msgstr "Добавление ..."
|
130 |
-
|
131 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:317
|
132 |
-
msgid "Settings"
|
133 |
-
msgstr "Настройки"
|
134 |
-
|
135 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:373
|
136 |
-
msgid "Tree View"
|
137 |
-
msgstr "Tree View"
|
138 |
-
|
139 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:393
|
140 |
msgid "settings"
|
141 |
-
msgstr "
|
142 |
|
143 |
-
#:
|
144 |
-
msgid "
|
145 |
-
msgstr "
|
146 |
|
147 |
-
#:
|
148 |
-
msgid "
|
149 |
-
msgstr "
|
150 |
|
151 |
-
#:
|
152 |
-
msgid "
|
153 |
-
msgstr "
|
154 |
|
155 |
-
#:
|
156 |
msgid "Save Changes"
|
157 |
msgstr "Сохранить изменения"
|
158 |
|
159 |
-
#:
|
160 |
-
msgid "No posts found."
|
161 |
-
msgstr "Записи не нейдены."
|
162 |
-
|
163 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:660
|
164 |
msgid "All"
|
165 |
msgstr "Все"
|
166 |
|
167 |
-
#:
|
168 |
msgid "Public"
|
169 |
msgstr "Опубликованные"
|
170 |
|
171 |
-
#:
|
172 |
-
msgid "Trash"
|
173 |
-
msgstr "Корзина"
|
174 |
-
|
175 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:680
|
176 |
msgid "Expand"
|
177 |
msgstr "Раскрыть"
|
178 |
|
179 |
-
#:
|
180 |
msgid "Collapse"
|
181 |
-
msgstr "
|
182 |
-
|
183 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:689
|
184 |
-
msgid "Clear search"
|
185 |
-
msgstr "Очистить поиск"
|
186 |
|
187 |
-
#:
|
188 |
msgid "Search"
|
189 |
msgstr "Поиск"
|
190 |
|
191 |
-
#:
|
192 |
msgid "Searching..."
|
193 |
msgstr "Поиск..."
|
194 |
|
195 |
-
#:
|
196 |
-
msgid "Nothing found."
|
197 |
-
msgstr "Ничего не найдено."
|
198 |
-
|
199 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:699
|
200 |
msgid "Loading..."
|
201 |
msgstr "Загрузка..."
|
202 |
|
203 |
-
#:
|
204 |
msgid "Search: no pages found"
|
205 |
-
msgstr "Поиск:
|
206 |
|
207 |
-
#:
|
208 |
msgid "Loading tree"
|
209 |
msgstr "Загрузка дерева"
|
210 |
|
211 |
-
#:
|
212 |
-
#: WP\cms-tree-page-view/functions.php:764
|
213 |
-
msgid "After"
|
214 |
-
msgstr "После"
|
215 |
-
|
216 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:733
|
217 |
-
#: WP\cms-tree-page-view/functions.php:765
|
218 |
-
msgid "Inside"
|
219 |
-
msgstr "Внутри"
|
220 |
-
|
221 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:737
|
222 |
-
msgid "Can not create page inside of a page with draft status"
|
223 |
-
msgstr "Невозможно создать страницу внутри страницы со статусом /\"черновик/\""
|
224 |
-
|
225 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:753
|
226 |
-
msgid "Add page(s)"
|
227 |
-
msgstr "Добавить страницу(ы)"
|
228 |
-
|
229 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:758
|
230 |
-
msgid "Enter title here"
|
231 |
-
msgstr "Введите название здесь"
|
232 |
-
|
233 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:763
|
234 |
-
msgid "Position"
|
235 |
-
msgstr "Положение"
|
236 |
-
|
237 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:770
|
238 |
-
msgid "Status"
|
239 |
-
msgstr "Состояние"
|
240 |
-
|
241 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:771
|
242 |
-
msgid "Draft"
|
243 |
-
msgstr "Черновик"
|
244 |
-
|
245 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:772
|
246 |
-
msgid "Published"
|
247 |
-
msgstr "Опубликовано"
|
248 |
-
|
249 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:776
|
250 |
-
msgid "Add"
|
251 |
-
msgstr "Добавить"
|
252 |
-
|
253 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:777
|
254 |
-
msgid "or"
|
255 |
-
msgstr "или"
|
256 |
-
|
257 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:778
|
258 |
-
msgid "cancel"
|
259 |
-
msgstr "отмена"
|
260 |
-
|
261 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:788
|
262 |
-
msgid "Last modified"
|
263 |
-
msgstr "Последнее изменение"
|
264 |
-
|
265 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:790
|
266 |
-
msgid "by"
|
267 |
-
msgstr "-"
|
268 |
-
|
269 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:793
|
270 |
-
msgid "Page ID"
|
271 |
-
msgstr "ID страницы"
|
272 |
-
|
273 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1033
|
274 |
-
msgid "Unknown user"
|
275 |
-
msgstr "Неизвестный пользователь"
|
276 |
-
|
277 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1038
|
278 |
msgid "<Untitled page>"
|
279 |
-
msgstr "
|
280 |
-
|
281 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1058
|
282 |
-
msgid "Comments"
|
283 |
-
msgstr "Комментарии"
|
284 |
-
|
285 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1065
|
286 |
-
#, php-format
|
287 |
-
msgid "%s pending"
|
288 |
-
msgstr "%s в ожидании"
|
289 |
-
|
290 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1075
|
291 |
-
msgid "0"
|
292 |
-
msgstr "0"
|
293 |
|
294 |
-
#:
|
295 |
-
msgid "
|
296 |
-
msgstr "
|
297 |
|
298 |
-
#:
|
299 |
-
msgid "%"
|
300 |
-
msgstr "%"
|
301 |
-
|
302 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1260
|
303 |
msgid "New page"
|
304 |
msgstr "Новая страница"
|
305 |
|
306 |
-
#:
|
307 |
-
|
308 |
-
|
|
|
309 |
|
310 |
-
#:
|
311 |
-
msgid ""
|
312 |
-
"
|
313 |
-
"as much as I do."
|
314 |
-
msgstr ""
|
315 |
-
"Привет! Я просто хочу, сказать спасибо за использование моего плагина. Я "
|
316 |
-
"надеюсь, что Вам он нравится так же, как и мне."
|
317 |
|
318 |
-
#:
|
319 |
-
msgid "
|
320 |
-
msgstr "
|
321 |
|
322 |
-
#:
|
323 |
-
msgid "
|
324 |
-
msgstr "
|
325 |
|
326 |
-
#:
|
327 |
-
msgid "
|
328 |
-
msgstr "
|
329 |
|
330 |
-
#:
|
331 |
-
|
332 |
-
|
333 |
-
"<a href=\"%1$s\">Give it a nice review</a> over at the WordPress Plugin "
|
334 |
-
"Directory"
|
335 |
-
msgstr "<a href=\"%1$s\">Дать хороший отзыв</a> в Каталоге Плагинов WordPress"
|
336 |
|
337 |
-
#:
|
338 |
-
|
339 |
-
|
340 |
-
msgstr ""
|
341 |
-
"<a href=\"%1$s\">Сделать пожертвование</a> – любая сумма сделает меня "
|
342 |
-
"счастливым"
|
343 |
|
344 |
-
#:
|
345 |
-
|
346 |
-
|
347 |
-
"<a href=\"%1$s\">Post a nice tweet</a> or make a nice blog post about the "
|
348 |
-
"plugin"
|
349 |
-
msgstr ""
|
350 |
-
"<a href=\"%1$s\">Написать хороший твит</a> ли сделать хороший блог о плагине"
|
351 |
|
352 |
-
#:
|
353 |
-
msgid "
|
354 |
-
msgstr "
|
355 |
|
356 |
-
#:
|
357 |
-
|
358 |
-
|
359 |
-
|
|
|
|
|
|
|
360 |
|
361 |
-
#: E:\Translate WP\cms-tree-page-view/functions.php:1468
|
362 |
-
msgid "Hide until next upgrade"
|
363 |
-
msgstr "Скрыть до следующего обновления"
|
1 |
+
# Translation of the WordPress plugin by .
|
2 |
+
# Copyright (C) 2010
|
3 |
# This file is distributed under the same license as the package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
msgid ""
|
7 |
msgstr ""
|
8 |
"Project-Id-Version: CTPV\n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
10 |
+
"POT-Creation-Date: 2010-04-09 11:39+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-05-24 15:24+0300\n"
|
12 |
+
"Last-Translator: Александр <alexufo@mail.ru>\n"
|
13 |
+
"Language-Team: Marcis G. <alexufo@mail.ru>\n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Russian\n"
|
18 |
+
"X-Poedit-Country: RUSSIAN FEDERATION\n"
|
19 |
+
"X-Poedit-SourceCharset: utf8\n"
|
|
|
|
|
20 |
|
21 |
+
#: functions.php:84
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
msgid "settings"
|
23 |
+
msgstr "Настройки"
|
24 |
|
25 |
+
#: functions.php:91
|
26 |
+
msgid "Show tree"
|
27 |
+
msgstr "Показывать плагин"
|
28 |
|
29 |
+
#: functions.php:95
|
30 |
+
msgid "on the dashboard"
|
31 |
+
msgstr "на панел"
|
32 |
|
33 |
+
#: functions.php:98
|
34 |
+
msgid "under the pages menu"
|
35 |
+
msgstr " в разделе \"Страницы\""
|
36 |
|
37 |
+
#: functions.php:105
|
38 |
msgid "Save Changes"
|
39 |
msgstr "Сохранить изменения"
|
40 |
|
41 |
+
#: functions.php:127
|
|
|
|
|
|
|
|
|
42 |
msgid "All"
|
43 |
msgstr "Все"
|
44 |
|
45 |
+
#: functions.php:128
|
46 |
msgid "Public"
|
47 |
msgstr "Опубликованные"
|
48 |
|
49 |
+
#: functions.php:130
|
|
|
|
|
|
|
|
|
50 |
msgid "Expand"
|
51 |
msgstr "Раскрыть"
|
52 |
|
53 |
+
#: functions.php:131
|
54 |
msgid "Collapse"
|
55 |
+
msgstr "Собрать"
|
|
|
|
|
|
|
|
|
56 |
|
57 |
+
#: functions.php:136
|
58 |
msgid "Search"
|
59 |
msgstr "Поиск"
|
60 |
|
61 |
+
#: functions.php:137
|
62 |
msgid "Searching..."
|
63 |
msgstr "Поиск..."
|
64 |
|
65 |
+
#: functions.php:142
|
|
|
|
|
|
|
|
|
66 |
msgid "Loading..."
|
67 |
msgstr "Загрузка..."
|
68 |
|
69 |
+
#: functions.php:144
|
70 |
msgid "Search: no pages found"
|
71 |
+
msgstr "Поиск: страниц не найдено"
|
72 |
|
73 |
+
#: functions.php:146
|
74 |
msgid "Loading tree"
|
75 |
msgstr "Загрузка дерева"
|
76 |
|
77 |
+
#: functions.php:248
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "<Untitled page>"
|
79 |
+
msgstr "<Без имени>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
+
#: functions.php:264
|
82 |
+
msgid "Click to edit. Drag to move."
|
83 |
+
msgstr "Щелчок для правки. Схватить для перемещения."
|
84 |
|
85 |
+
#: functions.php:380
|
|
|
|
|
|
|
|
|
86 |
msgid "New page"
|
87 |
msgstr "Новая страница"
|
88 |
|
89 |
+
#: scripts/cms_tree_page_view.php:85
|
90 |
+
#: scripts/cms_tree_page_view.php:102
|
91 |
+
msgid "Enter title of new page"
|
92 |
+
msgstr "Введите имя новой страницы"
|
93 |
|
94 |
+
#: scripts/cms_tree_page_view.php:283
|
95 |
+
msgid "child pages"
|
96 |
+
msgstr "Дочерние сраницы"
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
#: scripts/cms_tree_page_view.php:293
|
99 |
+
msgid "Edit page"
|
100 |
+
msgstr "Править страницу"
|
101 |
|
102 |
+
#: scripts/cms_tree_page_view.php:293
|
103 |
+
msgid "Edit"
|
104 |
+
msgstr "Правка"
|
105 |
|
106 |
+
#: scripts/cms_tree_page_view.php:294
|
107 |
+
msgid "View page"
|
108 |
+
msgstr "Смотреть страницу"
|
109 |
|
110 |
+
#: scripts/cms_tree_page_view.php:294
|
111 |
+
msgid "View"
|
112 |
+
msgstr "Смотреть"
|
|
|
|
|
|
|
113 |
|
114 |
+
#: scripts/cms_tree_page_view.php:296
|
115 |
+
msgid "Add page"
|
116 |
+
msgstr "Добавить страницу"
|
|
|
|
|
|
|
117 |
|
118 |
+
#: scripts/cms_tree_page_view.php:297
|
119 |
+
msgid "Add new page after"
|
120 |
+
msgstr "Добавить новую страницу ниже"
|
|
|
|
|
|
|
|
|
121 |
|
122 |
+
#: scripts/cms_tree_page_view.php:297
|
123 |
+
msgid "after"
|
124 |
+
msgstr "ниже"
|
125 |
|
126 |
+
#: scripts/cms_tree_page_view.php:298
|
127 |
+
msgid "Add new page inside"
|
128 |
+
msgstr "Добавить новую страницу внутри"
|
129 |
+
|
130 |
+
#: scripts/cms_tree_page_view.php:298
|
131 |
+
msgid "inside"
|
132 |
+
msgstr "внутри"
|
133 |
|
|
|
|
|
|
languages/cms-tree-page-view-sv_SE.mo
CHANGED
Binary file
|
languages/cms-tree-page-view.pot
CHANGED
@@ -1,343 +1,257 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: functions.php:
|
16 |
msgid "Enter title of new page"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: functions.php:
|
20 |
msgid "child pages"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: functions.php:
|
24 |
msgid "Edit page"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: functions.php:
|
28 |
msgid "View page"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: functions.php:
|
32 |
msgid "Edit"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: functions.php:
|
36 |
msgid "View"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: functions.php:
|
40 |
msgid "Add page"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: functions.php:
|
44 |
msgid "Add new page after"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: functions.php:
|
48 |
msgid "after"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: functions.php:
|
52 |
msgid "inside"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: functions.php:
|
56 |
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: functions.php:
|
60 |
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: functions.php:
|
64 |
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: functions.php:
|
68 |
msgid "Add new page inside"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: functions.php:
|
72 |
msgid "draft"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: functions.php:
|
76 |
msgid "future"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: functions.php:
|
80 |
msgid "protected"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: functions.php:
|
84 |
msgid "pending"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: functions.php:
|
88 |
msgid "private"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: functions.php:
|
92 |
msgid "trash"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: functions.php:
|
96 |
msgid "Password protected page"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: functions.php:
|
100 |
msgid "Adding page..."
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: functions.php:
|
104 |
-
msgid "Adding ..."
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: functions.php:393
|
108 |
-
msgid "Tree View"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: functions.php:402
|
112 |
-
msgid "List View"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: functions.php:438
|
116 |
-
msgid "Settings"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: functions.php:502
|
120 |
-
msgctxt "name in menu"
|
121 |
-
msgid "Tree View"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: functions.php:523
|
125 |
msgid "settings"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: functions.php:
|
129 |
msgid "Select where to show a tree for pages and custom post types"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: functions.php:
|
133 |
msgid "On dashboard"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: functions.php:
|
137 |
msgid "In menu"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: functions.php:
|
141 |
-
msgid "On post overview screen"
|
142 |
-
msgstr ""
|
143 |
-
|
144 |
-
#: functions.php:599
|
145 |
msgid "Save Changes"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: functions.php:
|
149 |
msgid "No posts found."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: functions.php:
|
153 |
msgid "All"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: functions.php:
|
157 |
msgid "Public"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: functions.php:
|
161 |
msgid "Trash"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: functions.php:
|
165 |
msgid "Expand"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: functions.php:
|
169 |
msgid "Collapse"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: functions.php:
|
173 |
msgid "Clear search"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: functions.php:
|
177 |
msgid "Search"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: functions.php:
|
181 |
msgid "Searching..."
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: functions.php:
|
185 |
msgid "Nothing found."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: functions.php:
|
189 |
msgid "Loading..."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: functions.php:
|
193 |
msgid "Search: no pages found"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: functions.php:
|
197 |
msgid "Loading tree"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: functions.php:
|
201 |
msgid "After"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: functions.php:
|
205 |
msgid "Inside"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: functions.php:
|
209 |
msgid "Can not create page inside of a page with draft status"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: functions.php:
|
213 |
-
msgid "Add page(s)"
|
214 |
-
msgstr ""
|
215 |
-
|
216 |
-
#: functions.php:926
|
217 |
-
msgid "Enter title here"
|
218 |
-
msgstr ""
|
219 |
-
|
220 |
-
#: functions.php:931
|
221 |
-
msgid "Position"
|
222 |
-
msgstr ""
|
223 |
-
|
224 |
-
#: functions.php:938
|
225 |
-
msgid "Status"
|
226 |
-
msgstr ""
|
227 |
-
|
228 |
-
#: functions.php:939
|
229 |
-
msgid "Draft"
|
230 |
-
msgstr ""
|
231 |
-
|
232 |
-
#: functions.php:940
|
233 |
-
msgid "Published"
|
234 |
-
msgstr ""
|
235 |
-
|
236 |
-
#: functions.php:944
|
237 |
-
msgid "Add"
|
238 |
-
msgstr ""
|
239 |
-
|
240 |
-
#: functions.php:945
|
241 |
-
msgid "or"
|
242 |
-
msgstr ""
|
243 |
-
|
244 |
-
#: functions.php:946
|
245 |
-
msgid "cancel"
|
246 |
-
msgstr ""
|
247 |
-
|
248 |
-
#: functions.php:956
|
249 |
msgid "Last modified"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: functions.php:
|
253 |
msgid "by"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: functions.php:
|
257 |
msgid "Page ID"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: functions.php:
|
261 |
msgid "Unknown user"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: functions.php:
|
265 |
msgid "<Untitled page>"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: functions.php:
|
269 |
msgid "Comments"
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: functions.php:
|
273 |
msgid "%s pending"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: functions.php:
|
277 |
msgctxt "comment count"
|
278 |
msgid "0"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: functions.php:
|
282 |
msgctxt "comment count"
|
283 |
msgid "1"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: functions.php:
|
287 |
msgctxt "comment count"
|
288 |
msgid "%"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: functions.php:
|
292 |
-
msgid "
|
293 |
-
msgstr ""
|
294 |
-
|
295 |
-
#: functions.php:1618
|
296 |
-
msgid "Thanks for using my plugin"
|
297 |
-
msgstr ""
|
298 |
-
|
299 |
-
#: functions.php:1620
|
300 |
-
msgid ""
|
301 |
-
"Hi there! I just wanna says thanks for using my plugin. I hope you like it "
|
302 |
-
"as much as I do."
|
303 |
-
msgstr ""
|
304 |
-
|
305 |
-
#: functions.php:1621
|
306 |
-
msgid "/Pär Thernström - plugin creator"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: functions.php:
|
310 |
-
msgid "
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: functions.php:
|
314 |
-
msgid "
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: functions.php:
|
318 |
msgid ""
|
319 |
-
"<
|
320 |
-
"
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: functions.php:
|
328 |
msgid ""
|
329 |
-
"
|
330 |
-
"
|
331 |
-
|
332 |
-
|
333 |
-
#: functions.php:1631
|
334 |
-
msgid "Support"
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: functions.php:1632
|
338 |
-
msgid "Plese see the <a href=\"%1$s\">support forum</a> for help."
|
339 |
-
msgstr ""
|
340 |
-
|
341 |
-
#: functions.php:1636
|
342 |
-
msgid "Hide until next upgrade"
|
343 |
msgstr ""
|
1 |
+
# Copyright (C) 2010
|
2 |
# This file is distributed under the same license as the package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
7 |
+
"POT-Creation-Date: 2011-03-06 14:33:36+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: functions.php:53
|
16 |
msgid "Enter title of new page"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: functions.php:54
|
20 |
msgid "child pages"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: functions.php:55 functions.php:381
|
24 |
msgid "Edit page"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: functions.php:56 functions.php:382
|
28 |
msgid "View page"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: functions.php:57 functions.php:381
|
32 |
msgid "Edit"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: functions.php:58 functions.php:382
|
36 |
msgid "View"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: functions.php:59
|
40 |
msgid "Add page"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: functions.php:60 functions.php:386
|
44 |
msgid "Add new page after"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: functions.php:61
|
48 |
msgid "after"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: functions.php:62
|
52 |
msgid "inside"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: functions.php:63
|
56 |
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: functions.php:64
|
60 |
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: functions.php:65
|
64 |
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: functions.php:66 functions.php:390
|
68 |
msgid "Add new page inside"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: functions.php:67
|
72 |
msgid "draft"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: functions.php:68
|
76 |
msgid "future"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: functions.php:69
|
80 |
msgid "protected"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: functions.php:70 functions.php:644
|
84 |
msgid "pending"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: functions.php:71
|
88 |
msgid "private"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: functions.php:72
|
92 |
msgid "trash"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: functions.php:73
|
96 |
msgid "Password protected page"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: functions.php:74
|
100 |
msgid "Adding page..."
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: functions.php:175
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
msgid "settings"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: functions.php:180
|
108 |
msgid "Select where to show a tree for pages and custom post types"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: functions.php:204
|
112 |
msgid "On dashboard"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: functions.php:208
|
116 |
msgid "In menu"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: functions.php:219
|
|
|
|
|
|
|
|
|
120 |
msgid "Save Changes"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: functions.php:335
|
124 |
msgid "No posts found."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: functions.php:341
|
128 |
msgid "All"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: functions.php:342
|
132 |
msgid "Public"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: functions.php:343
|
136 |
msgid "Trash"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: functions.php:348
|
140 |
msgid "Expand"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: functions.php:349
|
144 |
msgid "Collapse"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: functions.php:357
|
148 |
msgid "Clear search"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: functions.php:358
|
152 |
msgid "Search"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: functions.php:359
|
156 |
msgid "Searching..."
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: functions.php:360
|
160 |
msgid "Nothing found."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: functions.php:366
|
164 |
msgid "Loading..."
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: functions.php:371
|
168 |
msgid "Search: no pages found"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: functions.php:374
|
172 |
msgid "Loading tree"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: functions.php:386
|
176 |
msgid "After"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: functions.php:390
|
180 |
msgid "Inside"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: functions.php:394
|
184 |
msgid "Can not create page inside of a page with draft status"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: functions.php:397
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
msgid "Last modified"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: functions.php:399
|
192 |
msgid "by"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: functions.php:402
|
196 |
msgid "Page ID"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: functions.php:609
|
200 |
msgid "Unknown user"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: functions.php:614
|
204 |
msgid "<Untitled page>"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: functions.php:634
|
208 |
msgid "Comments"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: functions.php:641
|
212 |
msgid "%s pending"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: functions.php:651
|
216 |
msgctxt "comment count"
|
217 |
msgid "0"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: functions.php:651
|
221 |
msgctxt "comment count"
|
222 |
msgid "1"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: functions.php:651
|
226 |
msgctxt "comment count"
|
227 |
msgid "%"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: functions.php:682
|
231 |
+
msgid "Click to edit. Drag to move."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: functions.php:833
|
235 |
+
msgid "New page"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: functions.php:1015
|
239 |
+
msgid "Close"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: functions.php:1016
|
243 |
msgid ""
|
244 |
+
"<strong>Thank you for using this plugin!</strong> If you need help please "
|
245 |
+
"check out the <a href=\"http://eskapism.se/code-playground/cms-tree-page-"
|
246 |
+
"view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">plugin "
|
247 |
+
"homepage</a> or the <a href=\"http://wordpress.org/tags/cms-tree-page-view?"
|
248 |
+
"forum_id=10\">support forum</a>."
|
|
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: functions.php:1017
|
252 |
msgid ""
|
253 |
+
"If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?"
|
254 |
+
"utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my "
|
255 |
+
"work by donating</a> - or at least say something nice about this plugin in a "
|
256 |
+
"blog post or tweet."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
msgstr ""
|
languages/cms-tree-page-view_ro_RO.mo
DELETED
Binary file
|
languages/cms-tree-page-view_ro_RO.po
DELETED
@@ -1,257 +0,0 @@
|
|
1 |
-
# This file is distributed under the same license as the package.
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Project-Id-Version: \n"
|
5 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
6 |
-
"POT-Creation-Date: 2011-03-06 14:33:36+00:00\n"
|
7 |
-
"MIME-Version: 1.0\n"
|
8 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
-
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"PO-Revision-Date: 2012-03-22 17:32+0200\n"
|
11 |
-
"X-Poedit-Language: Romanian\n"
|
12 |
-
"X-Poedit-Country: Romania\n"
|
13 |
-
"Language-Team: Web Geeks\n"
|
14 |
-
"Last-Translator: \n"
|
15 |
-
|
16 |
-
#: functions.php:53
|
17 |
-
msgid "Enter title of new page"
|
18 |
-
msgstr "Introduceţi titlul de pagină nouă"
|
19 |
-
|
20 |
-
#: functions.php:54
|
21 |
-
msgid "child pages"
|
22 |
-
msgstr "pagini de copil"
|
23 |
-
|
24 |
-
#: functions.php:55
|
25 |
-
#: functions.php:381
|
26 |
-
msgid "Edit page"
|
27 |
-
msgstr "Editare pagină"
|
28 |
-
|
29 |
-
#: functions.php:56
|
30 |
-
#: functions.php:382
|
31 |
-
msgid "View page"
|
32 |
-
msgstr "Vizualizare pagină"
|
33 |
-
|
34 |
-
#: functions.php:57
|
35 |
-
#: functions.php:381
|
36 |
-
msgid "Edit"
|
37 |
-
msgstr "Editare"
|
38 |
-
|
39 |
-
#: functions.php:58
|
40 |
-
#: functions.php:382
|
41 |
-
msgid "View"
|
42 |
-
msgstr "Vizualizare"
|
43 |
-
|
44 |
-
#: functions.php:59
|
45 |
-
msgid "Add page"
|
46 |
-
msgstr "Adăugare pagină"
|
47 |
-
|
48 |
-
#: functions.php:60
|
49 |
-
#: functions.php:386
|
50 |
-
msgid "Add new page after"
|
51 |
-
msgstr "Adăugare pagină după"
|
52 |
-
|
53 |
-
#: functions.php:61
|
54 |
-
msgid "after"
|
55 |
-
msgstr "după"
|
56 |
-
|
57 |
-
#: functions.php:62
|
58 |
-
msgid "inside"
|
59 |
-
msgstr "interior"
|
60 |
-
|
61 |
-
#: functions.php:63
|
62 |
-
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
63 |
-
msgstr "Ne pare rău, nu se poate crea o pagină sub la o pagină cu statut de \"proiect\"."
|
64 |
-
|
65 |
-
#: functions.php:64
|
66 |
-
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
67 |
-
msgstr "Ne pare rău, nu se poate crea o pagină sub la o pagină cu statut de \"gunoi\"."
|
68 |
-
|
69 |
-
#: functions.php:65
|
70 |
-
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
71 |
-
msgstr "Ne pare rău, nu se poate crea o pagină după pagină, cu statut \"gunoi\"."
|
72 |
-
|
73 |
-
#: functions.php:66
|
74 |
-
#: functions.php:390
|
75 |
-
msgid "Add new page inside"
|
76 |
-
msgstr "Adăugare pagină nouă în interiorul"
|
77 |
-
|
78 |
-
#: functions.php:67
|
79 |
-
msgid "draft"
|
80 |
-
msgstr "proiectul"
|
81 |
-
|
82 |
-
#: functions.php:68
|
83 |
-
msgid "future"
|
84 |
-
msgstr "viitor"
|
85 |
-
|
86 |
-
#: functions.php:69
|
87 |
-
msgid "protected"
|
88 |
-
msgstr "protejat"
|
89 |
-
|
90 |
-
#: functions.php:70
|
91 |
-
#: functions.php:644
|
92 |
-
msgid "pending"
|
93 |
-
msgstr "aşteptare"
|
94 |
-
|
95 |
-
#: functions.php:71
|
96 |
-
msgid "private"
|
97 |
-
msgstr "privat"
|
98 |
-
|
99 |
-
#: functions.php:72
|
100 |
-
msgid "trash"
|
101 |
-
msgstr "gunoi"
|
102 |
-
|
103 |
-
#: functions.php:73
|
104 |
-
msgid "Password protected page"
|
105 |
-
msgstr "Pagina protejată prin parolă"
|
106 |
-
|
107 |
-
#: functions.php:74
|
108 |
-
msgid "Adding page..."
|
109 |
-
msgstr "Adăugarea de pagină..."
|
110 |
-
|
111 |
-
#: functions.php:175
|
112 |
-
msgid "settings"
|
113 |
-
msgstr "Setări"
|
114 |
-
|
115 |
-
#: functions.php:180
|
116 |
-
msgid "Select where to show a tree for pages and custom post types"
|
117 |
-
msgstr "Selectaţi de unde pentru a afişa un copac pentru pagini şi tipurile particularizate post"
|
118 |
-
|
119 |
-
#: functions.php:204
|
120 |
-
msgid "On dashboard"
|
121 |
-
msgstr "Pe tabloul de bord"
|
122 |
-
|
123 |
-
#: functions.php:208
|
124 |
-
msgid "In menu"
|
125 |
-
msgstr "În meniul"
|
126 |
-
|
127 |
-
#: functions.php:219
|
128 |
-
msgid "Save Changes"
|
129 |
-
msgstr "Salvaţi modificările"
|
130 |
-
|
131 |
-
#: functions.php:335
|
132 |
-
msgid "No posts found."
|
133 |
-
msgstr "Nu posturile de găsit."
|
134 |
-
|
135 |
-
#: functions.php:341
|
136 |
-
msgid "All"
|
137 |
-
msgstr "Toate"
|
138 |
-
|
139 |
-
#: functions.php:342
|
140 |
-
msgid "Public"
|
141 |
-
msgstr "Publice"
|
142 |
-
|
143 |
-
#: functions.php:343
|
144 |
-
msgid "Trash"
|
145 |
-
msgstr "Gunoi"
|
146 |
-
|
147 |
-
#: functions.php:348
|
148 |
-
msgid "Expand"
|
149 |
-
msgstr "Extinde"
|
150 |
-
|
151 |
-
#: functions.php:349
|
152 |
-
msgid "Collapse"
|
153 |
-
msgstr "Colaps"
|
154 |
-
|
155 |
-
#: functions.php:357
|
156 |
-
msgid "Clear search"
|
157 |
-
msgstr "Căutare clar"
|
158 |
-
|
159 |
-
#: functions.php:358
|
160 |
-
msgid "Search"
|
161 |
-
msgstr "Căutare"
|
162 |
-
|
163 |
-
#: functions.php:359
|
164 |
-
msgid "Searching..."
|
165 |
-
msgstr "Se caută..."
|
166 |
-
|
167 |
-
#: functions.php:360
|
168 |
-
msgid "Nothing found."
|
169 |
-
msgstr "Nimic găsit."
|
170 |
-
|
171 |
-
#: functions.php:366
|
172 |
-
msgid "Loading..."
|
173 |
-
msgstr "Încărcare..."
|
174 |
-
|
175 |
-
#: functions.php:371
|
176 |
-
msgid "Search: no pages found"
|
177 |
-
msgstr "Căutare: nu pagini găsit"
|
178 |
-
|
179 |
-
#: functions.php:374
|
180 |
-
msgid "Loading tree"
|
181 |
-
msgstr "Încărcare copac"
|
182 |
-
|
183 |
-
#: functions.php:386
|
184 |
-
msgid "After"
|
185 |
-
msgstr "După"
|
186 |
-
|
187 |
-
#: functions.php:390
|
188 |
-
msgid "Inside"
|
189 |
-
msgstr "În interiorul"
|
190 |
-
|
191 |
-
#: functions.php:394
|
192 |
-
msgid "Can not create page inside of a page with draft status"
|
193 |
-
msgstr "Nu puteţi crea pagina în interiorul o pagină cu statut de proiect"
|
194 |
-
|
195 |
-
#: functions.php:397
|
196 |
-
msgid "Last modified"
|
197 |
-
msgstr "Modificat ultima dată"
|
198 |
-
|
199 |
-
#: functions.php:399
|
200 |
-
msgid "by"
|
201 |
-
msgstr "de"
|
202 |
-
|
203 |
-
#: functions.php:402
|
204 |
-
msgid "Page ID"
|
205 |
-
msgstr "ID-ul page"
|
206 |
-
|
207 |
-
#: functions.php:609
|
208 |
-
msgid "Unknown user"
|
209 |
-
msgstr "Utilizator necunoscut"
|
210 |
-
|
211 |
-
#: functions.php:614
|
212 |
-
msgid "<Untitled page>"
|
213 |
-
msgstr "< Fără titlu pagină >"
|
214 |
-
|
215 |
-
#: functions.php:634
|
216 |
-
msgid "Comments"
|
217 |
-
msgstr "Comentarii"
|
218 |
-
|
219 |
-
#: functions.php:641
|
220 |
-
msgid "%s pending"
|
221 |
-
msgstr "%s până la"
|
222 |
-
|
223 |
-
#: functions.php:651
|
224 |
-
msgctxt "comment count"
|
225 |
-
msgid "0"
|
226 |
-
msgstr "0"
|
227 |
-
|
228 |
-
#: functions.php:651
|
229 |
-
msgctxt "comment count"
|
230 |
-
msgid "1"
|
231 |
-
msgstr "1"
|
232 |
-
|
233 |
-
#: functions.php:651
|
234 |
-
msgctxt "comment count"
|
235 |
-
msgid "%"
|
236 |
-
msgstr "%"
|
237 |
-
|
238 |
-
#: functions.php:682
|
239 |
-
msgid "Click to edit. Drag to move."
|
240 |
-
msgstr "Faceţi clic pentru a edita. Trageţi pentru a muta."
|
241 |
-
|
242 |
-
#: functions.php:833
|
243 |
-
msgid "New page"
|
244 |
-
msgstr "Pagină nouă"
|
245 |
-
|
246 |
-
#: functions.php:1015
|
247 |
-
msgid "Close"
|
248 |
-
msgstr "Închide"
|
249 |
-
|
250 |
-
#: functions.php:1016
|
251 |
-
msgid "<strong>Thank you for using this plugin!</strong> If you need help please check out the <a href=\"http://eskapism.se/code-playground/cms-tree-page-view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">plugin homepage</a> or the <a href=\"http://wordpress.org/tags/cms-tree-page-view?forum_id=10\">support forum</a>."
|
252 |
-
msgstr "<strong> Vă mulţumim pentru folosirea acestui plugin! </strong> Dacă aveţi nevoie de ajutor vă rugăm să verificaţi <a href=\"http://eskapism.se/code-playground/cms-tree-page-view/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">pagina </a> sau <a href=\"http://wordpress.org/tags/cms-tree-page-view?forum_id=10\"> Forum </a>."
|
253 |
-
|
254 |
-
#: functions.php:1017
|
255 |
-
msgid "If you like this plugin, please <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">support my work by donating</a> - or at least say something nice about this plugin in a blog post or tweet."
|
256 |
-
msgstr "Dacă vă place acest plug-in, vă rugăm să <a href=\"http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox\">munca mea prin donarea </a> - sau cel puţin spune ceva frumos despre acest plug-in într-un post pe blog-ul sau Twitter."
|
257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
Contributors: eskapism, MarsApril
|
3 |
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.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag:
|
8 |
|
9 |
-
Adds a tree
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -23,34 +23,13 @@ Page management in WordPress won't get any easier than this!
|
|
23 |
* View your pages & posts in a tree-view, like you view files in Windows Explorer or the Finder in OS X
|
24 |
* Drag and drop to rearrange/order your pages
|
25 |
* Add pages after or inside a page
|
26 |
-
* Add multiple pages at once - perfect for setting up a new site structure
|
27 |
* Edit pages
|
28 |
* View pages
|
29 |
* Search pages
|
30 |
* Available for both regular pages and custom posts
|
31 |
-
* Works with both hierarchical and non-hierarchical post types
|
32 |
* View your site hierarchy directly from the WordPress dashboard
|
33 |
-
* Drag and drop between trees with different post types to change to post type of the draged item, i.e. change a regular page to became any custom post type
|
34 |
* Support for translation plugin [WPML](http://wordpress.org/extend/plugins/sitepress-multilingual-cms/), so you can manage all the languages of your site
|
35 |
|
36 |
-
#### Show your pages on your site in the same order as they are in CMS Tree Page View
|
37 |
-
To show your pages on your website in the same order as they appear in this plugin, you must
|
38 |
-
sort them by "menu order".
|
39 |
-
|
40 |
-
´
|
41 |
-
// Example using query_posts
|
42 |
-
$args = array(
|
43 |
-
'orderby'=> 'menu_order',
|
44 |
-
'order'=>'ASC',
|
45 |
-
'post_type' => 'page',
|
46 |
-
);
|
47 |
-
$posts = query_posts($args);
|
48 |
-
|
49 |
-
// Example using wp_query
|
50 |
-
$query = new WP_Query( array( 'post_type' => 'page', 'orderby' => 'title menu_order', 'order' => 'ASC' ) );
|
51 |
-
|
52 |
-
´
|
53 |
-
|
54 |
#### Screencast
|
55 |
Watch this screencast to see how easy you could be managing your pages:
|
56 |
[youtube http://www.youtube.com/watch?v=H4BGomLi_FU]
|
@@ -73,13 +52,16 @@ This plugin is available in the following languages:
|
|
73 |
* Polish
|
74 |
* Greek
|
75 |
* Danish
|
76 |
-
|
77 |
-
|
|
|
|
|
78 |
|
79 |
#### Always show your pages in the admin area
|
80 |
If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin
|
81 |
[Admin Menu Tree Page View](http://wordpress.org/extend/plugins/admin-menu-tree-page-view/).
|
82 |
|
|
|
83 |
#### Donation and more plugins
|
84 |
* If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/).
|
85 |
* More [WordPress CMS plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author.
|
@@ -95,80 +77,15 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
95 |
== Screenshots ==
|
96 |
|
97 |
1. The page tree in action
|
98 |
-
2. Edit, view and
|
99 |
-
3. Search pages
|
100 |
4. Drag-and-drop to rearrange/change the order of the pages.
|
101 |
5. The tree is also available on the dashboard and therefore available immediately after you login.
|
102 |
-
6.
|
103 |
-
7.
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
-
= 1.2 =
|
108 |
-
- Added option to show the tree in the regular post overview screen. Makes the tree view fit into the regular workflow and GUI much better. To enable: go to settings > CMS Tree Page View > Tick the option "On post overview screen". Then go to for example the pages overview screen and in the upper right corner there will be an icon to switch between the regular list view and the tree view of this plugin.
|
109 |
-
- Fixed so search button now looks more like the rest of the WordPress GUI
|
110 |
-
- Fixed a undefined index warning
|
111 |
-
- Fixed wrong language count for WPML-enabled post types
|
112 |
-
- Perhaps fixed a problem with some other plugins, for example Formidable Pro
|
113 |
-
- Added icon to settings page
|
114 |
-
- Added updated Russian translation
|
115 |
-
- Updated POT-file for translators
|
116 |
-
|
117 |
-
= 1.1 =
|
118 |
-
- Added "Add new"-link next to headline, to better match the regular post overview page + it makes it possible to add new pages/posts when there are no pages/posts added (previously there needed to be at least one post added to be able to add new posts)
|
119 |
-
- Added post count in parenthesis after each post status. Also makes the page match the regular post overview page a it more. Works for both built in post types and custom post types + if WPML is installed it will show post count for each language too.
|
120 |
-
- Fixed a bug with sortables (well, I kinda forgot to load that script at all!) that made the plugin only work on the dashboard.
|
121 |
-
- Fixed some IE-bugs
|
122 |
-
|
123 |
-
= 1.0 =
|
124 |
-
- New: create multiple pages at once! Add multiple pages faster than ever before! You can even select if the new pages should be drafts or published. And ever drag and drop the pages to get the correct order even before adding them. I know - it's awesome!
|
125 |
-
- Fixed: adds new pages with the correct and selected WPML-language
|
126 |
-
- Added: you can now change the type of a post by draging the post between different trees on the dashboard. So if you have one custom post type called "Cars" and another called "Bicycles" you can now drag a page from the cars tree to the bicicyles tree and the post will converted to that post type. Pretty powerful feature that you used to need a separately plugin to be able to do.
|
127 |
-
- Misc fixes
|
128 |
-
- Added new POT-file for translators
|
129 |
-
- I decided to call this version 1. I've been using this plugin for so long time now and I use it in almost every WordPress project I participate in (all projects with lots of pages), so with this new add-mulitple-page-feature it feels like it's time to go to version 1. Hope you'll agree! :)
|
130 |
-
|
131 |
-
= 0.10.1 =
|
132 |
-
- Fixed popup closing to fast on Firefox.
|
133 |
-
- Enable menu item setting by default for hierarchical post types during first install. It was confusing when it was enabled for pages but not for other post types. Consistency!
|
134 |
-
- Added link to settings page to plugin listing.
|
135 |
-
- Fixed: WPML-stuff now also works on custom post types
|
136 |
-
|
137 |
-
= 0.10 =
|
138 |
-
- Fixed position of action div. Now it's always to the right of the page name.
|
139 |
-
- Fixed so action div never is below the fold of the browser. Instead it's moved up until it's visible.
|
140 |
-
- Fixed problem related to hoverIntent and mouseover and drag and drop. There was just to many wierd things going on so I switched to my own solution instead. Let me know if it works ok for you too now again!
|
141 |
-
|
142 |
-
= 0.9 =
|
143 |
-
- Only output scripts and styles on pages that the plugin uses. This should speed up other parts of the WordPress admin a little tiny itsy bitsy bit.
|
144 |
-
- Added a hopefully not to spammy box about donation and stuff. Hopefully it it encourages some of you to give it a good review or maybe even donate some money. I've spent a lot, lot, LOT of time developing this plugin you know ;)
|
145 |
-
- Changed title on dashboard widgets and changed name of the menu item under each supported post type. Makes the titles/names look/feel a bit less dorky.
|
146 |
-
- Show icons next to the headline of top of pages with the tree
|
147 |
-
- Minor CSS changes like a little bit bigger text on the pages and a bit more spacing between each page. Makes a bit easier to drag and drop/move them around.
|
148 |
-
- Changed javascript to to use on() istead on live()
|
149 |
-
- Removed hoverIntent since that is included in WordPress by default
|
150 |
-
- Started using hoverIndent to make the popup with page actions show after a short while for each page. This also means that you can move outside the actions-pop-up for a short while without the pop up being closed - a thing that annoyed me very much. This makes the whole popup actions div thingie feels less in-your-face all the time. Hope you like it as much as I do!
|
151 |
-
|
152 |
-
= 0.8.14 =
|
153 |
-
- Added Estonian translation
|
154 |
-
|
155 |
-
= 0.8.13 =
|
156 |
-
- Updated Lithuanian language
|
157 |
-
|
158 |
-
= 0.8.12 =
|
159 |
-
- Fix for forever loading tree
|
160 |
-
- No plus-sign on nodes that has no children
|
161 |
-
|
162 |
-
= 0.8.11 =
|
163 |
-
- Changed the way to find the plugin url. Hopefully works better now. Thanks https://twitter.com/windyjonas for the patch.
|
164 |
-
|
165 |
-
= 0.8.10 =
|
166 |
-
- Updated Polish translation, including .mo-file
|
167 |
-
|
168 |
-
= 0.8.9 =
|
169 |
-
- Added Belarusian translation. thanks Web Geek Science (<a href="http://webhostinggeeks.com/">Web Hosting Geeks</a>)
|
170 |
-
- Fixed XSS vulnerability as described here: https://www.htbridge.com/advisory/HTB23083
|
171 |
-
|
172 |
= 0.8.8 =
|
173 |
- Fix for tree not remembering state
|
174 |
- Fix for tree not opening on first click
|
@@ -415,3 +332,7 @@ http://wordpress.org/support/topic/plugin-cms-tree-page-view-broken-for-language
|
|
415 |
- First public version.
|
416 |
|
417 |
|
|
|
|
|
|
|
|
2 |
Contributors: eskapism, MarsApril
|
3 |
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.0
|
6 |
+
Tested up to: 3.3.1
|
7 |
+
Stable tag: 0.8.8
|
8 |
|
9 |
+
Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages.
|
10 |
|
11 |
== Description ==
|
12 |
|
23 |
* View your pages & posts in a tree-view, like you view files in Windows Explorer or the Finder in OS X
|
24 |
* Drag and drop to rearrange/order your pages
|
25 |
* Add pages after or inside a page
|
|
|
26 |
* Edit pages
|
27 |
* View pages
|
28 |
* Search pages
|
29 |
* Available for both regular pages and custom posts
|
|
|
30 |
* View your site hierarchy directly from the WordPress dashboard
|
|
|
31 |
* Support for translation plugin [WPML](http://wordpress.org/extend/plugins/sitepress-multilingual-cms/), so you can manage all the languages of your site
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
#### Screencast
|
34 |
Watch this screencast to see how easy you could be managing your pages:
|
35 |
[youtube http://www.youtube.com/watch?v=H4BGomLi_FU]
|
52 |
* Polish
|
53 |
* Greek
|
54 |
* Danish
|
55 |
+
|
56 |
+
#### Making the tree available for your vistors
|
57 |
+
If you're looking for a version of this page tree that the vistors of your site can use, then check out
|
58 |
+
this navigation widget called [Nice Navigation](http://wordpress.org/extend/plugins/nice-navigation/).
|
59 |
|
60 |
#### Always show your pages in the admin area
|
61 |
If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin
|
62 |
[Admin Menu Tree Page View](http://wordpress.org/extend/plugins/admin-menu-tree-page-view/).
|
63 |
|
64 |
+
|
65 |
#### Donation and more plugins
|
66 |
* If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/).
|
67 |
* More [WordPress CMS plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author.
|
77 |
== Screenshots ==
|
78 |
|
79 |
1. The page tree in action
|
80 |
+
2. Edit, view and add pages (choices visible upon mouse over).
|
81 |
+
3. Search pages.
|
82 |
4. Drag-and-drop to rearrange/change the order of the pages.
|
83 |
5. The tree is also available on the dashboard and therefore available immediately after you login.
|
84 |
+
6. The settings page - choose where you want the tree to show up
|
85 |
+
7. Users of WPML can find all their languages in the tree
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
= 0.8.8 =
|
90 |
- Fix for tree not remembering state
|
91 |
- Fix for tree not opening on first click
|
332 |
- First public version.
|
333 |
|
334 |
|
335 |
+
== Still on WordPress 2? ==
|
336 |
+
If you are using WordPress 2.x you can try this old version instead:
|
337 |
+
http://downloads.wordpress.org/plugin/cms-tree-page-view.0.4.9.zip
|
338 |
+
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-6.png
CHANGED
Binary file
|
screenshot-7.png
CHANGED
Binary file
|
scripts/cms_tree_page_view.js
CHANGED
@@ -1,203 +1,13 @@
|
|
1 |
|
2 |
-
/*
|
3 |
-
|
4 |
-
Some docs so I remember how things work:
|
5 |
-
|
6 |
-
Timers:
|
7 |
-
|
8 |
-
cmstpv_global_link_timer
|
9 |
-
set when mouse over link. used to show the actions div.
|
10 |
-
|
11 |
-
*/
|
12 |
-
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Should have a module for all instead...
|
16 |
-
*/
|
17 |
-
var cms_tree_page_view = (function ($) {
|
18 |
-
|
19 |
-
var my = {},
|
20 |
-
privateVariable = 1;
|
21 |
-
|
22 |
-
function privateMethod() {
|
23 |
-
// ...
|
24 |
-
}
|
25 |
-
|
26 |
-
my.moduleProperty = 1;
|
27 |
-
my.elements = {};
|
28 |
-
|
29 |
-
my.selectors = {
|
30 |
-
containers: "div.cms_tpv_container",
|
31 |
-
action_div: "div.cms_tpv_page_actions",
|
32 |
-
action_doit: "div.cms_tpv_action_add_doit"
|
33 |
-
};
|
34 |
-
|
35 |
-
my.init = function() {
|
36 |
-
my.log("init cms tree page view");
|
37 |
-
my.setup_elements();
|
38 |
-
my.setup_listeners();
|
39 |
-
};
|
40 |
-
|
41 |
-
// this is wrong, the action div and doit should be for each container, not for all
|
42 |
-
my.setup_elements = function() {
|
43 |
-
for (var elm in my.selectors) {
|
44 |
-
if (my.selectors.hasOwnProperty(elm))
|
45 |
-
my.elements[elm] = $(my.selectors[elm]);
|
46 |
-
}
|
47 |
-
};
|
48 |
-
|
49 |
-
my.setup_listeners = function() {
|
50 |
-
|
51 |
-
// When something has been written in one of the page titles: show another row
|
52 |
-
// Also: if more than one row are empty at the end, remove all but the last
|
53 |
-
$(document).on("keyup", "ul.cms_tpv_action_add_doit_pages li:last-child input", function(e) {
|
54 |
-
|
55 |
-
var $t = $(this);
|
56 |
-
var $li = $t.closest("li");
|
57 |
-
|
58 |
-
if ($.trim($t.val()) !== "") {
|
59 |
-
|
60 |
-
var $new_li = $li.clone().hide();
|
61 |
-
$new_li.find("input").val("");
|
62 |
-
$li.after( $new_li );
|
63 |
-
$new_li.slideDown();
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
});
|
68 |
-
|
69 |
-
// Click on cancel-link = hide add-div
|
70 |
-
jQuery(document).on("click", "a.cms_tpv_add_cancel", function(e) {
|
71 |
-
|
72 |
-
e.preventDefault();
|
73 |
-
var actions_div_doit = cms_tpv_get_page_actions_div_doit(this);
|
74 |
-
actions_div_doit.slideUp("fast", function() {
|
75 |
-
|
76 |
-
// Reset status back to draft
|
77 |
-
$("input[name='cms_tpv_add_status'][value='draft']").attr("checked", true);
|
78 |
-
|
79 |
-
// Remove all LIs except the last one
|
80 |
-
$("ul.cms_tpv_action_add_doit_pages").find("li:not(:last)").remove();
|
81 |
-
|
82 |
-
});
|
83 |
-
|
84 |
-
});
|
85 |
-
|
86 |
-
// Click on link to add pages
|
87 |
-
jQuery(document).on("click", "a.cms_tpv_action_add_page_after, a.cms_tpv_action_add_page_inside", function(e) {
|
88 |
-
|
89 |
-
e.preventDefault();
|
90 |
-
var $this = jQuery(this);
|
91 |
-
var post_type = cms_tpv_get_post_type(this);
|
92 |
-
var selected_lang = cms_tpv_get_wpml_selected_lang(this);
|
93 |
-
var actions_div = cms_tpv_get_page_actions_div(this);
|
94 |
-
var actions_div_doit = cms_tpv_get_page_actions_div_doit(this);
|
95 |
-
var post_status = actions_div.data("post_status");
|
96 |
-
|
97 |
-
var add_type = "";
|
98 |
-
if ($this.hasClass("cms_tpv_action_add_page_after")) {
|
99 |
-
add_type = "after";
|
100 |
-
} else if ($this.hasClass("cms_tpv_action_add_page_inside")) {
|
101 |
-
add_type = "inside";
|
102 |
-
}
|
103 |
-
|
104 |
-
// not allowed when status is trash
|
105 |
-
if (post_status === "trash" && add_type === "inside") {
|
106 |
-
jAlert(cmstpv_l10n.Can_not_add_page_after_when_status_is_trash);
|
107 |
-
return;
|
108 |
-
}
|
109 |
-
|
110 |
-
// if status is draft then it's not ok to add sub pages
|
111 |
-
if (post_status === "draft" && add_type === "inside") {
|
112 |
-
jAlert(cmstpv_l10n.Can_not_add_sub_page_when_status_is_draft);
|
113 |
-
return false;
|
114 |
-
}
|
115 |
-
|
116 |
-
// Make the list sortable
|
117 |
-
$("ul.cms_tpv_action_add_doit_pages").sortable({
|
118 |
-
"axis": "y",
|
119 |
-
"items": "> li:not(:last)",
|
120 |
-
"containment": 'parent',
|
121 |
-
"forceHelperSize": true,
|
122 |
-
"forcePlaceholderSize": true,
|
123 |
-
"handle": "span:first",
|
124 |
-
"placeholder": "ui-state-highlight"
|
125 |
-
});
|
126 |
-
|
127 |
-
// Set up correct values for input fields and radio buttons and then show form/section
|
128 |
-
actions_div_doit.find("[name='lang']").val(selected_lang);
|
129 |
-
actions_div_doit.find("[name='cms_tpv_add_type'][value='"+add_type+"']").attr("checked", "checked");
|
130 |
-
actions_div_doit.find("[name='ref_post_id']").val( actions_div.data("post_id") );
|
131 |
-
actions_div_doit.slideDown("fast", function() {
|
132 |
-
actions_div_doit.find("[name='cms_tpv_add_new_pages_names[]']").focus();
|
133 |
-
});
|
134 |
-
|
135 |
-
|
136 |
-
}); // click add page
|
137 |
-
|
138 |
-
// submit form with new pages
|
139 |
-
jQuery(document).on("submit", "div.cms_tpv_action_add_doit form", function(e) {
|
140 |
-
|
141 |
-
//e.preventDefault();
|
142 |
-
my.log("submitting form");
|
143 |
-
var $form = $(this);
|
144 |
-
$form.find("input[type='submit']").val( cmstpv_l10n.Adding ).attr("disabled", true);
|
145 |
-
|
146 |
-
});
|
147 |
-
|
148 |
-
};
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Log, but only if console.log is available
|
152 |
-
*/
|
153 |
-
my.log = function(what) {
|
154 |
-
if (typeof(window.console) === "object" && typeof(window.console.log) === "function" ) {
|
155 |
-
console.log(what);
|
156 |
-
}
|
157 |
-
};
|
158 |
-
|
159 |
-
return my;
|
160 |
-
|
161 |
-
}(jQuery));
|
162 |
-
|
163 |
-
// Bott it up on domready
|
164 |
-
jQuery(function() {
|
165 |
-
cms_tree_page_view.init();
|
166 |
-
});
|
167 |
-
|
168 |
-
|
169 |
// @todo: add prefix to treeOptions, div_actions
|
170 |
var cms_tpv_tree, treeOptions, div_actions, cms_tpv_current_li_id = null;
|
171 |
jQuery(function($) {
|
172 |
|
173 |
-
|
174 |
-
|
175 |
-
div_actions = $("div.cms_tpv_page_actions");
|
176 |
-
|
177 |
-
// try to override css
|
178 |
-
var height = "20", height2 = "18", ins_height = "20";
|
179 |
-
css_string = '' +
|
180 |
-
'.jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } ' +
|
181 |
-
'.jstree li { display:block; min-height:'+height+'px; line-height:'+height+'px; white-space:nowrap; margin-left:18px; min-width:18px; } ' +
|
182 |
-
'.jstree-rtl li { margin-left:0; margin-right:18px; } ' +
|
183 |
-
'.jstree > ul > li { margin-left:0px; } ' +
|
184 |
-
'.jstree-rtl > ul > li { margin-right:0px; } ' +
|
185 |
-
'.jstree ins { display:inline-block; text-decoration:none; width:18px; height:'+height+'px; margin:0 0 0 0; padding:0; } ' +
|
186 |
-
'.jstree a { display:inline-block; line-height:'+height2+'px; height:'+height2+'px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' +
|
187 |
-
'.jstree a:focus { outline: none; } ' +
|
188 |
-
'.jstree a > ins { height:'+ins_height+'px; width:16px; } ' +
|
189 |
-
'.jstree a > .jstree-icon { margin-right:3px; } ' +
|
190 |
-
'.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' +
|
191 |
-
'li.jstree-open > ul { display:block; } ' +
|
192 |
-
'li.jstree-closed > ul { display:none; } ' +
|
193 |
-
'#vakata-dragged { background-color: white; };' +
|
194 |
-
'';
|
195 |
-
$.vakata.css.add_sheet({
|
196 |
-
str : css_string,
|
197 |
-
title : "jstree_cms_tpv"
|
198 |
-
});
|
199 |
|
200 |
treeOptions = {
|
|
|
201 |
plugins: ["themes","json_data","cookies","search","dnd", "types"],
|
202 |
core: {
|
203 |
"html_titles": true
|
@@ -207,22 +17,55 @@ jQuery(function($) {
|
|
207 |
"url": ajaxurl + CMS_TPV_AJAXURL + CMS_TPV_VIEW,
|
208 |
// this function is executed in the instance's scope (this refers to the tree instance)
|
209 |
// the parameter is the node being loaded (may be -1, 0, or undefined when loading the root nodes)
|
210 |
-
"data" : function (n) {
|
211 |
// the result is fed to the AJAX request `data` option
|
212 |
if (n.data) {
|
213 |
var post_id = n.data("post_id");
|
214 |
return {
|
215 |
"id": post_id
|
216 |
-
}
|
217 |
}
|
218 |
}
|
219 |
|
220 |
}
|
221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
},
|
223 |
"themes": {
|
224 |
-
"theme": "wordpress"
|
225 |
-
"dots": false
|
226 |
},
|
227 |
"search": {
|
228 |
"ajax" : {
|
@@ -232,7 +75,7 @@ jQuery(function($) {
|
|
232 |
},
|
233 |
"dnd": {
|
234 |
}
|
235 |
-
}
|
236 |
|
237 |
if (cms_tpv_tree.length > 0) {
|
238 |
cms_tpv_bind_clean_node(); // don't remember why I run this here.. :/
|
@@ -248,7 +91,7 @@ jQuery(function($) {
|
|
248 |
treeOptionsTmp.json_data.data = cms_tpv_jsondata[post_type]; // get from js
|
249 |
|
250 |
var isHierarchical = $(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type_hierarchical]").val();
|
251 |
-
if (isHierarchical
|
252 |
// no move to children if not hierarchical
|
253 |
treeOptionsTmp.types = {
|
254 |
"types": {
|
@@ -256,133 +99,119 @@ jQuery(function($) {
|
|
256 |
"valid_children" : [ "none" ]
|
257 |
}
|
258 |
}
|
259 |
-
}
|
260 |
}
|
261 |
|
262 |
$elm.bind("search.jstree", function (event, data) {
|
263 |
-
if (data.rslt.nodes.length
|
264 |
// no hits. doh.
|
265 |
$(this).closest(".cms_tpv_wrapper").find(".cms_tree_view_search_form_no_hits").fadeIn("fast");
|
266 |
}
|
267 |
});
|
268 |
|
269 |
-
// whole tre loaded
|
270 |
-
$elm.bind("loaded.jstree", cms_tpv_tree_loaded);
|
271 |
-
|
272 |
$elm.jstree(treeOptionsTmp);
|
273 |
|
274 |
});
|
|
|
275 |
|
276 |
}); // end ondomready
|
277 |
|
278 |
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
|
|
286 |
}
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
|
289 |
-
/**
|
290 |
-
* When tree is loaded: start hoverindenting stuff
|
291 |
-
*/
|
292 |
-
function cms_tpv_tree_loaded(event, data) {
|
293 |
-
|
294 |
-
var $container = jQuery(event.target);
|
295 |
-
var actions_div_doit = cms_tpv_get_page_actions_div_doit(event.target);
|
296 |
-
|
297 |
-
// init = clear up some things
|
298 |
-
actions_div_doit.hide();
|
299 |
-
$container.find("li.has-visible-actions").removeClass("has-visible-actions");
|
300 |
-
$container.find("a.hover").removeClass("hover");
|
301 |
-
$container.find("div.cms_tpv_page_actions").removeClass("cms_tpv_page_actions_visible");
|
302 |
-
$container.find("div.cms_tpv_page_actions_visible").removeClass("cms_tpv_page_actions_visible");
|
303 |
-
|
304 |
-
// when mouse enters a/link
|
305 |
-
// start timer and if no other a/link has been moused over since it started it's ok to show this one
|
306 |
-
jQuery($container).on("mouseenter", "a", function(e) {
|
307 |
-
|
308 |
-
// Don't activate if entered on ins-tag. We use that only for drag and drop
|
309 |
-
// if (e.relatedTarget && e.relatedTarget.tagName === "INS") return;
|
310 |
-
|
311 |
-
cms_tree_page_view.log("mouseenter container");
|
312 |
-
|
313 |
-
var global_timer = $container.data("cmstpv_global_link_timer");
|
314 |
-
|
315 |
-
if (global_timer) {
|
316 |
-
// global timer exists, so overwrite it with our new one
|
317 |
-
// stop that timer before setting ours
|
318 |
-
cms_tree_page_view.log("clear global timer");
|
319 |
-
clearTimeout(global_timer);
|
320 |
-
} else {
|
321 |
-
// no timer exists, overwrite with ours
|
322 |
-
}
|
323 |
-
|
324 |
-
// create new timer to show action div, no matter if one exists already
|
325 |
-
// but not if we are creating new pages
|
326 |
-
cms_tree_page_view.log("add timer for mousover on link");
|
327 |
|
328 |
-
|
|
|
|
|
|
|
|
|
329 |
|
330 |
-
|
331 |
-
cms_tpv_mouseover_li(e);
|
332 |
-
}), 500, e);
|
333 |
|
334 |
-
|
|
|
|
|
|
|
|
|
335 |
|
336 |
-
|
337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
}
|
339 |
-
|
340 |
});
|
341 |
|
342 |
-
|
343 |
-
|
344 |
-
* so hide the action div and cancel the timer
|
345 |
-
*/
|
346 |
-
jQuery($container).on("mousedown", "a", function(e) {
|
347 |
-
|
348 |
-
cms_tree_page_view.log("mousedown a");
|
349 |
-
|
350 |
-
var $target = jQuery(e.target);
|
351 |
-
var $container = $target.closest("div.cms_tpv_container");
|
352 |
-
var $wrapper = $container.closest("div.cms_tpv_wrapper");
|
353 |
|
354 |
-
|
355 |
-
|
356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
});
|
|
|
|
|
359 |
|
360 |
-
}
|
361 |
-
|
362 |
-
|
363 |
-
// get post type
|
364 |
-
// elm must be within .cms_tpv_wrapper to work
|
365 |
-
function cms_tpv_get_post_type(elm) {
|
366 |
-
return jQuery(elm).closest("div.cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type]").val();
|
367 |
-
}
|
368 |
-
// get selected lang
|
369 |
-
function cms_tpv_get_wpml_selected_lang(elm) {
|
370 |
-
return jQuery(elm).closest("div.cms_tpv_wrapper").find("[name=cms_tpv_meta_wpml_language]").val();
|
371 |
-
}
|
372 |
-
|
373 |
-
function cms_tpv_get_page_actions_div(elm) {
|
374 |
-
return jQuery(elm).closest("div.cms_tpv_wrapper").find("div.cms_tpv_page_actions");
|
375 |
-
}
|
376 |
-
|
377 |
-
function cms_tpv_get_page_actions_div_doit(elm) {
|
378 |
-
return jQuery(elm).closest("div.cms_tpv_wrapper").find("div.cms_tpv_action_add_doit");
|
379 |
-
}
|
380 |
-
|
381 |
-
|
382 |
-
function cms_tpv_get_wrapper(elm) {
|
383 |
-
var $wrapper = jQuery(elm).closest("div.cms_tpv_wrapper");
|
384 |
-
return $wrapper;
|
385 |
-
}
|
386 |
|
387 |
|
388 |
// check if tree is beging dragged
|
@@ -392,34 +221,19 @@ function cms_tpv_is_dragging() {
|
|
392 |
}
|
393 |
|
394 |
// fired when mouse is over li
|
395 |
-
|
396 |
-
function cms_tpv_mouseover_li(e) {
|
397 |
|
398 |
-
|
399 |
-
|
400 |
-
var div_actions_for_post_type = cms_tpv_get_page_actions_div($li);
|
401 |
-
var actions_div_doit = cms_tpv_get_page_actions_div_doit($li);
|
402 |
-
var $cms_tpv_container = $li.closest("div.cms_tpv_container");
|
403 |
|
404 |
-
|
405 |
-
|
406 |
-
var is_visible = div_actions_for_post_type.is(":visible");
|
407 |
-
is_visible = false;
|
408 |
|
409 |
-
|
|
|
|
|
410 |
// do nada
|
411 |
} else {
|
412 |
|
413 |
-
// Add info to the action div from the li
|
414 |
-
div_actions_for_post_type.data("post_status", $li.data("post_status"));
|
415 |
-
|
416 |
-
// Remove classes on all elements
|
417 |
-
$cms_tpv_container.find("li.has-visible-actions").removeClass("has-visible-actions");
|
418 |
-
$cms_tpv_container.find("a.hover").removeClass("hover");
|
419 |
-
|
420 |
-
// Add classes to only our new
|
421 |
-
$li.addClass("has-visible-actions");
|
422 |
-
$cms_tpv_container.addClass("has-visible-actions");
|
423 |
$li.find("a:first").addClass("hover");
|
424 |
|
425 |
// setup link for view page
|
@@ -431,132 +245,93 @@ function cms_tpv_mouseover_li(e) {
|
|
431 |
$edit = div_actions_for_post_type.find(".cms_tpv_action_edit");
|
432 |
var editlink = $li.data("editlink");
|
433 |
$edit.attr("href", editlink);
|
434 |
-
|
435 |
-
// ..and some extras
|
436 |
-
div_actions_for_post_type.find(".cms_tpv_page_actions_modified_time").text($li.data("modified_time"));
|
437 |
-
div_actions_for_post_type.find(".cms_tpv_page_actions_modified_by").text($li.data("modified_author"));
|
438 |
-
div_actions_for_post_type.find(".cms_tpv_page_actions_page_id").text($li.data("post_id"));
|
439 |
-
div_actions_for_post_type.find(".cms_tpv_page_actions_columns").html( unescape($li.data("columns")) );
|
440 |
-
|
441 |
-
// add post title as headline
|
442 |
-
div_actions_for_post_type.find(".cms_tpv_page_actions_headline").html( $li.data("post_title") );
|
443 |
-
|
444 |
-
// add post id to data
|
445 |
-
div_actions_for_post_type.data("post_id", $li.data("post_id"));
|
446 |
-
|
447 |
-
// position and show action div
|
448 |
-
var $a = $li.find("a");
|
449 |
-
var width = $a.outerWidth(true);
|
450 |
-
var new_offset = div_actions_for_post_type.offset();
|
451 |
-
var new_offset_left = e.pageX + 35;
|
452 |
-
|
453 |
-
new_offset_left = $a.offset().left + $a.width() + 20;
|
454 |
-
new_offset.left = new_offset_left;
|
455 |
-
new_offset.top = $a.offset().top - 30;
|
456 |
-
div_actions_for_post_type.offset(new_offset);
|
457 |
-
|
458 |
-
// check if action div bottom is visible in browser window, if not move it up until it is
|
459 |
-
var pos_diff = (div_actions_for_post_type.offset().top + div_actions_for_post_type.height()) - (jQuery(window).height() + jQuery(window).scrollTop());
|
460 |
-
if (pos_diff > 0) {
|
461 |
-
|
462 |
-
// set action div to begin at bottom of link instead
|
463 |
-
new_offset.top = $a.offset().top - div_actions_for_post_type.height() + 15; // <- ska bli botten på vår div
|
464 |
-
div_actions_for_post_type.offset( new_offset );
|
465 |
-
div_actions_for_post_type.addClass("cms_tpv_page_actions_visible_from_bottom");
|
466 |
-
|
467 |
-
} else {
|
468 |
-
div_actions_for_post_type.removeClass("cms_tpv_page_actions_visible_from_bottom");
|
469 |
-
}
|
470 |
|
471 |
// check if user is allowed to edit page
|
472 |
var $cms_tpv_action_add_and_edit_page = div_actions_for_post_type.find(".cms_tpv_action_add_and_edit_page");
|
473 |
-
if ($li.data("user_can_edit_page")
|
474 |
// nooope
|
475 |
$edit.hide();
|
476 |
$cms_tpv_action_add_and_edit_page.hide();
|
477 |
} else {
|
478 |
-
|
479 |
$cms_tpv_action_add_and_edit_page.show();
|
480 |
-
div_actions_for_post_type.addClass("cms_tpv_page_actions_visible");
|
481 |
}
|
482 |
|
483 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
}
|
485 |
}
|
486 |
|
487 |
}
|
488 |
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
|
|
494 |
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
500 |
|
501 |
-
//
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
}
|
507 |
|
508 |
-
// Don't hide if in add-pages-mode
|
509 |
-
var actions_div_doit = cms_tpv_get_page_actions_div_doit(this);
|
510 |
-
if ( actions_div_doit.is(":visible") )
|
511 |
-
return;
|
512 |
-
|
513 |
-
// Maybe hide popup after a short while
|
514 |
-
var hideTimer = setTimeout(function() {
|
515 |
-
|
516 |
-
cms_tree_page_view.log("maybe hide popup because outside container");
|
517 |
-
|
518 |
-
// But don't hide if we are inside the popup
|
519 |
-
var $relatedTarget = jQuery(e.relatedTarget);
|
520 |
-
if ($relatedTarget.hasClass("cms_tpv_page_actions")) {
|
521 |
-
// we are over the actions div, so don't hide
|
522 |
-
cms_tree_page_view.log("cancel hide beacuse over actions div");
|
523 |
-
} else {
|
524 |
-
// somewhere else, do hide
|
525 |
-
cms_tree_page_view.log("do hide");
|
526 |
-
$container.find("li.has-visible-actions").removeClass("has-visible-actions");
|
527 |
-
$container.find("a.hover").removeClass("hover");
|
528 |
-
$wrapper.find("div.cms_tpv_page_actions").removeClass("cms_tpv_page_actions_visible");
|
529 |
-
}
|
530 |
-
|
531 |
-
}, 500);
|
532 |
-
|
533 |
-
$container.data("cmstpv_global_link_timer", hideTimer);
|
534 |
-
|
535 |
});
|
|
|
536 |
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
var $this = jQuery(this);
|
542 |
-
var $wrapper = $this.closest("div.cms_tpv_wrapper");
|
543 |
-
var $container = $wrapper.find("div.cms_tpv_container");
|
544 |
-
var timer = $container.data("cmstpv_global_link_timer");
|
545 |
-
|
546 |
-
clearTimeout(timer);
|
547 |
-
|
548 |
});
|
549 |
-
|
550 |
-
|
551 |
-
//
|
552 |
-
|
553 |
-
|
554 |
-
var $container = jQuery(this);
|
555 |
-
jQuery.data(this, "cmstpv_do_hide_after_timeout", false);
|
556 |
-
|
557 |
});
|
558 |
|
559 |
|
|
|
|
|
|
|
|
|
|
|
560 |
/**
|
561 |
* add childcount and other things to each li
|
562 |
*/
|
@@ -593,24 +368,22 @@ function cms_tpv_bind_clean_node() {
|
|
593 |
data.r - the drop target
|
594 |
*/
|
595 |
|
596 |
-
var node_id,
|
597 |
-
ref_node_id;
|
598 |
if (nodePosition == "before") {
|
599 |
-
node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
600 |
ref_node_id = jQuery( nodeRef ).attr( "id" );
|
601 |
} else if (nodePosition == "after") {
|
602 |
-
node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
603 |
ref_node_id = jQuery( nodeR ).attr( "id" );
|
604 |
} else if (nodePosition == "inside") {
|
605 |
-
node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
606 |
ref_node_id = jQuery( nodeR ).attr( "id" );
|
607 |
}
|
608 |
|
609 |
// Update parent or menu order
|
610 |
jQuery.post(ajaxurl, {
|
611 |
-
action: "cms_tpv_move_page",
|
612 |
-
"node_id": node_id,
|
613 |
-
"ref_node_id": ref_node_id,
|
614 |
"type": nodePosition,
|
615 |
"icl_post_language": selected_lang
|
616 |
}, function(data, textStatus) {
|
@@ -622,7 +395,6 @@ function cms_tpv_bind_clean_node() {
|
|
622 |
var obj = (data.rslt.obj);
|
623 |
if (obj && obj != -1) {
|
624 |
obj.each(function(i, elm) {
|
625 |
-
|
626 |
var li = jQuery(elm);
|
627 |
var aFirst = li.find("a:first");
|
628 |
|
@@ -632,53 +404,52 @@ function cms_tpv_bind_clean_node() {
|
|
632 |
} else {
|
633 |
li.data("done_cms_tpv_clean_node", true);
|
634 |
}
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
|
641 |
-
// add protection type
|
642 |
-
var rel = li.data("rel");
|
643 |
-
if(rel == "password") {
|
644 |
-
aFirst.find("ins").after("<span class='post_protected' title='" + cmstpv_l10n.Password_protected_page + "'> </span>");
|
645 |
-
}
|
646 |
-
|
647 |
-
// add page type
|
648 |
-
var post_status = li.data("post_status");
|
649 |
-
// post_status can be any value because of plugins like Edit flow
|
650 |
-
// check if we have an existing translation for the string, otherwise use the post status directly
|
651 |
-
var post_status_to_show = "";
|
652 |
-
if (post_status_to_show = cmstpv_l10n["Status_"+post_status + "_ucase"]) {
|
653 |
-
// it's ok
|
654 |
-
} else {
|
655 |
-
post_status_to_show = post_status;
|
656 |
-
}
|
657 |
-
if (post_status != "publish") {
|
658 |
-
aFirst.find("ins").first().after("<span class='post_type post_type_"+post_status+"'>" + post_status_to_show + "</span>");
|
659 |
-
}
|
660 |
-
|
661 |
-
// To make hoverindent work we must wrap something around the a bla bla bla
|
662 |
-
//var div_wrap = jQuery("<div class='cmstpv-hoverIntent-wrap' />");
|
663 |
-
//aFirst.wrap(div_wrap);
|
664 |
-
|
665 |
});
|
666 |
}
|
667 |
});
|
668 |
}
|
669 |
|
670 |
-
//
|
671 |
-
jQuery(
|
672 |
-
|
673 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
674 |
$wrapper.find(".cms_tpv_search_no_hits").hide();
|
675 |
var s = $wrapper.find(".cms_tree_view_search").attr("value");
|
676 |
s = jQuery.trim( s );
|
677 |
-
|
678 |
if (s) {
|
679 |
$wrapper.find(".cms_tree_view_search_form_no_hits").fadeOut("fast");
|
680 |
$wrapper.find(".cms_tree_view_search_form_working").fadeIn("fast");
|
681 |
-
$wrapper.find(".cms_tree_view_search_form_reset")
|
682 |
$wrapper.find(".cms_tpv_container").jstree("search", s);
|
683 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeIn("fast");
|
684 |
} else {
|
@@ -687,15 +458,13 @@ jQuery(document).on("submit", "form.cms_tree_view_search_form", function(e) {
|
|
687 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeOut("fast");
|
688 |
}
|
689 |
$wrapper.find(".cms_tree_view_search_form_working").fadeOut("fast");
|
690 |
-
|
691 |
return false;
|
692 |
-
|
693 |
});
|
694 |
|
695 |
-
//
|
696 |
-
jQuery(
|
697 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
698 |
-
$wrapper.find(".cms_tree_view_search").val("")
|
699 |
$wrapper.find(".cms_tpv_container").jstree("clear_search");
|
700 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeOut("fast");
|
701 |
$wrapper.find(".cms_tree_view_search_form_no_hits").fadeOut("fast");
|
@@ -703,67 +472,43 @@ jQuery(document).on("click", "a.cms_tree_view_search_form_reset", function(e) {
|
|
703 |
});
|
704 |
|
705 |
// open/close links
|
706 |
-
jQuery(
|
707 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
708 |
$wrapper.find(".cms_tpv_container").jstree("open_all");
|
709 |
return false;
|
710 |
});
|
711 |
-
|
712 |
-
jQuery(document).on("click", "a.cms_tpv_close_all", function(e) {
|
713 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
714 |
$wrapper.find(".cms_tpv_container").jstree("close_all");
|
715 |
return false;
|
716 |
});
|
717 |
|
718 |
// view all or public or trash
|
719 |
-
jQuery(
|
720 |
cms_tvp_set_view("all", this);
|
721 |
return false;
|
722 |
});
|
723 |
-
|
724 |
-
jQuery(document).on("click", "a.cms_tvp_view_public", function(e) {
|
725 |
cms_tvp_set_view("public", this);
|
726 |
return false;
|
727 |
});
|
728 |
-
|
729 |
-
jQuery(document).on("click", "a.cms_tvp_view_trash", function() {
|
730 |
cms_tvp_set_view("trash", this);
|
731 |
return false;
|
732 |
});
|
733 |
|
734 |
|
735 |
-
//
|
736 |
-
jQuery(
|
737 |
-
|
738 |
$wrapper = cms_tpv_get_wrapper(this);
|
739 |
-
|
740 |
-
// Mark clicked link as selected
|
741 |
$wrapper.find("ul.cms_tvp_switch_langs a").removeClass("current");
|
742 |
jQuery(this).addClass("current");
|
743 |
|
744 |
-
// Determine selected language, based on classes on the link
|
745 |
var re = /cms_tpv_switch_language_code_([\w-]+)/;
|
746 |
var matches = re.exec( jQuery(this).attr("class") );
|
747 |
var lang_code = matches[1];
|
748 |
-
|
749 |
-
// Add seleted lang to hidden input
|
750 |
$wrapper.find("[name=cms_tpv_meta_wpml_language]").val(lang_code);
|
751 |
|
752 |
-
// Update post count
|
753 |
-
// Post counts are stored on the links for all | public | trash
|
754 |
-
var $ul_select_view = $wrapper.find(".cms-tpv-subsubsub-select-view");
|
755 |
-
$ul_select_view.find("li.cms_tvp_view_is_status_view a").each(function(i, a_tag) {
|
756 |
-
|
757 |
-
// check if this link has a data attr with count for the selected lang
|
758 |
-
var $a = jQuery(a_tag);
|
759 |
-
var link_count = $a.data("post-count-" + lang_code);
|
760 |
-
if ("undefined" === typeof(link_count)) link_count = 0;
|
761 |
-
|
762 |
-
$a.find(".count").text("(" + link_count + ")");
|
763 |
-
|
764 |
-
});
|
765 |
-
|
766 |
-
// Set the view = reload the tree
|
767 |
var current_view = cms_tpv_get_current_view(this);
|
768 |
cms_tvp_set_view(current_view, this);
|
769 |
|
@@ -771,44 +516,29 @@ jQuery(document).on("click", "a.cms_tvp_switch_lang", function(e) {
|
|
771 |
|
772 |
});
|
773 |
|
774 |
-
function cms_tpv_hide_action_div() {
|
775 |
-
|
776 |
-
}
|
777 |
-
|
778 |
-
|
779 |
function cms_tpv_get_current_view(elm) {
|
780 |
-
|
781 |
$wrapper = cms_tpv_get_wrapper(elm);
|
782 |
-
|
783 |
if ($wrapper.find(".cms_tvp_view_all").hasClass("current")) {
|
784 |
return "all";
|
785 |
} else if ($wrapper.find(".cms_tvp_view_public").hasClass("current")) {
|
786 |
return "public";
|
787 |
} else {
|
788 |
-
return false; // like unknown
|
789 |
}
|
790 |
|
791 |
}
|
792 |
|
793 |
-
/**
|
794 |
-
* Sets the view; load pages for the current lang + post type + status
|
795 |
-
* @param view all | public | trash
|
796 |
-
* @elm element
|
797 |
-
*/
|
798 |
function cms_tvp_set_view(view, elm) {
|
799 |
|
800 |
var $wrapper = jQuery(elm).closest(".cms_tpv_wrapper");
|
801 |
|
802 |
var div_actions_for_post_type = cms_tpv_get_page_actions_div(elm);
|
803 |
-
|
804 |
$wrapper.append(div_actions_for_post_type);
|
|
|
805 |
$wrapper.find(".cms_tvp_view_all, .cms_tvp_view_public, .cms_tvp_view_trash").removeClass("current");
|
806 |
$wrapper.find(".cms_tpv_container").jstree("destroy").html("");
|
807 |
-
$wrapper.find("div.cms_tpv_page_actions").removeClass("cms_tpv_page_actions_visible");
|
808 |
-
|
809 |
cms_tpv_bind_clean_node();
|
810 |
|
811 |
-
// Mark selected link
|
812 |
if (view == "all") {
|
813 |
$wrapper.find(".cms_tvp_view_all").addClass("current");
|
814 |
} else if (view == "public") {
|
@@ -819,56 +549,7 @@ function cms_tvp_set_view(view, elm) {
|
|
819 |
|
820 |
}
|
821 |
|
822 |
-
// Reload tree
|
823 |
var treeOptionsTmp = jQuery.extend(true, {}, treeOptions);
|
824 |
treeOptionsTmp.json_data.ajax.url = ajaxurl + CMS_TPV_AJAXURL + view + "&post_type=" + cms_tpv_get_post_type(elm) + "&lang=" + cms_tpv_get_wpml_selected_lang(elm);
|
825 |
-
|
826 |
-
$wrapper.find(".cms_tpv_container").bind("loaded.jstree open_node.jstree", cms_tpv_tree_loaded);
|
827 |
$wrapper.find(".cms_tpv_container").jstree(treeOptionsTmp);
|
828 |
-
|
829 |
}
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
/**
|
834 |
-
* Stuff for the posts overview setting
|
835 |
-
*/
|
836 |
-
jQuery(function($) {
|
837 |
-
|
838 |
-
// Move tree link into position
|
839 |
-
var tree_view_switch = $("#view-switch-tree"),
|
840 |
-
tree_view_switch_a = tree_view_switch.closest("a"),
|
841 |
-
cmstpv_postsoverview_wrap = $("div.cmstpv-postsoverview-wrap");
|
842 |
-
|
843 |
-
// Check if view-switch exists and add it if it does not
|
844 |
-
// It must exist because that's where we have our switch to tree-icon
|
845 |
-
var view_switch = $("div.view-switch");
|
846 |
-
if (! view_switch.length) {
|
847 |
-
|
848 |
-
view_switch = $("<div class='view-switch'></div>");
|
849 |
-
$("div.tablenav-pages:first").after(view_switch);
|
850 |
-
|
851 |
-
var view_switch_list = $("#view-switch-list"),
|
852 |
-
view_switch_list_a = view_switch_list.closest("a");
|
853 |
-
|
854 |
-
view_switch.append(view_switch_list_a);
|
855 |
-
|
856 |
-
}
|
857 |
-
|
858 |
-
// Add our link inside view switch
|
859 |
-
view_switch.append(tree_view_switch_a);
|
860 |
-
view_switch.addClass("view-switch-cstpv-icon-added");
|
861 |
-
|
862 |
-
// if in tree mode: add a class to wpbody so we can style things
|
863 |
-
if (cmstpv_postsoverview_wrap.length) {
|
864 |
-
|
865 |
-
$wp_body = $("#wpbody");
|
866 |
-
$wp_body.addClass("cmstpv_postsoverview_enabled");
|
867 |
-
|
868 |
-
// Move wordpress table with view etc above cms tree page view so the icons get the correct position
|
869 |
-
var viewswitch = $("div.view-switch");
|
870 |
-
viewswitch.appendTo(cmstpv_postsoverview_wrap);
|
871 |
-
|
872 |
-
}
|
873 |
-
|
874 |
-
});
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
// @todo: add prefix to treeOptions, div_actions
|
3 |
var cms_tpv_tree, treeOptions, div_actions, cms_tpv_current_li_id = null;
|
4 |
jQuery(function($) {
|
5 |
|
6 |
+
cms_tpv_tree = $(".cms_tpv_container");
|
7 |
+
div_actions = $(".cms_tpv_page_actions");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
treeOptions = {
|
10 |
+
xplugins: ["cookie","ui","crrm","themes","json_data","search","types","dnd"],
|
11 |
plugins: ["themes","json_data","cookies","search","dnd", "types"],
|
12 |
core: {
|
13 |
"html_titles": true
|
17 |
"url": ajaxurl + CMS_TPV_AJAXURL + CMS_TPV_VIEW,
|
18 |
// this function is executed in the instance's scope (this refers to the tree instance)
|
19 |
// the parameter is the node being loaded (may be -1, 0, or undefined when loading the root nodes)
|
20 |
+
"data" : function (n) {
|
21 |
// the result is fed to the AJAX request `data` option
|
22 |
if (n.data) {
|
23 |
var post_id = n.data("post_id");
|
24 |
return {
|
25 |
"id": post_id
|
26 |
+
}
|
27 |
}
|
28 |
}
|
29 |
|
30 |
}
|
31 |
+
/*
|
32 |
+
// data can be initially set like this
|
33 |
+
// but it has to be set by type...
|
34 |
+
"data": [{
|
35 |
+
"data": {
|
36 |
+
"title": "I am a new page",
|
37 |
+
"attr": {
|
38 |
+
"href": "http://localhost/wp-admin/post.php?post=1060&action=edit",
|
39 |
+
"xid": "cms-tpv-1060"
|
40 |
+
},
|
41 |
+
"xicon": "http://localhost/wp-content/plugins/cms-tree-page-view/images/page_white_text.png"
|
42 |
+
},
|
43 |
+
"attr": {
|
44 |
+
"xhref": "http://localhost/wp-admin/post.php?post=1060&action=edit",
|
45 |
+
"id": "cms-tpv-1060",
|
46 |
+
"xtitle": "Click to edit. Drag to move.",
|
47 |
+
"class": "cms_tpv_user_can_edit_page_yes"
|
48 |
+
},
|
49 |
+
"metadata": {
|
50 |
+
"id": "cms-tpv-1060",
|
51 |
+
"post_id": "1060",
|
52 |
+
"post_type": "page",
|
53 |
+
"post_status": "publish",
|
54 |
+
"rel": "publish",
|
55 |
+
"childCount": 0,
|
56 |
+
"permalink": "http://localhost/i-am-a-new-page/",
|
57 |
+
"editlink": "http://localhost/wp-admin/post.php?post=1060&action=edit",
|
58 |
+
"modified_time": "August 15, 2010",
|
59 |
+
"modified_author": "admin",
|
60 |
+
"columns": "%3Cdl%3E%3Cdt%3EComments%3C%2Fdt%3E%3Cdd%3E%3Cdiv%20class%3D%22post-com-count-wrapper%22%3E%3Ca%20href%3D%27edit-comments.php%3Fp%3D1060%27%20title%3D%270%20pending%27%3E%3Cspan%3E0%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fdiv%3E%3C%2Fdd%3E%3C%2Fdl%3E",
|
61 |
+
"user_can_edit_page": "1"
|
62 |
+
}
|
63 |
+
|
64 |
+
}
|
65 |
+
]*/
|
66 |
},
|
67 |
"themes": {
|
68 |
+
"theme": "wordpress"
|
|
|
69 |
},
|
70 |
"search": {
|
71 |
"ajax" : {
|
75 |
},
|
76 |
"dnd": {
|
77 |
}
|
78 |
+
}
|
79 |
|
80 |
if (cms_tpv_tree.length > 0) {
|
81 |
cms_tpv_bind_clean_node(); // don't remember why I run this here.. :/
|
91 |
treeOptionsTmp.json_data.data = cms_tpv_jsondata[post_type]; // get from js
|
92 |
|
93 |
var isHierarchical = $(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type_hierarchical]").val();
|
94 |
+
if (isHierarchical == 0) {
|
95 |
// no move to children if not hierarchical
|
96 |
treeOptionsTmp.types = {
|
97 |
"types": {
|
99 |
"valid_children" : [ "none" ]
|
100 |
}
|
101 |
}
|
102 |
+
}
|
103 |
}
|
104 |
|
105 |
$elm.bind("search.jstree", function (event, data) {
|
106 |
+
if (data.rslt.nodes.length == 0) {
|
107 |
// no hits. doh.
|
108 |
$(this).closest(".cms_tpv_wrapper").find(".cms_tree_view_search_form_no_hits").fadeIn("fast");
|
109 |
}
|
110 |
});
|
111 |
|
|
|
|
|
|
|
112 |
$elm.jstree(treeOptionsTmp);
|
113 |
|
114 |
});
|
115 |
+
|
116 |
|
117 |
}); // end ondomready
|
118 |
|
119 |
|
120 |
+
// get post type
|
121 |
+
// elm must be within .cms_tpv_wrapper to work
|
122 |
+
function cms_tpv_get_post_type(elm) {
|
123 |
+
return jQuery(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type]").val();
|
124 |
+
}
|
125 |
+
// get selected lang
|
126 |
+
function cms_tpv_get_wpml_selected_lang(elm) {
|
127 |
+
return jQuery(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_wpml_language]").val();
|
128 |
}
|
129 |
|
130 |
+
function cms_tpv_get_page_actions_div(elm) {
|
131 |
+
return jQuery(elm).closest(".cms_tpv_wrapper").find(".cms_tpv_page_actions");
|
132 |
+
}
|
133 |
+
function cms_tpv_get_wrapper(elm) {
|
134 |
+
var $wrapper = jQuery(elm).closest(".cms_tpv_wrapper");
|
135 |
+
return $wrapper;
|
136 |
+
}
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
+
// add page after
|
140 |
+
jQuery(".cms_tpv_action_add_page_after").live("click", function() {
|
141 |
+
var $this = jQuery(this);
|
142 |
+
var post_type = cms_tpv_get_post_type(this);
|
143 |
+
var selected_lang = cms_tpv_get_wpml_selected_lang(this);
|
144 |
|
145 |
+
var post_status = $this.closest("li").data("post_status");
|
|
|
|
|
146 |
|
147 |
+
// not allowed when status is trash
|
148 |
+
if (post_status == "trash") {
|
149 |
+
jAlert(cmstpv_l10n.Can_not_add_page_after_when_status_is_trash);
|
150 |
+
return false;
|
151 |
+
}
|
152 |
|
153 |
+
jPrompt(cmstpv_l10n.Enter_title_of_new_page, "", "CMS Tree Page View", function(new_page_title) {
|
154 |
+
if (new_page_title) {
|
155 |
+
var pageID = $this.parents("li:first").attr("id");
|
156 |
+
jQuery(".cms_tpv_message").html("<p>"+cmstpv_l10n.Adding_page+"</p>").slideDown("fast");
|
157 |
+
jQuery.post(ajaxurl, {
|
158 |
+
"action": "cms_tpv_add_page",
|
159 |
+
"pageID": pageID,
|
160 |
+
"type": "after",
|
161 |
+
"page_title": new_page_title,
|
162 |
+
"post_type": post_type,
|
163 |
+
"wpml_lang": selected_lang
|
164 |
+
}, function(data, textStatus) {
|
165 |
+
document.location = data;
|
166 |
+
});
|
167 |
}
|
|
|
168 |
});
|
169 |
|
170 |
+
return false;
|
171 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
+
// add page inside
|
174 |
+
jQuery(".cms_tpv_action_add_page_inside").live("click", function() {
|
175 |
+
var $this = jQuery(this);
|
176 |
+
var post_type = cms_tpv_get_post_type(this);
|
177 |
+
var selected_lang = cms_tpv_get_wpml_selected_lang(this);
|
178 |
+
|
179 |
+
var post_status = $this.closest("li").data("post_status");
|
180 |
+
|
181 |
+
// check page status, because we cant add a page inside a page with status draft or status trash
|
182 |
+
// if we edit the page wordpress will forget the parent
|
183 |
+
//$li.data("jstree").permalink;
|
184 |
+
//var post_status = li.data("jstree").post_status;
|
185 |
+
if (post_status == "draft") {
|
186 |
+
jAlert(cmstpv_l10n.Can_not_add_sub_page_when_status_is_draft);
|
187 |
+
return false;
|
188 |
+
}
|
189 |
|
190 |
+
// not allowed when status is trash
|
191 |
+
if (post_status == "trash") {
|
192 |
+
jAlert(cmstpv_l10n.Can_not_add_sub_page_when_status_is_trash);
|
193 |
+
return false;
|
194 |
+
}
|
195 |
+
|
196 |
+
jPrompt(cmstpv_l10n.Enter_title_of_new_page, "", "CMS Tree Page View", function(new_page_title) {
|
197 |
+
if (new_page_title) {
|
198 |
+
var pageID = $this.parents("li:first").attr("id");
|
199 |
+
jQuery(".cms_tpv_message").html("<p>" + cmstpv_l10n.Adding_page + "</p>").slideDown("fast");
|
200 |
+
jQuery.post(ajaxurl, {
|
201 |
+
"action": "cms_tpv_add_page",
|
202 |
+
"pageID": pageID,
|
203 |
+
"type": "inside",
|
204 |
+
"page_title": new_page_title,
|
205 |
+
"post_type": post_type,
|
206 |
+
"wpml_lang": selected_lang
|
207 |
+
}, function(data, textStatus) {
|
208 |
+
document.location = data;
|
209 |
+
});
|
210 |
+
}
|
211 |
});
|
212 |
+
return false;
|
213 |
+
});
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
|
217 |
// check if tree is beging dragged
|
221 |
}
|
222 |
|
223 |
// fired when mouse is over li
|
224 |
+
function cms_tpv_mouseover_li(li) {
|
|
|
225 |
|
226 |
+
//console.log("show actions div");
|
227 |
+
$li = jQuery(li);
|
|
|
|
|
|
|
228 |
|
229 |
+
var div_actions_for_post_type = cms_tpv_get_page_actions_div(li);
|
|
|
|
|
|
|
230 |
|
231 |
+
if (cms_tpv_is_dragging() == false) {
|
232 |
+
|
233 |
+
if (div_actions_for_post_type.is(":visible")) {
|
234 |
// do nada
|
235 |
} else {
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
$li.find("a:first").addClass("hover");
|
238 |
|
239 |
// setup link for view page
|
245 |
$edit = div_actions_for_post_type.find(".cms_tpv_action_edit");
|
246 |
var editlink = $li.data("editlink");
|
247 |
$edit.attr("href", editlink);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
// check if user is allowed to edit page
|
250 |
var $cms_tpv_action_add_and_edit_page = div_actions_for_post_type.find(".cms_tpv_action_add_and_edit_page");
|
251 |
+
if ($li.data("user_can_edit_page") == 0) {
|
252 |
// nooope
|
253 |
$edit.hide();
|
254 |
$cms_tpv_action_add_and_edit_page.hide();
|
255 |
} else {
|
256 |
+
$edit.show();
|
257 |
$cms_tpv_action_add_and_edit_page.show();
|
|
|
258 |
}
|
259 |
|
260 |
+
// ..and some extras
|
261 |
+
div_actions_for_post_type.find(".cms_tpv_page_actions_modified_time").text($li.data("modified_time"));
|
262 |
+
div_actions_for_post_type.find(".cms_tpv_page_actions_modified_by").text($li.data("modified_author"));
|
263 |
+
div_actions_for_post_type.find(".cms_tpv_page_actions_page_id").text($li.data("post_id"));
|
264 |
+
|
265 |
+
div_actions_for_post_type.find(".cms_tpv_page_actions_columns").html( unescape($li.data("columns")) );
|
266 |
+
|
267 |
+
// position and show action div
|
268 |
+
var $a = $li.find("a");
|
269 |
+
var width = $a.outerWidth(true);
|
270 |
+
$li.append(div_actions_for_post_type);
|
271 |
+
left_pos = width+28;
|
272 |
+
top_pos = -8;
|
273 |
+
div_actions_for_post_type.css("left", left_pos);
|
274 |
+
div_actions_for_post_type.css("top", top_pos);
|
275 |
+
div_actions_for_post_type.show();
|
276 |
}
|
277 |
}
|
278 |
|
279 |
}
|
280 |
|
281 |
+
// fired when mouse leaves li
|
282 |
+
function cms_tpv_mouseout_li(li) {
|
283 |
+
$li = jQuery(li);
|
284 |
+
$li.find("a:first").removeClass("hover");
|
285 |
+
div_actions.hide();
|
286 |
+
}
|
287 |
|
288 |
+
// mouse over, show actions
|
289 |
+
// but only if the mouse not already is over the li (don't know why it fires multiple times, but it does)
|
290 |
+
// 29 August, 2010 this worked nice but it had problems with child-lis...
|
291 |
+
/*
|
292 |
+
jQuery(".jstree li").live("mouseenter", function(e) {
|
293 |
+
|
294 |
+
//console.log("mouseenter");
|
295 |
+
var $li = jQuery(this);
|
296 |
+
var li_id = $li.attr("id");
|
297 |
|
298 |
+
// add hoverIntent, if not prev. attached
|
299 |
+
if ($li.data("hasHoverIntent")) {
|
300 |
+
// already got it
|
301 |
+
} else {
|
302 |
+
$li.data("hasHoverIntent", true);
|
303 |
+
$li.hoverIntent(function() {
|
304 |
+
// console.log("over");
|
305 |
+
cms_tpv_mouseover_li(this);
|
306 |
+
}, function() {
|
307 |
+
console.log("out");
|
308 |
+
//cms_tpv_mouseout_li(this);
|
309 |
+
});
|
310 |
+
// lastlt trigger mouseenter again so the popup will show
|
311 |
+
$li.trigger("mouseover");
|
312 |
}
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
});
|
315 |
+
*/
|
316 |
|
317 |
+
jQuery(".jstree li").live("mouseover", function(e) {
|
318 |
+
var $li = jQuery(this);
|
319 |
+
var li_id = $li.attr("id");
|
320 |
+
cms_tpv_mouseover_li(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
});
|
322 |
+
// ..and hide them again
|
323 |
+
jQuery(".jstree li").live("mouseout", function() {
|
324 |
+
//cms_tpv_current_li_id = null;
|
325 |
+
//console.log("out");
|
326 |
+
cms_tpv_mouseout_li(this);
|
|
|
|
|
|
|
327 |
});
|
328 |
|
329 |
|
330 |
+
// hide action links on drag
|
331 |
+
jQuery.jstree.drag_start = function() {
|
332 |
+
jQuery(".cms_tpv_action_view, .cms_tpv_action_edit, .cms_tpv_action_add_page, .cms_tpv_action_add_page_after, .cms_tpv_action_add_page_inside").hide();
|
333 |
+
}
|
334 |
+
|
335 |
/**
|
336 |
* add childcount and other things to each li
|
337 |
*/
|
368 |
data.r - the drop target
|
369 |
*/
|
370 |
|
|
|
|
|
371 |
if (nodePosition == "before") {
|
372 |
+
var node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
373 |
ref_node_id = jQuery( nodeRef ).attr( "id" );
|
374 |
} else if (nodePosition == "after") {
|
375 |
+
var node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
376 |
ref_node_id = jQuery( nodeR ).attr( "id" );
|
377 |
} else if (nodePosition == "inside") {
|
378 |
+
var node_id = jQuery( nodeBeingMoved ).attr( "id" );
|
379 |
ref_node_id = jQuery( nodeR ).attr( "id" );
|
380 |
}
|
381 |
|
382 |
// Update parent or menu order
|
383 |
jQuery.post(ajaxurl, {
|
384 |
+
action: "cms_tpv_move_page",
|
385 |
+
"node_id": node_id,
|
386 |
+
"ref_node_id": ref_node_id,
|
387 |
"type": nodePosition,
|
388 |
"icl_post_language": selected_lang
|
389 |
}, function(data, textStatus) {
|
395 |
var obj = (data.rslt.obj);
|
396 |
if (obj && obj != -1) {
|
397 |
obj.each(function(i, elm) {
|
|
|
398 |
var li = jQuery(elm);
|
399 |
var aFirst = li.find("a:first");
|
400 |
|
404 |
} else {
|
405 |
li.data("done_cms_tpv_clean_node", true);
|
406 |
}
|
407 |
+
// new way:
|
408 |
+
// console.log(li.data("childCount"));
|
409 |
+
// add number of children
|
410 |
+
//if (li.data("jstree")) {
|
411 |
+
var childCount = li.data("childCount");
|
412 |
+
if (childCount > 0) {
|
413 |
+
aFirst.append("<span title='" + childCount + " " + cmstpv_l10n.child_pages + "' class='child_count'>("+childCount+")</span>");
|
414 |
+
}
|
415 |
+
|
416 |
+
// add protection type
|
417 |
+
var rel = li.data("rel");
|
418 |
+
if(rel == "password") {
|
419 |
+
aFirst.find("ins").after("<span class='post_protected' title='" + cmstpv_l10n.Password_protected_page + "'> </span>");
|
420 |
+
}
|
421 |
+
|
422 |
+
// add page type
|
423 |
+
var post_status = li.data("post_status");
|
424 |
+
// post_status can be any value because of plugins like Edit flow
|
425 |
+
// check if we have an existing translation for the string, otherwise use the post status directly
|
426 |
+
var post_status_to_show = "";
|
427 |
+
if (post_status_to_show = cmstpv_l10n["Status_"+post_status]) {
|
428 |
+
// it's ok
|
429 |
+
} else {
|
430 |
+
post_status_to_show = post_status;
|
431 |
+
}
|
432 |
+
if (post_status != "publish") {
|
433 |
+
aFirst.find("ins").first().after("<span class='post_type post_type_"+post_status+"'>" + post_status_to_show + "</span>");
|
434 |
+
}
|
435 |
+
//}
|
436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
});
|
438 |
}
|
439 |
});
|
440 |
}
|
441 |
|
442 |
+
// search: perform
|
443 |
+
jQuery(".cms_tree_view_search_form").live("submit", function() {
|
|
|
444 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
445 |
$wrapper.find(".cms_tpv_search_no_hits").hide();
|
446 |
var s = $wrapper.find(".cms_tree_view_search").attr("value");
|
447 |
s = jQuery.trim( s );
|
448 |
+
// search, oh the mighty search!
|
449 |
if (s) {
|
450 |
$wrapper.find(".cms_tree_view_search_form_no_hits").fadeOut("fast");
|
451 |
$wrapper.find(".cms_tree_view_search_form_working").fadeIn("fast");
|
452 |
+
$wrapper.find(".cms_tree_view_search_form_reset")
|
453 |
$wrapper.find(".cms_tpv_container").jstree("search", s);
|
454 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeIn("fast");
|
455 |
} else {
|
458 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeOut("fast");
|
459 |
}
|
460 |
$wrapper.find(".cms_tree_view_search_form_working").fadeOut("fast");
|
|
|
461 |
return false;
|
|
|
462 |
});
|
463 |
|
464 |
+
// search: reset
|
465 |
+
jQuery(".cms_tree_view_search_form_reset").live("click", function() {
|
466 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
467 |
+
$wrapper.find(".cms_tree_view_search").val("")
|
468 |
$wrapper.find(".cms_tpv_container").jstree("clear_search");
|
469 |
$wrapper.find(".cms_tree_view_search_form_reset").fadeOut("fast");
|
470 |
$wrapper.find(".cms_tree_view_search_form_no_hits").fadeOut("fast");
|
472 |
});
|
473 |
|
474 |
// open/close links
|
475 |
+
jQuery(".cms_tpv_open_all").live("click", function() {
|
476 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
477 |
$wrapper.find(".cms_tpv_container").jstree("open_all");
|
478 |
return false;
|
479 |
});
|
480 |
+
jQuery(".cms_tpv_close_all").live("click", function() {
|
|
|
481 |
var $wrapper = jQuery(this).closest(".cms_tpv_wrapper");
|
482 |
$wrapper.find(".cms_tpv_container").jstree("close_all");
|
483 |
return false;
|
484 |
});
|
485 |
|
486 |
// view all or public or trash
|
487 |
+
jQuery(".cms_tvp_view_all").live("click", function() {
|
488 |
cms_tvp_set_view("all", this);
|
489 |
return false;
|
490 |
});
|
491 |
+
jQuery(".cms_tvp_view_public").live("click", function() {
|
|
|
492 |
cms_tvp_set_view("public", this);
|
493 |
return false;
|
494 |
});
|
495 |
+
jQuery(".cms_tvp_view_trash").live("click", function() {
|
|
|
496 |
cms_tvp_set_view("trash", this);
|
497 |
return false;
|
498 |
});
|
499 |
|
500 |
|
501 |
+
// change lang
|
502 |
+
jQuery("a.cms_tvp_switch_lang").live("click", function(e) {
|
|
|
503 |
$wrapper = cms_tpv_get_wrapper(this);
|
|
|
|
|
504 |
$wrapper.find("ul.cms_tvp_switch_langs a").removeClass("current");
|
505 |
jQuery(this).addClass("current");
|
506 |
|
|
|
507 |
var re = /cms_tpv_switch_language_code_([\w-]+)/;
|
508 |
var matches = re.exec( jQuery(this).attr("class") );
|
509 |
var lang_code = matches[1];
|
|
|
|
|
510 |
$wrapper.find("[name=cms_tpv_meta_wpml_language]").val(lang_code);
|
511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
var current_view = cms_tpv_get_current_view(this);
|
513 |
cms_tvp_set_view(current_view, this);
|
514 |
|
516 |
|
517 |
});
|
518 |
|
|
|
|
|
|
|
|
|
|
|
519 |
function cms_tpv_get_current_view(elm) {
|
|
|
520 |
$wrapper = cms_tpv_get_wrapper(elm);
|
|
|
521 |
if ($wrapper.find(".cms_tvp_view_all").hasClass("current")) {
|
522 |
return "all";
|
523 |
} else if ($wrapper.find(".cms_tvp_view_public").hasClass("current")) {
|
524 |
return "public";
|
525 |
} else {
|
526 |
+
return false; // like unknown
|
527 |
}
|
528 |
|
529 |
}
|
530 |
|
|
|
|
|
|
|
|
|
|
|
531 |
function cms_tvp_set_view(view, elm) {
|
532 |
|
533 |
var $wrapper = jQuery(elm).closest(".cms_tpv_wrapper");
|
534 |
|
535 |
var div_actions_for_post_type = cms_tpv_get_page_actions_div(elm);
|
|
|
536 |
$wrapper.append(div_actions_for_post_type);
|
537 |
+
|
538 |
$wrapper.find(".cms_tvp_view_all, .cms_tvp_view_public, .cms_tvp_view_trash").removeClass("current");
|
539 |
$wrapper.find(".cms_tpv_container").jstree("destroy").html("");
|
|
|
|
|
540 |
cms_tpv_bind_clean_node();
|
541 |
|
|
|
542 |
if (view == "all") {
|
543 |
$wrapper.find(".cms_tvp_view_all").addClass("current");
|
544 |
} else if (view == "public") {
|
549 |
|
550 |
}
|
551 |
|
|
|
552 |
var treeOptionsTmp = jQuery.extend(true, {}, treeOptions);
|
553 |
treeOptionsTmp.json_data.ajax.url = ajaxurl + CMS_TPV_AJAXURL + view + "&post_type=" + cms_tpv_get_post_type(elm) + "&lang=" + cms_tpv_get_wpml_selected_lang(elm);
|
|
|
|
|
554 |
$wrapper.find(".cms_tpv_container").jstree(treeOptionsTmp);
|
|
|
555 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scripts/jquery.hoverIntent.minified.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
|
3 |
+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
|
4 |
+
*
|
5 |
+
* @param f onMouseOver function || An object with configuration options
|
6 |
+
* @param g onMouseOut function || Nothing (use configuration options object)
|
7 |
+
* @author Brian Cherne <brian@cherne.net>
|
8 |
+
*/
|
9 |
+
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
|
scripts/jquery.jstree.js
CHANGED
@@ -66,7 +66,6 @@
|
|
66 |
tmp.setAttribute('type',"text/css");
|
67 |
if(opts.title) { tmp.setAttribute("id", opts.title + "-stylesheet"); }
|
68 |
}
|
69 |
-
|
70 |
if(tmp.styleSheet) {
|
71 |
if(is_new) {
|
72 |
document.getElementsByTagName("head")[0].appendChild(tmp);
|
@@ -235,7 +234,6 @@
|
|
235 |
rslt = func.apply(
|
236 |
$.extend({}, this, {
|
237 |
__callback : function (data) {
|
238 |
-
//console.log(i);
|
239 |
this.get_container().triggerHandler( i + '.jstree', { "inst" : this, "args" : args, "rslt" : data, "rlbk" : rlbk });
|
240 |
},
|
241 |
__rollback : function () {
|
@@ -269,7 +267,6 @@
|
|
269 |
|
270 |
// load the css when DOM is ready
|
271 |
$(function() {
|
272 |
-
|
273 |
// code is copied from jQuery ($.browser is deprecated + there is a bug in IE)
|
274 |
var u = navigator.userAgent.toLowerCase(),
|
275 |
v = (u.match( /.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
|
66 |
tmp.setAttribute('type',"text/css");
|
67 |
if(opts.title) { tmp.setAttribute("id", opts.title + "-stylesheet"); }
|
68 |
}
|
|
|
69 |
if(tmp.styleSheet) {
|
70 |
if(is_new) {
|
71 |
document.getElementsByTagName("head")[0].appendChild(tmp);
|
234 |
rslt = func.apply(
|
235 |
$.extend({}, this, {
|
236 |
__callback : function (data) {
|
|
|
237 |
this.get_container().triggerHandler( i + '.jstree', { "inst" : this, "args" : args, "rslt" : data, "rlbk" : rlbk });
|
238 |
},
|
239 |
__rollback : function () {
|
267 |
|
268 |
// load the css when DOM is ready
|
269 |
$(function() {
|
|
|
270 |
// code is copied from jQuery ($.browser is deprecated + there is a bug in IE)
|
271 |
var u = navigator.userAgent.toLowerCase(),
|
272 |
v = (u.match( /.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
|
scripts/themes/wordpress/style.css
CHANGED
@@ -78,18 +78,14 @@
|
|
78 |
padding-bottom: 2px;*/
|
79 |
position: relative;
|
80 |
}
|
81 |
-
|
82 |
.jstree li.jstree-open
|
83 |
{
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
87 |
.jstree li a.hover
|
88 |
{
|
89 |
background-color: #e7f4f9;
|
90 |
}
|
91 |
-
*/
|
92 |
-
|
93 |
-
.jstree li a:hover {
|
94 |
-
background-color: #e7f4f9;
|
95 |
-
}
|
78 |
padding-bottom: 2px;*/
|
79 |
position: relative;
|
80 |
}
|
81 |
+
.jstree li.jstree-closed,
|
82 |
.jstree li.jstree-open
|
83 |
{
|
84 |
+
/* padding-top: 4px;
|
85 |
+
padding-bottom: 4px; */
|
86 |
+
}
|
87 |
+
.jstree li.hover a,
|
88 |
.jstree li a.hover
|
89 |
{
|
90 |
background-color: #e7f4f9;
|
91 |
}
|
|
|
|
|
|
|
|
|
|
styles/images/arrow-top.gif
DELETED
Binary file
|
styles/images/switch-view-icons.png
DELETED
Binary file
|
styles/images/switch-view-icons.psd
DELETED
Binary file
|
styles/styles.css
CHANGED
@@ -5,8 +5,6 @@
|
|
5 |
}
|
6 |
*/
|
7 |
|
8 |
-
@import url("http://s0.wordpress.com/i/noticons/noticons.css");
|
9 |
-
|
10 |
|
11 |
.cms_tpv_wrapper {
|
12 |
z-index: 10;
|
@@ -21,7 +19,6 @@
|
|
21 |
/* clear: both; */
|
22 |
overflow: visible;
|
23 |
margin-top: 1.5em;
|
24 |
-
font-size: 13px;
|
25 |
}
|
26 |
|
27 |
#wpbody-content .cms_tpv_container {
|
@@ -36,36 +33,16 @@
|
|
36 |
clear: both;
|
37 |
}
|
38 |
|
39 |
-
.cms-tpv-subsubsub {
|
40 |
-
margin-top: 8px;
|
41 |
-
color: #666;
|
42 |
-
}
|
43 |
-
|
44 |
.cms-tpv-subsubsub li {
|
45 |
-
display: inline
|
46 |
-
/*margin-left: 2px;*/
|
47 |
-
}
|
48 |
-
|
49 |
-
.cms-tpv-subsubsub li:first-child {
|
50 |
-
margin-left: 0;
|
51 |
-
}
|
52 |
-
|
53 |
-
.cms-tpv-subsubsub li a {
|
54 |
-
text-decoration: none;
|
55 |
-
line-height: 2;
|
56 |
-
padding: .2em;
|
57 |
}
|
58 |
|
59 |
.cms-tpv-subsubsub li a.current {
|
60 |
font-weight: bold;
|
|
|
61 |
color: black;
|
62 |
}
|
63 |
|
64 |
-
.cms-tpv-subsubsub li a .count {
|
65 |
-
font-weight: normal;
|
66 |
-
color: #999;
|
67 |
-
}
|
68 |
-
|
69 |
.pages_page_cms-tpv-pages-page .cms-tpv-subsubsub li {
|
70 |
zoom: 1; /* weird ie-problems otherwise, like li-items that disappear on search. */
|
71 |
}
|
@@ -74,6 +51,29 @@
|
|
74 |
clear: both;
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
.cms-tree-view-search
|
78 |
{
|
79 |
background-color: #ffefba;
|
@@ -99,7 +99,7 @@
|
|
99 |
background-color: transparent;
|
100 |
color: #999;
|
101 |
border: none;
|
102 |
-
font-size: .
|
103 |
margin-left: .5em;
|
104 |
}
|
105 |
|
@@ -113,11 +113,11 @@
|
|
113 |
|
114 |
|
115 |
.tree-default span.post_type {
|
116 |
-
background-color:
|
117 |
-
-moz-border-radius:
|
118 |
-
-webkit-border-radius:
|
119 |
-
border-radius:
|
120 |
-
padding: 1px 4px
|
121 |
color: white;
|
122 |
border: none;
|
123 |
font-size: .8em;
|
@@ -127,14 +127,16 @@
|
|
127 |
.tree-default span.post_type_draft {
|
128 |
|
129 |
}
|
130 |
-
.tree-default span.post_type_password
|
|
|
|
|
131 |
.tree-default span.post_type_private {
|
132 |
-
background-color:
|
133 |
}
|
134 |
.tree-default span.post_type_pending,
|
135 |
.tree-default span.post_type_future
|
136 |
{
|
137 |
-
background-color:
|
138 |
}
|
139 |
|
140 |
|
@@ -172,8 +174,6 @@
|
|
172 |
|
173 |
.cms_tree_view_search {
|
174 |
width: 130px;
|
175 |
-
height: 21px;
|
176 |
-
line-height: 20px;
|
177 |
}
|
178 |
.cms_tree_view_search_form_working,
|
179 |
.cms_tree_view_search_form_no_hits
|
@@ -210,105 +210,54 @@
|
|
210 |
background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-lightness/images/ui-icons_222222_256x240.png) no-repeat -32px -194px;
|
211 |
}
|
212 |
|
213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
|
215 |
.cms_tpv_page_actions {
|
216 |
-
/*transition: all .25s ease-in-out; -webkit-transition: all .25s ease-in-out; -moz-transition: all .25s ease-in-out; -o-transition: all .25s ease-in-out; -ms-transition: all .25s ease-in-out;*/
|
217 |
width: auto;
|
218 |
-
width:
|
219 |
height: auto;
|
220 |
background-color: white;
|
221 |
position: absolute;
|
222 |
top: 0;
|
223 |
white-space: normal;
|
224 |
z-index: 100;
|
225 |
-
padding:
|
226 |
-
|
227 |
-
/*
|
228 |
-
|
229 |
-
-moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
230 |
-
-webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
231 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
|
232 |
-
/* admin bar style */
|
233 |
-
-moz-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
|
234 |
-
-webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
|
235 |
-
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
|
236 |
-
border: 1px solid #DFDFDF;
|
237 |
-
opacity: 0;
|
238 |
-
font-family: sans-serif !important;
|
239 |
-
}
|
240 |
-
|
241 |
-
.cms_tpv_page_actions:before {
|
242 |
-
color: white;
|
243 |
-
position: absolute;
|
244 |
-
left: -16px;
|
245 |
-
top: 32px;
|
246 |
-
content: '\25C0'; /* left arrow */
|
247 |
-
display: inline-block;
|
248 |
-
-webkit-font-smoothing: antialiased;
|
249 |
-
font: normal 16px/1 'Noticons';
|
250 |
-
vertical-align: top;
|
251 |
-
text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2), -1px 0px 0 #DFDFDF;
|
252 |
-
overflow: hidden;
|
253 |
-
}
|
254 |
-
|
255 |
-
.cms_tpv_page_actions_visible_from_bottom:before {
|
256 |
-
top: auto;
|
257 |
-
bottom: 10px;
|
258 |
-
}
|
259 |
-
|
260 |
-
.cms_tpv_page_actions.cms_tpv_page_actions_visible {
|
261 |
-
/*display: block;*/
|
262 |
-
visibility: visible;
|
263 |
-
opacity: 1;
|
264 |
-
}
|
265 |
-
|
266 |
-
|
267 |
-
/*
|
268 |
-
div.cms_tpv_container.has-visible-actions li {
|
269 |
-
opacity: .5
|
270 |
-
}
|
271 |
-
|
272 |
-
div.cms_tpv_container.has-visible-actions li.has-visible-actions {
|
273 |
-
opacity: 1;
|
274 |
-
}
|
275 |
-
*/
|
276 |
-
li.has-visible-actions > a:first-of-type {
|
277 |
-
/*font-weight: bold;*/
|
278 |
-
background-color: #d8f5fa;
|
279 |
-
}
|
280 |
-
|
281 |
-
.jstree a > ins {
|
282 |
-
|
283 |
}
|
284 |
-
|
285 |
.cms_tpv_page_actions p {
|
286 |
-
margin:
|
287 |
-
line-height: 1.2;
|
288 |
-
}
|
289 |
-
p.cms_tpv_action_add_and_edit_page,
|
290 |
-
p.cms_tpv_action_edit_and_view
|
291 |
-
{
|
292 |
-
margin-top: 0em;
|
293 |
}
|
294 |
.cms_tpv_wrapper .cms_tpv_page_actions a {
|
295 |
display: inline;
|
296 |
background: transparent;
|
297 |
text-decoration: underline;
|
|
|
298 |
color: #21759B;
|
299 |
-
font-weight: normal;
|
300 |
-
padding: 0 .5em 0 0;
|
301 |
-
margin-right: .2em;
|
302 |
-
border-right: 1px solid #aaa;
|
303 |
-
}
|
304 |
-
.cms_tpv_wrapper .cms_tpv_page_actions a:last-child {
|
305 |
-
border: none;
|
306 |
}
|
307 |
|
308 |
.cms_tpv_wrapper .cms_tpv_page_actions a:hover
|
309 |
{
|
310 |
color: #d54e21;
|
311 |
-
background-color: transparent;
|
312 |
}
|
313 |
|
314 |
.cms_tpv_page_actions ul {
|
@@ -327,21 +276,24 @@ p.cms_tpv_action_edit_and_view
|
|
327 |
}
|
328 |
.cms_tpv_page_actions dl {
|
329 |
margin-top: 1em;
|
330 |
-
margin-bottom: 1em;
|
331 |
color: #333;
|
332 |
font-size: 11px;
|
333 |
-
line-height: 1.2;
|
334 |
}
|
335 |
.cms_tpv_page_actions dl dd {
|
336 |
margin: 0;
|
337 |
}
|
338 |
.cms_tpv_page_actions dl dt {
|
339 |
color: #999;
|
340 |
-
margin: .5em 0 0 0;
|
341 |
}
|
342 |
|
343 |
.cms_tpv_page_actions_arrow {
|
344 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
}
|
346 |
|
347 |
.cms_tpv_page_actions_columns table td {
|
@@ -353,20 +305,16 @@ p.cms_tpv_action_edit_and_view
|
|
353 |
padding-right: 2px;
|
354 |
vertical-align: middle;
|
355 |
}
|
|
|
|
|
|
|
|
|
356 |
|
357 |
li.cms_tpv_user_can_edit_page_no a {
|
358 |
opacity: .6; /* Standard: FF gt 1.5, Opera, Safari */
|
359 |
-ms-filter: "alpha(opacity=60)"; /* IE 8 */
|
360 |
}
|
361 |
|
362 |
-
h4.cms_tpv_page_actions_headline {
|
363 |
-
margin: 0 0 0 0;
|
364 |
-
font-weight: bold !important;
|
365 |
-
font-family: sans-serif !important;
|
366 |
-
line-height: 1.1;
|
367 |
-
}
|
368 |
-
|
369 |
-
|
370 |
.bonny-plugins-inner-sidebar {
|
371 |
float: right;
|
372 |
width: 210px;
|
@@ -374,143 +322,3 @@ h4.cms_tpv_page_actions_headline {
|
|
374 |
padding-left: 10px;
|
375 |
border-left: 1px solid #E3E3E3;
|
376 |
}
|
377 |
-
|
378 |
-
.cms_tpv_action_add_doit {
|
379 |
-
/*background-color: lightyellow;*/
|
380 |
-
display: none;
|
381 |
-
}
|
382 |
-
|
383 |
-
.cms_tpv_action_add_doit fieldset {
|
384 |
-
border: 1px solid #ddd;
|
385 |
-
border-left-width: 0;
|
386 |
-
border-right-width: 0;
|
387 |
-
padding: .75em .25em .75em 0;
|
388 |
-
}
|
389 |
-
|
390 |
-
.cms_tpv_action_add_doit h4,
|
391 |
-
.cms_tpv_action_add_doit legend {
|
392 |
-
margin: 0;
|
393 |
-
}
|
394 |
-
|
395 |
-
.cms_tpv_action_add_doit form > div {
|
396 |
-
margin-top: .75em;
|
397 |
-
}
|
398 |
-
.cms_tpv_action_add_doit form > div:first-of-type {
|
399 |
-
margin-top: 0;
|
400 |
-
}
|
401 |
-
|
402 |
-
.cms_tpv_action_add_doit label {
|
403 |
-
margin-right: .5em;
|
404 |
-
}
|
405 |
-
|
406 |
-
ul.cms_tpv_action_add_doit_pages .ui-state-highlight {
|
407 |
-
display: block;
|
408 |
-
}
|
409 |
-
|
410 |
-
ul.cms_tpv_action_add_doit_pages {
|
411 |
-
position: relative;
|
412 |
-
margin: 0 0 0 -10px;
|
413 |
-
padding: 0;
|
414 |
-
overflow: auto;
|
415 |
-
}
|
416 |
-
.cms_tpv_action_add_doit_pages li {
|
417 |
-
display: block;
|
418 |
-
position: relative;
|
419 |
-
float: left;
|
420 |
-
padding: 0 0 0 0;
|
421 |
-
margin: 1px 0 1px 0;
|
422 |
-
}
|
423 |
-
.cms_tpv_action_add_doit_pages input {
|
424 |
-
float: left;
|
425 |
-
width: 90%;
|
426 |
-
transition: all .25s ease-in-out; -webkit-transition: all .25s ease-in-out; -moz-transition: all .25s ease-in-out; -o-transition: all .25s ease-in-out; -ms-transition: all .25s ease-in-out;
|
427 |
-
}
|
428 |
-
.cms_tpv_action_add_doit_pages span:first-child {
|
429 |
-
background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_222222_256x240.png) no-repeat -2px -228px;
|
430 |
-
margin-top: 7px;
|
431 |
-
margin-right: 3px;
|
432 |
-
float: left;
|
433 |
-
width: 8px;
|
434 |
-
height: 10px;
|
435 |
-
cursor: move;
|
436 |
-
}
|
437 |
-
|
438 |
-
.cms_tpv_action_add_doit_pages li:last-child span:first-child {
|
439 |
-
visibility: hidden;
|
440 |
-
}
|
441 |
-
|
442 |
-
/*
|
443 |
-
for posts overview enabled mode
|
444 |
-
*/
|
445 |
-
.cmstpv-postsoverview-wrap {
|
446 |
-
position: relative;
|
447 |
-
}
|
448 |
-
.cmstpv-postsoverview-wrap .view-switch {
|
449 |
-
position: absolute;
|
450 |
-
visibility: visible;
|
451 |
-
top: 0;
|
452 |
-
right: 0;
|
453 |
-
}
|
454 |
-
|
455 |
-
.view-switch.view-switch-cstpv-icon-added {
|
456 |
-
padding-right: 0;
|
457 |
-
}
|
458 |
-
|
459 |
-
#view-switch-tree {
|
460 |
-
background: url(images/switch-view-icons.png) 0 0;
|
461 |
-
display: none;
|
462 |
-
}
|
463 |
-
.current #view-switch-tree {
|
464 |
-
background-position: -20px 0;
|
465 |
-
}
|
466 |
-
|
467 |
-
.cmstpv_add_list_view {
|
468 |
-
display: none;
|
469 |
-
}
|
470 |
-
.view-switch #view-switch-tree,
|
471 |
-
.view-switch .cmstpv_add_list_view {
|
472 |
-
display: inline;
|
473 |
-
}
|
474 |
-
|
475 |
-
/* options screen */
|
476 |
-
.cmtpv_options_form {
|
477 |
-
float: left;
|
478 |
-
}
|
479 |
-
|
480 |
-
.cms_tpv_annoying_little_box {
|
481 |
-
padding: 1.5em;
|
482 |
-
background-color: #FAFAFA;
|
483 |
-
border: 1px solid #ddd;
|
484 |
-
margin: 1em 0 1em 0;
|
485 |
-
float: right;
|
486 |
-
width: 22em;
|
487 |
-
}
|
488 |
-
|
489 |
-
.cms_tpv_annoying_little_box h3:first-of-type {
|
490 |
-
margin-top: 0;
|
491 |
-
}
|
492 |
-
|
493 |
-
.cms_tpv_annoying_little_box_author {
|
494 |
-
font-style: italic;
|
495 |
-
}
|
496 |
-
|
497 |
-
.cms_tpv_annoying_little_box p {
|
498 |
-
margin: 0 0 .5em 0;
|
499 |
-
}
|
500 |
-
|
501 |
-
p.cms_tpv_annoying_little_box_gravatar {
|
502 |
-
float: right;
|
503 |
-
margin: 0 0 1em 1em;
|
504 |
-
}
|
505 |
-
|
506 |
-
.cms_tpv_annoying_little_box ul {
|
507 |
-
list-style-type: disc;
|
508 |
-
margin-left: 20px;
|
509 |
-
}
|
510 |
-
|
511 |
-
p.cms_tpv_annoying_little_box_close {
|
512 |
-
text-align: right;
|
513 |
-
font-size: .8em;
|
514 |
-
margin-top: 1.5em;
|
515 |
-
margin-bottom: 0;
|
516 |
-
}
|
5 |
}
|
6 |
*/
|
7 |
|
|
|
|
|
8 |
|
9 |
.cms_tpv_wrapper {
|
10 |
z-index: 10;
|
19 |
/* clear: both; */
|
20 |
overflow: visible;
|
21 |
margin-top: 1.5em;
|
|
|
22 |
}
|
23 |
|
24 |
#wpbody-content .cms_tpv_container {
|
33 |
clear: both;
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
.cms-tpv-subsubsub li {
|
37 |
+
display: inline;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
.cms-tpv-subsubsub li a.current {
|
41 |
font-weight: bold;
|
42 |
+
text-decoration: none;
|
43 |
color: black;
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
46 |
.pages_page_cms-tpv-pages-page .cms-tpv-subsubsub li {
|
47 |
zoom: 1; /* weird ie-problems otherwise, like li-items that disappear on search. */
|
48 |
}
|
51 |
clear: both;
|
52 |
}
|
53 |
|
54 |
+
/*
|
55 |
+
span.cms_tpv_action_edit,
|
56 |
+
li span.cms_tpv_action_view,
|
57 |
+
li span.cms_tpv_action_add_page_after,
|
58 |
+
li span.cms_tpv_action_add_page_inside
|
59 |
+
{
|
60 |
+
display: none;
|
61 |
+
text-decoration: underline;
|
62 |
+
border: 0;
|
63 |
+
-moz-border-radius: 0;
|
64 |
+
-webkit-border-radius: 0;
|
65 |
+
border-radius: 0;
|
66 |
+
padding: 0 0 0 .5ex;
|
67 |
+
|
68 |
+
}
|
69 |
+
li span.cms_tpv_action_add_page {
|
70 |
+
display: none;
|
71 |
+
border: 0;
|
72 |
+
padding: 0 0 0 .5em;
|
73 |
+
color: #666;
|
74 |
+
}
|
75 |
+
*/
|
76 |
+
|
77 |
.cms-tree-view-search
|
78 |
{
|
79 |
background-color: #ffefba;
|
99 |
background-color: transparent;
|
100 |
color: #999;
|
101 |
border: none;
|
102 |
+
font-size: .8em;
|
103 |
margin-left: .5em;
|
104 |
}
|
105 |
|
113 |
|
114 |
|
115 |
.tree-default span.post_type {
|
116 |
+
background-color: #f85b11;
|
117 |
+
-moz-border-radius: 3px;
|
118 |
+
-webkit-border-radius: 3px;
|
119 |
+
border-radius: 3px;
|
120 |
+
padding: 1px 4px 1px 4px;
|
121 |
color: white;
|
122 |
border: none;
|
123 |
font-size: .8em;
|
127 |
.tree-default span.post_type_draft {
|
128 |
|
129 |
}
|
130 |
+
.tree-default span.post_type_password {
|
131 |
+
background-color: #25b61a;
|
132 |
+
}
|
133 |
.tree-default span.post_type_private {
|
134 |
+
background-color: #25b61a;
|
135 |
}
|
136 |
.tree-default span.post_type_pending,
|
137 |
.tree-default span.post_type_future
|
138 |
{
|
139 |
+
background-color: #0069e0;
|
140 |
}
|
141 |
|
142 |
|
174 |
|
175 |
.cms_tree_view_search {
|
176 |
width: 130px;
|
|
|
|
|
177 |
}
|
178 |
.cms_tree_view_search_form_working,
|
179 |
.cms_tree_view_search_form_no_hits
|
210 |
background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-lightness/images/ui-icons_222222_256x240.png) no-repeat -32px -194px;
|
211 |
}
|
212 |
|
213 |
+
.cms_tpv_annoying_little_box {
|
214 |
+
padding: 1em;
|
215 |
+
background-color: #FFFBCC;
|
216 |
+
border: 1px solid #E6DB55;
|
217 |
+
margin: 1em 0 1em 0;
|
218 |
+
-moz-border-radius: 6px;
|
219 |
+
-webkit-border-radius: 6px;
|
220 |
+
border-radius: 6px;
|
221 |
+
}
|
222 |
+
.cms_tpv_annoying_little_box p {
|
223 |
+
margin: 0 0 .5em 0;
|
224 |
+
}
|
225 |
+
p.cms_tpv_annoying_little_box_close {
|
226 |
+
float: right;
|
227 |
+
margin-left: 2em;
|
228 |
+
font-size: .8em;
|
229 |
+
margin-top: -1em;
|
230 |
+
margin-right: -.5em;
|
231 |
+
}
|
232 |
|
233 |
.cms_tpv_page_actions {
|
|
|
234 |
width: auto;
|
235 |
+
min-width: 125px;
|
236 |
height: auto;
|
237 |
background-color: white;
|
238 |
position: absolute;
|
239 |
top: 0;
|
240 |
white-space: normal;
|
241 |
z-index: 100;
|
242 |
+
padding: 7px;
|
243 |
+
display: none;
|
244 |
+
-moz-box-shadow: 2px 2px 8px #ddd; /* FF3.5+ */
|
245 |
+
border: 1px solid #bbb;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
|
|
247 |
.cms_tpv_page_actions p {
|
248 |
+
margin: 0 0 .5em 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
.cms_tpv_wrapper .cms_tpv_page_actions a {
|
251 |
display: inline;
|
252 |
background: transparent;
|
253 |
text-decoration: underline;
|
254 |
+
padding: 0;
|
255 |
color: #21759B;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
}
|
257 |
|
258 |
.cms_tpv_wrapper .cms_tpv_page_actions a:hover
|
259 |
{
|
260 |
color: #d54e21;
|
|
|
261 |
}
|
262 |
|
263 |
.cms_tpv_page_actions ul {
|
276 |
}
|
277 |
.cms_tpv_page_actions dl {
|
278 |
margin-top: 1em;
|
|
|
279 |
color: #333;
|
280 |
font-size: 11px;
|
|
|
281 |
}
|
282 |
.cms_tpv_page_actions dl dd {
|
283 |
margin: 0;
|
284 |
}
|
285 |
.cms_tpv_page_actions dl dt {
|
286 |
color: #999;
|
|
|
287 |
}
|
288 |
|
289 |
.cms_tpv_page_actions_arrow {
|
290 |
+
width: 8px;
|
291 |
+
height: 15px;
|
292 |
+
background: url(images/arrow-left.gif) no-repeat top left;
|
293 |
+
position: absolute;
|
294 |
+
display: block;
|
295 |
+
top: 7px;
|
296 |
+
left: -8px;
|
297 |
}
|
298 |
|
299 |
.cms_tpv_page_actions_columns table td {
|
305 |
padding-right: 2px;
|
306 |
vertical-align: middle;
|
307 |
}
|
308 |
+
.cms_tpv_page_actions_columns .post-com-count-wrapper {
|
309 |
+
}
|
310 |
+
.cms_tpv_wrapper .cms_tpv_page_actions_columns a.post-com-count {
|
311 |
+
}
|
312 |
|
313 |
li.cms_tpv_user_can_edit_page_no a {
|
314 |
opacity: .6; /* Standard: FF gt 1.5, Opera, Safari */
|
315 |
-ms-filter: "alpha(opacity=60)"; /* IE 8 */
|
316 |
}
|
317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
.bonny-plugins-inner-sidebar {
|
319 |
float: right;
|
320 |
width: 210px;
|
322 |
padding-left: 10px;
|
323 |
border-left: 1px solid #E3E3E3;
|
324 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|