updated plugin GP Premium version 2.5.2

This commit is contained in:
2025-04-29 21:19:14 +00:00
committed by Gitium
parent c53f9e0e50
commit eb9181b250
14 changed files with 470 additions and 21 deletions

View File

@ -14,6 +14,10 @@ class GeneratePress_Information_Customize_Control extends WP_Customize_Control {
public $description = '';
public $notice = '';
public function enqueue() {
wp_enqueue_style( 'gp-info-control', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'css/information-control.css', false, GP_PREMIUM_VERSION );
}
public function to_json() {
parent::to_json();
$this->json['description'] = $this->description;
@ -23,7 +27,7 @@ class GeneratePress_Information_Customize_Control extends WP_Customize_Control {
public function content_template() {
?>
<# if ( data.notice ) { #>
<div class="notice notice-info">
<div class="gp-info-notice gp-info-notice-info">
<# } #>
<# if ( data.label ) { #>

View File

@ -0,0 +1,12 @@
.gp-info-notice {
background: #fff;
border: 1px solid #c3c4c7;
border-left-width: 4px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
margin: 0;
padding: 1px 12px;
}
.gp-info-notice-info {
border-left-color: #72aee6;
}