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
/* ------------------------------------------------------------ *\ | |
Mixins: Table core block | |
Included in frontend and admin styles. | |
\* ------------------------------------------------------------ */ | |
@mixin wp-block-table { | |
@include blocks-core__margin-vertical__large; | |
// font-weight: 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
/* ------------------------------------------------------------ *\ | |
Mixins: Pullquote core block | |
Included in frontend and admin styles. | |
\* ------------------------------------------------------------ */ | |
@mixin wp-block-pullquote { | |
@include blocks-core__margin-vertical__large; | |
border: none; // core style reset |
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
/* ------------------------------------------------------------ *\ | |
Core block: Embed | |
Editor styles only | |
\* ------------------------------------------------------------ */ | |
.wp-block-embed { | |
@include wp-block-embed; | |
} |
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
/* ------------------------------------------------------------ *\ | |
Search results | |
\* ------------------------------------------------------------ */ | |
.search-results__wrap { | |
@include breakpoint-down(mobile) { | |
margin-top: 15px; | |
} |
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
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
<?php | |
$post_id = dt_get_the_ID(); | |
if ( is_singular( 'ei_location' ) ) { | |
get_template_part('components/schema/location'); | |
} | |
elseif ( is_singular( 'ei_job' ) ) { |
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
$query_args = [ | |
'post_type' => ['dt_project'], | |
'posts_per_page' => -1, | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'meta_query' => [ | |
'relation' => 'OR', | |
[ | |
'key' => 'exclude_project', | |
'compare' => 'NOT EXISTS', |
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
function dt_custom_excerpt_length($length) | |
{ | |
global $post; | |
if ($post->post_type == 'post') { | |
return 18; // words | |
} | |
} | |
// add_filter( 'excerpt_length', 'dt_custom_excerpt_length', 999 ); |
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 | |
/** | |
* Helpers: Page Templates | |
*/ | |
function dt_is_full_width_template($post_id) { | |
if (!$post_id) { | |
return 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
<?php | |
/** | |
* Helpers: Videos | |
*/ | |
function dt_get_youtube_thumbnail_url($youtube_video_id) | |
{ | |
return $youtube_video_id | |
? 'https://img.youtube.com/vi/' . $youtube_video_id . '/0.jpg' // get first thumbnail from youtube |
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 | |
/** | |
* Helpers: Password protected content | |
*/ | |
/** | |
* Remove "Protected:" prefix from the title of password protected posts | |
*/ | |
function dt_remove_protected_prefix_from_titles($var, $post) |
NewerOlder