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 src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script> | |
| <form> | |
| <div id="re-captcha"></div> | |
| <input type="submit" value="Submit" id="contactFormSubmit" value="Submit" disabled /> | |
| </form> | |
| <script> | |
| var actCallback = function (response) { | |
| $('#contactFormSubmit').prop('disabled', false); |
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
| $cast_members = get_field( 'cast_members'); /* The repeater field */ | |
| $row = $row[2]; /* The repeater field row number to target (start counting at 0) */ | |
| $character = $row['character']; /* The field to get */ | |
| echo $character; /* Echo the field */ |
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
| /* Note: Clip is deprecated and will be replaced by the clip-path in the future. */ | |
| #my-div img { | |
| position: absolute; | |
| clip: rect( 0px, 300px, 177px, 0px ); | |
| } |
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
| {{ string_with_newlines | strip_newlines }} |
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
| // Save this to the 'sections' directory... | |
| {% if section.settings.hero_image %} | |
| <img src="{{ section.settings.hero_image | img_url:'master' }}" alt="{{ section.settings.hero_image.alt | escape }}" /> | |
| {% endif %} | |
| {% schema %} { | |
| "name": "Hero Image", | |
| "settings": [ | |
| { |
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 | |
| /* | |
| Only allow access to a URL if nonce passed. | |
| Nonce docs: https://codex.wordpress.org/WordPress_Nonces | |
| */ | |
| /* The URL you want to protect */ | |
| $the_url = plugins_url() . '/my-plugin/top-secret.php'; | |
| ?> | |
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
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" /> | |
| <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> | |
| <script src="https://unpkg.com/leaflet.fullscreen@1.4.5/Control.FullScreen.js"></script> | |
| <style>.leaflet-control-zoom-fullscreen { background-image: url('<?php echo get_template_directory_uri();?>/images/maps/icon-fullscreen.png');}</style> | |
| <div id='map'></div> | |
| <script type="text/javascript"> | |
| $( document ).ready(function() { | |
| var map = new L.Map('map', { | |
| center: [-31.898472745592997, 115.81094863686857], |
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
| /* | |
| Enqueue jQuery | |
| Uses the WordPress built-on jQuery | |
| */ | |
| function my_jquery_method() { | |
| wp_enqueue_script( 'jquery'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'my_jquery_method' ); |
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
| $(window).scroll(function() { | |
| if ($(document).scrollTop() > 100) { | |
| $('.header').addClass('scrolled'); | |
| } | |
| else { | |
| $('.header').removeClass('scrolled'); | |
| } | |
| }); |