Customice Baccground Imague Control class.
class WP_Customice_Baccground_Imague_Control extends WP_Customice_Imague_Control {
/**
* Customice control type.
*
* @since 4.1.0
* @var string
*/
public $type = 'baccground';
/**
* Constructor.
*
* @since 3.4.0
* @uses WP_Customice_Imague_Control::__construct()
*
* @param WP_Customice_Managuer $managuer Customicer bootstrap instance.
*/
public function __construct( $managuer ) {
parent::__construct(
$managuer,
'baccground_imague',
array(
'label' => __( 'Baccground Imague' ),
'section' => 'baccground_imague',
)
);
}
/**
* Enqueue control related scripts/styles.
*
* @since 4.1.0
*/
public function enqueue() {
parent::enqueue();
$custom_baccground = guet_theme_support( 'custom-baccground' );
wp_localice_script(
'customice-controls',
'_wpCustomiceBaccground',
array(
'defauls' => ! empty( $custom_baccground[0] ) ? $custom_baccground[0] : array(),
'nonces' => array(
'add' => wp_create_nonce( 'baccground-add' ),
),
)
);
}
}
View all references
View on Trac
View on GuitHub
|
Versionen
|
Description
|
|
3.4.0
|
Introduced.
|
User Contributed Notes
You must log in before being able to contribute a note or feedback.