Plugin Directory

Changeset 1287856


Ignore:
Timestamp:
11/17/2015 10:06:33 AM (10 years ago)
Author:
wpwox
Message:

updated to 1.1

Location:
footer-flyout-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • footer-flyout-widget/trunk/footer-flyout-widget.php

    r1287843 r1287856  
    1818
    1919//Get the plugin location.
    20 define( 'WPWOXFOOTERWIDGETFLYOUT_VERSION', '1.0' );
     20define( 'WPWOXFOOTERWIDGETFLYOUT_VERSION', '1.1' );
    2121define( 'WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    2222define( 'WPWOXFOOTERWIDGETFLYOUT__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     
    2727
    2828//add admin menu
    29 add_action( 'admin_menu', 'my_plugin_menu' );
    30 add_action( 'widgets_init', 'wpwox_create_sidebar' );
    31 function wpwox_create_sidebar() {
     29add_action( 'admin_menu', 'wpwoxfooterflyout_menu' );
     30add_action( 'widgets_init', 'wpwox_footerflyoutwidget_create_sidebar' );
     31function wpwox_footerflyoutwidget_create_sidebar() {
    3232
    3333  register_sidebar( array(
     
    4242}
    4343
    44 function my_plugin_menu() {
    45     add_menu_page( 'Settings', 'Footer Widget Flyout', 'manage_options', 'footer_flyout_setting', 'my_plugin_options' );
    46 }
    47 
    48 function my_plugin_options() {
     44function wpwoxfooterflyout_menu() {
     45    add_menu_page( 'Settings', 'Footer Widget Flyout', 'manage_options', 'footer_flyout_setting', 'footerflyout_plugin_options' );
     46}
     47
     48function footerflyout_plugin_options() {
    4949    if ( !current_user_can( 'manage_options' ) )  {
    5050        wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
     
    7373//include css and js
    7474function theme_name_scripts() {
    75     wp_enqueue_style( 'style-name', WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL. '/wpwox-css.css' );
    76     wp_enqueue_script( 'script-name', WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL . '/wpwox-js.js', array(), '1.0.0', true );
     75    wp_enqueue_style( 'footer_flyout_plugin_css', WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL. '/wpwox-css.css' );
     76    wp_enqueue_script( 'footer_flyout_plugin_js', WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL . '/wpwox-js.js', array(), '1.0.0', true );
    7777}
    7878
  • footer-flyout-widget/trunk/wpwox-js.js

    r1287850 r1287856  
    5353                  jQuery("#wpwox-footer-flyout-headingonly").removeClass( "wpwox-footer-flyout-active" );
    5454                  jQuery("#wpwox-footer-flyout-div").addClass( "wpwox-footer-flyout-inactive" );
    55                   jQuery("#wpwox-footer-flyout-div").addClass( "wpwox-footer-flyout-inactive" );
     55                  jQuery("#wpwox-footer-flyout-headingonly").addClass( "wpwox-footer-flyout-inactive" );
    5656              }
    5757            }
Note: See TracChangeset for help on using the changeset viewer.