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 | |
$terms = array( 'citywide', 'central', 'east', 'west', 'seasonal' ); | |
foreach( $terms as $term ) { | |
$events = tribe_get_events( | |
array( | |
'posts_per_page' => 4, | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'tribe_events_cat', |
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
import { InspectorControls, useSetting } from '@wordpress/block-editor'; | |
import { PanelBody, PanelRow, ColorPalette } from '@wordpress/components'; | |
const Edit = () => { | |
const { bgColor } = attributes; | |
const colors = useSetting( 'color.palette' ) || []; | |
return ( | |
<> |
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
/*** | |
* Fonts | |
*/ | |
// Body font | |
$primary-font: 'Lato', sans-serif; | |
$header-font: $primary-font; | |
// Font Weights | |
$font-light: 400; |
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 | |
global $wp_roles; | |
if ( ! isset( $wp_roles ) ) | |
$wp_roles = new WP_Roles(); | |
$roles = $wp_roles->get_names(); | |
foreach ($roles as $role_value => $role_name) { | |
echo '<p><input type="checkbox" value="' . $role_value . '">'.$role_name.'</p>'; |
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
.angled-element { | |
@include angled-top-left; | |
@include angled-bottom-right; | |
} |
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
@mixin angled( $background-color, $top: true, $bottom: true, $reversed: false, $height: '1.5deg' ) { | |
position: relative; | |
@if $top { | |
&::before { | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0; | |
content: ''; |
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
@mixin angled-top-left( $background-color: $primary-brand-color ) { | |
@include angled( $background-color: $background-color, $top: true, $bottom: false, $reversed: false ); | |
} | |
@mixin angled-top-right( $background-color: $primary-brand-color ) { | |
@include angled( $background-color: $background-color, $top: true, $bottom: false, $reversed: true ); | |
} | |
@mixin angled-bottom-left( $background-color: $primary-brand-color ) { | |
@include angled( $background-color: $background-color, $top: false, $bottom: true, $reversed: true ); |
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
@mixin angled( $background-color, $reversed: false, $height: '1.5deg' ) { | |
position: relative; | |
&::before, | |
&::after { | |
display: block; | |
background-color: $background-color; | |
right: 0; | |
content: ''; | |
height: 50%; |
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_action( 'genesis_entry_header', 'featured_post_image', 8 ); | |
/** | |
* Conditionally add the post thumbnail to single post | |
*/ | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
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_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
/** | |
* Add the post thumbnail to single post | |
*/ | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
NewerOlder