Version Description
- 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.
- Fixed so search button now looks more like the rest of the WordPress GUI
- Fixed a undefined index warning
- Fixed wrong language count for WPML-enabled post types
- Perhaps fixed a problem with some other plugins, for example Formidable Pro
- Added icon to settings page
- Added updated Russian translation
- Updated POT-file for translators
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- functions.php +230 -59
- index.php +5 -2
- languages/cms-tree-page-view-ru_RU.po +306 -76
- languages/cms-tree-page-view.pot +99 -75
- readme.txt +36 -13
- screenshot-2.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- scripts/cms_tree_page_view.js +47 -2
- styles/images/switch-view-icons.png +0 -0
- styles/images/switch-view-icons.psd +0 -0
- styles/styles.css +93 -39
functions.php
CHANGED
@@ -175,10 +175,15 @@ function cms_tpv_add_pages() {
|
|
175 |
// require("FirePHPCore/FirePHP.class.php");
|
176 |
// $firephp = FirePHP::getInstance(true);
|
177 |
|
|
|
|
|
|
|
178 |
function cms_tpv_admin_head() {
|
179 |
|
180 |
if (!cms_tpv_is_one_of_our_pages()) return;
|
181 |
|
|
|
|
|
182 |
global $cms_tpv_view;
|
183 |
if (isset($_GET["cms_tpv_view"])) {
|
184 |
$cms_tpv_view = htmlspecialchars($_GET["cms_tpv_view"]);
|
@@ -214,7 +219,10 @@ function cms_tpv_is_one_of_our_pages() {
|
|
214 |
|
215 |
$options = cms_tpv_get_options();
|
216 |
$post_type = cms_tpv_get_selected_post_type();
|
217 |
-
|
|
|
|
|
|
|
218 |
$is_plugin_page = FALSE;
|
219 |
|
220 |
// Check if current page is one of the ones defined in $options["menu"]
|
@@ -225,10 +233,16 @@ function cms_tpv_is_one_of_our_pages() {
|
|
225 |
}
|
226 |
}
|
227 |
|
|
|
|
|
|
|
|
|
|
|
228 |
if ($current_screen->id === "settings_page_cms-tpv-options") {
|
229 |
// Is settings page for plugin
|
230 |
$is_plugin_page = TRUE;
|
231 |
} elseif ($current_screen->id === "dashboard" && !empty($options["dashboard"])) {
|
|
|
232 |
$is_plugin_page = TRUE;
|
233 |
}
|
234 |
|
@@ -241,7 +255,6 @@ function cms_tpv_is_one_of_our_pages() {
|
|
241 |
*/
|
242 |
function cms_admin_enqueue_scripts() {
|
243 |
|
244 |
-
|
245 |
if (cms_tpv_is_one_of_our_pages()) {
|
246 |
|
247 |
// renamed from cookie to fix problems with mod_security
|
@@ -305,6 +318,114 @@ function cms_tpv_admin_init() {
|
|
305 |
|
306 |
}
|
307 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
/**
|
309 |
* Add settings link to plugin page
|
310 |
* Hopefully this helps some people to find the settings page quicker
|
@@ -322,14 +443,22 @@ function cms_tpv_set_plugin_row_meta($links, $file) {
|
|
322 |
}
|
323 |
|
324 |
|
325 |
-
|
|
|
|
|
326 |
function cms_tpv_save_settings() {
|
|
|
327 |
if (isset($_POST["cms_tpv_action"]) && $_POST["cms_tpv_action"] == "save_settings") {
|
|
|
328 |
$options = array();
|
329 |
$options["dashboard"] = (array) $_POST["post-type-dashboard"];
|
330 |
$options["menu"] = (array) $_POST["post-type-menu"];
|
|
|
|
|
331 |
update_option('cms_tpv_options', $options); // enable this to show box
|
|
|
332 |
}
|
|
|
333 |
}
|
334 |
|
335 |
/**
|
@@ -389,65 +518,103 @@ function cms_tpv_options() {
|
|
389 |
<div class="wrap">
|
390 |
|
391 |
<?php cms_tpv_show_annoying_box(); ?>
|
392 |
-
|
|
|
393 |
<h2><?php echo CMS_TPV_NAME ?> <?php _e("settings", 'cms-tree-page-view') ?></h2>
|
394 |
|
395 |
-
<form method="post" action="options.php">
|
|
|
396 |
<?php wp_nonce_field('update-options'); ?>
|
397 |
|
398 |
<h3><?php _e("Select where to show a tree for pages and custom post types", 'cms-tree-page-view')?></h3>
|
399 |
|
400 |
-
|
401 |
-
$options = cms_tpv_get_options();
|
402 |
-
|
403 |
-
$post_types = get_post_types(array(
|
404 |
-
"show_ui" => TRUE
|
405 |
-
), "objects");
|
406 |
-
$arr_page_options = array();
|
407 |
-
foreach ($post_types as $one_post_type) {
|
408 |
-
$name = $one_post_type->name;
|
409 |
|
410 |
-
|
411 |
-
// no support for pages. you could show them.. but since we can't reorder them there is not idea to show them.. or..?
|
412 |
-
// 14 jul 2011: ok, let's enable it for posts too. some people says it useful
|
413 |
-
// http://wordpress.org/support/topic/this-plugin-should-work-also-on-posts
|
414 |
-
// continue;
|
415 |
-
}
|
416 |
-
|
417 |
-
$arr_page_options[] = "post-type-dashboard-$name";
|
418 |
-
$arr_page_options[] = "post-type-menu-$name";
|
419 |
-
echo "<p>";
|
420 |
-
echo "<strong>".$one_post_type->label."</strong>";
|
421 |
-
|
422 |
-
$checked = (in_array($name, $options["dashboard"])) ? " checked='checked' " : "";
|
423 |
-
echo "<br />";
|
424 |
-
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>";
|
425 |
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
echo "</p>";
|
430 |
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
-
?>
|
434 |
-
|
435 |
<input type="hidden" name="action" value="update" />
|
436 |
<input type="hidden" name="cms_tpv_action" value="save_settings" />
|
437 |
<input type="hidden" name="page_options" value="<?php echo join($arr_page_options, ",") ?>" />
|
438 |
<p class="submit">
|
439 |
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'cms-tree-page-view') ?>" />
|
440 |
</p>
|
|
|
441 |
</form>
|
|
|
442 |
</div>
|
443 |
|
444 |
<?php
|
445 |
}
|
446 |
|
|
|
|
|
|
|
|
|
447 |
function cms_tpv_get_options() {
|
448 |
$arr_options = (array) get_option('cms_tpv_options');
|
449 |
-
$arr_options["dashboard"] = (array)
|
450 |
-
$arr_options["menu"] = (array)
|
|
|
451 |
return $arr_options;
|
452 |
}
|
453 |
|
@@ -483,7 +650,9 @@ function cms_tpv_is_post_type_hierarchical($post_type_object) {
|
|
483 |
return $is_hierarchical;
|
484 |
}
|
485 |
|
486 |
-
|
|
|
|
|
487 |
function cms_tpv_get_wpml_post_counts($post_type) {
|
488 |
|
489 |
global $wpdb;
|
@@ -510,6 +679,7 @@ function cms_tpv_get_wpml_post_counts($post_type) {
|
|
510 |
";
|
511 |
$res = $wpdb->get_results($sql);
|
512 |
|
|
|
513 |
$langs['all'] = 0;
|
514 |
foreach($res as $r) {
|
515 |
$langs[$r->language_code] = $r->c;
|
@@ -535,7 +705,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
535 |
if (!$post_type) {
|
536 |
$post_type = cms_tpv_get_selected_post_type();
|
537 |
}
|
538 |
-
|
539 |
$post_type_object = get_post_type_object($post_type);
|
540 |
$get_pages_args = array("post_type" => $post_type);
|
541 |
|
@@ -570,9 +740,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
570 |
|
571 |
foreach ($wpml_post_counts["publish"] as $one_wpml_lang => $one_wpml_lang_count) {
|
572 |
if ("all" === $one_wpml_lang) continue;
|
573 |
-
$lang_post_count_all =
|
574 |
-
$lang_post_count_publish =
|
575 |
-
$lang_post_count_trash =
|
576 |
$status_data_attributes["all"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_all}' ";
|
577 |
$status_data_attributes["publish"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_publish}' ";
|
578 |
$status_data_attributes["trash"] .= " data-post-count-{$one_wpml_lang}='{$lang_post_count_trash}' ";
|
@@ -634,9 +804,9 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
634 |
<a class='cms_tvp_switch_lang $selected cms_tpv_switch_language_code_{$one_lang["language_code"]}' href='#'>
|
635 |
$one_lang_details[display_name]
|
636 |
<span class='count'>(" . $lang_count . ")</span>
|
637 |
-
</a>
|
638 |
}
|
639 |
-
$lang_out = preg_replace('/
|
640 |
$lang_out .= "</ul>";
|
641 |
echo $lang_out;
|
642 |
}
|
@@ -659,14 +829,12 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
659 |
<a class="cms_tvp_view_all <?php echo ($cms_tpv_view=="all") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["all"] ?>>
|
660 |
<?php _e("All", 'cms-tree-page-view') ?>
|
661 |
<span class="count">(<?php echo $post_count_all ?>)</span>
|
662 |
-
</a>
|
663 |
-
</li>
|
664 |
<li class="cms_tvp_view_is_status_view">
|
665 |
<a class="cms_tvp_view_public <?php echo ($cms_tpv_view=="public") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["publish"] ?>>
|
666 |
<?php _e("Public", 'cms-tree-page-view') ?>
|
667 |
<span class="count">(<?php echo $post_count_publish ?>)</span>
|
668 |
-
</a>
|
669 |
-
</li>
|
670 |
<li class="cms_tvp_view_is_status_view">
|
671 |
<a class="cms_tvp_view_trash <?php echo ($cms_tpv_view=="trash") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["trash"] ?>>
|
672 |
<?php _e("Trash", 'cms-tree-page-view') ?>
|
@@ -687,7 +855,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
687 |
<form class="cms_tree_view_search_form" method="get" action="">
|
688 |
<input type="text" name="search" class="cms_tree_view_search" />
|
689 |
<a title="<?php _e("Clear search", 'cms-tree-page-view') ?>" class="cms_tree_view_search_form_reset" href="#">x</a>
|
690 |
-
<input type="submit" class="cms_tree_view_search_submit" value="<?php _e("Search", 'cms-tree-page-view') ?>" />
|
691 |
<span class="cms_tree_view_search_form_working"><?php _e("Searching...", 'cms-tree-page-view') ?></span>
|
692 |
<span class="cms_tree_view_search_form_no_hits"><?php _e("Nothing found.", 'cms-tree-page-view') ?></span>
|
693 |
</form>
|
@@ -760,20 +928,20 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
760 |
</div>
|
761 |
|
762 |
<div>
|
763 |
-
Position
|
764 |
<label><input type="radio" name="cms_tpv_add_type" value="after"> <?php _e("After", "cms-tree-page-view") ?></label>
|
765 |
<label><input type="radio" name="cms_tpv_add_type" value="inside"> <?php _e("Inside", "cms-tree-page-view") ?></label>
|
766 |
</div>
|
767 |
|
768 |
|
769 |
<div>
|
770 |
-
Status
|
771 |
<label><input type="radio" name="cms_tpv_add_status" value="draft" checked> <?php _e("Draft", "cms-tree-page-view") ?></label>
|
772 |
<label><input type="radio" name="cms_tpv_add_status" value="published"> <?php _e("Published", "cms-tree-page-view") ?></label>
|
773 |
</div>
|
774 |
|
775 |
<div>
|
776 |
-
<input type="submit" value="Add" class="button-primary">
|
777 |
<?php _e("or", "cms-tree-page-view") ?>
|
778 |
<a href="#" class="cms_tpv_add_cancel"><?php _e("cancel", "cms-tree-page-view") ?></a>
|
779 |
</div>
|
@@ -825,6 +993,7 @@ function cms_tpv_pages_page() {
|
|
825 |
<div class="wrap">
|
826 |
<?php echo get_screen_icon(); ?>
|
827 |
<h2><?php
|
|
|
828 |
$page_title = _x(sprintf('%1$s Tree View', $post_type_object->labels->name), "headline of page with tree", "cms-tree-page-view");
|
829 |
echo $page_title;
|
830 |
|
@@ -833,9 +1002,6 @@ function cms_tpv_pages_page() {
|
|
833 |
echo ' <a href="' . esc_url( $post_new_file ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
834 |
}
|
835 |
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
?></h2>
|
840 |
|
841 |
<?php
|
@@ -941,6 +1107,7 @@ function cms_tpv_get_pages($args = null) {
|
|
941 |
|
942 |
#do_action_ref_array('parse_query', array(&$this));
|
943 |
#print_r($get_posts_args);
|
|
|
944 |
$pages = get_posts($get_posts_args);
|
945 |
|
946 |
// filter out pages for wpml, by applying same filter as get_pages does
|
@@ -1149,6 +1316,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1149 |
}
|
1150 |
|
1151 |
// Act on AJAX-call
|
|
|
1152 |
function cms_tpv_get_childs() {
|
1153 |
|
1154 |
header("Content-type: application/json");
|
@@ -1496,6 +1664,7 @@ function cms_tpv_install() {
|
|
1496 |
// set to current version
|
1497 |
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1498 |
}
|
|
|
1499 |
|
1500 |
/**
|
1501 |
* setup some defaults
|
@@ -1504,8 +1673,7 @@ function cms_tpv_setup_defaults() {
|
|
1504 |
|
1505 |
// check and update version
|
1506 |
$version = get_option('cms_tpv_version', 0);
|
1507 |
-
|
1508 |
-
//$version = 0;
|
1509 |
|
1510 |
if ($version <= 0) {
|
1511 |
|
@@ -1513,9 +1681,9 @@ function cms_tpv_setup_defaults() {
|
|
1513 |
|
1514 |
// Add pages to both dashboard and menu
|
1515 |
$options["dashboard"] = array("page");
|
1516 |
-
$options["menu"] = array("page");
|
1517 |
|
1518 |
// since 0.10.1 enable menu for all hierarchical custom post types
|
|
|
1519 |
$post_types = get_post_types(array(
|
1520 |
"show_ui" => TRUE,
|
1521 |
"hierarchical" => TRUE
|
@@ -1523,11 +1691,14 @@ function cms_tpv_setup_defaults() {
|
|
1523 |
|
1524 |
foreach ($post_types as $one_post_type) {
|
1525 |
$options["menu"][] = $one_post_type->name;
|
|
|
1526 |
}
|
1527 |
|
1528 |
$options["menu"] = array_unique($options["menu"]);
|
|
|
1529 |
|
1530 |
update_option('cms_tpv_options', $options);
|
|
|
1531 |
}
|
1532 |
|
1533 |
}
|
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 = htmlspecialchars($_GET["cms_tpv_view"]);
|
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"]
|
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 |
|
255 |
*/
|
256 |
function cms_admin_enqueue_scripts() {
|
257 |
|
|
|
258 |
if (cms_tpv_is_one_of_our_pages()) {
|
259 |
|
260 |
// renamed from cookie to fix problems with mod_security
|
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
|
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 |
/**
|
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" class="cmtpv_options_form">
|
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 |
+
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
|
533 |
+
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
534 |
|
535 |
+
<?php
|
536 |
+
|
537 |
+
$options = cms_tpv_get_options();
|
|
|
538 |
|
539 |
+
$post_types = get_post_types(array(
|
540 |
+
"show_ui" => TRUE
|
541 |
+
), "objects");
|
542 |
+
|
543 |
+
$arr_page_options = array();
|
544 |
+
foreach ($post_types as $one_post_type) {
|
545 |
+
|
546 |
+
$name = $one_post_type->name;
|
547 |
+
|
548 |
+
if ($name === "post") {
|
549 |
+
// no support for pages. you could show them.. but since we can't reorder them there is not idea to show them.. or..?
|
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 |
+
</tbody>
|
593 |
+
</table>
|
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) @$arr_options["dashboard"];
|
616 |
+
$arr_options["menu"] = (array) @$arr_options["menu"];
|
617 |
+
$arr_options["postsoverview"] = (array) @$arr_options["postsoverview"];
|
618 |
return $arr_options;
|
619 |
}
|
620 |
|
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;
|
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;
|
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 |
|
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}' ";
|
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('/ \|<\/li>$/', "</li>", $lang_out);
|
810 |
$lang_out .= "</ul>";
|
811 |
echo $lang_out;
|
812 |
}
|
829 |
<a class="cms_tvp_view_all <?php echo ($cms_tpv_view=="all") ? "current" : "" ?>" href="#" <?php echo $status_data_attributes["all"] ?>>
|
830 |
<?php _e("All", 'cms-tree-page-view') ?>
|
831 |
<span class="count">(<?php echo $post_count_all ?>)</span>
|
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') ?>
|
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 button button-small" value="<?php _e("Search", 'cms-tree-page-view') ?>" />
|
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>
|
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>
|
993 |
<div class="wrap">
|
994 |
<?php echo get_screen_icon(); ?>
|
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 |
|
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
|
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
|
1316 |
}
|
1317 |
|
1318 |
// Act on AJAX-call
|
1319 |
+
// Get pages
|
1320 |
function cms_tpv_get_childs() {
|
1321 |
|
1322 |
header("Content-type: application/json");
|
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
|
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 |
|
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
|
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 |
}
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
-
Version: 1.
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -27,7 +27,7 @@ License: GPL2
|
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
-
define( "CMS_TPV_VERSION", "1.
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__)."/functions.php");
|
@@ -68,6 +68,9 @@ add_action('wp_ajax_cms_tpv_add_pages', 'cms_tpv_add_pages');
|
|
68 |
// activation
|
69 |
register_activation_hook( WP_PLUGIN_DIR . "/cms-tree-page-view/index.php" , 'cms_tpv_install' );
|
70 |
|
|
|
|
|
|
|
71 |
// catch upgrade
|
72 |
add_action('plugins_loaded', 'cms_tpv_plugins_loaded' , 1);
|
73 |
|
3 |
Plugin Name: CMS Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
+
Version: 1.2
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
27 |
|
28 |
#require("functions.php");
|
29 |
|
30 |
+
define( "CMS_TPV_VERSION", "1.2");
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__)."/functions.php");
|
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 |
|
languages/cms-tree-page-view-ru_RU.po
CHANGED
@@ -1,133 +1,363 @@
|
|
1 |
-
#
|
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:
|
11 |
-
"PO-Revision-Date:
|
12 |
-
"Last-Translator:
|
13 |
-
"Language-Team:
|
14 |
"MIME-Version: 1.0\n"
|
15 |
-
"Content-Type: text/plain; charset=
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
-
"X-
|
18 |
-
"X-Poedit-
|
19 |
-
"X-Poedit-
|
|
|
|
|
20 |
|
21 |
-
#: functions.php:
|
22 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
msgstr "Настройки"
|
24 |
|
25 |
-
#: functions.php:
|
26 |
-
msgid "
|
27 |
-
msgstr "
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
#: functions.php:
|
30 |
-
msgid "
|
31 |
-
msgstr "
|
32 |
|
33 |
-
#: functions.php:
|
34 |
-
msgid "
|
35 |
-
msgstr "
|
36 |
|
37 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
38 |
msgid "Save Changes"
|
39 |
msgstr "Сохранить изменения"
|
40 |
|
41 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
42 |
msgid "All"
|
43 |
msgstr "Все"
|
44 |
|
45 |
-
#: functions.php:
|
46 |
msgid "Public"
|
47 |
msgstr "Опубликованные"
|
48 |
|
49 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
50 |
msgid "Expand"
|
51 |
msgstr "Раскрыть"
|
52 |
|
53 |
-
#: functions.php:
|
54 |
msgid "Collapse"
|
55 |
-
msgstr "
|
|
|
|
|
|
|
|
|
56 |
|
57 |
-
#: functions.php:
|
58 |
msgid "Search"
|
59 |
msgstr "Поиск"
|
60 |
|
61 |
-
#: functions.php:
|
62 |
msgid "Searching..."
|
63 |
msgstr "Поиск..."
|
64 |
|
65 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
66 |
msgid "Loading..."
|
67 |
msgstr "Загрузка..."
|
68 |
|
69 |
-
#: functions.php:
|
70 |
msgid "Search: no pages found"
|
71 |
-
msgstr "Поиск:
|
72 |
|
73 |
-
#: functions.php:
|
74 |
msgid "Loading tree"
|
75 |
msgstr "Загрузка дерева"
|
76 |
|
77 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "<Untitled page>"
|
79 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
#: functions.php:
|
82 |
-
msgid "
|
83 |
-
msgstr "
|
84 |
|
85 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
86 |
msgid "New page"
|
87 |
msgstr "Новая страница"
|
88 |
|
89 |
-
#:
|
90 |
-
|
91 |
-
|
92 |
-
msgstr "Введите имя новой страницы"
|
93 |
-
|
94 |
-
#: scripts/cms_tree_page_view.php:283
|
95 |
-
msgid "child pages"
|
96 |
-
msgstr "Дочерние сраницы"
|
97 |
|
98 |
-
#:
|
99 |
-
msgid "
|
100 |
-
|
|
|
|
|
|
|
|
|
101 |
|
102 |
-
#:
|
103 |
-
msgid "
|
104 |
-
msgstr "
|
105 |
|
106 |
-
#:
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#:
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#:
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
117 |
|
118 |
-
#:
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
121 |
|
122 |
-
#:
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
125 |
|
126 |
-
#:
|
127 |
-
msgid "
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#:
|
131 |
-
|
132 |
-
|
|
|
133 |
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012
|
|
|
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: 2012-12-19 22:59+0400\n"
|
8 |
+
"PO-Revision-Date: 2012-12-19 23:00+0400\n"
|
9 |
+
"Last-Translator: Вадим <vadim.bogaiskov@gmail.com>\n"
|
10 |
+
"Language-Team: \n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"X-Generator: Poedit 1.5.4\n"
|
15 |
+
"X-Poedit-Basepath: E:\\Translate WP\\cms-tree-page-view\n"
|
16 |
+
"X-Poedit-KeywordsList: _e;_x;__\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-SearchPath-0: E:\\Translate WP\\cms-tree-page-view\n"
|
19 |
|
20 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:259
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:398
|
144 |
+
msgid "Select where to show a tree for pages and custom post types"
|
145 |
+
msgstr "Укажите где показать дерево страниц и пользовательских типов записей"
|
146 |
|
147 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:424
|
148 |
+
msgid "On dashboard"
|
149 |
+
msgstr "На консоли"
|
150 |
|
151 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:428
|
152 |
+
msgid "In menu"
|
153 |
+
msgstr "В меню"
|
154 |
+
|
155 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:439
|
156 |
msgid "Save Changes"
|
157 |
msgstr "Сохранить изменения"
|
158 |
|
159 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:648
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:666
|
168 |
msgid "Public"
|
169 |
msgstr "Опубликованные"
|
170 |
|
171 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:672
|
172 |
+
msgid "Trash"
|
173 |
+
msgstr "Корзина"
|
174 |
+
|
175 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:680
|
176 |
msgid "Expand"
|
177 |
msgstr "Раскрыть"
|
178 |
|
179 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:681
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:690
|
188 |
msgid "Search"
|
189 |
msgstr "Поиск"
|
190 |
|
191 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:691
|
192 |
msgid "Searching..."
|
193 |
msgstr "Поиск..."
|
194 |
|
195 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:692
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:704
|
204 |
msgid "Search: no pages found"
|
205 |
+
msgstr "Поиск: страницы не найдены"
|
206 |
|
207 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:707
|
208 |
msgid "Loading tree"
|
209 |
msgstr "Загрузка дерева"
|
210 |
|
211 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:728
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1075
|
295 |
+
msgid "1"
|
296 |
+
msgstr "1"
|
297 |
|
298 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1075
|
299 |
+
msgid "%"
|
300 |
+
msgstr "%"
|
301 |
+
|
302 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1260
|
303 |
msgid "New page"
|
304 |
msgstr "Новая страница"
|
305 |
|
306 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1450
|
307 |
+
msgid "Thanks for using my plugin"
|
308 |
+
msgstr "Спасибо за использование моего плагина"
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1452
|
311 |
+
msgid ""
|
312 |
+
"Hi there! I just wanna says thanks for using my plugin. I hope you like it "
|
313 |
+
"as much as I do."
|
314 |
+
msgstr ""
|
315 |
+
"Привет! Я просто хочу, сказать спасибо за использование моего плагина. Я "
|
316 |
+
"надеюсь, что Вам он нравится так же, как и мне."
|
317 |
|
318 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1453
|
319 |
+
msgid "/Pär Thernström - plugin creator"
|
320 |
+
msgstr "/Pär Thernström - создатель плагина"
|
321 |
|
322 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1455
|
323 |
+
msgid "I like this plugin<br>– how can I thank you?"
|
324 |
+
msgstr "Мне нравится этот плагин<br> - как я могу отблагодарить Вас?"
|
325 |
|
326 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1456
|
327 |
+
msgid "There are serveral ways for you to show your appreciation:"
|
328 |
+
msgstr "Есть несколько способов, чтобы показать Вашу признательность:"
|
329 |
|
330 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1458
|
331 |
+
#, php-format
|
332 |
+
msgid ""
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1459
|
338 |
+
#, php-format
|
339 |
+
msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
|
340 |
+
msgstr ""
|
341 |
+
"<a href=\"%1$s\">Сделать пожертвование</a> – любая сумма сделает меня "
|
342 |
+
"счастливым"
|
343 |
|
344 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1460
|
345 |
+
#, php-format
|
346 |
+
msgid ""
|
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 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1463
|
353 |
+
msgid "Support"
|
354 |
+
msgstr "Поддержка"
|
355 |
|
356 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1464
|
357 |
+
#, php-format
|
358 |
+
msgid "Plese see the <a href=\"%1$s\">support forum</a> for help."
|
359 |
+
msgstr "Читайте <a href=\"%1$s\">форум поддержки</a> для помощи."
|
360 |
|
361 |
+
#: E:\Translate WP\cms-tree-page-view/functions.php:1468
|
362 |
+
msgid "Hide until next upgrade"
|
363 |
+
msgstr "Скрыть до следующего обновления"
|
languages/cms-tree-page-view.pot
CHANGED
@@ -4,7 +4,7 @@ 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: 2012-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -12,308 +12,332 @@ msgstr ""
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
msgid "Settings"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: functions.php:
|
112 |
msgctxt "name in menu"
|
113 |
msgid "Tree View"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: functions.php:
|
117 |
msgid "settings"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: functions.php:
|
121 |
msgid "Select where to show a tree for pages and custom post types"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: functions.php:
|
125 |
msgid "On dashboard"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: functions.php:
|
129 |
msgid "In menu"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
133 |
msgid "Save Changes"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: functions.php:
|
137 |
msgid "No posts found."
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: functions.php:
|
141 |
msgid "All"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: functions.php:
|
145 |
msgid "Public"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: functions.php:
|
149 |
msgid "Trash"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: functions.php:
|
153 |
msgid "Expand"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: functions.php:
|
157 |
msgid "Collapse"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: functions.php:
|
161 |
msgid "Clear search"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: functions.php:
|
165 |
msgid "Search"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: functions.php:
|
169 |
msgid "Searching..."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: functions.php:
|
173 |
msgid "Nothing found."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: functions.php:
|
177 |
msgid "Loading..."
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: functions.php:
|
181 |
msgid "Search: no pages found"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: functions.php:
|
185 |
msgid "Loading tree"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: functions.php:
|
189 |
msgid "After"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: functions.php:
|
193 |
msgid "Inside"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: functions.php:
|
197 |
msgid "Can not create page inside of a page with draft status"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: functions.php:
|
201 |
msgid "Add page(s)"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: functions.php:
|
205 |
msgid "Enter title here"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
msgid "Draft"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: functions.php:
|
213 |
msgid "Published"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
217 |
msgid "or"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: functions.php:
|
221 |
msgid "cancel"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: functions.php:
|
225 |
msgid "Last modified"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: functions.php:
|
229 |
msgid "by"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: functions.php:
|
233 |
msgid "Page ID"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: functions.php:
|
237 |
msgid "Unknown user"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: functions.php:
|
241 |
msgid "<Untitled page>"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: functions.php:
|
245 |
msgid "Comments"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: functions.php:
|
249 |
msgid "%s pending"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: functions.php:
|
253 |
msgctxt "comment count"
|
254 |
msgid "0"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: functions.php:
|
258 |
msgctxt "comment count"
|
259 |
msgid "1"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: functions.php:
|
263 |
msgctxt "comment count"
|
264 |
msgid "%"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: functions.php:
|
268 |
msgid "New page"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: functions.php:
|
272 |
msgid "Thanks for using my plugin"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: functions.php:
|
276 |
msgid ""
|
277 |
"Hi there! I just wanna says thanks for using my plugin. I hope you like it "
|
278 |
"as much as I do."
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: functions.php:
|
282 |
msgid "/Pär Thernström - plugin creator"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: functions.php:
|
286 |
msgid "I like this plugin<br>– how can I thank you?"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: functions.php:
|
290 |
msgid "There are serveral ways for you to show your appreciation:"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: functions.php:
|
294 |
msgid ""
|
295 |
"<a href=\"%1$s\">Give it a nice review</a> over at the WordPress Plugin "
|
296 |
"Directory"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: functions.php:
|
300 |
msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: functions.php:
|
304 |
msgid ""
|
305 |
"<a href=\"%1$s\">Post a nice tweet</a> or make a nice blog post about the "
|
306 |
"plugin"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: functions.php:
|
310 |
msgid "Support"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: functions.php:
|
314 |
msgid "Plese see the <a href=\"%1$s\">support forum</a> for help."
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: functions.php:
|
318 |
msgid "Hide until next upgrade"
|
319 |
msgstr ""
|
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: 2012-12-22 21:04:52+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: functions.php:272
|
16 |
msgid "Enter title of new page"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: functions.php:273
|
20 |
msgid "child pages"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: functions.php:274 functions.php:887
|
24 |
msgid "Edit page"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: functions.php:275 functions.php:888
|
28 |
msgid "View page"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: functions.php:276 functions.php:887
|
32 |
msgid "Edit"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: functions.php:277 functions.php:888
|
36 |
msgid "View"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: functions.php:278
|
40 |
msgid "Add page"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: functions.php:279 functions.php:896
|
44 |
msgid "Add new page after"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: functions.php:280
|
48 |
msgid "after"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: functions.php:281
|
52 |
msgid "inside"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: functions.php:282
|
56 |
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: functions.php:283
|
60 |
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: functions.php:284
|
64 |
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: functions.php:285 functions.php:901
|
68 |
msgid "Add new page inside"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: functions.php:286 functions.php:292
|
72 |
msgid "draft"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: functions.php:287 functions.php:293
|
76 |
msgid "future"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: functions.php:288 functions.php:294
|
80 |
msgid "protected"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: functions.php:289 functions.php:295 functions.php:1235
|
84 |
msgid "pending"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: functions.php:290 functions.php:296
|
88 |
msgid "private"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: functions.php:291 functions.php:297
|
92 |
msgid "trash"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: functions.php:298
|
96 |
msgid "Password protected page"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: functions.php:299
|
100 |
msgid "Adding page..."
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: functions.php:300
|
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:529
|
129 |
msgid "Select where to show a tree for pages and custom post types"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: functions.php:573
|
133 |
msgid "On dashboard"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: functions.php:577
|
137 |
msgid "In menu"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: functions.php:581
|
141 |
+
msgid "On post overview screen"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: functions.php:599
|
145 |
msgid "Save Changes"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: functions.php:818
|
149 |
msgid "No posts found."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: functions.php:830
|
153 |
msgid "All"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: functions.php:835
|
157 |
msgid "Public"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: functions.php:840
|
161 |
msgid "Trash"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: functions.php:848
|
165 |
msgid "Expand"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: functions.php:849
|
169 |
msgid "Collapse"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: functions.php:857
|
173 |
msgid "Clear search"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: functions.php:858
|
177 |
msgid "Search"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: functions.php:859
|
181 |
msgid "Searching..."
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: functions.php:860
|
185 |
msgid "Nothing found."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: functions.php:867
|
189 |
msgid "Loading..."
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: functions.php:872
|
193 |
msgid "Search: no pages found"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: functions.php:875
|
197 |
msgid "Loading tree"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: functions.php:896 functions.php:932
|
201 |
msgid "After"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: functions.php:901 functions.php:933
|
205 |
msgid "Inside"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: functions.php:905
|
209 |
msgid "Can not create page inside of a page with draft status"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: functions.php:921
|
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:958
|
253 |
msgid "by"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: functions.php:961
|
257 |
msgid "Page ID"
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: functions.php:1200
|
261 |
msgid "Unknown user"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: functions.php:1205
|
265 |
msgid "<Untitled page>"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: functions.php:1225
|
269 |
msgid "Comments"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: functions.php:1232
|
273 |
msgid "%s pending"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: functions.php:1242
|
277 |
msgctxt "comment count"
|
278 |
msgid "0"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: functions.php:1242
|
282 |
msgctxt "comment count"
|
283 |
msgid "1"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: functions.php:1242
|
287 |
msgctxt "comment count"
|
288 |
msgid "%"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: functions.php:1428
|
292 |
msgid "New page"
|
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:1623
|
310 |
msgid "I like this plugin<br>– how can I thank you?"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: functions.php:1624
|
314 |
msgid "There are serveral ways for you to show your appreciation:"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: functions.php:1626
|
318 |
msgid ""
|
319 |
"<a href=\"%1$s\">Give it a nice review</a> over at the WordPress Plugin "
|
320 |
"Directory"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: functions.php:1627
|
324 |
msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: functions.php:1628
|
328 |
msgid ""
|
329 |
"<a href=\"%1$s\">Post a nice tweet</a> or make a nice blog post about the "
|
330 |
"plugin"
|
331 |
msgstr ""
|
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 ""
|
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.5
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Adds a tree of all
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -33,6 +33,24 @@ Page management in WordPress won't get any easier than this!
|
|
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 |
#### Screencast
|
37 |
Watch this screencast to see how easy you could be managing your pages:
|
38 |
[youtube http://www.youtube.com/watch?v=H4BGomLi_FU]
|
@@ -58,15 +76,10 @@ This plugin is available in the following languages:
|
|
58 |
* Lithuanian
|
59 |
* Estonian
|
60 |
|
61 |
-
#### Making the tree available for your vistors
|
62 |
-
If you're looking for a version of this page tree that the vistors of your site can use, then check out
|
63 |
-
this navigation widget called [Nice Navigation](http://wordpress.org/extend/plugins/nice-navigation/).
|
64 |
-
|
65 |
#### Always show your pages in the admin area
|
66 |
If you want to always have a list of your pages available in your WordPress admin area, please check out the plugin
|
67 |
[Admin Menu Tree Page View](http://wordpress.org/extend/plugins/admin-menu-tree-page-view/).
|
68 |
|
69 |
-
|
70 |
#### Donation and more plugins
|
71 |
* If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/).
|
72 |
* More [WordPress CMS plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author.
|
@@ -82,15 +95,25 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
82 |
== Screenshots ==
|
83 |
|
84 |
1. The page tree in action
|
85 |
-
2. Edit, view and add pages
|
86 |
-
3. Search pages
|
87 |
4. Drag-and-drop to rearrange/change the order of the pages.
|
88 |
5. The tree is also available on the dashboard and therefore available immediately after you login.
|
89 |
-
6.
|
90 |
-
7.
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
= 1.1 =
|
95 |
- 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)
|
96 |
- 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.
|
@@ -98,7 +121,7 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
98 |
- Fixed some IE-bugs
|
99 |
|
100 |
= 1.0 =
|
101 |
-
- New: create multiple pages at once! Add multiple pages faster than ever before! You can
|
102 |
- Fixed: adds new pages with the correct and selected WPML-language
|
103 |
- 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.
|
104 |
- Misc fixes
|
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.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 1.2
|
8 |
|
9 |
+
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder and option to add multiple pages at once.
|
10 |
|
11 |
== Description ==
|
12 |
|
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]
|
76 |
* Lithuanian
|
77 |
* Estonian
|
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 |
== Screenshots ==
|
96 |
|
97 |
1. The page tree in action
|
98 |
+
2. Edit, view and even add multiple pages at once!
|
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. Users of WPML can find all their languages in the tree
|
103 |
+
7. Quickly switch between regular list view and tree view using the switch icon
|
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.
|
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
|
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
@@ -139,7 +139,7 @@ var cms_tree_page_view = (function ($) {
|
|
139 |
jQuery(document).on("submit", "div.cms_tpv_action_add_doit form", function(e) {
|
140 |
|
141 |
//e.preventDefault();
|
142 |
-
|
143 |
var $form = $(this);
|
144 |
$form.find("input[type='submit']").val( cmstpv_l10n.Adding ).attr("disabled", true);
|
145 |
|
@@ -757,7 +757,7 @@ jQuery(document).on("click", "a.cms_tvp_switch_lang", function(e) {
|
|
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))
|
761 |
|
762 |
$a.find(".count").text("(" + link_count + ")");
|
763 |
|
@@ -827,3 +827,48 @@ function cms_tvp_set_view(view, elm) {
|
|
827 |
$wrapper.find(".cms_tpv_container").jstree(treeOptionsTmp);
|
828 |
|
829 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
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 |
|
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 |
+
});
|
styles/images/switch-view-icons.png
ADDED
Binary file
|
styles/images/switch-view-icons.psd
ADDED
Binary file
|
styles/styles.css
CHANGED
@@ -36,12 +36,24 @@
|
|
36 |
clear: both;
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
.cms-tpv-subsubsub li {
|
40 |
-
display: inline;
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
.cms-tpv-subsubsub li a {
|
44 |
text-decoration: none;
|
|
|
|
|
45 |
}
|
46 |
|
47 |
.cms-tpv-subsubsub li a.current {
|
@@ -49,9 +61,9 @@
|
|
49 |
color: black;
|
50 |
}
|
51 |
|
52 |
-
.cms-tpv-subsubsub li a
|
53 |
font-weight: normal;
|
54 |
-
color: #
|
55 |
}
|
56 |
|
57 |
.pages_page_cms-tpv-pages-page .cms-tpv-subsubsub li {
|
@@ -160,6 +172,8 @@
|
|
160 |
|
161 |
.cms_tree_view_search {
|
162 |
width: 130px;
|
|
|
|
|
163 |
}
|
164 |
.cms_tree_view_search_form_working,
|
165 |
.cms_tree_view_search_form_no_hits
|
@@ -196,43 +210,7 @@
|
|
196 |
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;
|
197 |
}
|
198 |
|
199 |
-
.cms_tpv_annoying_little_box {
|
200 |
-
padding: 1.5em;
|
201 |
-
background-color: #FAFAFA;
|
202 |
-
border: 1px solid #ddd;
|
203 |
-
margin: 1em 0 1em 0;
|
204 |
-
float: right;
|
205 |
-
width: 22em;
|
206 |
-
}
|
207 |
-
|
208 |
-
.cms_tpv_annoying_little_box h3:first-of-type {
|
209 |
-
margin-top: 0;
|
210 |
-
}
|
211 |
|
212 |
-
.cms_tpv_annoying_little_box_author {
|
213 |
-
font-style: italic;
|
214 |
-
}
|
215 |
-
|
216 |
-
.cms_tpv_annoying_little_box p {
|
217 |
-
margin: 0 0 .5em 0;
|
218 |
-
}
|
219 |
-
|
220 |
-
p.cms_tpv_annoying_little_box_gravatar {
|
221 |
-
float: right;
|
222 |
-
margin: 0 0 1em 1em;
|
223 |
-
}
|
224 |
-
|
225 |
-
.cms_tpv_annoying_little_box ul {
|
226 |
-
list-style-type: disc;
|
227 |
-
margin-left: 20px;
|
228 |
-
}
|
229 |
-
|
230 |
-
p.cms_tpv_annoying_little_box_close {
|
231 |
-
text-align: right;
|
232 |
-
font-size: .8em;
|
233 |
-
margin-top: 1.5em;
|
234 |
-
margin-bottom: 0;
|
235 |
-
}
|
236 |
|
237 |
.cms_tpv_page_actions {
|
238 |
/*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;*/
|
@@ -460,3 +438,79 @@ ul.cms_tpv_action_add_doit_pages {
|
|
460 |
.cms_tpv_action_add_doit_pages li:last-child span:first-child {
|
461 |
visibility: hidden;
|
462 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-block;
|
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 {
|
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 {
|
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 |
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;*/
|
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 |
+
}
|