',
esc_attr( sanitize_key( $notice ) )
);
echo wp_kses_post( $text );
printf(
'%s',
esc_url( $action_url ),
esc_html( $action_label )
);
printf(
'%s',
esc_url( wp_nonce_url( add_query_arg( $meta_key, $notice ), $meta_key ) ),
esc_attr__( 'Dismiss', 'code-snippets' )
);
echo '
';
}
/**
* Render a nav tab for a snippet type.
*
* @param string $type_name Type identifier.
* @param string $label Type label.
* @param string $current_type Identifier of currently-selected type.
*
* @return void
*/
public static function render_snippet_type_tab( string $type_name, string $label, string $current_type = '' ) {
$cloud_tabs = [ 'cloud', 'cloud_search', 'bundles' ];
$nav_tab_inactive = false;
if ( $type_name === $current_type ) {
printf( '