This file contains 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> | |
/* Default styles */ | |
.section-text { | |
color: black; | |
} | |
.section-image { | |
width: 100%; | |
} | |
</style> | |
<div class="parent-container"> |
This file contains 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 | |
class PostTypeTaxonomyMirror { | |
private $post_type; | |
private $taxonomy; | |
This file contains 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
// Howler | |
var words = new Howl({ | |
src: ['sounds/words.mp3'], | |
sprite: { | |
all: [0, 693], | |
are: [693, 529], | |
as: [1228, 644], | |
at: [1871, 528], |
This file contains 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 | |
$image_url = get_the_post_thumbnail_url( $post->ID, 'full' ) ?: 'http://via.placeholder.com/993x556' | |
$image_url = get_the_post_thumbnail_url( $post->ID, 'full' ) | |
? 'value if true' | |
: 'value if false'; |
This file contains 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
.gfield_error{ | |
input[type="text"], | |
textarea { | |
border: 1px solid $red; | |
} | |
} | |
.validation_error, |
This file contains 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 | |
/** | |
* Events custom post type has an ACF "end_date_time" which is a Date Time Picker field. | |
* This code creates list of all events that have not yet ended, sorted with | |
* the events that are ending soonest at the top of the list. | |
*/ | |
$now_date_time = new DateTime( 'now', new DateTimeZone( 'Australia/Melbourne' ) ); | |
$upcoming_events = []; |
This file contains 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 | |
add_filter( 'max_srcset_image_width', function (){ | |
return 1; | |
} ); | |
?> |
This file contains 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
/* | |
Flexslider | |
*/ | |
jQuery(document).ready(function($) { | |
// Vertically center images in slider container when image height is greater than container height (larger screens) | |
function verticallyCenterImages() { | |
var containerHeight = $('.flexslider').height(); |
NewerOlder