fixing broken div tag that should be a closing anchor tag
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Nov 2018 19:06:16 +0000 (14:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Nov 2018 19:06:16 +0000 (14:06 -0500)
glm-blocks.php

index 7ae7557..f6e8735 100644 (file)
@@ -113,7 +113,7 @@ function action_item_blocks( $atts ){
         foreach ($blocks as $block):
             $post_image_id = get_post_thumbnail_id($block->ID);
             $thumbnail = wp_get_attachment_image_src( $post_image_id, 'landing_page');
-            $out .= '<div class="small-text-center medium-text-left glm-block">';
+            $out .= '<a class="small-text-center medium-text-left glm-block">';
             if($block->url):
                 $out .= '<a href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>';
             endif;
@@ -125,7 +125,7 @@ function action_item_blocks( $atts ){
             endif;
             if($block->url):
                 $buttonText = ($count < 1) ? "SIGN UP" : "BUY NOW";
-                $out .= '<a class="sign-up-button" href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>' . $buttonText .'</div>';
+                $out .= '<a class="sign-up-button" href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>' . $buttonText .'</a>';
             endif;
             $out .= '</div>';
             $count++;