Changeset 467946
- Timestamp:
- 11/26/2011 07:57:26 PM (14 years ago)
- Location:
- floating-menu
- Files:
-
- 31 added
- 1 deleted
- 3 edited
-
tags/1.4 (added)
-
tags/1.4/dcwp_floating_menu.php (added)
-
tags/1.4/dcwp_floating_menu_widget.php (added)
-
tags/1.4/js (added)
-
tags/1.4/js/jquery.easing.js (added)
-
tags/1.4/js/jquery.floater.2.2.js (added)
-
tags/1.4/js/jquery.hoverIntent.minified.js (added)
-
tags/1.4/readme.txt (added)
-
tags/1.4/screenshot-1.png (added)
-
tags/1.4/skin.php (added)
-
tags/1.4/skins (added)
-
tags/1.4/skins/black.css (added)
-
tags/1.4/skins/black_border.css (added)
-
tags/1.4/skins/dark_grey.css (added)
-
tags/1.4/skins/dark_grey_border.css (added)
-
tags/1.4/skins/grey.css (added)
-
tags/1.4/skins/grey_border.css (added)
-
tags/1.4/skins/images (added)
-
tags/1.4/skins/images/arrow_black.png (added)
-
tags/1.4/skins/images/arrow_white.png (added)
-
tags/1.4/skins/images/tab_black.png (added)
-
tags/1.4/skins/images/tab_black_bdr.png (added)
-
tags/1.4/skins/images/tab_dark_grey.png (added)
-
tags/1.4/skins/images/tab_dark_grey_bdr.png (added)
-
tags/1.4/skins/images/tab_grey.png (added)
-
tags/1.4/skins/images/tab_grey_bdr.png (added)
-
tags/1.4/skins/images/tab_white.png (added)
-
tags/1.4/skins/images/tab_white_bdr.png (added)
-
tags/1.4/skins/white.css (added)
-
tags/1.4/skins/white_border.css (added)
-
trunk/dcwp_floating_menu.php (modified) (2 diffs)
-
trunk/dcwp_floating_menu_widget.php (modified) (8 diffs)
-
trunk/js/jquery.floater.2.1.js (deleted)
-
trunk/js/jquery.floater.2.2.js (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
floating-menu/trunk/dcwp_floating_menu.php
r455147 r467946 6 6 Description: Floating Menu creates a sticky, floating menu widget from any Wordpress custom menu using jQuery. 7 7 Author: Lee Chestnutt 8 Version: 1. 38 Version: 1.4 9 9 Author URI: http://www.designchemical.com 10 10 */ … … 24 24 wp_enqueue_script( 'jqueryeasing', dc_jqfloatingmenu::get_plugin_directory() . '/js/jquery.easing.js', array('jquery') ); 25 25 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') ); 27 27 // Shortcodes 28 28 add_shortcode( 'dcfl-link', 'dcfl_menu_link_shortcode' ); -
floating-menu/trunk/dcwp_floating_menu_widget.php
r455147 r467946 31 31 'offsetL' => 50, 32 32 'offsetA' => 50, 33 'center' => '', 33 34 'speedMenu' => 600, 34 35 'speedFloat' => 1500, … … 51 52 if(! isset($instance['offsetA']) ){ $instance['offsetA'] = '50'; } 52 53 if(! isset($instance['tabText']) ){ $instance['tabText'] = 'Menu'; } 54 if(! isset($instance['center']) ){ $instance['center'] = ''; } 53 55 if(! isset($instance['autoClose']) ){ $instance['autoClose'] = ''; } 54 56 if(! isset($instance['tabClose']) ){ $instance['tabClose'] = ''; } … … 90 92 $instance['location'] = $new_instance['location']; 91 93 $instance['align'] = $new_instance['align']; 94 $instance['center'] = $new_instance['center']; 92 95 $instance['offsetL'] = (int) strip_tags( stripslashes($new_instance['offsetL']) ); 93 96 $instance['offsetA'] = (int) strip_tags( stripslashes($new_instance['offsetA']) ); … … 110 113 $location = isset( $instance['location'] ) ? $instance['location'] : 'top'; 111 114 $align = isset( $instance['align'] ) ? $instance['align'] : 'left'; 115 $center = isset( $instance['center'] ) ? $instance['center'] : ''; 112 116 $offsetL = isset( $instance['offsetL'] ) ? $instance['offsetL'] : '10'; 113 117 $offsetA = isset( $instance['offsetA'] ) ? $instance['offsetA'] : '10'; … … 155 159 <input type="text" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" value="<?php echo $width; ?>" /> 156 160 </p> 161 157 162 <p> 158 163 <label for="<?php echo $this->get_field_id('location'); ?>"><?php _e( 'Location' , 'dcjq-floating-menu' ); ?></label> … … 170 175 </select> 171 176 <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> 172 181 </p> 173 182 <p> … … 278 287 $offsetA = $wpdcjqfloatingmenu['offsetA']; 279 288 if($offsetA == ''){$offset = '0';}; 289 290 $center = $wpdcjqfloatingmenu['center']; 291 $opt_center = $center == 'true' ? 'center: true, centerPx: '.$offsetA.',' : '' ; 280 292 281 293 $autoClose = $wpdcjqfloatingmenu['autoClose']; … … 303 315 offsetLocation: <?php echo $offsetL; ?>, 304 316 offsetAlign: <?php echo $offsetA; ?>, 317 <?php echo $opt_center; ?> 305 318 autoClose: <?php echo $autoClose; ?>, 306 319 tabClose: <?php echo $tabClose; ?>, -
floating-menu/trunk/readme.txt
r455147 r467946 5 5 Requires at least: 3.0 6 6 Tested up to: 3.10 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 9 9 Floating Menu creates a sticky, floating menu widget from any Wordpress custom menu using jQuery. … … 24 24 ** Bottom Left or Bottom Right - menu slides up 25 25 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 26 27 * Floating Speed - The speed for the menu floating animation 27 28 * Animation Speed - The speed at which the menu will open/close … … 68 69 69 70 = 1.3 = 71 * Added: option to position menu from center of browser window 72 73 = 1.3 = 70 74 * Added: disable floating animation option 71 75
Note: See TracChangeset
for help on using the changeset viewer.