is_type( 'background' ) ) {
$data = $placement->get_data();
$bg_color = ( isset($data['bg_color']) ) ? $data['bg_color'] : '';
$option_content = '';
$description = __( 'Select a background color in case the background image is not high enough to cover the whole screen.', 'advanced-ads-pro' );
WordPress::render_option(
'placement-background-color',
__( 'background', 'advanced-ads-pro' ),
$option_content,
$description );
}
}
/**
* add color picker script to placements page
*
* @since 1.8
*/
function admin_scripts() {
$screen = get_current_screen();
if ( ! function_exists( 'wp_advads' ) || 'edit-advanced_ads_plcmnt' !== $screen->id ) {
return;
};
wp_enqueue_style( 'wp-color-picker' );
wp_enqueue_script( 'wp-color-picker' );
}
/**
* Add footer script on the placement screen
*
* @since 1.8
*/
public function inline_script() {
if ( ! $this->is_placement_screen() ) {
return;
}
?>
id;
}
return $is_placement_screen;
}
}