Update theme panel: full-page layout, adjust height, center buttons, add new tools and hosting providers

This commit is contained in:
Marcus Quinn
2025-03-17 00:06:24 +00:00
parent 2fc542ac62
commit 2cc03a5271

View File

@ -1271,25 +1271,27 @@ function wp_allstars_ajax_get_themes() {
<span class="theme-author"><?php echo esc_html(sprintf(__('By %s'), $author)); ?></span> <span class="theme-author"><?php echo esc_html(sprintf(__('By %s'), $author)); ?></span>
<h3 class="theme-name"><?php echo esc_html($theme_data->name); ?></h3> <h3 class="theme-name"><?php echo esc_html($theme_data->name); ?></h3>
<div class="theme-actions"> <div class="theme-actions">
<?php if (current_user_can('install_themes')): ?> <div style="display: flex; justify-content: center; gap: 15px;">
<?php <?php if (current_user_can('install_themes')): ?>
$installed_theme = wp_get_theme('kadence'); <?php
if ($installed_theme->exists()): ?> $installed_theme = wp_get_theme('kadence');
<button type="button" class="button button-primary activate-now" data-slug="kadence"> if ($installed_theme->exists()): ?>
<?php esc_html_e('Activate'); ?> <button type="button" class="button button-primary activate-now" data-slug="kadence">
</button> <?php esc_html_e('Activate'); ?>
<?php else: ?> </button>
<button type="button" class="button button-primary install-now" data-slug="kadence"> <?php else: ?>
<?php esc_html_e('Install'); ?> <button type="button" class="button button-primary install-now" data-slug="kadence">
</button> <?php esc_html_e('Install'); ?>
</button>
<?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?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 preview install-theme-preview" href="<?php echo esc_url($theme_data->preview_url); ?>" target="_blank"> <?php esc_html_e('Preview'); ?>
<?php esc_html_e('Preview'); ?> </a>
</a> <a class="button button-primary" href="https://www.kadencewp.com/kadence-theme/" target="_blank">
<a class="button button-primary" href="https://www.kadencewp.com/kadence-theme/" target="_blank" style="text-align: center;"> <?php esc_html_e('Go Pro'); ?>
<?php esc_html_e('Go Pro'); ?> </a>
</a> </div>
</div> </div>
</div> </div>
</div> </div>
@ -1611,7 +1613,7 @@ function wp_allstars_settings_page() {
overflow: hidden; overflow: hidden;
} }
#wpa-theme-list .theme-screenshot { #wpa-theme-list .theme-screenshot {
height: 400px; height: 300px;
} }
#wpa-theme-list .theme-screenshot img { #wpa-theme-list .theme-screenshot img {
height: 100%; height: 100%;
@ -1625,14 +1627,16 @@ function wp_allstars_settings_page() {
#wpa-theme-list .theme-actions { #wpa-theme-list .theme-actions {
padding: 15px; padding: 15px;
display: flex; display: flex;
gap: 10px; justify-content: center;
gap: 20px;
position: static; position: static;
opacity: 1; opacity: 1;
background: #f8f9fa; background: #f8f9fa;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
#wpa-theme-list .theme-actions .button { #wpa-theme-list .theme-actions .button {
min-width: 120px; width: auto;
min-width: 100px;
text-align: center; text-align: center;
} }
</style> </style>