feat: add CHRNX shell and theme preference
This commit is contained in:
18 files changed
+633
-16
No files matched your search
@@ -20,7 +20,8 @@ $chrnx_control_name = wp_unique_id( 'chrnx-theme-' );
|
||||
?>
|
||||
data-status-light="<?php esc_attr_e( 'Light theme active', 'chrnx' ); ?>"
|
||||
data-status-dark="<?php esc_attr_e( 'Dark theme active', 'chrnx' ); ?>"
|
||||
data-status-system="<?php esc_attr_e( 'following system', 'chrnx' ); ?>"
|
||||
data-status-system-light="<?php esc_attr_e( 'Light theme active, following system preference', 'chrnx' ); ?>"
|
||||
data-status-system-dark="<?php esc_attr_e( 'Dark theme active, following system preference', 'chrnx' ); ?>"
|
||||
>
|
||||
<legend><?php esc_html_e( 'Color theme', 'chrnx' ); ?></legend>
|
||||
<label><input type="radio" name="<?php echo esc_attr( $chrnx_control_name ); ?>" value="light"> <?php esc_html_e( 'Light', 'chrnx' ); ?></label>
|
||||
@@ -28,3 +29,4 @@ $chrnx_control_name = wp_unique_id( 'chrnx-theme-' );
|
||||
<label><input type="radio" name="<?php echo esc_attr( $chrnx_control_name ); ?>" value="system" checked> <?php esc_html_e( 'System', 'chrnx' ); ?></label>
|
||||
<output data-chrnx-theme-status aria-live="polite"><?php esc_html_e( 'Following system theme', 'chrnx' ); ?></output>
|
||||
</fieldset>
|
||||
<noscript><p class="chrnx-theme-noscript"><?php esc_html_e( 'Enable JavaScript to choose a color theme.', 'chrnx' ); ?></p></noscript>
|
||||
Reference in new issue
Block a user