2023-01-21 01:31:34 +01:00
< ? php
/**
* Partial : Site Settings Modal
*
* @ package WordPress
* @ subpackage Fictioneer
2024-01-26 17:45:59 +01:00
* @ since 4.1 . 0
2023-01-21 01:31:34 +01:00
*/
2023-08-20 20:21:48 +02:00
// No direct access!
defined ( 'ABSPATH' ) OR exit ;
?>
2024-12-06 17:38:32 +01:00
< div id = " site-settings-modal " class = " site-settings modal " data - fictioneer - target = " modal " data - action = " click->fictioneer#backgroundCloseModals keydown.esc@document->fictioneer#closeModals " data - nosnippet hidden >
2023-01-21 01:31:34 +01:00
< div class = " modal__wrapper narrow-inputs " >
2024-12-06 17:38:32 +01:00
< button class = " close " aria - label = " <?php esc_attr_e( 'Close modal', 'fictioneer' ); ?> " data - action = " click->fictioneer#closeModals " >< ? php fictioneer_icon ( 'fa-xmark' ); ?> </button>
2024-03-14 00:33:00 +01:00
< div class = " modal__header drag-anchor " >< ? php echo fcntr ( 'site_settings' ); ?> </div>
2024-10-01 21:47:11 +02:00
< div class = " modal__description modal__row site-settings__description site-settings__row _small-top " >
2023-09-16 14:25:26 +02:00
< p >< ? php _e ( 'You can toggle selected features and styles per device/browser to boost performance. Some options may not be available.' , 'fictioneer' ); ?> </p>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< hr >
< div class = " modal__row site-settings__row " >
< div class = " site-settings__sticky-navigation modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-nav-sticky " checked >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-nav-sticky " class = " modal__setting-toggle " >< ? php _e ( 'Scrolling (sticky) navigation bar' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__background-textures modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-background-textures " checked >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-background-textures " class = " modal__setting-toggle " >< ? php _e ( 'Background textures' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__polygons modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-polygons " checked >
2024-02-14 22:20:37 +01:00
< label for = " site-setting-polygons " class = " modal__setting-toggle " >< ? php _e ( 'Masks and polygons' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__progress-bar modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-chapter-progress-bar " checked >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-chapter-progress-bar " class = " modal__setting-toggle " >< ? php _e ( 'Chapter progress bar' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__covers modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-covers " checked >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-covers " class = " modal__setting-toggle " >< ? php _e ( 'Cover images (chapters and stories)' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2024-10-19 16:14:11 +02:00
< div class = " site-settings__covers modal__horizontal-input-group _with-checkbox " >
< input type = " checkbox " id = " site-setting-taxonomies " checked >
< label for = " site-setting-taxonomies " class = " modal__setting-toggle " >< ? php _e ( 'Taxonomies' , 'fictioneer' ); ?> </label>
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__text-shadows modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-text-shadows " >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-text-shadows " class = " modal__setting-toggle " >< ? php _e ( 'Text shadows' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__minimal modal__horizontal-input-group _with-checkbox " >
2023-01-21 01:31:34 +01:00
< input type = " checkbox " id = " site-setting-minimal " >
2023-09-16 14:25:26 +02:00
< label for = " site-setting-minimal " class = " modal__setting-toggle " >< ? php _e ( 'Minimalist mode' , 'fictioneer' ); ?> </label>
2023-01-21 01:31:34 +01:00
</ div >
</ div >
2023-07-09 19:51:54 +02:00
< hr >
2023-01-21 01:31:34 +01:00
< div class = " modal__row site-settings__row " >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__theme modal__horizontal-input-group " >
2023-01-21 01:31:34 +01:00
< i class = " fa-solid fa-weight-hanging reset font-weight-reset " ></ i >
< div class = " select-wrapper " >
< select name = " font-weight " class = " site-setting-font-weight " >
2023-09-16 14:25:26 +02:00
< option value = " default " selected = " selected " >< ? php _ex ( 'Font Weight: Default' , 'Site settings modal font weight selection.' , 'fictioneer' ); ?> </option>
< option value = " thinner " >< ? php _ex ( 'Font Weight: Thinner' , 'Site settings modal font weight selection.' , 'fictioneer' ); ?> </option>
< option value = " normal " >< ? php _ex ( 'Font Weight: Normal' , 'Site settings modal font weight selection.' , 'fictioneer' ); ?> </option>
2023-01-21 01:31:34 +01:00
</ select >
</ div >
</ div >
< ? php if ( is_child_theme () && FICTIONEER_THEME_SWITCH ) : ?>
2023-07-09 19:51:54 +02:00
< div class = " site-settings__theme modal__horizontal-input-group " >
2023-01-21 01:31:34 +01:00
< i class = " fa-solid fa-masks-theater reset " id = " site-setting-theme-reset " ></ i >
< div class = " select-wrapper " >
< select name = " site-theme " class = " site-setting-site-theme " >
2023-11-24 12:05:32 +01:00
< option value = " default " selected = " selected " >< ? php _ex ( 'Theme:' , 'Site settings modal theme selection: Current Theme.' , 'fictioneer' ); ?> <?php echo get_bloginfo( 'name' ); ?></option>
2023-09-16 14:25:26 +02:00
< option value = " base " >< ? php _ex ( 'Theme: Fictioneer Base' , 'Site settings modal theme selection: Base Theme.' , 'fictioneer' ); ?> </option>
2023-01-21 01:31:34 +01:00
</ select >
</ div >
</ div >
< ? php endif ; ?>
2023-07-09 19:51:54 +02:00
< div class = " site-settings__hue-rotate modal__horizontal-input-group " >
2023-01-21 01:31:34 +01:00
< i class = " fa-solid fa-swatchbook reset " id = " site-setting-hue-rotate-reset " ></ i >
2023-07-09 19:51:54 +02:00
< input type = " range " value = " 0 " min = " 0 " max = " 360 " step = " 1 " id = " site-setting-hue-rotate-range " >
2023-01-21 01:31:34 +01:00
< input type = " number " value = " 0 " min = " 0 " max = " 360 " id = " site-setting-hue-rotate-text " >
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__darken modal__horizontal-input-group " >
2023-01-21 01:31:34 +01:00
< i class = " fa-solid fa-adjust reset setting-darken-reset " style = " transform: scale(-1); " ></ i >
2024-03-06 11:55:22 +01:00
< input type = " range " value = " 0 " min = " -1 " max = " 1 " step = " .01 " class = " setting-darken-range " id = " site-setting-darken-range " >
< input type = " number " value = " 0 " min = " -100 " max = " 100 " class = " setting-darken-text " id = " site-setting-darken-text " >
2023-01-21 01:31:34 +01:00
</ div >
2023-07-09 19:51:54 +02:00
< div class = " site-settings__saturation modal__horizontal-input-group " >
2024-03-07 00:28:14 +01:00
< i class = " fa-solid fa-droplet reset setting-saturation-reset " ></ i >
2024-03-06 11:55:22 +01:00
< input type = " range " value = " 0 " min = " -1 " max = " 1 " step = " .01 " class = " setting-saturation-range " id = " site-setting-saturation-range " >
< input type = " number " value = " 0 " min = " -100 " max = " 100 " class = " setting-saturation-text " id = " site-setting-saturation-text " >
2023-01-21 01:31:34 +01:00
</ div >
2024-03-06 14:42:10 +01:00
< div class = " site-settings__font-lightness modal__horizontal-input-group " >
2024-03-07 00:28:14 +01:00
< i class = " fa-solid fa-bolt-lightning reset setting-font-lightness-reset " ></ i >
2024-03-06 14:42:10 +01:00
< input type = " range " value = " 0 " min = " -1 " max = " 1 " step = " .01 " class = " setting-font-lightness-range " id = " site-setting-font-lightness-range " >
< input type = " number " value = " 0 " min = " -100 " max = " 100 " class = " setting-font-lightness-text " id = " site-setting-font-lightness-text " >
</ div >
2023-01-21 01:31:34 +01:00
</ div >
</ div >
</ div >