WordPress.org

Plugin Directory

Changeset 660787


Ignore:
Timestamp:
01/29/13 18:32:41 (15 months ago)
Author:
eskapism
Message:

load scripts over ssl

Location:
admin-menu-tree-page-view/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin-menu-tree-page-view/trunk/css/styles.css

    r647126 r660787  
    342342    display: none; 
    343343} 
     344 
    344345ul.admin-menu-tree-page-tree li.admin-menu-tree-page-view-opened > div + ul { 
    345346    display: block; 
  • admin-menu-tree-page-view/trunk/index.php

    r647258 r660787  
    44Plugin URI: http://eskapism.se/code-playground/admin-menu-tree-page-view/ 
    55Description: 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 
     6Version: 2.6.1 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    3939function admin_menu_tree_page_view_admin_init() { 
    4040 
    41     define( "admin_menu_tree_page_view_VERSION", "2.6" ); 
     41    define( "admin_menu_tree_page_view_VERSION", "2.6.1" ); 
    4242    define( "admin_menu_tree_page_view_URL", WP_PLUGIN_URL . '/admin-menu-tree-page-view/' ); 
    4343    define( "admin_menu_tree_page_view_DIR", WP_PLUGIN_DIR . '/admin-menu-tree-page-view/' ); 
    4444 
    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")); 
     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")); 
    5065    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")); 
     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")); 
    5270 
    5371    $oLocale = array( 
  • admin-menu-tree-page-view/trunk/readme.txt

    r647260 r660787  
    44Tags: admin, page, pages, page tree, hierarchy, cms, tree, view, admin menu, menu, change order, drag and drop 
    55Requires at least: 3.0 
    6 Tested up to: 3.5 
    7 Stable tag: 2.6 
     6Tested up to: 3.5.1 
     7Stable tag: 2.6.1 
    88 
    99Get 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! 
     
    5050 
    5151== Changelog == 
     52 
     53= 2.6.1 = 
     54- Hopefully loads scripts and styles over SSL/HTTPS if FORCE_SSL is set. 
    5255 
    5356= 2.6 = 
Note: See TracChangeset for help on using the changeset viewer.