Admin Menu Tree Page View - Version 2.6.1

Version Description

  • Hopefully loads scripts and styles over SSL/HTTPS if FORCE_SSL is set.
Download this release

Release Info

Developer eskapism
Plugin Icon wp plugin Admin Menu Tree Page View
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.6 to 2.6.1

Files changed (3) hide show
  1. css/styles.css +1 -0
  2. index.php +26 -8
  3. readme.txt +5 -2
css/styles.css CHANGED
@@ -341,6 +341,7 @@ ul.admin-menu-tree-page-tree ul ul ul .admin-menu-tree-page-expand {
341
  ul.admin-menu-tree-page-tree ul {
342
  display: none;
343
  }
 
344
  ul.admin-menu-tree-page-tree li.admin-menu-tree-page-view-opened > div + ul {
345
  display: block;
346
  }
341
  ul.admin-menu-tree-page-tree ul {
342
  display: none;
343
  }
344
+
345
  ul.admin-menu-tree-page-tree li.admin-menu-tree-page-view-opened > div + ul {
346
  display: block;
347
  }
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: 2.6
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
@@ -38,17 +38,35 @@ add_action('wp_ajax_admin_menu_tree_page_view_move_page', 'admin_menu_tree_page_
38
 
39
  function admin_menu_tree_page_view_admin_init() {
40
 
41
- define( "admin_menu_tree_page_view_VERSION", "2.6" );
42
  define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
43
  define( "admin_menu_tree_page_view_DIR", WP_PLUGIN_DIR . '/admin-menu-tree-page-view/' );
44
 
45
- wp_enqueue_style("admin_menu_tree_page_view_styles", admin_menu_tree_page_view_URL . "css/styles.css", false, admin_menu_tree_page_view_VERSION);
46
- wp_enqueue_script("jquery.highlight", admin_menu_tree_page_view_URL . "js/jquery.highlight.js", array("jquery"));
47
- wp_enqueue_script("jquery-cookie", admin_menu_tree_page_view_URL . "js/jquery.biscuit.js", array("jquery")); // renamed from cookie to fix problems with mod_security
48
- wp_enqueue_script("jquery.ui.nestedSortable", admin_menu_tree_page_view_URL . "js/jquery.ui.nestedSortable.js", array("jquery", "jquery-ui-sortable"));
49
- wp_enqueue_script("jquery.client", admin_menu_tree_page_view_URL . "js/jquery.client.js", array("jquery"));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  wp_enqueue_script("jquery-ui-sortable");
51
- wp_enqueue_script("admin_menu_tree_page_view", admin_menu_tree_page_view_URL . "js/scripts.js", array("jquery"));
 
 
 
52
 
53
  $oLocale = array(
54
  "Edit" => __("Edit", 'admin-menu-tree-page-view'),
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: 2.6.1
7
  Author: Pär Thernström
8
  Author URI: http://eskapism.se/
9
  License: GPL2
38
 
39
  function admin_menu_tree_page_view_admin_init() {
40
 
41
+ define( "admin_menu_tree_page_view_VERSION", "2.6.1" );
42
  define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' );
43
  define( "admin_menu_tree_page_view_DIR", WP_PLUGIN_DIR . '/admin-menu-tree-page-view/' );
44
 
45
+ // Find the plugin directory URL
46
+ $aa = __FILE__;
47
+ if ( isset( $mu_plugin ) ) {
48
+ $aa = $mu_plugin;
49
+ }
50
+ if ( isset( $network_plugin ) ) {
51
+ $aa = $network_plugin;
52
+ }
53
+ if ( isset( $plugin ) ) {
54
+ $aa = $plugin;
55
+ }
56
+ $plugin_dir_url = plugin_dir_url(basename($aa)) . 'admin-menu-tree-page-view/';
57
+
58
+ define( "ADMIN_MENU_TREE_PAGE_VIEW_URL", $plugin_dir_url);
59
+
60
+ wp_enqueue_style("admin_menu_tree_page_view_styles", ADMIN_MENU_TREE_PAGE_VIEW_URL . "css/styles.css", false, admin_menu_tree_page_view_VERSION);
61
+ wp_enqueue_script("jquery.highlight", ADMIN_MENU_TREE_PAGE_VIEW_URL . "js/jquery.highlight.js", array("jquery"));
62
+ wp_enqueue_script("jquery-cookie", ADMIN_MENU_TREE_PAGE_VIEW_URL . "js/jquery.biscuit.js", array("jquery")); // renamed from cookie to fix problems with mod_security
63
+ wp_enqueue_script("jquery.ui.nestedSortable", ADMIN_MENU_TREE_PAGE_VIEW_URL . "js/jquery.ui.nestedSortable.js", array("jquery", "jquery-ui-sortable"));
64
+ wp_enqueue_script("jquery.client", ADMIN_MENU_TREE_PAGE_VIEW_URL . "js/jquery.client.js", array("jquery"));
65
  wp_enqueue_script("jquery-ui-sortable");
66
+ wp_enqueue_script("admin_menu_tree_page_view", ADMIN_MENU_TREE_PAGE_VIEW_URL . "js/scripts.js", array("jquery"));
67
+
68
+ // The way CMS TPV does it:
69
+ // wp_enqueue_script( "jquery-cookie", CMS_TPV_URL . "scripts/jquery.biscuit.js", array("jquery"));
70
 
71
  $oLocale = array(
72
  "Edit" => __("Edit", 'admin-menu-tree-page-view'),
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: eskapism, MarsApril
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: admin, page, pages, page tree, hierarchy, cms, tree, view, admin menu, menu, change order, drag and drop
5
  Requires at least: 3.0
6
- Tested up to: 3.5
7
- Stable tag: 2.6
8
 
9
  Get a tree view of all your pages directly in the admin menu. Search, edit, view, re-order/sort and add pages – all is just one click away!
10
 
@@ -50,6 +50,9 @@ Now the tree with the pages will be visible in the admin menu to the left.
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 2.6 =
54
  - Fixes for popup on WP 3.5
55
  - Replaced live() with on() for jQuery
3
  Donate link: http://eskapism.se/sida/donate/
4
  Tags: admin, page, pages, page tree, hierarchy, cms, tree, view, admin menu, menu, change order, drag and drop
5
  Requires at least: 3.0
6
+ Tested up to: 3.5.1
7
+ Stable tag: 2.6.1
8
 
9
  Get a tree view of all your pages directly in the admin menu. Search, edit, view, re-order/sort and add pages – all is just one click away!
10
 
50
 
51
  == Changelog ==
52
 
53
+ = 2.6.1 =
54
+ - Hopefully loads scripts and styles over SSL/HTTPS if FORCE_SSL is set.
55
+
56
  = 2.6 =
57
  - Fixes for popup on WP 3.5
58
  - Replaced live() with on() for jQuery