Changeset 1287856
- Timestamp:
- 11/17/2015 10:06:33 AM (10 years ago)
- Location:
- footer-flyout-widget/trunk
- Files:
-
- 2 edited
-
footer-flyout-widget.php (modified) (4 diffs)
-
wpwox-js.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
footer-flyout-widget/trunk/footer-flyout-widget.php
r1287843 r1287856 18 18 19 19 //Get the plugin location. 20 define( 'WPWOXFOOTERWIDGETFLYOUT_VERSION', '1. 0' );20 define( 'WPWOXFOOTERWIDGETFLYOUT_VERSION', '1.1' ); 21 21 define( 'WPWOXFOOTERWIDGETFLYOUT__PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 22 22 define( 'WPWOXFOOTERWIDGETFLYOUT__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 27 27 28 28 //add admin menu 29 add_action( 'admin_menu', ' my_plugin_menu' );30 add_action( 'widgets_init', 'wpwox_ create_sidebar' );31 function wpwox_ create_sidebar() {29 add_action( 'admin_menu', 'wpwoxfooterflyout_menu' ); 30 add_action( 'widgets_init', 'wpwox_footerflyoutwidget_create_sidebar' ); 31 function wpwox_footerflyoutwidget_create_sidebar() { 32 32 33 33 register_sidebar( array( … … 42 42 } 43 43 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() {44 function wpwoxfooterflyout_menu() { 45 add_menu_page( 'Settings', 'Footer Widget Flyout', 'manage_options', 'footer_flyout_setting', 'footerflyout_plugin_options' ); 46 } 47 48 function footerflyout_plugin_options() { 49 49 if ( !current_user_can( 'manage_options' ) ) { 50 50 wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); … … 73 73 //include css and js 74 74 function 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 ); 77 77 } 78 78 -
footer-flyout-widget/trunk/wpwox-js.js
r1287850 r1287856 53 53 jQuery("#wpwox-footer-flyout-headingonly").removeClass( "wpwox-footer-flyout-active" ); 54 54 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" ); 56 56 } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.