Version Description
- Swedish translation added
- Moved load_plugin_textdomain to action "menu" instead of "init"
Download this release
Release Info
Developer | eskapism |
Plugin | Admin Menu Tree Page View |
Version | 0.5 |
Comparing to | |
See all releases |
Code changes from version 0.4 to 0.5
- index.php +10 -11
- languages/admin-menu-tree-page-view-sv_SE.mo +0 -0
- languages/admin-menu-tree-page-view-sv_SE.po +53 -0
- languages/admin-menu-tree-page-view.pot +53 -0
- readme.txt +4 -0
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Admin Menu Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/admin-menu-tree-page-view/
|
5 |
Description: Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages.
|
6 |
-
Version: 0.
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
@@ -29,23 +29,20 @@ License: GPL2
|
|
29 |
Admin Menu Tree Page View
|
30 |
admin-menu-tree-page-view
|
31 |
*/
|
32 |
-
add_action('admin_menu', 'admin_menu_tree_page_view_admin_menu');
|
33 |
add_action("admin_head", "admin_menu_tree_page_view_admin_head");
|
|
|
34 |
add_action("admin_init", "admin_menu_tree_page_view_admin_init");
|
35 |
add_action('wp_ajax_admin_menu_tree_page_view_add_page', 'admin_menu_tree_page_view_add_page');
|
36 |
|
37 |
function admin_menu_tree_page_view_admin_init() {
|
38 |
|
39 |
-
define( "admin_menu_tree_page_view_VERSION", "0.
|
40 |
define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
|
41 |
|
42 |
-
load_plugin_textdomain('admin-menu-tree-page-view', false, "/admin-menu-tree-page-view/languages");
|
43 |
-
|
44 |
wp_enqueue_style("admin_menu_tree_page_view_styles", admin_menu_tree_page_view_URL . "styles.css", false, admin_menu_tree_page_view_VERSION);
|
45 |
wp_enqueue_script("jquery.highlight", admin_menu_tree_page_view_URL . "jquery.highlight.js", array("jquery"));
|
46 |
wp_enqueue_script("admin_menu_tree_page_view", admin_menu_tree_page_view_URL . "scripts.js", array("jquery"));
|
47 |
|
48 |
-
|
49 |
$oLocale = array(
|
50 |
"Edit" => __("Edit", 'admin-menu-tree-page-view'),
|
51 |
"View" => __("View", 'admin-menu-tree-page-view'),
|
@@ -57,11 +54,11 @@ function admin_menu_tree_page_view_admin_init() {
|
|
57 |
}
|
58 |
|
59 |
function admin_menu_tree_page_view_admin_head() {
|
|
|
60 |
}
|
61 |
|
62 |
function admin_menu_tree_page_view_get_pages($args) {
|
63 |
|
64 |
-
|
65 |
#$pages = get_pages($args);
|
66 |
|
67 |
$defaults = array(
|
@@ -89,7 +86,7 @@ function admin_menu_tree_page_view_get_pages($args) {
|
|
89 |
$status_span .= "<span class='admin-menu-tree-page-view-protected'></span>";
|
90 |
}
|
91 |
if ($one_page->post_status != "publish") {
|
92 |
-
$status_span .= "<span class='admin-menu-tree-page-view-status admin-menu-tree-page-view-status-{$one_page->post_status}'>".__($one_page->post_status)."</span>";
|
93 |
}
|
94 |
|
95 |
$output .= "<li class='$class'>";
|
@@ -122,6 +119,8 @@ function admin_menu_tree_page_view_get_pages($args) {
|
|
122 |
|
123 |
function admin_menu_tree_page_view_admin_menu() {
|
124 |
|
|
|
|
|
125 |
// add main menu
|
126 |
#add_menu_page( "title", "Simple Menu Pages", "edit_pages", "admin-menu-tree-page-tree_main", "bonnyFunction", null, 5);
|
127 |
|
@@ -129,11 +128,11 @@ function admin_menu_tree_page_view_admin_menu() {
|
|
129 |
$output = "
|
130 |
</a>
|
131 |
<ul class='admin-menu-tree-page-tree'>
|
132 |
-
<li class='admin-menu-tree-page-tree_headline'>" . __("Pages",
|
133 |
<li class='admin-menu-tree-page-filter'>
|
134 |
-
<label>".__("Search",
|
135 |
<input type='text' class='' />
|
136 |
-
<div class='admin-menu-tree-page-filter-reset' title='".__("Reset search and show all pages",
|
137 |
</li>
|
138 |
";
|
139 |
|
3 |
Plugin Name: Admin Menu Tree Page View
|
4 |
Plugin URI: http://eskapism.se/code-playground/admin-menu-tree-page-view/
|
5 |
Description: Adds a tree of all your pages or custom posts. Use drag & drop to reorder your pages, and edit, view, add, and search your pages.
|
6 |
+
Version: 0.5
|
7 |
Author: Pär Thernström
|
8 |
Author URI: http://eskapism.se/
|
9 |
License: GPL2
|
29 |
Admin Menu Tree Page View
|
30 |
admin-menu-tree-page-view
|
31 |
*/
|
|
|
32 |
add_action("admin_head", "admin_menu_tree_page_view_admin_head");
|
33 |
+
add_action('admin_menu', 'admin_menu_tree_page_view_admin_menu');
|
34 |
add_action("admin_init", "admin_menu_tree_page_view_admin_init");
|
35 |
add_action('wp_ajax_admin_menu_tree_page_view_add_page', 'admin_menu_tree_page_view_add_page');
|
36 |
|
37 |
function admin_menu_tree_page_view_admin_init() {
|
38 |
|
39 |
+
define( "admin_menu_tree_page_view_VERSION", "0.5" );
|
40 |
define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
|
41 |
|
|
|
|
|
42 |
wp_enqueue_style("admin_menu_tree_page_view_styles", admin_menu_tree_page_view_URL . "styles.css", false, admin_menu_tree_page_view_VERSION);
|
43 |
wp_enqueue_script("jquery.highlight", admin_menu_tree_page_view_URL . "jquery.highlight.js", array("jquery"));
|
44 |
wp_enqueue_script("admin_menu_tree_page_view", admin_menu_tree_page_view_URL . "scripts.js", array("jquery"));
|
45 |
|
|
|
46 |
$oLocale = array(
|
47 |
"Edit" => __("Edit", 'admin-menu-tree-page-view'),
|
48 |
"View" => __("View", 'admin-menu-tree-page-view'),
|
54 |
}
|
55 |
|
56 |
function admin_menu_tree_page_view_admin_head() {
|
57 |
+
|
58 |
}
|
59 |
|
60 |
function admin_menu_tree_page_view_get_pages($args) {
|
61 |
|
|
|
62 |
#$pages = get_pages($args);
|
63 |
|
64 |
$defaults = array(
|
86 |
$status_span .= "<span class='admin-menu-tree-page-view-protected'></span>";
|
87 |
}
|
88 |
if ($one_page->post_status != "publish") {
|
89 |
+
$status_span .= "<span class='admin-menu-tree-page-view-status admin-menu-tree-page-view-status-{$one_page->post_status}'>".__(ucfirst($one_page->post_status))."</span>";
|
90 |
}
|
91 |
|
92 |
$output .= "<li class='$class'>";
|
119 |
|
120 |
function admin_menu_tree_page_view_admin_menu() {
|
121 |
|
122 |
+
load_plugin_textdomain('admin-menu-tree-page-view', false, "/admin-menu-tree-page-view/languages");
|
123 |
+
|
124 |
// add main menu
|
125 |
#add_menu_page( "title", "Simple Menu Pages", "edit_pages", "admin-menu-tree-page-tree_main", "bonnyFunction", null, 5);
|
126 |
|
128 |
$output = "
|
129 |
</a>
|
130 |
<ul class='admin-menu-tree-page-tree'>
|
131 |
+
<li class='admin-menu-tree-page-tree_headline'>" . __("Pages", 'admin-menu-tree-page-view') . "</li>
|
132 |
<li class='admin-menu-tree-page-filter'>
|
133 |
+
<label>".__("Search", 'admin-menu-tree-page-view')."</label>
|
134 |
<input type='text' class='' />
|
135 |
+
<div class='admin-menu-tree-page-filter-reset' title='".__("Reset search and show all pages", 'admin-menu-tree-page-view')."'></div>
|
136 |
</li>
|
137 |
";
|
138 |
|
languages/admin-menu-tree-page-view-sv_SE.mo
ADDED
Binary file
|
languages/admin-menu-tree-page-view-sv_SE.po
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: \n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/admin-menu-tree-page-view\n"
|
10 |
+
"POT-Creation-Date: 2010-11-14 17:57+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-11-14 19:02+0100\n"
|
12 |
+
"Last-Translator: Pär Thernström <par.thernstrom@gmail.com>\n"
|
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 |
+
#: index.php:50
|
19 |
+
msgid "Edit"
|
20 |
+
msgstr "Redigera"
|
21 |
+
|
22 |
+
#: index.php:51
|
23 |
+
msgid "View"
|
24 |
+
msgstr "Visa"
|
25 |
+
|
26 |
+
#: index.php:52
|
27 |
+
msgid "Add new page here"
|
28 |
+
msgstr "Skapa ny sida här"
|
29 |
+
|
30 |
+
#: index.php:53
|
31 |
+
msgid "Add new page inside"
|
32 |
+
msgstr "Skapa ny sida under"
|
33 |
+
|
34 |
+
#: index.php:54
|
35 |
+
msgid "Untitled"
|
36 |
+
msgstr "Namnlös"
|
37 |
+
|
38 |
+
#: index.php:132
|
39 |
+
msgid "Pages"
|
40 |
+
msgstr "Sidor"
|
41 |
+
|
42 |
+
#: index.php:134
|
43 |
+
msgid "Search"
|
44 |
+
msgstr "Sök"
|
45 |
+
|
46 |
+
#: index.php:136
|
47 |
+
msgid "Reset search and show all pages"
|
48 |
+
msgstr "Nollställ sök och visa alla sidor"
|
49 |
+
|
50 |
+
#: index.php:194
|
51 |
+
msgid "New page"
|
52 |
+
msgstr "Ny sida"
|
53 |
+
|
languages/admin-menu-tree-page-view.pot
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: \n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/admin-menu-tree-page-view\n"
|
10 |
+
"POT-Creation-Date: 2010-11-14 17:57+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-11-14 19:01+0100\n"
|
12 |
+
"Last-Translator: Pär Thernström <par.thernstrom@gmail.com>\n"
|
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 |
+
#: index.php:50
|
19 |
+
msgid "Edit"
|
20 |
+
msgstr "Redigera"
|
21 |
+
|
22 |
+
#: index.php:51
|
23 |
+
msgid "View"
|
24 |
+
msgstr "Visa"
|
25 |
+
|
26 |
+
#: index.php:52
|
27 |
+
msgid "Add new page here"
|
28 |
+
msgstr "Skapa ny sida här"
|
29 |
+
|
30 |
+
#: index.php:53
|
31 |
+
msgid "Add new page inside"
|
32 |
+
msgstr "Skapa ny sida under"
|
33 |
+
|
34 |
+
#: index.php:54
|
35 |
+
msgid "Untitled"
|
36 |
+
msgstr "Namnlös"
|
37 |
+
|
38 |
+
#: index.php:132
|
39 |
+
msgid "Pages"
|
40 |
+
msgstr "Sidor"
|
41 |
+
|
42 |
+
#: index.php:134
|
43 |
+
msgid "Search"
|
44 |
+
msgstr "Sök"
|
45 |
+
|
46 |
+
#: index.php:136
|
47 |
+
msgid "Reset search and show all pages"
|
48 |
+
msgstr "Nollställ sök och visa alla sidor"
|
49 |
+
|
50 |
+
#: index.php:194
|
51 |
+
msgid "New page"
|
52 |
+
msgstr "Ny sida"
|
53 |
+
|
readme.txt
CHANGED
@@ -39,6 +39,10 @@ Now the tree with the pages will be visible in the admin menu to the left.
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
42 |
= 0.4 =
|
43 |
- Fixed a couple of small bugs
|
44 |
- Prepare for translation
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 0.5 =
|
43 |
+
- Swedish translation added
|
44 |
+
- Moved load_plugin_textdomain to action "menu" instead of "init"
|
45 |
+
|
46 |
= 0.4 =
|
47 |
- Fixed a couple of small bugs
|
48 |
- Prepare for translation
|