mirror of
https://ghproxy.net/https://github.com/AlxMedia/curver.git
synced 2025-08-28 18:24:43 +08:00
Update to Kirki 4.2.0
This commit is contained in:
parent
cbfd4f27e4
commit
77ecd4ca69
440 changed files with 6230 additions and 5211 deletions
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Metabox template for displaying clear font cache.
|
||||
*
|
||||
* @package Kirki
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || die( "Can't access directly" );
|
||||
?>
|
||||
|
||||
<div class="heatbox kirki-clear-font-cache-metabox">
|
||||
<h2><?php _e( 'Clear Font Cache', 'kirki' ); ?></h2>
|
||||
<div class="heatbox-content">
|
||||
<p>
|
||||
<?php _e( 'In order to achieve GDPR-compliance, Kirki stores Google Fonts locally on your server.', 'kirki' ); ?><br>
|
||||
<?php _e( 'If Google Fonts selected in the Customizer are not displayed correctly, please try clearing the font cache.', 'kirki' ); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php _e( 'This is safe to do on production sites.', 'kirki' ); ?>
|
||||
</p>
|
||||
<button
|
||||
type="button"
|
||||
class="button button-larger button-primary kirki-clear-font-cache"
|
||||
data-nonce="<?php echo esc_attr( wp_create_nonce( 'Kirki_Clear_Font_Cache' ) ); ?>"
|
||||
>
|
||||
<?php _e( 'Clear Cache', 'kirki' ); ?>
|
||||
</button>
|
||||
<span class="submission-status is-hidden"></span>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* Documentation metabox.
|
||||
*
|
||||
* @package Kirki
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || die( "Can't access directly" );
|
||||
?>
|
||||
|
||||
<div class="heatbox">
|
||||
<h2>
|
||||
<?php _e( 'Why do I see this?', 'kirki' ); ?>
|
||||
</h2>
|
||||
<div class="heatbox-content">
|
||||
<p class="description">
|
||||
<?php _e( 'Kirki is a key component of the WordPress theme you have installed.', 'kirki' ); ?>
|
||||
</p>
|
||||
<p class="description">
|
||||
<?php _e( 'It provides advanced customization options within the WordPress Customizer, allowing you to easily modify the appearance of your site.', 'kirki' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="heatbox">
|
||||
<h2>
|
||||
<?php _e( 'Documentation', 'kirki' ); ?>
|
||||
</h2>
|
||||
<div class="heatbox-content">
|
||||
<p class="description">
|
||||
<?php _e( 'For more information, please refer to your theme\'s documentation.', 'kirki' ); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php _e( 'The following article provides a detailed explanation of the Clear Font Cache option in Kirki.', 'kirki' ); ?>
|
||||
</p>
|
||||
<a href="https://kirki.org/docs/modules/settings-page/" target="_blank" class="button">
|
||||
<?php _e( 'Documentation', 'kirki' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Metabox template for displaying installation progress.
|
||||
*
|
||||
* @package Kirki
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || die( "Can't access directly" );
|
||||
?>
|
||||
|
||||
<div class="heatbox installation-progress-metabox is-hidden">
|
||||
<div class="heatbox-content">
|
||||
<div class="installation-info">
|
||||
Hang tight, please don't exit this page...
|
||||
</div>
|
||||
<ul class="installation-progress-list">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
/**
|
||||
* Settings page template.
|
||||
*
|
||||
* @package Kirki
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || die( "Can't access directly" );
|
||||
|
||||
return function () {
|
||||
?>
|
||||
|
||||
<div class="wrap heatbox-wrap kirki-settings-page" data-setup-udb-nonce="<?php echo esc_attr( wp_create_nonce( 'Kirki_Prepare_Install_Udb' ) ); ?>">
|
||||
|
||||
<div class="heatbox-header heatbox-has-tab-nav heatbox-margin-bottom">
|
||||
|
||||
<div class="heatbox-container heatbox-container-center">
|
||||
|
||||
<div class="logo-container">
|
||||
|
||||
<div>
|
||||
<span class="title">
|
||||
<?php _e( 'Kirki Customizer Framework', 'kirki' ); ?>
|
||||
<span class="version"><?php echo esc_html( KIRKI_VERSION ); ?></span>
|
||||
</span>
|
||||
<p class="subtitle"><?php _e( 'The #1 Customizer Toolkit for WordPress Theme Developers.', 'kirki' ); ?></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<img src="<?php echo esc_url( KIRKI_PLUGIN_URL ); ?>/assets/images/kirki-logo-rounded.png">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<ul class="heatbox-tab-nav">
|
||||
<li class="heatbox-tab-nav-item kirki-settings-panel">
|
||||
<a href="#settings"><?php _e( 'Settings', 'kirki' ); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="heatbox-container heatbox-container-center heatbox-column-container">
|
||||
|
||||
<div class="heatbox-main heatbox-panel-wrapper">
|
||||
|
||||
<!-- Faking H1 tag to place admin notices -->
|
||||
<h1 style="display: none;"></h1>
|
||||
|
||||
<div class="heatbox-admin-panel kirki-settings-panel">
|
||||
<?php
|
||||
require __DIR__ . '/metaboxes/clear-font-cache.php';
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="heatbox-sidebar">
|
||||
<?php require __DIR__ . '/metaboxes/documentation.php'; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue