Version Description
- Add new filter "cms_tree_page_view_post_title". Use this filter to change to title being used to build the tree.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.2.27 |
Comparing to | |
See all releases |
Code changes from version 1.2.26 to 1.2.27
- cms-tree-page-view.sublime-workspace +132 -28
- functions.php +3 -0
- index.php +2 -2
- readme.txt +5 -1
cms-tree-page-view.sublime-workspace
CHANGED
@@ -283,7 +283,25 @@
|
|
283 |
"file": "functions.php",
|
284 |
"settings":
|
285 |
{
|
286 |
-
"buffer_size":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
"line_ending": "Unix"
|
288 |
}
|
289 |
},
|
@@ -291,7 +309,7 @@
|
|
291 |
"file": "readme.txt",
|
292 |
"settings":
|
293 |
{
|
294 |
-
"buffer_size":
|
295 |
"line_ending": "Unix"
|
296 |
}
|
297 |
},
|
@@ -299,7 +317,7 @@
|
|
299 |
"file": "scripts/cms_tree_page_view.js",
|
300 |
"settings":
|
301 |
{
|
302 |
-
"buffer_size":
|
303 |
"line_ending": "Unix"
|
304 |
}
|
305 |
},
|
@@ -672,6 +690,10 @@
|
|
672 |
"case_sensitive": false,
|
673 |
"find_history":
|
674 |
[
|
|
|
|
|
|
|
|
|
675 |
"wp_roles =",
|
676 |
"change",
|
677 |
"cms_tvp_setup_caps",
|
@@ -795,11 +817,7 @@
|
|
795 |
"ja, jag har läst",
|
796 |
"submit-confession-confirmation-message",
|
797 |
"u med och tävlar elle",
|
798 |
-
"n get_term_by"
|
799 |
-
"get_term_by",
|
800 |
-
"require",
|
801 |
-
"functions",
|
802 |
-
"require("
|
803 |
],
|
804 |
"highlight": true,
|
805 |
"in_selection": false,
|
@@ -837,15 +855,15 @@
|
|
837 |
"semi_transient": false,
|
838 |
"settings":
|
839 |
{
|
840 |
-
"buffer_size":
|
841 |
"regions":
|
842 |
{
|
843 |
},
|
844 |
"selection":
|
845 |
[
|
846 |
[
|
847 |
-
|
848 |
-
|
849 |
]
|
850 |
],
|
851 |
"settings":
|
@@ -890,7 +908,7 @@
|
|
890 |
"vendor-prefix": true,
|
891 |
"zero-units": "warning"
|
892 |
},
|
893 |
-
"function_name_status_row":
|
894 |
"gjslint_ignore":
|
895 |
[
|
896 |
110
|
@@ -944,7 +962,7 @@
|
|
944 |
"translate_tabs_to_spaces": false
|
945 |
},
|
946 |
"translation.x": 0.0,
|
947 |
-
"translation.y":
|
948 |
"zoom_level": 1.0
|
949 |
},
|
950 |
"stack_index": 0,
|
@@ -952,65 +970,151 @@
|
|
952 |
},
|
953 |
{
|
954 |
"buffer": 1,
|
955 |
-
"file": "readme.txt",
|
956 |
"semi_transient": false,
|
957 |
"settings":
|
958 |
{
|
959 |
-
"buffer_size":
|
960 |
"regions":
|
961 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
962 |
},
|
963 |
"selection":
|
964 |
[
|
965 |
[
|
966 |
-
|
967 |
-
|
968 |
]
|
969 |
],
|
970 |
"settings":
|
971 |
{
|
972 |
-
"
|
973 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
},
|
975 |
"translation.x": 0.0,
|
976 |
"translation.y": 0.0,
|
977 |
"zoom_level": 1.0
|
978 |
},
|
979 |
-
"stack_index":
|
980 |
"type": "text"
|
981 |
},
|
982 |
{
|
983 |
"buffer": 2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
"file": "scripts/cms_tree_page_view.js",
|
985 |
"semi_transient": false,
|
986 |
"settings":
|
987 |
{
|
988 |
-
"buffer_size":
|
989 |
"regions":
|
990 |
{
|
991 |
},
|
992 |
"selection":
|
993 |
[
|
994 |
[
|
995 |
-
|
996 |
-
|
997 |
]
|
998 |
],
|
999 |
"settings":
|
1000 |
{
|
1001 |
-
"function_name_status_row":
|
1002 |
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
|
1003 |
"translate_tabs_to_spaces": false
|
1004 |
},
|
1005 |
"translation.x": 0.0,
|
1006 |
-
"translation.y":
|
1007 |
"zoom_level": 1.0
|
1008 |
},
|
1009 |
-
"stack_index":
|
1010 |
"type": "text"
|
1011 |
},
|
1012 |
{
|
1013 |
-
"buffer":
|
1014 |
"file": "styles/styles.css",
|
1015 |
"semi_transient": false,
|
1016 |
"settings":
|
@@ -1582,7 +1686,7 @@
|
|
1582 |
"translation.y": 7605.0,
|
1583 |
"zoom_level": 1.0
|
1584 |
},
|
1585 |
-
"stack_index":
|
1586 |
"type": "text"
|
1587 |
}
|
1588 |
]
|
283 |
"file": "functions.php",
|
284 |
"settings":
|
285 |
{
|
286 |
+
"buffer_size": 62584,
|
287 |
+
"line_ending": "Unix"
|
288 |
+
}
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"contents": "Searching 60 files for \"CMS_TPV_CAN_DND\"\n\n/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/functions.php:\n 265 var CMS_TPV_AJAXURL = \"?action=cms_tpv_get_childs&view=\";\n 266 var CMS_TPV_VIEW = \"<?php echo $cms_tpv_view ?>\";\n 267: //var CMS_TPV_CAN_DND = \"<?php echo current_user_can( CMS_TPV_MOVE_PERMISSION ) ? \"dnd\" : \"\" ?>\";\n 268: var CMS_TPV_CAN_DND = \"dnd\";\n 269 var cms_tpv_jsondata = {};\n 270 /* ]]> */\n\n/Users/bonny/Dropbox/Plugins/GIT/cms-tree-page-view/scripts/cms_tree_page_view.js:\n 200 \n 201 treeOptions = {\n 202: plugins: [\"themes\",\"json_data\",\"cookies\",\"search\",CMS_TPV_CAN_DND, \"types\"],\n 203 core: {\n 204 \"html_titles\": true\n\n3 matches across 2 files\n",
|
292 |
+
"settings":
|
293 |
+
{
|
294 |
+
"buffer_size": 710,
|
295 |
+
"line_ending": "Unix",
|
296 |
+
"name": "Find Results",
|
297 |
+
"scratch": true
|
298 |
+
}
|
299 |
+
},
|
300 |
+
{
|
301 |
+
"file": "index.php",
|
302 |
+
"settings":
|
303 |
+
{
|
304 |
+
"buffer_size": 3156,
|
305 |
"line_ending": "Unix"
|
306 |
}
|
307 |
},
|
309 |
"file": "readme.txt",
|
310 |
"settings":
|
311 |
{
|
312 |
+
"buffer_size": 25330,
|
313 |
"line_ending": "Unix"
|
314 |
}
|
315 |
},
|
317 |
"file": "scripts/cms_tree_page_view.js",
|
318 |
"settings":
|
319 |
{
|
320 |
+
"buffer_size": 29065,
|
321 |
"line_ending": "Unix"
|
322 |
}
|
323 |
},
|
690 |
"case_sensitive": false,
|
691 |
"find_history":
|
692 |
[
|
693 |
+
"title",
|
694 |
+
"CMS_TPV_CAN_DND",
|
695 |
+
"CMS_TPV_MOVE_PERMISSION",
|
696 |
+
"cms_tpv_version",
|
697 |
"wp_roles =",
|
698 |
"change",
|
699 |
"cms_tvp_setup_caps",
|
817 |
"ja, jag har läst",
|
818 |
"submit-confession-confirmation-message",
|
819 |
"u med och tävlar elle",
|
820 |
+
"n get_term_by"
|
|
|
|
|
|
|
|
|
821 |
],
|
822 |
"highlight": true,
|
823 |
"in_selection": false,
|
855 |
"semi_transient": false,
|
856 |
"settings":
|
857 |
{
|
858 |
+
"buffer_size": 62584,
|
859 |
"regions":
|
860 |
{
|
861 |
},
|
862 |
"selection":
|
863 |
[
|
864 |
[
|
865 |
+
41340,
|
866 |
+
41369
|
867 |
]
|
868 |
],
|
869 |
"settings":
|
908 |
"vendor-prefix": true,
|
909 |
"zero-units": "warning"
|
910 |
},
|
911 |
+
"function_name_status_row": 1291,
|
912 |
"gjslint_ignore":
|
913 |
[
|
914 |
110
|
962 |
"translate_tabs_to_spaces": false
|
963 |
},
|
964 |
"translation.x": 0.0,
|
965 |
+
"translation.y": 21615.0,
|
966 |
"zoom_level": 1.0
|
967 |
},
|
968 |
"stack_index": 0,
|
970 |
},
|
971 |
{
|
972 |
"buffer": 1,
|
|
|
973 |
"semi_transient": false,
|
974 |
"settings":
|
975 |
{
|
976 |
+
"buffer_size": 710,
|
977 |
"regions":
|
978 |
{
|
979 |
+
"match":
|
980 |
+
{
|
981 |
+
"flags": 112,
|
982 |
+
"regions":
|
983 |
+
[
|
984 |
+
[
|
985 |
+
250,
|
986 |
+
265
|
987 |
+
],
|
988 |
+
[
|
989 |
+
355,
|
990 |
+
370
|
991 |
+
],
|
992 |
+
[
|
993 |
+
610,
|
994 |
+
625
|
995 |
+
]
|
996 |
+
],
|
997 |
+
"scope": ""
|
998 |
+
}
|
999 |
},
|
1000 |
"selection":
|
1001 |
[
|
1002 |
[
|
1003 |
+
605,
|
1004 |
+
605
|
1005 |
]
|
1006 |
],
|
1007 |
"settings":
|
1008 |
{
|
1009 |
+
"detect_indentation": false,
|
1010 |
+
"function_name_status_row": 13,
|
1011 |
+
"line_numbers": false,
|
1012 |
+
"output_tag": 1,
|
1013 |
+
"result_base_dir": "",
|
1014 |
+
"result_file_regex": "^([A-Za-z\\\\/<].*):$",
|
1015 |
+
"result_line_regex": "^ +([0-9]+):",
|
1016 |
+
"scroll_past_end": true,
|
1017 |
+
"syntax": "Packages/Default/Find Results.hidden-tmLanguage"
|
1018 |
},
|
1019 |
"translation.x": 0.0,
|
1020 |
"translation.y": 0.0,
|
1021 |
"zoom_level": 1.0
|
1022 |
},
|
1023 |
+
"stack_index": 4,
|
1024 |
"type": "text"
|
1025 |
},
|
1026 |
{
|
1027 |
"buffer": 2,
|
1028 |
+
"file": "index.php",
|
1029 |
+
"semi_transient": false,
|
1030 |
+
"settings":
|
1031 |
+
{
|
1032 |
+
"buffer_size": 3156,
|
1033 |
+
"regions":
|
1034 |
+
{
|
1035 |
+
},
|
1036 |
+
"selection":
|
1037 |
+
[
|
1038 |
+
[
|
1039 |
+
2397,
|
1040 |
+
2415
|
1041 |
+
]
|
1042 |
+
],
|
1043 |
+
"settings":
|
1044 |
+
{
|
1045 |
+
"function_name_status_row": 64,
|
1046 |
+
"syntax": "Packages/PHP/PHP.tmLanguage",
|
1047 |
+
"tab_size": 4,
|
1048 |
+
"translate_tabs_to_spaces": true
|
1049 |
+
},
|
1050 |
+
"translation.x": 0.0,
|
1051 |
+
"translation.y": 705.0,
|
1052 |
+
"zoom_level": 1.0
|
1053 |
+
},
|
1054 |
+
"stack_index": 1,
|
1055 |
+
"type": "text"
|
1056 |
+
},
|
1057 |
+
{
|
1058 |
+
"buffer": 3,
|
1059 |
+
"file": "readme.txt",
|
1060 |
+
"semi_transient": false,
|
1061 |
+
"settings":
|
1062 |
+
{
|
1063 |
+
"buffer_size": 25330,
|
1064 |
+
"regions":
|
1065 |
+
{
|
1066 |
+
},
|
1067 |
+
"selection":
|
1068 |
+
[
|
1069 |
+
[
|
1070 |
+
3835,
|
1071 |
+
3835
|
1072 |
+
]
|
1073 |
+
],
|
1074 |
+
"settings":
|
1075 |
+
{
|
1076 |
+
"function_name_status_row": 116,
|
1077 |
+
"syntax": "Packages/Text/Plain text.tmLanguage"
|
1078 |
+
},
|
1079 |
+
"translation.x": 0.0,
|
1080 |
+
"translation.y": 1649.0,
|
1081 |
+
"zoom_level": 1.0
|
1082 |
+
},
|
1083 |
+
"stack_index": 2,
|
1084 |
+
"type": "text"
|
1085 |
+
},
|
1086 |
+
{
|
1087 |
+
"buffer": 4,
|
1088 |
"file": "scripts/cms_tree_page_view.js",
|
1089 |
"semi_transient": false,
|
1090 |
"settings":
|
1091 |
{
|
1092 |
+
"buffer_size": 29065,
|
1093 |
"regions":
|
1094 |
{
|
1095 |
},
|
1096 |
"selection":
|
1097 |
[
|
1098 |
[
|
1099 |
+
0,
|
1100 |
+
0
|
1101 |
]
|
1102 |
],
|
1103 |
"settings":
|
1104 |
{
|
1105 |
+
"function_name_status_row": 0,
|
1106 |
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
|
1107 |
"translate_tabs_to_spaces": false
|
1108 |
},
|
1109 |
"translation.x": 0.0,
|
1110 |
+
"translation.y": 0.0,
|
1111 |
"zoom_level": 1.0
|
1112 |
},
|
1113 |
+
"stack_index": 3,
|
1114 |
"type": "text"
|
1115 |
},
|
1116 |
{
|
1117 |
+
"buffer": 5,
|
1118 |
"file": "styles/styles.css",
|
1119 |
"semi_transient": false,
|
1120 |
"settings":
|
1686 |
"translation.y": 7605.0,
|
1687 |
"zoom_level": 1.0
|
1688 |
},
|
1689 |
+
"stack_index": 5,
|
1690 |
"type": "text"
|
1691 |
}
|
1692 |
]
|
functions.php
CHANGED
@@ -1288,6 +1288,9 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1288 |
}
|
1289 |
|
1290 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
|
|
|
|
|
|
1291 |
if (empty($title)) {
|
1292 |
$title = __("<Untitled page>", 'cms-tree-page-view');
|
1293 |
}
|
1288 |
}
|
1289 |
|
1290 |
$title = get_the_title($onePage->ID); // so hooks and stuff will do their work
|
1291 |
+
|
1292 |
+
$title = apply_filters("cms_tree_page_view_post_title", $title, $onePage);
|
1293 |
+
|
1294 |
if (empty($title)) {
|
1295 |
$title = __("<Untitled page>", 'cms-tree-page-view');
|
1296 |
}
|
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.
|
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.
|
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.27
|
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.27");
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__) . "/functions.php");
|
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.8
|
6 |
Tested up to: 3.9
|
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 & option to add multiple pages.
|
10 |
|
@@ -113,6 +113,10 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
116 |
= 1.2.26 =
|
117 |
- Roll back the feature with permissions to move pages. Too many people had problems with it.
|
118 |
|
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.27
|
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.27 =
|
117 |
+
|
118 |
+
- Add new filter "cms_tree_page_view_post_title". Use this filter to change to title being used to build the tree.
|
119 |
+
|
120 |
= 1.2.26 =
|
121 |
- Roll back the feature with permissions to move pages. Too many people had problems with it.
|
122 |
|