projects
/
WP-Themes
/
gaslightmedia.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24f35b
)
block update for links
author
Ian Weller
<ian@gaslightmedia.com>
Wed, 13 Apr 2016 19:34:17 +0000
(15:34 -0400)
committer
Ian Weller
<ian@gaslightmedia.com>
Wed, 13 Apr 2016 19:34:17 +0000
(15:34 -0400)
parts/glm-blocks.php
patch
|
blob
|
history
diff --git
a/parts/glm-blocks.php
b/parts/glm-blocks.php
index
5301456
..
a076c7f
100644
(file)
--- a/
parts/glm-blocks.php
+++ b/
parts/glm-blocks.php
@@
-15,9
+15,15
@@
<div class="block-text">
- <h4 class="text-center">
- <?php echo $block->post_title;?>
- </h4>
+ <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
+ <?php endif;?>
+ <h4 class="text-center">
+ <?php echo $block->post_title;?>
+ </h4>
+ <?php if($block->url):?>
+ </a>
+ <?php endif;?>
+
<p><?php echo $block->post_content . $block->post_excerpt;?></p>
</div>