Version Description
- Could not edit names in Chrome
- Removed add page-link. pages are instead added automatically. no more clicks; I think feels so much more effective.
Download this release
Release Info
| Developer | eskapism |
| Plugin | |
| Version | 1.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4 to 1.5
- css/styles.css +18 -8
- index.php +2 -2
- js/scripts.js +22 -3
- readme.txt +8 -3
- screenshot-1.png +0 -0
- screenshot-3.png +0 -0
css/styles.css
CHANGED
|
@@ -9,12 +9,6 @@
|
|
| 9 |
border-bottom-width: 0;
|
| 10 |
}
|
| 11 |
|
| 12 |
-
/*
|
| 13 |
-
This works, but will break something?
|
| 14 |
-
#adminmenu * {
|
| 15 |
-
-moz-user-select: text !important;
|
| 16 |
-
}
|
| 17 |
-
*/
|
| 18 |
|
| 19 |
li.toplevel_page_admin-menu-tree-page-tree_main .wp-first-item {
|
| 20 |
display: none;
|
|
@@ -244,6 +238,12 @@ li.admin-menu-tree-page-filter
|
|
| 244 |
.admin-menu-tree-page-filter {
|
| 245 |
position: relative;
|
| 246 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
#adminmenu .admin-menu-tree-page-filter input {
|
| 248 |
width: 125px;
|
| 249 |
font-size: 10px;
|
|
@@ -251,9 +251,14 @@ li.admin-menu-tree-page-filter
|
|
| 251 |
padding: 2px;
|
| 252 |
-webkit-user-select: text;
|
| 253 |
-moz-user-select: text;
|
|
|
|
|
|
|
| 254 |
}
|
| 255 |
#menu-pages * {
|
|
|
|
| 256 |
-moz-user-select: text;
|
|
|
|
|
|
|
| 257 |
}
|
| 258 |
|
| 259 |
.admin-menu-tree-page-filter-reset {
|
|
@@ -520,15 +525,16 @@ ul.admin-menu-tree-page-tree span.child-count {
|
|
| 520 |
/* clear: both; */
|
| 521 |
float: left;
|
| 522 |
width: 100%;
|
| 523 |
-
-moz-user-select: text !important;
|
| 524 |
}
|
| 525 |
-
.amtpv-editpopup-addpages-names-ul span {
|
| 526 |
background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_222222_256x240.png) no-repeat -3px -228px;
|
| 527 |
margin-top: 7px;
|
| 528 |
margin-right: 3px;
|
| 529 |
float: left;
|
| 530 |
width: 6px;
|
| 531 |
height: 10px;
|
|
|
|
| 532 |
}
|
| 533 |
.amtpv-editpopup-addpages-names-ul span:hover {
|
| 534 |
/* background-image: url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_222222_256x240.png); */
|
|
@@ -556,3 +562,7 @@ ul.admin-menu-tree-page-tree span.child-count {
|
|
| 556 |
.ui-nestedSortable-error {
|
| 557 |
border: 1px solid red;
|
| 558 |
}
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
border-bottom-width: 0;
|
| 10 |
}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
li.toplevel_page_admin-menu-tree-page-tree_main .wp-first-item {
|
| 14 |
display: none;
|
| 238 |
.admin-menu-tree-page-filter {
|
| 239 |
position: relative;
|
| 240 |
}
|
| 241 |
+
|
| 242 |
+
/* This works, but will break something? */
|
| 243 |
+
#adminmenu * {
|
| 244 |
+
-moz-user-select: text !important;
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
#adminmenu .admin-menu-tree-page-filter input {
|
| 248 |
width: 125px;
|
| 249 |
font-size: 10px;
|
| 251 |
padding: 2px;
|
| 252 |
-webkit-user-select: text;
|
| 253 |
-moz-user-select: text;
|
| 254 |
+
-khtml-user-select: text;
|
| 255 |
+
user-select: text;
|
| 256 |
}
|
| 257 |
#menu-pages * {
|
| 258 |
+
-webkit-user-select: text;
|
| 259 |
-moz-user-select: text;
|
| 260 |
+
-khtml-user-select: text;
|
| 261 |
+
user-select: text;
|
| 262 |
}
|
| 263 |
|
| 264 |
.admin-menu-tree-page-filter-reset {
|
| 525 |
/* clear: both; */
|
| 526 |
float: left;
|
| 527 |
width: 100%;
|
| 528 |
+
/* -moz-user-select: text !important; */
|
| 529 |
}
|
| 530 |
+
#adminmenu li .amtpv-editpopup-addpages-names-ul span {
|
| 531 |
background: transparent url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_222222_256x240.png) no-repeat -3px -228px;
|
| 532 |
margin-top: 7px;
|
| 533 |
margin-right: 3px;
|
| 534 |
float: left;
|
| 535 |
width: 6px;
|
| 536 |
height: 10px;
|
| 537 |
+
cursor: move;
|
| 538 |
}
|
| 539 |
.amtpv-editpopup-addpages-names-ul span:hover {
|
| 540 |
/* background-image: url(https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/ui-darkness/images/ui-icons_222222_256x240.png); */
|
| 562 |
.ui-nestedSortable-error {
|
| 563 |
border: 1px solid red;
|
| 564 |
}
|
| 565 |
+
|
| 566 |
+
ul.amtpv-editpopup-addpages-names-ul .ui-state-highlight {
|
| 567 |
+
display: block;
|
| 568 |
+
}
|
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: Get a tree view of all your pages directly in the admin menu. Search, edit, view and add pages - all with just one click away!
|
| 6 |
-
Version: 1.
|
| 7 |
Author: Pär Thernström
|
| 8 |
Author URI: http://eskapism.se/
|
| 9 |
License: GPL2
|
|
@@ -32,7 +32,7 @@ add_action('wp_ajax_admin_menu_tree_page_view_add_page', 'admin_menu_tree_page_v
|
|
| 32 |
|
| 33 |
function admin_menu_tree_page_view_admin_init() {
|
| 34 |
|
| 35 |
-
define( "admin_menu_tree_page_view_VERSION", "1.
|
| 36 |
define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
|
| 37 |
define( "admin_menu_tree_page_view_DIR", WP_PLUGIN_DIR . '/admin-menu-tree-page-view/' );
|
| 38 |
|
| 3 |
Plugin Name: Admin Menu Tree Page View
|
| 4 |
Plugin URI: http://eskapism.se/code-playground/admin-menu-tree-page-view/
|
| 5 |
Description: Get a tree view of all your pages directly in the admin menu. Search, edit, view and add pages - all with just one click away!
|
| 6 |
+
Version: 1.5
|
| 7 |
Author: Pär Thernström
|
| 8 |
Author URI: http://eskapism.se/
|
| 9 |
License: GPL2
|
| 32 |
|
| 33 |
function admin_menu_tree_page_view_admin_init() {
|
| 34 |
|
| 35 |
+
define( "admin_menu_tree_page_view_VERSION", "1.5" );
|
| 36 |
define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
|
| 37 |
define( "admin_menu_tree_page_view_DIR", WP_PLUGIN_DIR . '/admin-menu-tree-page-view/' );
|
| 38 |
|
js/scripts.js
CHANGED
|
@@ -228,18 +228,18 @@ jQuery(function($) {
|
|
| 228 |
|
| 229 |
add_pages.append( $("<div class='amtpv-editpopup-addpages-names'><label class='amtpv-editpopup-addpages-label'>Name(s)</label>") );
|
| 230 |
add_pages.append( $("<ul class='amtpv-editpopup-addpages-names-ul'><li><span></span><input class='amtpv-editpopup-addpages-name' type='text' value=''/></li></ul>") );
|
| 231 |
-
add_pages.append( $("<div class='amtpv-editpopup-addpages-addpage'><a href='#'>+ page</a></div></div>"));
|
| 232 |
|
| 233 |
add_pages.append( $("<div class='amtpv-editpopup-addpages-submit'><input type='submit' class='button-primary' value='Add' /> or <a href='#' class='amtpv-editpopup-addpages-cancel'>cancel</a></div>"));
|
| 234 |
add_pages.find(".amtpv-editpopup-addpages-name").focus();
|
| 235 |
|
| 236 |
add_pages.find("ul.amtpv-editpopup-addpages-names-ul").sortable({
|
| 237 |
-
"
|
| 238 |
"containment": 'parent',
|
| 239 |
"forceHelperSize": true,
|
| 240 |
"forcePlaceholderSize": true,
|
| 241 |
"handle": "span:first",
|
| 242 |
-
"
|
| 243 |
});
|
| 244 |
|
| 245 |
return;
|
|
@@ -247,6 +247,7 @@ jQuery(function($) {
|
|
| 247 |
});
|
| 248 |
|
| 249 |
// add new page-link
|
|
|
|
| 250 |
$("div.amtpv-editpopup-addpages-addpage a").live("click", function(e) {
|
| 251 |
e.preventDefault();
|
| 252 |
var t = $(this);
|
|
@@ -255,6 +256,24 @@ jQuery(function($) {
|
|
| 255 |
newelm.find("input").focus();
|
| 256 |
});
|
| 257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
// cancel-link
|
| 259 |
$("a.amtpv-editpopup-addpages-cancel").live("click", function() {
|
| 260 |
var t = $(this);
|
| 228 |
|
| 229 |
add_pages.append( $("<div class='amtpv-editpopup-addpages-names'><label class='amtpv-editpopup-addpages-label'>Name(s)</label>") );
|
| 230 |
add_pages.append( $("<ul class='amtpv-editpopup-addpages-names-ul'><li><span></span><input class='amtpv-editpopup-addpages-name' type='text' value=''/></li></ul>") );
|
| 231 |
+
//add_pages.append( $("<div class='amtpv-editpopup-addpages-addpage'><a href='#'>+ page</a></div></div>"));
|
| 232 |
|
| 233 |
add_pages.append( $("<div class='amtpv-editpopup-addpages-submit'><input type='submit' class='button-primary' value='Add' /> or <a href='#' class='amtpv-editpopup-addpages-cancel'>cancel</a></div>"));
|
| 234 |
add_pages.find(".amtpv-editpopup-addpages-name").focus();
|
| 235 |
|
| 236 |
add_pages.find("ul.amtpv-editpopup-addpages-names-ul").sortable({
|
| 237 |
+
"xaxis": "y",
|
| 238 |
"containment": 'parent',
|
| 239 |
"forceHelperSize": true,
|
| 240 |
"forcePlaceholderSize": true,
|
| 241 |
"handle": "span:first",
|
| 242 |
+
"placeholder": "ui-state-highlight"
|
| 243 |
});
|
| 244 |
|
| 245 |
return;
|
| 247 |
});
|
| 248 |
|
| 249 |
// add new page-link
|
| 250 |
+
// @TODO:
|
| 251 |
$("div.amtpv-editpopup-addpages-addpage a").live("click", function(e) {
|
| 252 |
e.preventDefault();
|
| 253 |
var t = $(this);
|
| 256 |
newelm.find("input").focus();
|
| 257 |
});
|
| 258 |
|
| 259 |
+
// when typing in the input, add another input if we are at the last input
|
| 260 |
+
// this way we don't have to click that "add page" button. less clicks = more productive.
|
| 261 |
+
$("input.amtpv-editpopup-addpages-name").live("keyup", function(e) {
|
| 262 |
+
// check if this is the last li
|
| 263 |
+
var t = $(this);
|
| 264 |
+
var ul = t.closest("ul");
|
| 265 |
+
var li = t.closest("li");
|
| 266 |
+
|
| 267 |
+
// if this input is the last one, and we have entered something, add another one
|
| 268 |
+
var isLast = (li.index() == ul.find("li").length-1);
|
| 269 |
+
if (isLast && t.val() != "") {
|
| 270 |
+
var newelm = $("<li class='hidden'><span></span><input class='amtpv-editpopup-addpages-name' type='text' value=''/></li>");
|
| 271 |
+
ul.append( newelm );
|
| 272 |
+
newelm.slideDown("fast");
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
});
|
| 276 |
+
|
| 277 |
// cancel-link
|
| 278 |
$("a.amtpv-editpopup-addpages-cancel").live("click", function() {
|
| 279 |
var t = $(this);
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://eskapism.se/sida/donate/
|
|
| 4 |
Tags: admin, page, pages, tree, view, admin menu, menu
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 3.0
|
| 7 |
-
Stable tag: 1.
|
| 8 |
|
| 9 |
Get a tree view of all your pages directly in the admin menu. Search, edit, view and add pages - all with just one click away!
|
| 10 |
|
|
@@ -34,12 +34,17 @@ Now the tree with the pages will be visible in the admin menu to the left.
|
|
| 34 |
|
| 35 |
== Screenshots ==
|
| 36 |
|
| 37 |
-
1.
|
| 38 |
2. Search your pages in real time. Try it; it's wonderful! ;)
|
| 39 |
-
3.
|
|
|
|
| 40 |
|
| 41 |
== Changelog ==
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
= 1.4 =
|
| 44 |
- moved JS and CSS to own folders
|
| 45 |
- can now add multiple pages at once
|
| 4 |
Tags: admin, page, pages, tree, view, admin menu, menu
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 3.0
|
| 7 |
+
Stable tag: 1.5
|
| 8 |
|
| 9 |
Get a tree view of all your pages directly in the admin menu. Search, edit, view and add pages - all with just one click away!
|
| 10 |
|
| 34 |
|
| 35 |
== Screenshots ==
|
| 36 |
|
| 37 |
+
1. You can expand/collapse sub-pages. Keeps the meny compact, but gives you the option to instantly dig deep down the page hierarchy.
|
| 38 |
2. Search your pages in real time. Try it; it's wonderful! ;)
|
| 39 |
+
3. Quickly add single or multiple pages. Great for setting up the structure for a new site.
|
| 40 |
+
|
| 41 |
|
| 42 |
== Changelog ==
|
| 43 |
|
| 44 |
+
= 1.5 =
|
| 45 |
+
- Could not edit names in Chrome
|
| 46 |
+
- Removed add page-link. pages are instead added automatically. no more clicks; I think feels so much more effective.
|
| 47 |
+
|
| 48 |
= 1.4 =
|
| 49 |
- moved JS and CSS to own folders
|
| 50 |
- can now add multiple pages at once
|
screenshot-1.png
CHANGED
|
Binary file
|
screenshot-3.png
CHANGED
|
Binary file
|
