adding target blank to the partners blocks links to make the web pages open in new...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 12 Sep 2016 13:03:06 +0000 (09:03 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 12 Sep 2016 13:03:06 +0000 (09:03 -0400)
parts/glm-blocks.php

index 678709b..dc6abc0 100644 (file)
@@ -25,7 +25,7 @@
         <div class="block-content">
               <?php echo apply_filters('the_content', $block->post_content);?>
           <?php if($block->url):?>
-            <a class="blocks-readmore" href="<?php echo $block->url;?>"> Visit Website</a>
+            <a class="blocks-readmore" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>> Visit Website</a>
           <?php endif;?>
         </div>
     </div>