![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/www/theprintave/wp-content/themes/pricom/templates/ |
<?php /** * @package HaruTheme * @version 1.0.0 * @author Administrator <admin@harutheme.com> * @copyright Copyright 2022, HaruTheme */ $dark_mode_button = haru_get_option( 'haru_dark_mode_button', '0' ); $dark_mode = haru_get_option( 'haru_dark_mode', '0' ); ?> <?php if ( $dark_mode_button == '1' ) : ?> <div class="switch-theme-mode" data-text-default="<?php echo ( '1' == $dark_mode ) ? esc_html__( 'Dark', 'pricom' ) : esc_html__( 'Light', 'pricom' ); ?>" data-text-dark="<?php echo esc_html__( 'Dark', 'pricom' ); ?>" data-text-light="<?php echo esc_html__( 'Light', 'pricom' ); ?>"> <div class="button-switch-mode"> <div class="button-switch-label"> <div class="button-switch-light"><?php echo esc_html__( 'Light', 'pricom' ); ?></div> <div class="button-switch-dark"><?php echo esc_html__( 'Dark', 'pricom' ); ?></div> </div> <div class="button-switch"></div> </div> </div> <?php endif; ?>