CMS Tree Page View - Version 1.2.22

Version Description

  • Fixed top links being squashed in dashboard. Fixes http://wordpress.org/support/topic/bug-top-links-on-dashboard-widget-misaligned-in-wp-38. Props tim.wakeling.
  • Fixed: Now prevents long titles from overflowing the dashboard widget area. Prop tim.wakeling.
Download this release

Release Info

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

Code changes from version 1.2.21 to 1.2.22

functions.php CHANGED
@@ -1715,7 +1715,7 @@ function cms_tpv_move_page() {
1715
  */
1716
  function cms_tpv_show_annoying_box() {
1717
 
1718
- // update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing
1719
 
1720
  if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
1721
  $show_box = 0;
@@ -1723,6 +1723,7 @@ function cms_tpv_show_annoying_box() {
1723
  } else {
1724
  $show_box = get_option('cms_tpv_show_annoying_little_box', 1);
1725
  }
 
1726
  if ($show_box) {
1727
  ?>
1728
  <div class="cms_tpv_annoying_little_box">
1715
  */
1716
  function cms_tpv_show_annoying_box() {
1717
 
1718
+ //update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing
1719
 
1720
  if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
1721
  $show_box = 0;
1723
  } else {
1724
  $show_box = get_option('cms_tpv_show_annoying_little_box', 1);
1725
  }
1726
+
1727
  if ($show_box) {
1728
  ?>
1729
  <div class="cms_tpv_annoying_little_box">
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMS Tree Page View
4
  Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
- Version: 1.2.21
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -27,7 +27,7 @@ License: GPL2
27
 
28
  #require("functions.php");
29
 
30
- define( "CMS_TPV_VERSION", "1.2.21");
31
  define( "CMS_TPV_NAME", "CMS Tree Page View");
32
 
33
  require(dirname(__FILE__) . "/functions.php");
3
  Plugin Name: CMS Tree Page View
4
  Plugin URI: http://eskapism.se/code-playground/cms-tree-page-view/
5
  Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
6
+ Version: 1.2.22
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.22");
31
  define( "CMS_TPV_NAME", "CMS Tree Page View");
32
 
33
  require(dirname(__FILE__) . "/functions.php");
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.8
6
- Tested up to: 3.8.1
7
- Stable tag: 1.2.21
8
 
9
  Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
10
 
@@ -113,8 +113,12 @@ Now the tree with the pages will be visible both on the dashboard and in the men
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = 1.2.21 =
117
- - Fixed and incompatibility issue with plugin Advanced Custom Fields.
118
 
119
  = 1.2.20 =
120
  - Removed part of a comment beacuse it mentionened a file on another domain and therefore violated the repository guidelines. Also moved some sprites in CSS from loading external to loading internal.
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.8
6
+ Tested up to: 3.9
7
+ Stable tag: 1.2.22
8
 
9
  Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
10
 
113
 
114
  == Changelog ==
115
 
116
+ = 1.2.22 =
117
+ - Fixed top links being squashed in dashboard. Fixes http://wordpress.org/support/topic/bug-top-links-on-dashboard-widget-misaligned-in-wp-38. Props tim.wakeling.
118
+ - Fixed: Now prevents long titles from overflowing the dashboard widget area. Prop tim.wakeling.
119
+
120
  = 1.2.21 =
121
+ - Fixed incompatibility issue with plugin Advanced Custom Fields.
122
 
123
  = 1.2.20 =
124
  - Removed part of a comment beacuse it mentionened a file on another domain and therefore violated the repository guidelines. Also moved some sprites in CSS from loading external to loading internal.
scripts/cms_tree_page_view.js CHANGED
@@ -901,12 +901,14 @@ jQuery(function($) {
901
  var view_switch_list = $("#view-switch-list"),
902
  view_switch_list_a = view_switch_list.closest("a");
903
 
904
- view_switch.append(view_switch_list_a);
905
- view_switch.append(" ");
906
 
907
  }
908
 
909
  // Add our link inside view switch
 
 
910
  view_switch.append(tree_view_switch_a);
911
  view_switch.addClass("view-switch-cstpv-icon-added");
912
 
@@ -921,5 +923,6 @@ jQuery(function($) {
921
  viewswitch.appendTo(cmstpv_postsoverview_wrap);
922
 
923
  }
 
924
 
925
  });
901
  var view_switch_list = $("#view-switch-list"),
902
  view_switch_list_a = view_switch_list.closest("a");
903
 
904
+ //view_switch.append(view_switch_list_a);
905
+ //view_switch.append(" ");
906
 
907
  }
908
 
909
  // Add our link inside view switch
910
+
911
+ /*
912
  view_switch.append(tree_view_switch_a);
913
  view_switch.addClass("view-switch-cstpv-icon-added");
914
 
923
  viewswitch.appendTo(cmstpv_postsoverview_wrap);
924
 
925
  }
926
+ */
927
 
928
  });
styles/styles.css CHANGED
@@ -12,7 +12,7 @@ Don't use this anymore since it's against the repository guidelines
12
 
13
  .cms_tpv_wrapper {
14
  z-index: 10;
15
- margin-right: 250px;
16
  }
17
 
18
  .postbox .cms_tpv_wrapper {
@@ -467,6 +467,12 @@ ul.cms_tpv_action_add_doit_pages {
467
  visibility: hidden;
468
  }
469
 
 
 
 
 
 
 
470
  /*
471
  for posts overview enabled mode
472
  */
12
 
13
  .cms_tpv_wrapper {
14
  z-index: 10;
15
+ /*margin-right: 250px;*/
16
  }
17
 
18
  .postbox .cms_tpv_wrapper {
467
  visibility: hidden;
468
  }
469
 
470
+ /* prevent long titles from overflowing the dashboard widget area */
471
+ .cms_tpv_container.jstree a {
472
+ max-width: 90%;
473
+ overflow: hidden;
474
+ }
475
+
476
  /*
477
  for posts overview enabled mode
478
  */