CMS Tree Page View - Version 1.2.12

Version Description

  • Fixed search not working
  • Fix height of clear search icon
Download this release

Release Info

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

Code changes from version 1.2.11 to 1.2.12

Files changed (4) hide show
  1. index.php +3 -3
  2. readme.txt +5 -1
  3. scripts/cms_tree_page_view.js +6 -1
  4. styles/styles.css +1 -0
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.11
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -27,10 +27,10 @@ License: GPL2
27
 
28
  #require("functions.php");
29
 
30
- define( "CMS_TPV_VERSION", "1.2.11");
31
  define( "CMS_TPV_NAME", "CMS Tree Page View");
32
 
33
- require(dirname(__FILE__)."/functions.php");
34
 
35
  // Find the plugin directory URL
36
  $aa = __FILE__;
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.12
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.12");
31
  define( "CMS_TPV_NAME", "CMS Tree Page View");
32
 
33
+ require(dirname(__FILE__) . "/functions.php");
34
 
35
  // Find the plugin directory URL
36
  $aa = __FILE__;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.2.11
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
 
@@ -111,6 +111,10 @@ Now the tree with the pages will be visible both on the dashboard and in the men
111
 
112
  == Changelog ==
113
 
 
 
 
 
114
  = 1.2.11 =
115
  - Updated german translation
116
  - Updated POT file for translators
4
  Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.2.12
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
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.2.12 =
115
+ - Fixed search not working
116
+ - Fix height of clear search icon
117
+
118
  = 1.2.11 =
119
  - Updated german translation
120
  - Updated POT file for translators
scripts/cms_tree_page_view.js CHANGED
@@ -263,6 +263,7 @@ jQuery(function($) {
263
 
264
  var isHierarchical = $(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type_hierarchical]").val();
265
  if (isHierarchical === "0") {
 
266
  // no move to children if not hierarchical
267
  treeOptionsTmp.types = {
268
  "types": {
@@ -271,8 +272,12 @@ jQuery(function($) {
271
  }
272
  }
273
  };
 
274
  }
275
 
 
 
 
276
  $elm.bind("search.jstree", function (event, data) {
277
  if (data.rslt.nodes.length === 0) {
278
  // no hits. doh.
@@ -693,7 +698,7 @@ function cms_tpv_bind_clean_node() {
693
  // post_status can be any value because of plugins like Edit flow
694
  // check if we have an existing translation for the string, otherwise use the post status directly
695
  var post_status_to_show = "";
696
- if (post_status_to_show = cmstpv_l10n["Status_"+post_status + "_ucase"]) {
697
  // it's ok
698
  } else {
699
  post_status_to_show = post_status;
263
 
264
  var isHierarchical = $(elm).closest(".cms_tpv_wrapper").find("[name=cms_tpv_meta_post_type_hierarchical]").val();
265
  if (isHierarchical === "0") {
266
+
267
  // no move to children if not hierarchical
268
  treeOptionsTmp.types = {
269
  "types": {
272
  }
273
  }
274
  };
275
+
276
  }
277
 
278
+ // set search url to include post type
279
+ treeOptionsTmp.search.ajax.url = ajaxurl + CMS_TPV_AJAXURL + CMS_TPV_VIEW + "&post_type=" + cms_tpv_get_post_type(this);
280
+
281
  $elm.bind("search.jstree", function (event, data) {
282
  if (data.rslt.nodes.length === 0) {
283
  // no hits. doh.
698
  // post_status can be any value because of plugins like Edit flow
699
  // check if we have an existing translation for the string, otherwise use the post status directly
700
  var post_status_to_show = "";
701
+ if (post_status_to_show = cmstpv_l10n["Status_" + post_status + "_ucase"]) {
702
  // it's ok
703
  } else {
704
  post_status_to_show = post_status;
styles/styles.css CHANGED
@@ -208,6 +208,7 @@
208
  left: 112px;
209
  width: 16px;
210
  height: 16px;
 
211
  background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_cccccc_256x240.png) no-repeat -32px -194px;
212
  text-indent: -9999px;
213
  }
208
  left: 112px;
209
  width: 16px;
210
  height: 16px;
211
+ padding: 0 !important;
212
  background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_cccccc_256x240.png) no-repeat -32px -194px;
213
  text-indent: -9999px;
214
  }