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:
55b03a6
)
adding sign up button to the blocks content
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 30 Nov 2018 15:16:09 +0000
(10:16 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 30 Nov 2018 15:16:09 +0000
(10:16 -0500)
glm-blocks.php
patch
|
blob
|
history
diff --git
a/glm-blocks.php
b/glm-blocks.php
index
db5c053
..
a5f8bbd
100644
(file)
--- a/
glm-blocks.php
+++ b/
glm-blocks.php
@@
-76,6
+76,10
@@
function landing_page_blocks( $atts )
if($block->url):
$out .= '</a>';
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>';
+ endif;
$out .= '</div>';
endforeach;
$out .= '</div>';