Changeset 911316
- Timestamp:
- 05/09/2014 08:16:58 PM (12 years ago)
- Location:
- lowermedia-sticky-js-menus/trunk
- Files:
-
- 4 edited
-
js/jquery.sticky.js (modified) (3 diffs)
-
js/run-sticky.js (modified) (2 diffs)
-
lowermedia-sticky-js-menus.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lowermedia-sticky-js-menus/trunk/js/jquery.sticky.js
r859626 r911316 4 4 // Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk) 5 5 // Improvements by Leonardo C. Daronco (daronco) 6 // Modifications for WordPress Plugin Usage by Pete Lower 6 7 // Created: 2/14/2011 7 8 // Date: 2/12/2012 8 9 // Website: http://labs.anthonygarand.com/sticky 10 // 9 11 // Description: Makes an element on the page stick on the screen as you scroll 10 12 // It will only set the 'top' and 'position' of your element, you 11 13 // might need to adjust the width in some cases. 12 13 // Revised by Pete Lowerfor WordPress Plugin LowerMedia Sticky JS Menus14 // 15 // Revised by LowerMedia for WordPress Plugin LowerMedia Sticky JS Menus 14 16 // Free rock music: i9mh.com 15 17 … … 18 20 $('body').addClass('petejsclass'); 19 21 22 23 // THIS IF STATEMENT DECIDES THE WIDTH OF THE STICKY NAV 24 // CONTAINER BASED ON THE DIV SPECIFIED 20 25 var gotwidth; 21 26 if (LMScriptParams.themename=='responsive') … … 38 43 { 39 44 gotwidth = '#content_section'; 45 } 46 else if (LMScriptParams.themename=='Isabelle') 47 { 48 gotwidth = '.container'; 40 49 } 41 50 else -
lowermedia-sticky-js-menus/trunk/js/run-sticky.js
r854971 r911316 3 3 # 4 4 # This script recieves a parameter (the active theme's themename) from lowermedia-sticky-js-menus.php, 5 # it uses this parameter to decide which div to put the sticky wrapper around. The .sticky function 6 # is defined in jquery.sticky.js. This script also adds two classes to the body for debuging/testing 7 # and/or styling if needed 5 # it uses this parameter to decide which div to put the sticky wrapper around. 6 # 7 # The .sticky function is defined in jquery.sticky.js. 8 # 9 # This script also adds two classes to the body for debuging/testing and/or styling if needed 8 10 # 9 11 # … … 58 60 jQuery(".site-navigation").sticky({ topSpacing: 0 });//spun 59 61 } 62 else if (LMScriptParams.themename=='Isabelle') 63 { 64 jQuery(".nav").sticky({ topSpacing: 0 });//spun 65 } 66 else if (LMScriptParams.themename=='spacious') 67 { 68 jQuery("#header-text-nav-container").sticky({ topSpacing: 0 });//spun 69 } 60 70 else if (LMScriptParams.themename=='lowermedia_one_page_theme' || LMScriptParams.themename=='expound' || LMScriptParams.themename=='sixteen' || LMScriptParams.themename=='bushwick' || LMScriptParams.themename=='twentytwelve') 61 71 { -
lowermedia-sticky-js-menus/trunk/lowermedia-sticky-js-menus.php
r859626 r911316 4 4 Plugin URI: http://lowermedia.net 5 5 Description: WordPress plugin that integrates sticky.js and makes your primary navigation menu sticky (will 'stick' to top of screen when rolled over). Activate and make your primary menu sticky! Sticky means having your navigation always visible, the nav fixes itself to the top of the page. This plugin uses the <a href='http://stickyjs.com'>Sticky.js</a> script, props and credit for creating that go to <a href="http://anthonygarand.com">Anthony Garand</a>, Thanks Anthony! 6 Version: 2.0. 27 Stable: 2.0. 26 Version: 2.0.3 7 Stable: 2.0.3 8 8 Author: Pete Lower 9 9 Author URI: http://petelower.com … … 56 56 && $theme_data['Template']!='attitude' 57 57 && $theme_data['Template']!='spun' 58 && $theme_data['Template']!='Isabelle' 59 && $theme_data['Template']!='spacious' 58 60 && $theme_data['Template']!='bushwick') 59 61 { -
lowermedia-sticky-js-menus/trunk/readme.txt
r859626 r911316 4 4 Tags: js, sticky.js, multisite, navigation 5 5 Requires at least: 3.0.1 6 Tested up to: 3. 8.17 Stable tag: 2.0. 26 Tested up to: 3.9.1 7 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 WordPress plugin that integrates sticky.js and makes your primary navigation menu sticky 12 (will 'stick' to top of screen when rolled over). 12 (will 'stick' to top of screen when rolled over). 13 13 14 14 == Description == … … 26 26 <a href='http://lowermedia.net'>LowerMedia.Net</a> 27 27 <a href='http://petelower.com'>Dev'd by Pete</a> 28 29 28 30 29 … … 87 86 *Increase number of themes tested with and supporting out of the box 88 87 89 = 2.0. x=88 = 2.0.1 = 90 89 *Fix jumpiness issue 91 90 *Add to list of supported browsers 92 91 *Optimization 92 *Bushwik theme support 93 *TwentyTwelve as base theme 94 *Documentation 95 *Name Correction 96 *Attitude theme support 97 *Destro Theme support 98 *Sixteen theme support 99 *Expound theme support 100 *LowerMedia One Page theme support 101 *Neuro theme support 102 103 = 2.0.2 = 104 *Add ability to target default menu 105 *Fix 'jumping around of menu in rare cases' 106 *Syntax correction 107 108 = 2.0.3 = 109 *Add improvements for Isabella and Spacious theme 110 *Documentation 93 111 94 112 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.