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
| /*-----------------------------------------------------------------------------------*/ | |
| /* The Events Calendar - Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if ( tribe_is_month() && ! is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page |
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 | |
| /** | |
| * Complex WordPress meta query by start and end date (custom meta fields) | |
| * Intended for use on the `pre_get_posts` hook. | |
| * Caution; this makes the query very slow - several seconds - so should be | |
| * implemented with some form of caching. | |
| * | |
| * [email protected] 22.10.2019, based on code from 201 onwards | |
| */ |
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
| // Vimeo video | |
| // Nees player.min.js installed | |
| // For autoplaying on scroll needs Scrollmagic installed | |
| let iframe = $('.iframe-wrap iframe'); | |
| if (iframe) { | |
| iframe.each(function (i, el) { | |
| const options = { | |
| id: i, | |
| width: 1200, |
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
| <svg viewBox="0 0 376 546" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <path class="path"/> | |
| </svg> | |
| ///js | |
| const $path = $('.path'); | |
| const $length= $path.get(0).getTotalLength(); | |
| console.log(length); //i.e. 200 | |
| ///scss |
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
| In .htaccess file: | |
| php_value upload_max_filesize 40M | |
| php_value post_max_size 42M |
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
| function checkBtn($btn) { | |
| const page = $btn.data('page'); | |
| const perPage = $btn.data('per-page'); | |
| const total = $btn.data('total'); | |
| if (page * perPage < total) { | |
| $btn.show(); | |
| } else { | |
| $btn.hide(); | |
| } |
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
| <div class="form__select-wrap"> | |
| <p class="form__select-placeholder">Select City</p> | |
| <span class="icon"></span> | |
| <select name="" class="form__select"> | |
| <option value="0">Select City</option> | |
| <option value="1">Option 01</option> | |
| <option value="2">Option 02</option> | |
| <option value="2">Option 03</option> | |
| <option value="2">Option 04</option> | |
| </select> |
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
| //UNSLICK slider on desktop | |
| //will have to forcefully change sliider items opacity on resize | |
| var homeslider, homeSliderSettings; | |
| homeSlider = $('.home-media__slider'); | |
| homeSliderSettings = { | |
| dots: false, | |
| arrows: true, | |
| fade: true, | |
| adaptiveHeight: true, |
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
| 1. transition: transform .8s cubic-bezier(.165,.84,.44,1),-webkit-transform .8s cubic-bezier(.165,.84,.44,1); | |
| 2. transition: transform .5s cubic-bezier(.165,.84,.44,1),background .5s | |
| cubic-bezier(.165,.84,.44,1) 0s,-webkit-transform .5s cubic-bezier(.165,.84,.44,1);} | |
| 3. transform .5s cubic-bezier(.165,.84,.44,1) 0s,opacity .5s cubic-bezier(.165,.84,.44,1), | |
| -webkit-transform .5s cubic-bezier(.165,.84,.44,1) 0s | |
| 4. transition: opacity .6s cubic-bezier(.455,.03,.515,.955) .2s, | |
| transform .8s cubic-bezier(.165,.84,.44,1) .2s,-webkit-transform .8s cubic-bezier(.165,.84,.44,1) .2s;} | |
| 5. scroll reveal: | |
| transition: all 0.7s ease-in-out 0s, opacity 1.5s cubic-bezier(0.5, 0, 0, 1) 0s, transform 1.5s cubic-bezier(0.5, 0, 0, 1) 0s; |
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
| function closeModal() { | |
| $('.modal-wrap.is-active').removeClass('is-active'); | |
| $('#overlay').fadeOut(); | |
| $('body', 'html').removeClass('no-scroll'); //if scroll was removed | |
| } | |
| $('.modal__close-btn').on('click', function (e) { | |
| e.stopPropagation(); | |
| closeModal(); | |
| }); |
NewerOlder