array(
'label' => __( 'Light', 'chrnx' ),
'icon' => '',
),
'dark' => array(
'label' => __( 'Dark', 'chrnx' ),
'icon' => '',
),
'system' => array(
'label' => __( 'System', 'chrnx' ),
'icon' => '',
),
);
?>
'chrnx-theme-toggle',
'data-chrnx-theme-toggle' => '',
)
);
?>
data-chrnx-theme-panel
data-status-light=""
data-status-dark=""
data-status-system-light=""
data-status-system-dark=""
>
$chrnx_choice ) {
printf(
// The icon geometry is a fixed literal above, never user input.
'',
esc_attr( $chrnx_value ),
'system' === $chrnx_value ? 'true' : 'false',
esc_html( $chrnx_choice['label'] ),
$chrnx_choice['icon'] // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
}
?>