options = get_option( 'sitelinx' ); if(!isset($this->options['accessibility_enable'])) { if(!isset($this->options['hide_toolbar_mobile'])) { if( !wp_is_mobile() ) { add_action('wp_footer', array($this, 'toolbar_btn')); add_action('wp_footer', array($this, 'black_screen')); add_action('wp_footer', array($this, 'the_toolbar')); } } else { add_action('wp_footer', array($this, 'toolbar_btn')); add_action('wp_footer', array($this, 'black_screen')); add_action('wp_footer', array($this, 'the_toolbar')); } } } public function toolbar_btn() { $icon_size = (isset($this->options['icon_size'])) ? $this->options['icon_size'] : 'normal'; $toolbar_side = isset($this->options['toolbar_side']) ? $this->options['toolbar_side'] : 'right'; $image_icon = (isset($this->options['replacetoggle_icon'])) ? true : false; $toolbar_position = !empty($this->options['toolbar_position']) ? $this->options['toolbar_position'] : 200; $toolbar_position_side = !empty($this->options['toolbar_position_side']) ? $this->options['toolbar_position_side'] : 1; $icon_shape = (!empty($this->options['icon_shape'] == 'circle')) ? '50%' : '2px'; $style_side = $toolbar_side . ': ' . $toolbar_position_side . 'px;'; $default_icon = ACL_SITELINX_URL . 'assets/img/wheelchair.png'; $external_link = (!empty($this->options['toolbar_icon'])) ? $this->options['toolbar_icon'] : $default_icon; if (@getimagesize($external_link)) { $toolbar_icon = $external_link; } else { $toolbar_icon = ACL_SITELINX_URL . 'assets/img/wheelchair.png'; } $color_icon = (isset($this->options['color_icon'])) ? $this->options['color_icon'] : '#0a76be'; $output = ''; echo $output; } public function black_screen() { if( !isset($this->options['disable_blackscreen']) ) echo '
'; } public function the_toolbar() { $toolbar_position = (isset($this->options['toolbar_position'])) ? $this->options['toolbar_position'] : 25; $skin = (isset($this->options['toolbar_skin'])) ? $this->options['toolbar_skin'] : 1; ?> options['focus'] === 'toolbar') ? true : false; $disable_flashes = isset($this->options['hide_flashes']); $disable_hemarks = isset($this->options['hide_headingmarks']); $disable_background = isset($this->options['hide_background']); $output = ''; if( !$disable_flashes || $focus || !$disable_hemarks ) { $output .= '
  • '; // $output .= '

    ' . __('General', 'accessibility-light') . '

    '; $output .= ''; $output .= '
  • '; } return $output; } public function section_resolution() { $output = '
  • '; // $output .= '

    ' . __('Resolution', 'accessibility-light') . '

    '; $output .= ''; $output .= '
  • '; return $output; } public function section_font() { $output = '
  • '; // $output .= '

    ' . __('Fonts', 'accessibility-light') . '

    '; if(!isset($this->options['disable_fontzoom'])) { $output .= ''; } if(!isset($this->options['hide_readable'])) { $output .= ''; } $output .= '
  • '; return $output; } public function section_contrast() { $output = '
  • '; // $output .= '

    ' . __('Color Contrast', 'accessibility-light') . '

    '; $output .= ''; $output .= '
  • '; return $output; } public function section_links() { $ul_classes = ($this->options['link_underline'] != 'all') ? 'ul-2-items' : ''; $output = '
  • '; // $output .= ''; $output .= ''; $output .= '
  • '; return $output; } public function section_additional() { $statement = (isset($this->options['sitelinx_statement'])) ? $this->options['sitelinx_statement'] : ''; $feedback = (isset($this->options['sitelinx_feedback'])) ? $this->options['sitelinx_feedback'] : ''; $output = '
  • '; // $output .= '

    ' . __('Additional Options', 'accessibility-light') . '

    '; $output .= ''; $output .= '
  • '; return $output; } } ?>