projects
/
WP-Plugins
/
glm-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5727478
)
Anchor around image as well
author
Laury GvR
<laury@gaslightmedia.com>
Fri, 5 Dec 2014 17:51:54 +0000
(12:51 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Fri, 5 Dec 2014 17:51:54 +0000
(12:51 -0500)
views/front/showBlocks.php
patch
|
blob
|
history
diff --git
a/views/front/showBlocks.php
b/views/front/showBlocks.php
index
f2f4d3c
..
06aabe6
100644
(file)
--- a/
views/front/showBlocks.php
+++ b/
views/front/showBlocks.php
@@
-1,7
+1,13
@@
<?php foreach ($blocks as $block):?>
<div class="text-center small-12 medium-12 medium-centered large-uncentered large-4 columns">
+ <?php if($block->url):?>
+ <a href="<?php echo $block->url;?>">
+ <?php endif;?>
<?php echo $block->thumbnail;?>
<?php if($block->url):?>
+ </a>
+ <?php endif;?>
+ <?php if($block->url):?>
<a class="title-posts" href="<?php echo $block->url;?>">
<?php endif;?>
<h2><?php echo $block->post_title;?></h2>