Add green styling to secondary buttons and Visit Website button across the plugin

This commit is contained in:
Marcus Quinn committed 2025-03-24 22:00:08 +00:00
1 parent a4b594c0e2
commit 1eb732684b
6 files changed
+47 -10

No files matched your search

+9 -1
View File
@@ -92,10 +92,18 @@ class WP_Allstars_Tools_Manager {
<div class="button-group">
<?php foreach ($tool['button_group'] as $button): ?>
<?php if (!empty($button['url']) && !empty($button['text'])): ?>
<?php
$button_class = 'button';
if (!empty($button['primary'])) {
$button_class .= ' button-primary go-pro-button';
} else {
$button_class .= ' green-button-secondary';
}
?>
<a
href="<?php echo esc_url($button['url']); ?>"
target="_blank"
class="button <?php echo !empty($button['primary']) ? 'button-primary' : ''; ?>"
class="<?php echo esc_attr($button_class); ?>"
>
<?php echo esc_html($button['text']); ?>
</a>