settings->get_default_title_text( "aghai_ac_toolbar_button_{$button_type}_title" ); return ''; } //public function get_statement_text() { //$text = Aghai_Accessibility::$instance->settings->get_default_title_text( "aghai_ac_statement" ); //return $text; //} public function enqueue_scripts() { wp_register_script( 'aghai-ac', AGHAI_AC_ASSETS_URL . 'js/app.min.js', array( 'jquery', ), '1.0.0', true ); wp_register_style( 'aghai-ac', AGHAI_AC_ASSETS_URL . 'css/style.min.css', array(), '1.0.0' ); wp_enqueue_script( 'aghai-ac' ); wp_enqueue_style( 'aghai-ac' ); wp_localize_script( 'aghai-ac', 'AghaiACOptions', array( 'focusable' => ( 'enable' === get_option( 'aghai_ac_focusable' ) ), 'remove_link_target' => ( 'enable' === get_option( 'aghai_ac_remove_link_target' ) ), 'add_role_links' => ( 'enable' === get_option( 'aghai_ac_add_role_links' ) ), 'enable_save' => ( 'enable' === get_option( 'aghai_ac_save' ) ), 'save_expiration' => get_option( 'aghai_ac_save_expiration' ), ) ); } public function print_skip_to_content_link() { $skip_to_content_link = get_option( 'aghai_ac_skip_to_content_link' ); if ( 'disable' === $skip_to_content_link ) { return; } ?> is_toolbar_active() ) { return; } $aghai_urltype1 = get_option( 'aghai_urltype1' ); $aghai_urltype2 = get_option( 'aghai_urltype2' ); if(!empty($aghai_urltype1) && ($aghai_urltype1 == 'onepage')){ if(is_front_page()){ $showToolbar = true; }else{ $showToolbar = false; } }else{ $showToolbar = true; } if(!empty($aghai_urltype2) && ($aghai_urltype2 == 'onepage')){ if(is_front_page()){ $showStatementUrl = true; }else{ $showStatementUrl = false; } }else{ $showStatementUrl = true; } $customizer_options = get_option( AGHAI_AC_CUSTOMIZER_OPTIONS ); $toolbar_position = $customizer_options['ac_toolbar_position']; if ( empty( $toolbar_position ) || ! in_array( $toolbar_position, array( 'right', 'left' ) ) ) { $toolbar_position = 'left'; } $toolbar_title = Aghai_Accessibility::$instance->settings->get_default_title_text( 'aghai_ac_toolbar_title' ); $toolbar_visibility = get_option( 'aghai_ac_toolbar' ); $wrapper_classes = array( 'aghai-ac-toolbar-' . $toolbar_position, ); if ( 'enable' !== $toolbar_visibility ) { $wrapper_classes[] = 'aghai-ac-' . $toolbar_visibility; } $sitemap_link = get_option( 'aghai_ac_toolbar_button_sitemap_link' ); $help_link = get_option( 'aghai_ac_toolbar_button_help_link' ); $feedback_link = get_option( 'aghai_ac_toolbar_button_feedback_link' ); $has_custom_links = ( ! empty( $sitemap_link ) || ! empty( $help_link ) || ! empty( $feedback_link ) ); $icon = isset( $customizer_options['ac_toolbar_icon'] ) ? $customizer_options['ac_toolbar_icon'] : 'wheelchair'; $option_name = 'aghai_ac_overlay_text_developed_by_text' ; $new_value = '255' ; if ( FALSE !== get_option('aghai_popup_text') ){ $aghai_alt_text_value = get_option('aghai_popup_text'); } else { if( !isset( $aghai_alt_text_value[0] ) ){ $aghai_alt_text_value[0] = ""; } if ( !isset($aghai_alt_text_value[1]) ){ $aghai_alt_text_value[1] = ""; } } if ( FALSE !== get_option('aghai_toolbar_text') ){ $aghai_toolbar_text_value = get_option('aghai_toolbar_text'); } else { if( !isset( $aghai_toolbar_text_value[0] ) ){ $aghai_toolbar_text_value[0] = ""; } if ( !isset($aghai_toolbar_text_value[1]) ){ $aghai_toolbar_text_value[1] = ""; } } if( get_locale() === "he_IL"){ $aghai_toolbar_text_value_per = ""; } else { $aghai_toolbar_text_value_per = $aghai_toolbar_text_value[0]; } ?>
'