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
| if( !function_exists('ff_have_more_posts') ) : | |
| function ff_have_more_posts( $args, $items_count ){ | |
| if( $args['showposts'] > $items_count ) return false; | |
| $args['fields'] = 'ids'; | |
| $args['showposts'] = 1; | |
| $args['offset'] = $items_count; | |
| if( !get_posts( $args ) ) return false; | |
| return true; | |
| } | |
| endif; |
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($){$(function(){ | |
| function custom_toggle(){ | |
| $('.custom_toggle').each(function(){ | |
| var _ = this; | |
| var el = $(this); | |
| if( typeof el.data('toggle-text') !== 'undefined' ) { | |
| _.toggle_text_el = el.find('.text'); | |
| _.toggle_text_on = el.data('toggle-text'); |
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
| .custom-popup { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgb(0 0 0 / 10%); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; |
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($){$(function(){ | |
| function realtime_search(){ | |
| $('.realtime_search').each(function(){ | |
| var el = this; | |
| var $el = $(this); | |
| var items = $($el.data('target')).find($el.data('target-item')); | |
| var search_fields = $el.data('search-fields').split(','); |
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($){$(function(){ | |
| function add_to_cart(atts){ | |
| var data = { | |
| action: 'ff_add_to_cart_ajax', | |
| product_id: atts.product_id, | |
| product_sku: '', | |
| quantity: ( typeof atts.quantity !== 'undefined' ) ? atts.quantity : 1, | |
| variation_id: ( typeof atts.variation_id !== 'undefined' ) ? atts.variation_id : 0, |
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
| .elementor-editor-active .elementor-inner > .elementor-section-wrap > section:not(.banner){ | |
| background: #fff; | |
| padding: 60px 0; | |
| margin: 120px 0; | |
| } | |
| .custom-sections-container { | |
| background: #fff; | |
| max-width: 1400px; | |
| margin: auto; |
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
| .elementor-editor-active selector section:before { | |
| content: 'CUSTOM TAB SECTION START'; | |
| background: #eee; | |
| display: block; | |
| text-align: center; | |
| padding: 20px; | |
| margin-top: 50px; | |
| } | |
| .elementor-editor-active selector section:after { |
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
| selector .main { | |
| position: relative; | |
| line-height: 0; | |
| margin-bottom: 20px; | |
| } | |
| selector .main:after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; |
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($){$(function(){ | |
| function FF_Tabs( opts ){ | |
| this.nav = opts.nav; | |
| this.content = opts.content; | |
| this.current = { | |
| nav: null, | |
| content: null, | |
| index: null, |
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($){$(function(){ | |
| function FF_Follow_Cursor( options ){ | |
| var container = $(options.container); | |
| var btn = $(options.btn); | |
| this.btn = btn; | |
| var follow_animation_duration = .5; |