CMS Tree Page View - Version 0.7.15

Version Description

  • Czech translation added
  • Italian translation added, by Andrea Bersi (http://www.andreabersi.com)
  • require(dirname(FILE)."/functions.php"); instead of just require("functions.php");. Should fix problems with for example BackWPup.
Download this release

Release Info

Developer eskapism
Plugin Icon wp plugin CMS Tree Page View
Version 0.7.15
Comparing to
See all releases

Code changes from version 0.7.16 to 0.7.15

functions.php CHANGED
@@ -365,8 +365,6 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
365
  <div class="cms_tpv_working">
366
  <?php _e("Loading...", 'cms-tree-page-view') ?>
367
  </div>
368
-
369
- <div class="cms_tpv_message updated below-h2 hidden"><p>Message goes here.</p></div>
370
 
371
  <div class="updated below-h2 hidden cms_tpv_search_no_hits"><p><?php _e("Search: no pages found", 'cms-tree-page-view') ?></p></div>
372
 
@@ -553,7 +551,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
553
  $screen = convert_to_screen("edit");
554
  $screen->post_type = null;
555
 
556
- ob_start(); // some plugins, for example magic fields, return javascript and things here. we're not compatible with that, so just swallow any output
557
  $posts_columns = get_column_headers($screen);
558
  ob_get_clean();
559
 
@@ -694,7 +692,7 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
694
  "editlink": "<?php echo htmlspecialchars_decode($editLink) ?>",
695
  "modified_time": "<?php echo $post_modified_time ?>",
696
  "modified_author": "<?php echo $post_author ?>",
697
- "columns": "<?php echo rawurlencode(utf8_decode($str_columns)) ?>",
698
  "user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>"
699
  }
700
  <?php
365
  <div class="cms_tpv_working">
366
  <?php _e("Loading...", 'cms-tree-page-view') ?>
367
  </div>
 
 
368
 
369
  <div class="updated below-h2 hidden cms_tpv_search_no_hits"><p><?php _e("Search: no pages found", 'cms-tree-page-view') ?></p></div>
370
 
551
  $screen = convert_to_screen("edit");
552
  $screen->post_type = null;
553
 
554
+ ob_start(); // some plugins, for example magic fields, return javascript and things here. we're not campatible with that, so just swallow any output
555
  $posts_columns = get_column_headers($screen);
556
  ob_get_clean();
557
 
692
  "editlink": "<?php echo htmlspecialchars_decode($editLink) ?>",
693
  "modified_time": "<?php echo $post_modified_time ?>",
694
  "modified_author": "<?php echo $post_author ?>",
695
+ "columns": "<?php echo rawurlencode($str_columns) ?>",
696
  "user_can_edit_page": "<?php echo (int) $user_can_edit_page ?>"
697
  }
698
  <?php
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 you 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.7.16
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -28,7 +28,7 @@ License: GPL2
28
  #require("functions.php");
29
  require(dirname(__FILE__)."/functions.php");
30
 
31
- define( "CMS_TPV_VERSION", "0.7.16");
32
  define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
33
  define( "CMS_TPV_NAME", "CMS Tree Page View");
34
 
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 you 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.7.15
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
28
  #require("functions.php");
29
  require(dirname(__FILE__)."/functions.php");
30
 
31
+ define( "CMS_TPV_VERSION", "0.7.15");
32
  define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
33
  define( "CMS_TPV_NAME", "CMS Tree Page View");
34
 
readme.txt CHANGED
@@ -81,15 +81,15 @@ Now the tree with the pages will be visible both on the dashboard and in the men
81
  == Changelog ==
82
 
83
  = 0.7.16 =
84
- - fix for wpml-languages with "-" in them, like chinese simplified or chinese traditional.
85
  http://wordpress.org/support/topic/plugin-cms-tree-page-view-broken-for-languages-with-a-in
86
- - fixed some problems with columns and utf-encoding
87
- - moved adding page to a box above the tree, so you won't get the feeling that the tree has been deleted when you add a page.
88
 
89
  = 0.7.15 =
90
- - Czech translation added
91
- - Italian translation added, by Andrea Bersi (http://www.andreabersi.com)
92
- - require(dirname(__FILE__)."/functions.php"); instead of just require("functions.php");. Should fix problems with for example BackWPup.
93
 
94
  = 0.7.14 =
95
  - Added links to PayPal and Flattr, so users who like the plugin can donate.
81
  == Changelog ==
82
 
83
  = 0.7.16 =
84
+ * fix for wpml-languages with "-" in them, like chinese simplified or chinese traditional.
85
  http://wordpress.org/support/topic/plugin-cms-tree-page-view-broken-for-languages-with-a-in
86
+ * fixed some problems with columns and utf-encoding
87
+ * moved adding page to a box above the tree, so you won't get the feeling that the tree has been deleted when you add a page.
88
 
89
  = 0.7.15 =
90
+ * Czech translation added
91
+ * Italian translation added, by Andrea Bersi (http://www.andreabersi.com)
92
+ * require(dirname(__FILE__)."/functions.php"); instead of just require("functions.php");. Should fix problems with for example BackWPup.
93
 
94
  = 0.7.14 =
95
  - Added links to PayPal and Flattr, so users who like the plugin can donate.
scripts/cms_tree_page_view.js CHANGED
@@ -153,7 +153,7 @@ jQuery(".cms_tpv_action_add_page_after").live("click", function() {
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,
@@ -196,7 +196,7 @@ jQuery(".cms_tpv_action_add_page_inside").live("click", function() {
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,
@@ -502,7 +502,7 @@ jQuery("a.cms_tvp_switch_lang").live("click", function(e) {
502
  $wrapper.find("ul.cms_tvp_switch_langs a").removeClass("current");
503
  jQuery(this).addClass("current");
504
 
505
- var re = /cms_tpv_switch_language_code_([\w-]+)/;
506
  var matches = re.exec( jQuery(this).attr("class") );
507
  var lang_code = matches[1];
508
  $wrapper.find("[name=cms_tpv_meta_wpml_language]").val(lang_code);
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
+ $this.closest(".cms_tpv_container").html(cmstpv_l10n.Adding_page);
157
  jQuery.post(ajaxurl, {
158
  "action": "cms_tpv_add_page",
159
  "pageID": pageID,
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
+ $this.closest(".cms_tpv_container").html(cmstpv_l10n.Adding_page);
200
  jQuery.post(ajaxurl, {
201
  "action": "cms_tpv_add_page",
202
  "pageID": pageID,
502
  $wrapper.find("ul.cms_tvp_switch_langs a").removeClass("current");
503
  jQuery(this).addClass("current");
504
 
505
+ var re = /cms_tpv_switch_language_code_([\w]+)/;
506
  var matches = re.exec( jQuery(this).attr("class") );
507
  var lang_code = matches[1];
508
  $wrapper.find("[name=cms_tpv_meta_wpml_language]").val(lang_code);
styles/styles.css CHANGED
@@ -8,13 +8,7 @@
8
 
9
  .cms_tpv_wrapper {
10
  z-index: 10;
11
- margin-right: 250px;
12
  }
13
-
14
- .postbox .cms_tpv_wrapper {
15
- width: auto;
16
- }
17
-
18
  .cms_tpv_container {
19
  /* clear: both; */
20
  overflow: visible;
8
 
9
  .cms_tpv_wrapper {
10
  z-index: 10;
 
11
  }
 
 
 
 
 
12
  .cms_tpv_container {
13
  /* clear: both; */
14
  overflow: visible;