Version Description
- Now the tree view is enabled by default for hiearchical post types. Should make it easier for new users to get started.
- Removed some annoying calls to console.log().
- Fixed bulk edit and quick edit not working for posts. Fixes http://wordpress.org/support/topic/breaks-bulk-edit-feature.
- Fixed error with removed users. Fixes http://wordpress.org/support/topic/better-wp-security-conflict-1.
- Order now also includes post_title instead of just menu_order. Fixes http://wordpress.org/support/topic/orderby-should-include-post_title.
- Updated norwegian translation.
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 1.2.14 |
Comparing to | |
See all releases |
Code changes from version 1.2.13 to 1.2.14
- cms-tree-page-view.sublime-project +9 -0
- functions.php +47 -16
- index.php +2 -2
- languages/cms-tree-page-view-nb_NO.mo +0 -0
- languages/cms-tree-page-view-nb_NO.po +277 -74
- readme.txt +10 -2
- scripts/cms_tree_page_view.js +1 -1
cms-tree-page-view.sublime-project
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"folders":
|
3 |
+
[
|
4 |
+
{
|
5 |
+
"follow_symlinks": true,
|
6 |
+
"path": "."
|
7 |
+
}
|
8 |
+
]
|
9 |
+
}
|
functions.php
CHANGED
@@ -230,7 +230,7 @@ function cms_tpv_add_pages() {
|
|
230 |
function cms_tpv_admin_head() {
|
231 |
|
232 |
if (!cms_tpv_is_one_of_our_pages()) return;
|
233 |
-
|
234 |
cms_tpv_setup_postsoverview();
|
235 |
|
236 |
global $cms_tpv_view;
|
@@ -368,9 +368,13 @@ function cms_tpv_admin_init() {
|
|
368 |
//wp_enqueue_script( "jquery-hotkeys" );
|
369 |
|
370 |
// add row to plugin page
|
371 |
-
|
372 |
add_filter( 'plugin_row_meta', 'cms_tpv_set_plugin_row_meta', 10, 2 );
|
373 |
|
|
|
|
|
|
|
|
|
|
|
374 |
}
|
375 |
|
376 |
/**
|
@@ -382,7 +386,7 @@ function cms_tpv_setup_postsoverview() {
|
|
382 |
$current_screen = get_current_screen();
|
383 |
|
384 |
if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
|
385 |
-
|
386 |
// Ok, this is a post overview page that we are enabled for
|
387 |
add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
|
388 |
|
@@ -431,7 +435,6 @@ function cmstpv_filter_views_edit_postsoverview($filter_var) {
|
|
431 |
ob_start();
|
432 |
cms_tpv_print_common_tree_stuff();
|
433 |
$tree_common_stuff = ob_get_clean();
|
434 |
-
|
435 |
/*
|
436 |
on non hierarcical post types this one exists:
|
437 |
tablenav-pages one-page
|
@@ -510,7 +513,7 @@ function cms_tpv_save_settings() {
|
|
510 |
$options["menu"] = isset( $_POST["post-type-menu"] ) ? (array) $_POST["post-type-menu"] : array();
|
511 |
$options["postsoverview"] = isset( $_POST["post-type-postsoverview"] ) ? (array) $_POST["post-type-postsoverview"] : array();
|
512 |
|
513 |
-
update_option('cms_tpv_options', $options);
|
514 |
|
515 |
}
|
516 |
|
@@ -788,7 +791,7 @@ function cms_tpv_get_wpml_post_counts($post_type) {
|
|
788 |
* Print tree stuff that is common for both dashboard and page
|
789 |
*/
|
790 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
791 |
-
|
792 |
global $sitepress, $cms_tpv_view, $wpdb;
|
793 |
|
794 |
if ( ! $post_type ) {
|
@@ -844,6 +847,7 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
844 |
$post_count_trash = $post_count->trash;
|
845 |
}
|
846 |
|
|
|
847 |
// output js for the root/top level
|
848 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
849 |
// @todo: make into function since used at other places
|
@@ -855,9 +859,12 @@ function cms_tpv_print_common_tree_stuff($post_type = "") {
|
|
855 |
$jstree_open[$i] = (int) str_replace("#cms-tpv-", "", $jstree_open[$i]);
|
856 |
}
|
857 |
}
|
|
|
|
|
858 |
ob_start();
|
859 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
860 |
$json_data = ob_get_clean();
|
|
|
861 |
if (! $json_data) $json_data = '{}';
|
862 |
?>
|
863 |
<script type="text/javascript">
|
@@ -1119,7 +1126,7 @@ function cms_tpv_get_pages($args = null) {
|
|
1119 |
|
1120 |
$get_posts_args = array(
|
1121 |
"numberposts" => "-1",
|
1122 |
-
"orderby" => "menu_order",
|
1123 |
"order" => "ASC",
|
1124 |
// "caller_get_posts" => 1, // get sticky posts in natural order (or so I understand it anyway). Deprecated since 3.1
|
1125 |
"ignore_sticky_posts" => 1,
|
@@ -1182,12 +1189,16 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1182 |
$arrPages = cms_tpv_get_pages("parent=$pageID&view=$view&post_type=$post_type");
|
1183 |
|
1184 |
if ($arrPages) {
|
1185 |
-
|
1186 |
global $current_screen;
|
1187 |
$screen = convert_to_screen("edit");
|
1188 |
-
|
1189 |
-
|
|
|
|
|
|
|
1190 |
|
|
|
1191 |
ob_start(); // some plugins, for example magic fields, return javascript and things here. we're not compatible with that, so just swallow any output
|
1192 |
$posts_columns = get_column_headers($screen);
|
1193 |
ob_get_clean();
|
@@ -1243,7 +1254,8 @@ function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $po
|
|
1243 |
|
1244 |
// last edited by
|
1245 |
setup_postdata($post);
|
1246 |
-
|
|
|
1247 |
if (empty($post_author)) {
|
1248 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1249 |
}
|
@@ -1725,6 +1737,10 @@ function bonny_d($var) {
|
|
1725 |
}
|
1726 |
|
1727 |
|
|
|
|
|
|
|
|
|
1728 |
function cms_tpv_install() {
|
1729 |
|
1730 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
@@ -1732,8 +1748,7 @@ function cms_tpv_install() {
|
|
1732 |
|
1733 |
// first install or pre custom posts version:
|
1734 |
// make sure pages are enabled by default
|
1735 |
-
|
1736 |
-
add_action("admin_init", "cms_tpv_setup_defaults", 999);
|
1737 |
|
1738 |
// set to current version
|
1739 |
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
@@ -1751,7 +1766,7 @@ function cms_tpv_setup_defaults() {
|
|
1751 |
#$version = 0; // uncomment to test default settings
|
1752 |
|
1753 |
if ($version <= 0) {
|
1754 |
-
|
1755 |
$options = array();
|
1756 |
|
1757 |
// Add pages to both dashboard and menu
|
@@ -1778,8 +1793,10 @@ function cms_tpv_setup_defaults() {
|
|
1778 |
|
1779 |
}
|
1780 |
|
1781 |
-
|
1782 |
-
|
|
|
|
|
1783 |
function cms_tpv_plugins_loaded($a) {
|
1784 |
$installed_version = get_option('cms_tpv_version', 0);
|
1785 |
#echo "installed_version: $installed_version";
|
@@ -1792,3 +1809,17 @@ function cms_tpv_plugins_loaded($a) {
|
|
1792 |
}
|
1793 |
|
1794 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
function cms_tpv_admin_head() {
|
231 |
|
232 |
if (!cms_tpv_is_one_of_our_pages()) return;
|
233 |
+
|
234 |
cms_tpv_setup_postsoverview();
|
235 |
|
236 |
global $cms_tpv_view;
|
368 |
//wp_enqueue_script( "jquery-hotkeys" );
|
369 |
|
370 |
// add row to plugin page
|
|
|
371 |
add_filter( 'plugin_row_meta', 'cms_tpv_set_plugin_row_meta', 10, 2 );
|
372 |
|
373 |
+
// @todo: register settings
|
374 |
+
#add_settings_section("cms_tree_page_view_settings", "cms_tree_page_view", "", "");
|
375 |
+
#register_setting( 'cms_tree_page_view_settings', "post-type-dashboard-post" );
|
376 |
+
|
377 |
+
|
378 |
}
|
379 |
|
380 |
/**
|
386 |
$current_screen = get_current_screen();
|
387 |
|
388 |
if ("edit" === $current_screen->base && in_array($current_screen->post_type, $options["postsoverview"])) {
|
389 |
+
|
390 |
// Ok, this is a post overview page that we are enabled for
|
391 |
add_filter("views_" . $current_screen->id, "cmstpv_filter_views_edit_postsoverview");
|
392 |
|
435 |
ob_start();
|
436 |
cms_tpv_print_common_tree_stuff();
|
437 |
$tree_common_stuff = ob_get_clean();
|
|
|
438 |
/*
|
439 |
on non hierarcical post types this one exists:
|
440 |
tablenav-pages one-page
|
513 |
$options["menu"] = isset( $_POST["post-type-menu"] ) ? (array) $_POST["post-type-menu"] : array();
|
514 |
$options["postsoverview"] = isset( $_POST["post-type-postsoverview"] ) ? (array) $_POST["post-type-postsoverview"] : array();
|
515 |
|
516 |
+
update_option('cms_tpv_options', $options);
|
517 |
|
518 |
}
|
519 |
|
791 |
* Print tree stuff that is common for both dashboard and page
|
792 |
*/
|
793 |
function cms_tpv_print_common_tree_stuff($post_type = "") {
|
794 |
+
|
795 |
global $sitepress, $cms_tpv_view, $wpdb;
|
796 |
|
797 |
if ( ! $post_type ) {
|
847 |
$post_count_trash = $post_count->trash;
|
848 |
}
|
849 |
|
850 |
+
|
851 |
// output js for the root/top level
|
852 |
// function cms_tpv_print_childs($pageID, $view = "all", $arrOpenChilds = null, $post_type) {
|
853 |
// @todo: make into function since used at other places
|
859 |
$jstree_open[$i] = (int) str_replace("#cms-tpv-", "", $jstree_open[$i]);
|
860 |
}
|
861 |
}
|
862 |
+
|
863 |
+
|
864 |
ob_start();
|
865 |
cms_tpv_print_childs(0, $cms_tpv_view, $jstree_open, $post_type);
|
866 |
$json_data = ob_get_clean();
|
867 |
+
|
868 |
if (! $json_data) $json_data = '{}';
|
869 |
?>
|
870 |
<script type="text/javascript">
|
1126 |
|
1127 |
$get_posts_args = array(
|
1128 |
"numberposts" => "-1",
|
1129 |
+
"orderby" => "menu_order title",
|
1130 |
"order" => "ASC",
|
1131 |
// "caller_get_posts" => 1, // get sticky posts in natural order (or so I understand it anyway). Deprecated since 3.1
|
1132 |
"ignore_sticky_posts" => 1,
|
1189 |
$arrPages = cms_tpv_get_pages("parent=$pageID&view=$view&post_type=$post_type");
|
1190 |
|
1191 |
if ($arrPages) {
|
1192 |
+
|
1193 |
global $current_screen;
|
1194 |
$screen = convert_to_screen("edit");
|
1195 |
+
#return;
|
1196 |
+
|
1197 |
+
// If this is set to null then quick/bul edit stops working on posts (not pages)
|
1198 |
+
// If did set it to null sometime. Can't remember why...
|
1199 |
+
// $screen->post_type = null;
|
1200 |
|
1201 |
+
$post_type_object = get_post_type_object($post_type);
|
1202 |
ob_start(); // some plugins, for example magic fields, return javascript and things here. we're not compatible with that, so just swallow any output
|
1203 |
$posts_columns = get_column_headers($screen);
|
1204 |
ob_get_clean();
|
1254 |
|
1255 |
// last edited by
|
1256 |
setup_postdata($post);
|
1257 |
+
|
1258 |
+
$post_author = cms_tpv_get_the_modified_author();
|
1259 |
if (empty($post_author)) {
|
1260 |
$post_author = __("Unknown user", 'cms-tree-page-view');
|
1261 |
}
|
1737 |
}
|
1738 |
|
1739 |
|
1740 |
+
/**
|
1741 |
+
* Install function
|
1742 |
+
* Called from hook register_activation_hook()
|
1743 |
+
*/
|
1744 |
function cms_tpv_install() {
|
1745 |
|
1746 |
// after upgrading/re-enabling the plugin, also re-enable the little please-donate-box
|
1748 |
|
1749 |
// first install or pre custom posts version:
|
1750 |
// make sure pages are enabled by default
|
1751 |
+
cms_tpv_setup_defaults();
|
|
|
1752 |
|
1753 |
// set to current version
|
1754 |
update_option('cms_tpv_version', CMS_TPV_VERSION);
|
1766 |
#$version = 0; // uncomment to test default settings
|
1767 |
|
1768 |
if ($version <= 0) {
|
1769 |
+
#error_log("tree: setup defaults, beacuse db version less than 0");
|
1770 |
$options = array();
|
1771 |
|
1772 |
// Add pages to both dashboard and menu
|
1793 |
|
1794 |
}
|
1795 |
|
1796 |
+
/**
|
1797 |
+
* when plugins are loaded, check if current plugin version is same as stored
|
1798 |
+
* if not = it's an upgrade. right?
|
1799 |
+
*/
|
1800 |
function cms_tpv_plugins_loaded($a) {
|
1801 |
$installed_version = get_option('cms_tpv_version', 0);
|
1802 |
#echo "installed_version: $installed_version";
|
1809 |
}
|
1810 |
|
1811 |
}
|
1812 |
+
|
1813 |
+
/**
|
1814 |
+
* modified version of get_the_modified_author() that checks that user was retrieved before applying filters
|
1815 |
+
* according to http://wordpress.org/support/topic/better-wp-security-conflict-1?replies=7 some users
|
1816 |
+
* had problems when a user had been deleted
|
1817 |
+
*/
|
1818 |
+
function cms_tpv_get_the_modified_author() {
|
1819 |
+
if ( $last_id = get_post_meta( get_post()->ID, '_edit_last', true) ) {
|
1820 |
+
$last_user = get_userdata($last_id);
|
1821 |
+
if( $last_user !== false ){
|
1822 |
+
return apply_filters('the_modified_author', $last_user->display_name);
|
1823 |
+
}
|
1824 |
+
}
|
1825 |
+
}
|
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.14
|
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.14");
|
31 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
32 |
|
33 |
require(dirname(__FILE__) . "/functions.php");
|
languages/cms-tree-page-view-nb_NO.mo
ADDED
Binary file
|
languages/cms-tree-page-view-nb_NO.po
CHANGED
@@ -1,161 +1,364 @@
|
|
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: \n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
10 |
-
"POT-Creation-Date:
|
11 |
-
"PO-Revision-Date: 2011-06-22 11:37+0100\n"
|
12 |
-
"Last-Translator: Eigil Moe <1@eigil.biz>\n"
|
13 |
-
"Language-Team: \n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
-
"Content-Type: text/plain; charset=
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
19 |
msgid "Enter title of new page"
|
20 |
-
msgstr "Skriv inn
|
21 |
|
22 |
-
#: functions.php:
|
23 |
msgid "child pages"
|
24 |
-
msgstr "
|
25 |
|
26 |
-
#: functions.php:
|
27 |
msgid "Edit page"
|
28 |
-
msgstr "Rediger
|
29 |
|
30 |
-
#: functions.php:
|
31 |
msgid "View page"
|
32 |
-
msgstr "
|
33 |
|
34 |
-
#: functions.php:
|
35 |
msgid "Edit"
|
36 |
msgstr "Rediger"
|
37 |
|
38 |
-
#: functions.php:
|
39 |
msgid "View"
|
40 |
-
msgstr "
|
41 |
|
42 |
-
#: functions.php:
|
43 |
msgid "Add page"
|
44 |
msgstr "Legg til side"
|
45 |
|
46 |
-
#: functions.php:
|
47 |
msgid "Add new page after"
|
48 |
msgstr "Legg til ny side etter"
|
49 |
|
50 |
-
#: functions.php:
|
51 |
msgid "after"
|
52 |
msgstr "etter"
|
53 |
|
54 |
-
#: functions.php:
|
55 |
msgid "inside"
|
56 |
msgstr "inne i"
|
57 |
|
58 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
msgid "Add new page inside"
|
60 |
msgstr "Legg til ny side inne i"
|
61 |
|
62 |
-
#: functions.php:
|
63 |
msgid "draft"
|
64 |
msgstr "kladd"
|
65 |
|
66 |
-
#: functions.php:
|
67 |
msgid "future"
|
68 |
-
msgstr "
|
69 |
|
70 |
-
#: functions.php:
|
71 |
msgid "protected"
|
72 |
-
msgstr "
|
73 |
|
74 |
-
#: functions.php:
|
75 |
msgid "pending"
|
76 |
-
msgstr "
|
77 |
|
78 |
-
#: functions.php:
|
79 |
msgid "private"
|
80 |
msgstr "privat"
|
81 |
|
82 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
83 |
msgid "Password protected page"
|
84 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
msgid "settings"
|
88 |
msgstr "innstillinger"
|
89 |
|
90 |
-
#: functions.php:
|
91 |
-
msgid "
|
92 |
-
msgstr "
|
93 |
|
94 |
-
#: functions.php:
|
95 |
-
msgid "
|
96 |
-
msgstr "
|
97 |
|
98 |
-
#: functions.php:
|
99 |
-
msgid "
|
100 |
-
msgstr "
|
101 |
|
102 |
-
#: functions.php:
|
103 |
-
msgid "
|
104 |
-
msgstr "
|
105 |
|
106 |
-
#: functions.php:
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: functions.php:
|
111 |
msgid "All"
|
112 |
msgstr "Alle"
|
113 |
|
114 |
-
#: functions.php:
|
115 |
msgid "Public"
|
116 |
msgstr "Offentlig"
|
117 |
|
118 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
119 |
msgid "Expand"
|
120 |
-
msgstr "
|
121 |
|
122 |
-
#: functions.php:
|
123 |
msgid "Collapse"
|
124 |
-
msgstr "
|
125 |
|
126 |
-
#: functions.php:
|
127 |
msgid "Clear search"
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#: functions.php:
|
131 |
msgid "Search"
|
132 |
msgstr "Søk"
|
133 |
|
134 |
-
#: functions.php:
|
135 |
msgid "Searching..."
|
136 |
-
msgstr "Søker
|
137 |
|
138 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
139 |
msgid "Loading..."
|
140 |
-
msgstr "Laster
|
141 |
|
142 |
-
#: functions.php:
|
143 |
msgid "Search: no pages found"
|
144 |
-
msgstr "Søk:
|
145 |
|
146 |
-
#: functions.php:
|
147 |
msgid "Loading tree"
|
148 |
-
msgstr "Laster
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
msgid "<Untitled page>"
|
152 |
-
msgstr "<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
-
#: functions.php:
|
155 |
-
|
156 |
-
|
|
|
157 |
|
158 |
-
#: functions.php:
|
|
|
|
|
|
|
|
|
|
|
159 |
msgid "New page"
|
160 |
msgstr "Ny side"
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013
|
|
|
2 |
# This file is distributed under the same license as the package.
|
|
|
|
|
3 |
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: 2013-04-16 17:39:45+00:00\n"
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2013-06-30 19:31+0100\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
"X-Generator: Poedit 1.5.5\n"
|
15 |
|
16 |
+
#: functions.php:66 functions.php:113 functions.php:1396
|
17 |
+
msgid "Cheatin’ uh?"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: functions.php:321
|
21 |
msgid "Enter title of new page"
|
22 |
+
msgstr "Skriv inn tittel op ny side"
|
23 |
|
24 |
+
#: functions.php:322
|
25 |
msgid "child pages"
|
26 |
+
msgstr "undersider"
|
27 |
|
28 |
+
#: functions.php:323 functions.php:970
|
29 |
msgid "Edit page"
|
30 |
+
msgstr "Rediger side"
|
31 |
|
32 |
+
#: functions.php:324 functions.php:971
|
33 |
msgid "View page"
|
34 |
+
msgstr "Se side"
|
35 |
|
36 |
+
#: functions.php:325 functions.php:970
|
37 |
msgid "Edit"
|
38 |
msgstr "Rediger"
|
39 |
|
40 |
+
#: functions.php:326 functions.php:971
|
41 |
msgid "View"
|
42 |
+
msgstr "Se på"
|
43 |
|
44 |
+
#: functions.php:327
|
45 |
msgid "Add page"
|
46 |
msgstr "Legg til side"
|
47 |
|
48 |
+
#: functions.php:328 functions.php:979
|
49 |
msgid "Add new page after"
|
50 |
msgstr "Legg til ny side etter"
|
51 |
|
52 |
+
#: functions.php:329
|
53 |
msgid "after"
|
54 |
msgstr "etter"
|
55 |
|
56 |
+
#: functions.php:330
|
57 |
msgid "inside"
|
58 |
msgstr "inne i"
|
59 |
|
60 |
+
#: functions.php:331
|
61 |
+
msgid "Sorry, can't create a sub page to a page with status \"draft\"."
|
62 |
+
msgstr "Beklager, kan ikke legge til underside med status \"kladd\"."
|
63 |
+
|
64 |
+
#: functions.php:332
|
65 |
+
msgid "Sorry, can't create a sub page to a page with status \"trash\"."
|
66 |
+
msgstr "Beklager, kan ikke legge til underside med status \"søppel\"."
|
67 |
+
|
68 |
+
#: functions.php:333
|
69 |
+
msgid "Sorry, can't create a page after a page with status \"trash\"."
|
70 |
+
msgstr ""
|
71 |
+
"Beklager, kan ikke legge til en side etter en side med status \"søppel\"."
|
72 |
+
|
73 |
+
#: functions.php:334 functions.php:984
|
74 |
msgid "Add new page inside"
|
75 |
msgstr "Legg til ny side inne i"
|
76 |
|
77 |
+
#: functions.php:335 functions.php:341
|
78 |
msgid "draft"
|
79 |
msgstr "kladd"
|
80 |
|
81 |
+
#: functions.php:336 functions.php:342
|
82 |
msgid "future"
|
83 |
+
msgstr "fremtid"
|
84 |
|
85 |
+
#: functions.php:337 functions.php:343
|
86 |
msgid "protected"
|
87 |
+
msgstr "beskyttet"
|
88 |
|
89 |
+
#: functions.php:338 functions.php:344 functions.php:1296
|
90 |
msgid "pending"
|
91 |
+
msgstr "ventende"
|
92 |
|
93 |
+
#: functions.php:339 functions.php:345
|
94 |
msgid "private"
|
95 |
msgstr "privat"
|
96 |
|
97 |
+
#: functions.php:340 functions.php:346
|
98 |
+
msgid "trash"
|
99 |
+
msgstr "søppel"
|
100 |
+
|
101 |
+
#: functions.php:347
|
102 |
msgid "Password protected page"
|
103 |
+
msgstr "passorbeskyttet side"
|
104 |
+
|
105 |
+
#: functions.php:348
|
106 |
+
msgid "Adding page..."
|
107 |
+
msgstr "Legger til side.."
|
108 |
+
|
109 |
+
#: functions.php:349
|
110 |
+
msgid "Adding ..."
|
111 |
+
msgstr "Legger til.."
|
112 |
|
113 |
+
#: functions.php:350 functions.php:1057
|
114 |
+
msgid "No posts found."
|
115 |
+
msgstr "Ingen innlegg funnet"
|
116 |
+
|
117 |
+
#: functions.php:448
|
118 |
+
msgid "Tree View"
|
119 |
+
msgstr "Tremeny"
|
120 |
+
|
121 |
+
#: functions.php:457
|
122 |
+
msgid "List View"
|
123 |
+
msgstr "Listemeny"
|
124 |
+
|
125 |
+
#: functions.php:493
|
126 |
+
msgid "Settings"
|
127 |
+
msgstr "Innstillinger"
|
128 |
+
|
129 |
+
#: functions.php:533
|
130 |
+
msgctxt "name of dashboard"
|
131 |
+
msgid "%1$s Tree"
|
132 |
+
msgstr "%1$s Tre"
|
133 |
+
|
134 |
+
#: functions.php:571
|
135 |
+
msgctxt "name in menu"
|
136 |
+
msgid "Tree View"
|
137 |
+
msgstr "Tremeny"
|
138 |
+
|
139 |
+
#: functions.php:572
|
140 |
+
msgctxt "title on page with tree"
|
141 |
+
msgid "%1$s Tree View"
|
142 |
+
msgstr "%1$s Tremeny"
|
143 |
+
|
144 |
+
#: functions.php:592
|
145 |
msgid "settings"
|
146 |
msgstr "innstillinger"
|
147 |
|
148 |
+
#: functions.php:598
|
149 |
+
msgid "Select where to show a tree for pages and custom post types"
|
150 |
+
msgstr ""
|
151 |
|
152 |
+
#: functions.php:642
|
153 |
+
msgid "On dashboard"
|
154 |
+
msgstr ""
|
155 |
|
156 |
+
#: functions.php:646
|
157 |
+
msgid "In menu"
|
158 |
+
msgstr ""
|
159 |
|
160 |
+
#: functions.php:650
|
161 |
+
msgid "On post overview screen"
|
162 |
+
msgstr ""
|
163 |
|
164 |
+
#: functions.php:669
|
165 |
+
msgid "Save Changes"
|
166 |
+
msgstr "Lagre endringer"
|
167 |
|
168 |
+
#: functions.php:913
|
169 |
msgid "All"
|
170 |
msgstr "Alle"
|
171 |
|
172 |
+
#: functions.php:918
|
173 |
msgid "Public"
|
174 |
msgstr "Offentlig"
|
175 |
|
176 |
+
#: functions.php:923
|
177 |
+
msgid "Trash"
|
178 |
+
msgstr "Søppel"
|
179 |
+
|
180 |
+
#: functions.php:931
|
181 |
msgid "Expand"
|
182 |
+
msgstr "Utvid"
|
183 |
|
184 |
+
#: functions.php:932
|
185 |
msgid "Collapse"
|
186 |
+
msgstr "Kollapse"
|
187 |
|
188 |
+
#: functions.php:940
|
189 |
msgid "Clear search"
|
190 |
+
msgstr "Slett søk"
|
191 |
|
192 |
+
#: functions.php:941
|
193 |
msgid "Search"
|
194 |
msgstr "Søk"
|
195 |
|
196 |
+
#: functions.php:942
|
197 |
msgid "Searching..."
|
198 |
+
msgstr "Søker.."
|
199 |
|
200 |
+
#: functions.php:943
|
201 |
+
msgid "Nothing found."
|
202 |
+
msgstr "Ingenting funnet."
|
203 |
+
|
204 |
+
#: functions.php:950
|
205 |
msgid "Loading..."
|
206 |
+
msgstr "Laster.."
|
207 |
|
208 |
+
#: functions.php:955
|
209 |
msgid "Search: no pages found"
|
210 |
+
msgstr "Søk: Ingen sider funnet"
|
211 |
|
212 |
+
#: functions.php:958
|
213 |
msgid "Loading tree"
|
214 |
+
msgstr "Laster treet"
|
215 |
+
|
216 |
+
#: functions.php:979 functions.php:1016
|
217 |
+
msgid "After"
|
218 |
+
msgstr "Etter"
|
219 |
+
|
220 |
+
#: functions.php:984 functions.php:1017
|
221 |
+
msgid "Inside"
|
222 |
+
msgstr "Inne i"
|
223 |
+
|
224 |
+
#: functions.php:988
|
225 |
+
msgid "Can not create page inside of a page with draft status"
|
226 |
+
msgstr "Kan ikke lage en side inne i en side med status kladd"
|
227 |
+
|
228 |
+
#: functions.php:1005
|
229 |
+
msgid "Add page(s)"
|
230 |
+
msgstr "Legg til side(r)"
|
231 |
+
|
232 |
+
#: functions.php:1010
|
233 |
+
msgid "Enter title here"
|
234 |
+
msgstr "Legg til tittel her"
|
235 |
+
|
236 |
+
#: functions.php:1015
|
237 |
+
msgid "Position"
|
238 |
+
msgstr "Stilling"
|
239 |
+
|
240 |
+
#: functions.php:1022
|
241 |
+
msgid "Status"
|
242 |
+
msgstr "Status"
|
243 |
+
|
244 |
+
#: functions.php:1023
|
245 |
+
msgid "Draft"
|
246 |
+
msgstr "Kladd"
|
247 |
+
|
248 |
+
#: functions.php:1024
|
249 |
+
msgid "Published"
|
250 |
+
msgstr "Publisert"
|
251 |
+
|
252 |
+
#: functions.php:1028
|
253 |
+
msgid "Add"
|
254 |
+
msgstr "Legg til"
|
255 |
+
|
256 |
+
#: functions.php:1029
|
257 |
+
msgid "or"
|
258 |
+
msgstr "eller"
|
259 |
|
260 |
+
#: functions.php:1030
|
261 |
+
msgid "cancel"
|
262 |
+
msgstr "avbryte"
|
263 |
+
|
264 |
+
#: functions.php:1040
|
265 |
+
msgid "Last modified"
|
266 |
+
msgstr "Sist endret"
|
267 |
+
|
268 |
+
#: functions.php:1042
|
269 |
+
msgid "by"
|
270 |
+
msgstr "av"
|
271 |
+
|
272 |
+
#: functions.php:1045
|
273 |
+
msgid "Page ID"
|
274 |
+
msgstr "Sidens ID"
|
275 |
+
|
276 |
+
#: functions.php:1088
|
277 |
+
msgctxt "headline of page with tree"
|
278 |
+
msgid "%1$s Tree View"
|
279 |
+
msgstr "%1$s Tremeny"
|
280 |
+
|
281 |
+
#: functions.php:1248
|
282 |
+
msgid "Unknown user"
|
283 |
+
msgstr "Ukjent bruker"
|
284 |
+
|
285 |
+
#: functions.php:1253
|
286 |
msgid "<Untitled page>"
|
287 |
+
msgstr "<Ukjent side>"
|
288 |
+
|
289 |
+
#: functions.php:1286
|
290 |
+
msgid "Comments"
|
291 |
+
msgstr "Kommentarer"
|
292 |
+
|
293 |
+
#: functions.php:1293
|
294 |
+
msgid "%s pending"
|
295 |
+
msgstr "%s venter"
|
296 |
+
|
297 |
+
#: functions.php:1303
|
298 |
+
msgctxt "comment count"
|
299 |
+
msgid "0"
|
300 |
+
msgstr "0"
|
301 |
|
302 |
+
#: functions.php:1303
|
303 |
+
msgctxt "comment count"
|
304 |
+
msgid "1"
|
305 |
+
msgstr "1"
|
306 |
|
307 |
+
#: functions.php:1303
|
308 |
+
msgctxt "comment count"
|
309 |
+
msgid "%"
|
310 |
+
msgstr "%"
|
311 |
+
|
312 |
+
#: functions.php:1502
|
313 |
msgid "New page"
|
314 |
msgstr "Ny side"
|
315 |
|
316 |
+
#: functions.php:1692
|
317 |
+
msgid "Thanks for using my plugin"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#: functions.php:1694
|
321 |
+
msgid ""
|
322 |
+
"Hi there! I just wanna says thanks for using my plugin. I hope you like it "
|
323 |
+
"as much as I do."
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: functions.php:1695
|
327 |
+
msgid "/Pär Thernström - plugin creator"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: functions.php:1697
|
331 |
+
msgid "I like this plugin<br>– how can I thank you?"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: functions.php:1698
|
335 |
+
msgid "There are serveral ways for you to show your appreciation:"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
+
#: functions.php:1700
|
339 |
+
msgid ""
|
340 |
+
"<a href=\"%1$s\">Give it a nice review</a> over at the WordPress Plugin "
|
341 |
+
"Directory"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: functions.php:1701
|
345 |
+
msgid "<a href=\"%1$s\">Give a donation</a> – any amount will make me happy"
|
346 |
+
msgstr ""
|
347 |
+
|
348 |
+
#: functions.php:1702
|
349 |
+
msgid ""
|
350 |
+
"<a href=\"%1$s\">Post a nice tweet</a> or make a nice blog post about the "
|
351 |
+
"plugin"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: functions.php:1705
|
355 |
+
msgid "Support"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: functions.php:1706
|
359 |
+
msgid "Plese see the <a href=\"%1$s\">support forum</a> for help."
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: functions.php:1710
|
363 |
+
msgid "Hide until next upgrade"
|
364 |
+
msgstr ""
|
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.5.1
|
6 |
-
Tested up to: 3.
|
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 |
|
@@ -111,6 +111,14 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
= 1.2.13 =
|
115 |
- Added Serbo-Croatian translation by Andrijana Nikolic from [webhostinggeeks](http://webhostinggeeks.com/)
|
116 |
|
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.5.1
|
6 |
+
Tested up to: 3.6.1
|
7 |
+
Stable tag: 1.2.14
|
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.14 =
|
115 |
+
- Now the tree view is enabled by default for hiearchical post types. Should make it easier for new users to get started.
|
116 |
+
- Removed some annoying calls to console.log().
|
117 |
+
- Fixed bulk edit and quick edit not working for posts. Fixes http://wordpress.org/support/topic/breaks-bulk-edit-feature.
|
118 |
+
- Fixed error with removed users. Fixes http://wordpress.org/support/topic/better-wp-security-conflict-1.
|
119 |
+
- Order now also includes post_title instead of just menu_order. Fixes http://wordpress.org/support/topic/orderby-should-include-post_title.
|
120 |
+
- Updated norwegian translation.
|
121 |
+
|
122 |
= 1.2.13 =
|
123 |
- Added Serbo-Croatian translation by Andrijana Nikolic from [webhostinggeeks](http://webhostinggeeks.com/)
|
124 |
|
scripts/cms_tree_page_view.js
CHANGED
@@ -152,7 +152,7 @@ var cms_tree_page_view = (function ($) {
|
|
152 |
*/
|
153 |
my.log = function(what) {
|
154 |
if (typeof(window.console) === "object" && typeof(window.console.log) === "function" ) {
|
155 |
-
console.log(what);
|
156 |
}
|
157 |
};
|
158 |
|
152 |
*/
|
153 |
my.log = function(what) {
|
154 |
if (typeof(window.console) === "object" && typeof(window.console.log) === "function" ) {
|
155 |
+
// console.log(what);
|
156 |
}
|
157 |
};
|
158 |
|