projects
/
WP-Themes
/
uptravel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e60a29
)
adding size for front page block images
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 6 Dec 2018 20:31:01 +0000
(15:31 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 6 Dec 2018 20:31:01 +0000
(15:31 -0500)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
b70cec2
..
b088f60
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-305,7
+305,7
@@
add_filter( 'rest_endpoints', function( $endpoints ){
$count = 0;
foreach ($blocks as $block):
$post_image_id = get_post_thumbnail_id($block->ID);
- $thumbnail = wp_get_attachment_image_src( $post_image_id, 'la
nding_pa
ge')[0];
+ $thumbnail = wp_get_attachment_image_src( $post_image_id, 'la
r
ge')[0];
$out .= "<div class='small-text-center medium-text-left glm-block block-$count'>";
if($block->url):
$out .= '<a href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>';