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 | |
| /* | |
| Plugin Name: Demo | |
| Plugin URI: demo.com | |
| Description: Demo Features | |
| Version: 1.0.0 | |
| Author: WordPress.org | |
| Author URI: demo.com | |
| License: GPL2 | |
| License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
| /******************************** | |
| * Expandible Buttons * | |
| ********************************/ | |
| focusActiveCheck(); | |
| var focusBtn = $("#page-focus .focus-image"); | |
| focusBtn.click(function(){ | |
| var target = $(this).attr('data-expand'); | |
| $('#expandables').find(".expand-content").hide(); | |
| $('#expandables').find(".expand-content[data-expandtarget='"+ target +"']").show(); | |
| if(target == "our-history" || target == "volunteers" || target == "support-us"){ |
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
| // Generated by CoffeeScript 1.4.0 | |
| /* | |
| countdown is a simple jquery plugin for countdowns | |
| Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) | |
| and GPL-3.0 (http://opensource.org/licenses/GPL-3.0) licenses. | |
| @source: http://github.com/rendro/countdown/ | |
| @autor: Robert Fleischmann |
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
| /******************************** | |
| * Banner Home * | |
| ********************************/ | |
| function bannerResize() { | |
| var width = $(window).width(); | |
| var height = $(window).height(); | |
| var headerHeight = $('header#masthead').outerHeight(); | |
| $('#banner-home .banner-item').width(width); | |
| $('#banner-home .banner-item').height(height - headerHeight); |
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
| jQuery(document).bind('gform_post_render', function(){ | |
| // code to trigger on AJAX form render | |
| $('select').fancySelect(); | |
| formResize(); | |
| $(window).on('resize', formResize); | |
| $(window).on('load',formResize); | |
| $('select').on('change', formResize); | |
| $('.fancy-select .options li').on('click', formResize); |
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 | |
| global $sitepress; | |
| // save current language | |
| $current_lang = $sitepress->get_current_language(); | |
| //set your language | |
| $my_lang = 'es'; | |
| //switch to defined language | |
| $sitepress->switch_lang($my_lang); | |
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
| <script> | |
| var errorHtml = jQuery('.validation_error').html(); | |
| if(jQuery('#contact-form .gform_wrapper').hasClass('gform_validation_error')){ | |
| jQuery('#contact-form .validation_error').remove(); | |
| jQuery('#contact-form .gform_footer').append('<div class="validation_error"><span>'+errorHtml+'</span></div>'); | |
| }else { | |
| jQuery('.validation_error').css('display', 'none'); | |
| } | |
| </script> |
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
| <style> | |
| /* Hamburger icon */ | |
| .c-hamburger { | |
| position: relative; | |
| overflow: hidden; | |
| margin: 0; | |
| padding: 0; | |
| width: 34px; | |
| height: 34px; | |
| font-size: 0; |