Fix Pricing buttons to always use green styling with dedicated class and CSS rules

This commit is contained in:
Marcus Quinn
2025-03-24 22:11:04 +00:00
parent a82bd8b3f4
commit 9cd079206f
3 changed files with 33 additions and 0 deletions

View File

@ -46,6 +46,10 @@ class WP_Allstars_Hosting_Manager {
} else {
// Add green styling to secondary buttons
$button_class .= ' green-button-secondary';
// Special handling for Pricing buttons
if ($button['text'] === 'Pricing') {
$button_class .= ' pricing-button';
}
}
?>
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">

View File

@ -100,6 +100,10 @@ class WP_Allstars_Pro_Plugins_Manager {
} else {
// Add green styling to secondary buttons
$button_class .= ' green-button-secondary';
// Special handling for Pricing buttons
if ($button['text'] === 'Pricing') {
$button_class .= ' pricing-button';
}
}
?>
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">