block update for links
authorIan Weller <ian@gaslightmedia.com>
Wed, 13 Apr 2016 19:34:17 +0000 (15:34 -0400)
committerIan Weller <ian@gaslightmedia.com>
Wed, 13 Apr 2016 19:34:17 +0000 (15:34 -0400)
parts/glm-blocks.php

index 5301456..a076c7f 100644 (file)
 
                 <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>