Plugin Directory

Changeset 1502788


Ignore:
Timestamp:
09/26/2016 01:10:03 PM (9 years ago)
Author:
obox
Message:

Updated Launchpad to allow for any folder name, not just /obox-by-launchpad/

Location:
launchpad-by-obox
Files:
128 added
3 edited

Legend:

Unmodified
Added
Removed
  • launchpad-by-obox/trunk/functions/class.php

    r1433076 r1502788  
    8888                wp_enqueue_script( 'jquery-ui-slider' );
    8989
    90                 wp_enqueue_script( 'ui-jquery-timepicker', plugins_url('launchpad-by-obox/js/jquery.timepicker.js'), array( 'jquery' ) );
    91                 wp_enqueue_script( 'jquery-checkboxes', plugins_url('launchpad-by-obox/js/jquery.checkboxes.js'), array( 'jquery' ) );
    92                 wp_enqueue_script( 'apollo-admin', plugins_url('launchpad-by-obox/js/admin.js'), array( 'jquery', 'media-upload' ) );
    93 
    94                 wp_localize_script( 'apollo-admin', 'base', plugins_url('launchpad'));
     90                wp_enqueue_script( 'ui-jquery-timepicker', LAUNCHPADURI . '/jquery.timepicker.js', array( 'jquery' ) );
     91                wp_enqueue_script( 'jquery-checkboxes', LAUNCHPADURI . '/js/jquery.checkboxes.js', array( 'jquery' ) );
     92                wp_enqueue_script( 'apollo-admin', LAUNCHPADURI . '/js/admin.js' , array( 'jquery', 'media-upload' ) );
     93
     94                wp_localize_script( 'apollo-admin', 'base', LAUNCHPADURI );
    9595                wp_enqueue_script( 'theme-preview' );
    9696                add_thickbox();
    9797
    9898                // Styles
    99                 wp_enqueue_style( 'apollo-admin', plugins_url("launchpad-by-obox/css/admin.css"));
    100                 wp_register_style( 'ui-jquery-style', plugins_url("launchpad-by-obox/css/jquery-ui.css"));
    101                 wp_register_style( 'jquery-checkbox', plugins_url("launchpad-by-obox/css/checkboxes.css"));
     99                wp_enqueue_style( 'apollo-admin', LAUNCHPADURI . '/css/admin.css' );
     100                wp_register_style( 'ui-jquery-style', LAUNCHPADURI . '/css/jquery-ui.css' );
     101                wp_register_style( 'jquery-checkbox', LAUNCHPADURI . '/css/checkboxes.css' );
    102102
    103103                wp_enqueue_style( 'apollo-admin' );
     
    110110        elseif( !( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) ) :
    111111            $apollo_options =  get_option("apollo_display_options");
    112             wp_enqueue_script( "countdown-jquery", plugins_url("launchpad-by-obox/js/jquery.countdown.js"), array( "jquery" ) );
    113             wp_enqueue_script( "apollo", plugins_url("launchpad-by-obox/js/jquery.apollo.js"), array( "jquery" ) );
     112            wp_enqueue_script( "countdown-jquery", LAUNCHPADURI . '/js/jquery.countdown.js', array( "jquery" ) );
     113            wp_enqueue_script( "apollo", LAUNCHPADURI . '/js/jquery.apollo.js' , array( "jquery" ) );
    114114            $date_launch = date("F d, Y G:i:s", strtotime($apollo_options["launchdate"]));
    115115            $date_now = date("F d, Y G:i:s", current_time('timestamp') );
     
    128128            if(isset($_REQUEST['page']) && $_REQUEST['page'] == "apollo_general_settings") :
    129129                // Styles
    130                 wp_register_style( 'apollo-admin', plugins_url("launchpad-by-obox/css/admin.css"));
    131                 wp_register_style( 'ui-jquery-style', plugins_url("launchpad-by-obox/css/jquery-ui.css"));
    132                 wp_register_style( 'jquery-checkbox', plugins_url("launchpad-by-obox/css/checkboxes.css"));
     130                wp_register_style( 'apollo-admin', LAUNCHPADURI . '/css/admin.css' );
     131                wp_register_style( 'ui-jquery-style', LAUNCHPADURI . '/css/jquery-ui.css' );
     132                wp_register_style( 'jquery-checkbox', LAUNCHPADURI . '/css/checkboxes.css' );
    133133
    134134                wp_enqueue_style( 'apollo-admin' );
     
    150150
    151151        if(isset($apollo_theme_options["font"]) && $apollo_theme_options["font"] != "") :
    152             wp_register_style( 'apollo-fonts', plugins_url("launchpad-by-obox/").'css/fonts/' . $apollo_theme_options["font"] . '.css');
     152            wp_register_style( 'apollo-fonts', LAUNCHPADURI . '/css/fonts/' . $apollo_theme_options["font"] . '.css');
    153153            wp_enqueue_style( 'apollo-fonts' );
    154154        endif;
  • launchpad-by-obox/trunk/index.php

    r1433076 r1502788  
    55    Description: Deploys a beautiful, responsive Coming Soon or Down for Maintenance page for your site. Collect emails, change styles, show social links and more
    66    Author: Obox Themes
    7     Version: 1.0.11
     7    Version: 1.0.12
    88    Author URI: http://oboxthemes.com
    99*/
    1010
    11 define("LAUNCHPADDIR",  plugin_dir_path( __FILE__ ) );
     11define( 'LAUNCHPADDIR',  plugin_dir_path( __FILE__ ) );
     12define( 'LAUNCHPADURI', untrailingslashit( plugin_dir_url( __FILE__ ) )  );
    1213
    1314// Kick off Plugin
  • launchpad-by-obox/trunk/readme.txt

    r1433076 r1502788  
    33Tags: maintenance mode, landing page, splash screen
    44Requires at least: 4.0
    5 Tested up to: 4.5.2
    6 Stable tag: 1.0.11
     5Tested up to: 4.6.1
     6Stable tag: 1.0.12
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    103103== Changelog ==
    104104
     105= 1.0.12 =
     106* Added compatability with any folder name (no longer reliant on /launchpad-by-obox/)
     107
    105108= 1.0.11 =
    106109* Fixed the home page order selector
Note: See TracChangeset for help on using the changeset viewer.