updated plugin GP Premium version 2.0.3

This commit is contained in:
2021-07-25 23:25:02 +00:00
committed by Gitium
parent d7964b08bd
commit 3ef36355e9
154 changed files with 6153 additions and 9541 deletions

View File

@ -10,22 +10,33 @@ if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'GeneratePress_In
*/
class GeneratePress_Information_Customize_Control extends WP_Customize_Control {
public $type = 'gp_information_control';
public $description = '';
public $notice = '';
public function to_json() {
parent::to_json();
$this->json[ 'description' ] = $this->description;
$this->json['description'] = $this->description;
$this->json['notice'] = $this->notice;
}
public function content_template() {
?>
<# if ( data.notice ) { #>
<div class="notice notice-info">
<# } #>
<# if ( data.label ) { #>
<span class="customize-control-title">{{ data.label }}</span>
<# } #>
<# if ( data.description ) { #>
<p>{{{ data.description }}}</p>
<# } #>
<# if ( data.notice ) { #>
</div>
<# } #>
<?php
}
}
endif;
endif;