From d89a16336d0254767574d9bbf59ddb81b1374248 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 30 Nov 2018 10:16:09 -0500 Subject: [PATCH] adding sign up button to the blocks content --- glm-blocks.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glm-blocks.php b/glm-blocks.php index db5c053..a5f8bbd 100644 --- a/glm-blocks.php +++ b/glm-blocks.php @@ -76,6 +76,10 @@ function landing_page_blocks( $atts ) if($block->url): $out .= ''; endif; + if($block->url): + $buttonText = ($count < 1) ? "SIGN UP" : "BUY NOW"; + $out .= 'externalUrl)? ' target="_blank"':'').'>' . $buttonText .''; + endif; $out .= ''; endforeach; $out .= ''; -- 2.17.1