options = get_option( 'accessible_poetry' ); if(isset($this->options['toolbar'])) { 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'] : ''; $image_icon = (isset($this->options['replacetoggle_icon'])) ? true : false; $toolbar_position = (isset($this->options['toolbar_position'])) ? $this->options['toolbar_position'] : 25; $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']); $output = ''; if( !$disable_flashes || $focus || !$disable_hemarks ) { $output .= '
  • '; $output .= '

    ' . __('General', 'acp') . '

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

    ' . __('Resolution', 'acp') . '

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

    ' . __('Fonts', 'acp') . '

    '; 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', 'acp') . '

    '; $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['acp_statement'])) ? $this->options['acp_statement'] : ''; $feedback = (isset($this->options['acp_feedback'])) ? $this->options['acp_feedback'] : ''; $output = '
  • '; // $output .= '

    ' . __('Additional Options', 'acp') . '

    '; $output .= ''; $output .= '
  • '; return $output; } public function section_author() { $title = (is_rtl()) ? 'בניית אתרים קוד אנד רול' : 'Code n Roll Accessibility'; $title = $title . ' (' . __('the link will open in a new tab', 'acp') . ')'; $output = '
  • בניית אתרים קוד אנד רול
  • '; return $output; } } new ACP_Toolbar();