Add green styling to secondary buttons and Visit Website button across the plugin
This commit is contained in:
@ -917,6 +917,23 @@ input:checked + .wp-toggle-slider:before {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
|
||||
}
|
||||
|
||||
/* Green Secondary Button Styles */
|
||||
.green-button-secondary,
|
||||
.green-visit-website {
|
||||
transition: all 0.3s ease !important;
|
||||
color: #219653 !important; /* Darker green */
|
||||
border-color: #219653 !important; /* Darker green */
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.green-button-secondary:hover,
|
||||
.green-visit-website:hover {
|
||||
color: #1b7b42 !important; /* Even darker green on hover */
|
||||
border-color: #1b7b42 !important; /* Even darker green on hover */
|
||||
background-color: rgba(33, 150, 83, 0.05) !important; /* Very light green background */
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
/* Read Me Tab Panel */
|
||||
#readme .wpa-pro-plugins {
|
||||
display: block;
|
||||
|
@ -218,7 +218,7 @@ class WP_Allstars_Admin_Manager {
|
||||
<h1><?php echo esc_html(get_admin_page_title()); ?></h1>
|
||||
<div class="wp-allstars-header-actions">
|
||||
<span class="wp-allstars-version"><?php echo esc_html(WP_ALLSTARS_VERSION); ?></span>
|
||||
<a href="https://www.wpallstars.com/" target="_blank" class="button button-secondary">
|
||||
<a href="https://www.wpallstars.com/" target="_blank" class="button button-secondary green-button-secondary green-visit-website">
|
||||
<?php esc_html_e('Visit Website', 'wp-allstars'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -39,7 +39,16 @@ class WP_Allstars_Hosting_Manager {
|
||||
<?php if (isset($provider['button_group'])): ?>
|
||||
<div class="button-group">
|
||||
<?php foreach ($provider['button_group'] as $button): ?>
|
||||
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="button <?php echo isset($button['primary']) && $button['primary'] ? 'button-primary' : ''; ?>">
|
||||
<?php
|
||||
$button_class = 'button';
|
||||
if (isset($button['primary']) && $button['primary']) {
|
||||
$button_class .= ' button-primary go-pro-button';
|
||||
} else {
|
||||
// Add green styling to secondary buttons
|
||||
$button_class .= ' green-button-secondary';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
||||
<?php echo esc_html($button['text']); ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
|
@ -97,6 +97,9 @@ class WP_Allstars_Pro_Plugins_Manager {
|
||||
if ($button['text'] === 'Go Pro') {
|
||||
$button_class .= ' go-pro-button';
|
||||
}
|
||||
} else {
|
||||
// Add green styling to secondary buttons
|
||||
$button_class .= ' green-button-secondary';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
||||
@ -107,11 +110,11 @@ class WP_Allstars_Pro_Plugins_Manager {
|
||||
<?php else: ?>
|
||||
<div class="button-group">
|
||||
<?php if (!empty($plugin['demo_url'])): ?>
|
||||
<a href="<?php echo esc_url($plugin['demo_url']); ?>" class="button" target="_blank">
|
||||
<a href="<?php echo esc_url($plugin['demo_url']); ?>" class="button green-button-secondary" target="_blank">
|
||||
<?php esc_html_e('View Demo', 'wp-allstars'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo esc_url($plugin['url']); ?>" class="button button-primary" target="_blank">
|
||||
<a href="<?php echo esc_url($plugin['url']); ?>" class="button button-primary go-pro-button" target="_blank">
|
||||
<?php esc_html_e('Learn More', 'wp-allstars'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -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>
|
||||
|
@ -73,19 +73,19 @@ if (!defined('ABSPATH')) {
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<a class="button button-secondary preview install-theme-preview" href="<?php echo esc_url($theme_data->preview_url); ?>" target="_blank">
|
||||
<a class="button button-secondary green-button-secondary preview install-theme-preview" href="<?php echo esc_url($theme_data->preview_url); ?>" target="_blank">
|
||||
<?php esc_html_e('Preview'); ?>
|
||||
</a>
|
||||
<a class="button button-secondary" href="https://www.kadencewp.com/kadence-theme/starter-templates/" target="_blank">
|
||||
<a class="button button-secondary green-button-secondary" href="https://www.kadencewp.com/kadence-theme/starter-templates/" target="_blank">
|
||||
<?php esc_html_e('Templates'); ?>
|
||||
</a>
|
||||
<a class="button button-secondary" href="https://www.kadencewp.com/wordpress-solutions/kadence-ai/" target="_blank">
|
||||
<a class="button button-secondary green-button-secondary" href="https://www.kadencewp.com/wordpress-solutions/kadence-ai/" target="_blank">
|
||||
<?php esc_html_e('Starter AI'); ?>
|
||||
</a>
|
||||
<a class="button button-secondary" href="https://www.kadencewp.com/kadence-theme/marketplace/" target="_blank">
|
||||
<a class="button button-secondary green-button-secondary" href="https://www.kadencewp.com/kadence-theme/marketplace/" target="_blank">
|
||||
<?php esc_html_e('Marketplace'); ?>
|
||||
</a>
|
||||
<a class="button button-secondary" href="https://www.kadencewp.com/pricing/" target="_blank">
|
||||
<a class="button button-secondary green-button-secondary" href="https://www.kadencewp.com/pricing/" target="_blank">
|
||||
<?php esc_html_e('Pricing'); ?>
|
||||
</a>
|
||||
<a class="button button-primary go-pro-button" href="https://www.kadencewp.com/kadence-theme/" target="_blank">
|
||||
|
Reference in New Issue
Block a user