Plugin Directory

Changeset 467946


Ignore:
Timestamp:
11/26/2011 07:57:26 PM (14 years ago)
Author:
remix4
Message:

1.4

Location:
floating-menu
Files:
31 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • floating-menu/trunk/dcwp_floating_menu.php

    r455147 r467946  
    66        Description: Floating Menu creates a sticky, floating menu widget from any Wordpress custom menu using jQuery.
    77        Author: Lee Chestnutt
    8         Version: 1.3
     8        Version: 1.4
    99        Author URI: http://www.designchemical.com
    1010*/
     
    2424            wp_enqueue_script( 'jqueryeasing', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.easing.js', array('jquery') );
    2525            wp_enqueue_script( 'jqueryhoverintent', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
    26             wp_enqueue_script( 'dcjqfloatingmenu', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.floater.2.1.js', array('jquery') );
     26            wp_enqueue_script( 'dcjqfloatingmenu', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.floater.2.2.js', array('jquery') );
    2727            // Shortcodes
    2828            add_shortcode( 'dcfl-link', 'dcfl_menu_link_shortcode' );
  • floating-menu/trunk/dcwp_floating_menu_widget.php

    r455147 r467946  
    3131            'offsetL' => 50,
    3232            'offsetA' => 50,
     33            'center' => '',
    3334            'speedMenu' => 600,
    3435            'speedFloat' => 1500,
     
    5152        if(! isset($instance['offsetA']) ){ $instance['offsetA'] = '50'; }
    5253        if(! isset($instance['tabText']) ){ $instance['tabText'] = 'Menu'; }
     54        if(! isset($instance['center']) ){ $instance['center'] = ''; }
    5355        if(! isset($instance['autoClose']) ){ $instance['autoClose'] = ''; }
    5456        if(! isset($instance['tabClose']) ){ $instance['tabClose'] = ''; } 
     
    9092        $instance['location'] = $new_instance['location'];
    9193        $instance['align'] = $new_instance['align'];
     94        $instance['center'] = $new_instance['center'];
    9295        $instance['offsetL'] = (int) strip_tags( stripslashes($new_instance['offsetL']) );
    9396        $instance['offsetA'] = (int) strip_tags( stripslashes($new_instance['offsetA']) );
     
    110113        $location = isset( $instance['location'] ) ? $instance['location'] : 'top';
    111114        $align = isset( $instance['align'] ) ? $instance['align'] : 'left';
     115        $center = isset( $instance['center'] ) ? $instance['center'] : '';
    112116        $offsetL = isset( $instance['offsetL'] ) ? $instance['offsetL'] : '10';
    113117        $offsetA = isset( $instance['offsetA'] ) ? $instance['offsetA'] : '10';
     
    155159        <input type="text" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" value="<?php echo $width; ?>" />
    156160    </p>
     161   
    157162    <p>
    158163      <label for="<?php echo $this->get_field_id('location'); ?>"><?php _e( 'Location' , 'dcjq-floating-menu' ); ?></label>
     
    170175        </select>
    171176        <input type="text" id="<?php echo $this->get_field_id('offsetA'); ?>" name="<?php echo $this->get_field_name('offsetA'); ?>" value="<?php echo $offsetA; ?>" size="4" />px
     177    </p>
     178    <p>
     179      <input type="checkbox" value="true" class="checkbox" id="<?php echo $this->get_field_id('center'); ?>" name="<?php echo $this->get_field_name('center'); ?>"<?php checked( $center, 'true'); ?> />
     180        <label for="<?php echo $this->get_field_id('center'); ?>"><?php _e( 'Set Alignment from Center' , 'dcjq-floating-menu' ); ?></label>
    172181    </p>
    173182    <p>
     
    278287                $offsetA = $wpdcjqfloatingmenu['offsetA'];
    279288                if($offsetA == ''){$offset = '0';};
     289               
     290                $center = $wpdcjqfloatingmenu['center'];
     291                $opt_center = $center == 'true' ? 'center: true, centerPx: '.$offsetA.',' : '' ;
    280292               
    281293                $autoClose = $wpdcjqfloatingmenu['autoClose'];
     
    303315                        offsetLocation: <?php echo $offsetL; ?>,
    304316                        offsetAlign: <?php echo $offsetA; ?>,
     317                        <?php echo $opt_center; ?>
    305318                        autoClose: <?php echo $autoClose; ?>,
    306319                        tabClose: <?php echo $tabClose; ?>,
  • floating-menu/trunk/readme.txt

    r455147 r467946  
    55Requires at least: 3.0
    66Tested up to: 3.10
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88
    99Floating Menu creates a sticky, floating menu widget from any Wordpress custom menu using jQuery.
     
    2424    ** Bottom Left or Bottom Right - menu slides up
    2525   
     26* Set Alignment from Center - check this box to position the menu based on the center of the browser window as opposed to the sides - this ensures a fixed position even when the browser resolution changes
    2627* Floating Speed - The speed for the menu floating animation
    2728* Animation Speed - The speed at which the menu will open/close
     
    6869
    6970= 1.3 =
     71* Added: option to position menu from center of browser window
     72
     73= 1.3 =
    7074* Added: disable floating animation option
    7175
Note: See TracChangeset for help on using the changeset viewer.