__( 'Font Size', 'accessibar' ), 'high_contrast' => __( 'High Contrast', 'accessibar' ), 'highlight_links' => __( 'Highlight Links', 'accessibar' ), 'readable_font' => __( 'Readable Font', 'accessibar' ), 'stop_animations' => __( 'Stop Animations', 'accessibar' ), 'big_cursor' => __( 'Large Cursor', 'accessibar' ), ); wp_localize_script( 'accessibar-front', 'accessibarConfig', array( 'position' => $options['position'], 'color' => $options['color'], 'size' => $options['size'], 'buttonText' => $options['button_text'], 'hideMobile' => $options['hide_mobile'], 'tools' => $options['tools'], 'toolLabels' => $tool_labels, 'fontUrl' => ACCESSIBAR_PLUGIN_URL . 'assets/fonts/OpenDyslexic-Regular.woff2', 'i18n' => array( 'open' => __( 'Open accessibility toolbar', 'accessibar' ), 'close' => __( 'Close accessibility toolbar', 'accessibar' ), 'reset' => __( 'Reset All', 'accessibar' ), 'increase' => __( 'Increase font size', 'accessibar' ), 'decrease' => __( 'Decrease font size', 'accessibar' ), 'resetFs' => __( 'Reset font size', 'accessibar' ), 'panelName' => __( 'Accessibility toolbar', 'accessibar' ), ), ) ); } /** * Outputs the accessibility button container in the footer. * * @return void */ public function render_button() { $options = accessibar_get_options(); $sizes = array( 'small' => '40', 'medium' => '50', 'large' => '60', ); $size_px = isset( $sizes[ $options['size'] ] ) ? $sizes[ $options['size'] ] : '50'; $position = $options['position']; $color = $options['color']; $hide_class = $options['hide_mobile'] ? ' accessibar-hide-mobile' : ''; ?>