This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function my_wp_is_mobile() { | |
| if ( | |
| ! empty($_SERVER['HTTP_USER_AGENT']) | |
| // bail out, if iPad | |
| && false !== strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') | |
| ) return false; | |
| return wp_is_mobile(); | |
| } // function my_wp_is_mobile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| span { | |
| display: inline-block; | |
| height: 100%; | |
| vertical-align: middle; | |
| } | |
| img { | |
| display: inline-block; | |
| vertical-align: middle; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SmoothScroll for websites v1.2.1 | |
| // Licensed under the terms of the MIT license. | |
| // People involved | |
| // - Balazs Galambosi (maintainer) | |
| // - Michael Herf (Pulse Algorithm) | |
| (function(){ | |
| // Scroll Variables (tweakable) |