Version Description
- jquery.cookie.js renamed to jquery.biscuit.js to fix problems with apache module mod_security. let me know if it actually works! :)
- updated .pot-file, so translators out there may want to check if everything is up to date
Download this release
Release Info
Developer | eskapism |
Plugin | CMS Tree Page View |
Version | 0.5.7 |
Comparing to | |
See all releases |
Code changes from version 0.5.6 to 0.5.7
- functions.php +1 -1
- index.php +2 -2
- languages/cms-tree-page-view.pot +95 -62
- readme.txt +5 -1
- scripts/jquery.biscuit.js +96 -0
functions.php
CHANGED
@@ -34,7 +34,7 @@ function cms_tpv_admin_init() {
|
|
34 |
define( "CMS_TPV_PAGE_FILE", menu_page_url("cms-tpv-pages-page", false)); // this no longer feels nasty! :)
|
35 |
wp_enqueue_style( "cms_tpv_styles", CMS_TPV_URL . "styles/styles.css", false, CMS_TPV_VERSION );
|
36 |
wp_enqueue_style( "jquery-alerts", CMS_TPV_URL . "styles/jquery.alerts.css", false, CMS_TPV_VERSION );
|
37 |
-
wp_enqueue_script( "jquery-cookie", CMS_TPV_URL . "scripts/jquery.
|
38 |
wp_enqueue_script( "jquery-jstree", CMS_TPV_URL . "scripts/jquery.jstree.js", false, CMS_TPV_VERSION);
|
39 |
wp_enqueue_script( "jquery-alerts", CMS_TPV_URL . "scripts/jquery.alerts.js", false, CMS_TPV_VERSION);
|
40 |
|
34 |
define( "CMS_TPV_PAGE_FILE", menu_page_url("cms-tpv-pages-page", false)); // this no longer feels nasty! :)
|
35 |
wp_enqueue_style( "cms_tpv_styles", CMS_TPV_URL . "styles/styles.css", false, CMS_TPV_VERSION );
|
36 |
wp_enqueue_style( "jquery-alerts", CMS_TPV_URL . "styles/jquery.alerts.css", false, CMS_TPV_VERSION );
|
37 |
+
wp_enqueue_script( "jquery-cookie", CMS_TPV_URL . "scripts/jquery.biscuit.js", array("jquery")); // renamed from cookie to fix problems with mod_security
|
38 |
wp_enqueue_script( "jquery-jstree", CMS_TPV_URL . "scripts/jquery.jstree.js", false, CMS_TPV_VERSION);
|
39 |
wp_enqueue_script( "jquery-alerts", CMS_TPV_URL . "scripts/jquery.alerts.js", false, CMS_TPV_VERSION);
|
40 |
|
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. By using the tree you can edit, view, add pages and even search pages (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.5.
|
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", "0.5.
|
31 |
define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
|
32 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
33 |
|
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. By using the tree you can edit, view, add pages and even search pages (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.5.7
|
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", "0.5.7");
|
31 |
define( "CMS_TPV_URL", WP_PLUGIN_URL . '/cms-tree-page-view/');
|
32 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
33 |
|
languages/cms-tree-page-view.pot
CHANGED
@@ -1,130 +1,163 @@
|
|
1 |
# Translation of the WordPress plugin by .
|
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:
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
10 |
-
"POT-Creation-Date: 2010-
|
11 |
-
"PO-Revision-Date: 2010-
|
12 |
-
"Last-Translator:
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
|
18 |
-
#: functions.php:
|
19 |
-
msgid "
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: functions.php:
|
23 |
-
msgid "
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: functions.php:
|
27 |
-
msgid "
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: functions.php:
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: functions.php:
|
35 |
-
msgid "
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: functions.php:
|
39 |
-
msgid "
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: functions.php:
|
43 |
-
msgid "
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: functions.php:
|
47 |
-
msgid "
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: functions.php:
|
51 |
-
msgid "
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: functions.php:
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: functions.php:
|
59 |
-
msgid "
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: functions.php:
|
63 |
-
msgid "
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: functions.php:
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: functions.php:
|
71 |
-
msgid "
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: functions.php:
|
75 |
-
msgid "
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: functions.php:
|
79 |
-
msgid "
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: functions.php:
|
83 |
-
msgid "
|
84 |
msgstr ""
|
85 |
|
86 |
-
#:
|
87 |
-
|
88 |
-
msgid "Enter title of new page"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#:
|
92 |
-
msgid "
|
93 |
msgstr ""
|
94 |
|
95 |
-
#:
|
96 |
-
msgid "
|
97 |
msgstr ""
|
98 |
|
99 |
-
#:
|
100 |
-
msgid "
|
101 |
msgstr ""
|
102 |
|
103 |
-
#:
|
104 |
-
msgid "
|
105 |
msgstr ""
|
106 |
|
107 |
-
#:
|
108 |
-
msgid "
|
|
|
|
|
109 |
msgstr ""
|
110 |
|
111 |
-
#:
|
112 |
-
msgid "
|
113 |
msgstr ""
|
114 |
|
115 |
-
#:
|
116 |
-
msgid "
|
117 |
msgstr ""
|
118 |
|
119 |
-
#:
|
120 |
-
msgid "
|
121 |
msgstr ""
|
122 |
|
123 |
-
#:
|
124 |
-
msgid "
|
125 |
msgstr ""
|
126 |
|
127 |
-
#:
|
128 |
-
msgid "
|
129 |
msgstr ""
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Translation of the WordPress plugin by .
|
2 |
+
# Copyright (C) 2010
|
3 |
# This file is distributed under the same license as the package.
|
4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
#
|
6 |
+
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
+
"Project-Id-Version: \n"
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/cms-tree-page-view\n"
|
11 |
+
"POT-Creation-Date: 2010-06-30 19:00+0000\n"
|
12 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"MIME-Version: 1.0\n"
|
16 |
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
+
#: functions.php:45
|
20 |
+
msgid "Enter title of new page"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: functions.php:46
|
24 |
+
msgid "child pages"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: functions.php:47
|
28 |
+
msgid "Edit page"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: functions.php:48
|
32 |
+
msgid "View page"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: functions.php:49
|
36 |
+
msgid "Edit"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: functions.php:50
|
40 |
+
msgid "View"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: functions.php:51
|
44 |
+
msgid "Add page"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: functions.php:52
|
48 |
+
msgid "Add new page after"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: functions.php:53
|
52 |
+
msgid "after"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: functions.php:54
|
56 |
+
msgid "inside"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: functions.php:55
|
60 |
+
msgid "Add new page inside"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: functions.php:56
|
64 |
+
msgid "draft"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: functions.php:57
|
68 |
+
msgid "future"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: functions.php:58
|
72 |
+
msgid "protected"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: functions.php:59
|
76 |
+
msgid "pending"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: functions.php:60
|
80 |
+
msgid "private"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: functions.php:61
|
84 |
+
msgid "Password protected page"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: functions.php:113
|
88 |
+
msgid "settings"
|
|
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: functions.php:120
|
92 |
+
msgid "Show tree"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: functions.php:124
|
96 |
+
msgid "on the dashboard"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: functions.php:128
|
100 |
+
msgid "under the pages menu"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: functions.php:135
|
104 |
+
msgid "Save Changes"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: functions.php:150
|
108 |
+
msgid ""
|
109 |
+
"No pages found. Maybe you want to <a href='post-new.php?post_type=page'>add "
|
110 |
+
"a new page</a>?"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: functions.php:157
|
114 |
+
msgid "All"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: functions.php:158
|
118 |
+
msgid "Public"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: functions.php:160
|
122 |
+
msgid "Expand"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: functions.php:161
|
126 |
+
msgid "Collapse"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: functions.php:166
|
130 |
+
msgid "Clear search"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: functions.php:167
|
134 |
+
msgid "Search"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: functions.php:168
|
138 |
+
msgid "Searching..."
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: functions.php:173
|
142 |
+
msgid "Loading..."
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: functions.php:175
|
146 |
+
msgid "Search: no pages found"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: functions.php:177
|
150 |
+
msgid "Loading tree"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: functions.php:277
|
154 |
+
msgid "<Untitled page>"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: functions.php:295
|
158 |
+
msgid "Click to edit. Drag to move."
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: functions.php:432
|
162 |
+
msgid "New page"
|
163 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -47,8 +47,12 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
50 |
= 0.5.6 =
|
51 |
-
- password protected posts now show a lock icon (thanks to [Seebz](seebz.net) for contributing)
|
52 |
|
53 |
= 0.5.5 =
|
54 |
- ok, now the texts should be translated. for real! thanks for the bug report!
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 0.5.7 =
|
51 |
+
- jquery.cookie.js renamed to jquery.biscuit.js to fix problems with apache module mod_security. let me know if it actually works! :)
|
52 |
+
- updated .pot-file, so translators out there may want to check if everything is up to date
|
53 |
+
|
54 |
= 0.5.6 =
|
55 |
+
- password protected posts now show a lock icon (thanks to [Seebz](http://seebz.net) for contributing)
|
56 |
|
57 |
= 0.5.5 =
|
58 |
- ok, now the texts should be translated. for real! thanks for the bug report!
|
scripts/jquery.biscuit.js
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Cookie plugin
|
3 |
+
*
|
4 |
+
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
5 |
+
* Dual licensed under the MIT and GPL licenses:
|
6 |
+
* http://www.opensource.org/licenses/mit-license.php
|
7 |
+
* http://www.gnu.org/licenses/gpl.html
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Create a cookie with the given name and value and other optional parameters.
|
13 |
+
*
|
14 |
+
* @example $.cookie('the_cookie', 'the_value');
|
15 |
+
* @desc Set the value of a cookie.
|
16 |
+
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
17 |
+
* @desc Create a cookie with all available options.
|
18 |
+
* @example $.cookie('the_cookie', 'the_value');
|
19 |
+
* @desc Create a session cookie.
|
20 |
+
* @example $.cookie('the_cookie', null);
|
21 |
+
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
22 |
+
* used when the cookie was set.
|
23 |
+
*
|
24 |
+
* @param String name The name of the cookie.
|
25 |
+
* @param String value The value of the cookie.
|
26 |
+
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
27 |
+
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
28 |
+
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
29 |
+
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
30 |
+
* when the the browser exits.
|
31 |
+
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
32 |
+
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
33 |
+
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
34 |
+
* require a secure protocol (like HTTPS).
|
35 |
+
* @type undefined
|
36 |
+
*
|
37 |
+
* @name $.cookie
|
38 |
+
* @cat Plugins/Cookie
|
39 |
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
40 |
+
*/
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Get the value of a cookie with the given name.
|
44 |
+
*
|
45 |
+
* @example $.cookie('the_cookie');
|
46 |
+
* @desc Get the value of a cookie.
|
47 |
+
*
|
48 |
+
* @param String name The name of the cookie.
|
49 |
+
* @return The value of the cookie.
|
50 |
+
* @type String
|
51 |
+
*
|
52 |
+
* @name $.cookie
|
53 |
+
* @cat Plugins/Cookie
|
54 |
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
55 |
+
*/
|
56 |
+
jQuery.cookie = function(name, value, options) {
|
57 |
+
if (typeof value != 'undefined') { // name and value given, set cookie
|
58 |
+
options = options || {};
|
59 |
+
if (value === null) {
|
60 |
+
value = '';
|
61 |
+
options.expires = -1;
|
62 |
+
}
|
63 |
+
var expires = '';
|
64 |
+
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
65 |
+
var date;
|
66 |
+
if (typeof options.expires == 'number') {
|
67 |
+
date = new Date();
|
68 |
+
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
69 |
+
} else {
|
70 |
+
date = options.expires;
|
71 |
+
}
|
72 |
+
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
73 |
+
}
|
74 |
+
// CAUTION: Needed to parenthesize options.path and options.domain
|
75 |
+
// in the following expressions, otherwise they evaluate to undefined
|
76 |
+
// in the packed version for some reason...
|
77 |
+
var path = options.path ? '; path=' + (options.path) : '';
|
78 |
+
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
79 |
+
var secure = options.secure ? '; secure' : '';
|
80 |
+
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
81 |
+
} else { // only name given, get cookie
|
82 |
+
var cookieValue = null;
|
83 |
+
if (document.cookie && document.cookie != '') {
|
84 |
+
var cookies = document.cookie.split(';');
|
85 |
+
for (var i = 0; i < cookies.length; i++) {
|
86 |
+
var cookie = jQuery.trim(cookies[i]);
|
87 |
+
// Does this cookie string begin with the name we want?
|
88 |
+
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
89 |
+
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
90 |
+
break;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
return cookieValue;
|
95 |
+
}
|
96 |
+
};
|