Update theme panel: full-page layout, adjust height, center buttons, add new tools and hosting providers
This commit is contained in:
@ -1271,6 +1271,7 @@ 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">
|
||||||
|
<div style="display: flex; justify-content: center; gap: 15px;">
|
||||||
<?php if (current_user_can('install_themes')): ?>
|
<?php if (current_user_can('install_themes')): ?>
|
||||||
<?php
|
<?php
|
||||||
$installed_theme = wp_get_theme('kadence');
|
$installed_theme = wp_get_theme('kadence');
|
||||||
@ -1287,13 +1288,14 @@ function wp_allstars_ajax_get_themes() {
|
|||||||
<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" style="text-align: center;">
|
<a class="button button-primary" href="https://www.kadencewp.com/kadence-theme/" target="_blank">
|
||||||
<?php esc_html_e('Go Pro'); ?>
|
<?php esc_html_e('Go Pro'); ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$html = ob_get_clean();
|
$html = ob_get_clean();
|
||||||
|
|
||||||
@ -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>
|
||||||
|
Reference in New Issue
Block a user