'design1', 'size' => 'design-size2', 'border' => 'design-border2', 'language' => 'en', 'color' => '#0048FE', 'position_top_bottom' => 15, 'position_left_right' => 15, 'widget_position' => 'bottom-right', 'position_top_bottom_tablet' => 15, 'position_left_right_tablet' => 15, 'widget_position_tablet' => 'bottom-right', 'position_top_bottom_mobile' => 15, 'position_left_right_mobile' => 15, 'widget_position_mobile' => 'bottom-right', 'hide_powered_by_onetap' => 'off', 'hide_on_desktop' => 'off', 'hide_on_tablet' => 'off', 'hide_on_mobile' => 'off', 'license' => '', ); /** * Static array property to hold module configurations. * * @var array */ public static $modules = array( 'accessibility_profiles' => 'off', 'bigger_text' => 'on', 'highlight_links' => 'on', 'line_height' => 'on', 'readable_font' => 'on', 'cursor' => 'on', 'text_magnifier' => 'off', 'dyslexic_font' => 'off', 'text_align' => 'on', 'letter_spacing' => 'on', 'font_weight' => 'on', 'dark_contrast' => 'off', 'light_contrast' => 'on', 'high_contrast' => 'on', 'monochrome' => 'on', 'saturation' => 'off', 'reading_line' => 'on', 'reading_mask' => 'on', 'read_page' => 'off', 'keyboard_navigation' => 'off', 'hide_images' => 'on', 'mute_sounds' => 'off', 'highlight_titles' => 'off', 'highlight_all' => 'on', 'stop_animations' => 'on', ); /** * Static array property to hold general settings configurations. * * @var array */ public static $general_settings = array( 'hide_powered_by_onetap' => 'off', ); /** * Static method to get a setting value. * * @param string $key The setting key to retrieve. * @return mixed The setting value or null if key doesn't exist. */ public static function get_setting( $key ) { return isset( self::$settings[ $key ] ) ? self::$settings[ $key ] : null; // Return setting value or null. } /** * Static method to get a module configuration value. * * @param string $key The module key to retrieve. * @return mixed The module value or null if key doesn't exist. */ public static function get_module( $key ) { return isset( self::$modules[ $key ] ) ? self::$modules[ $key ] : null; // Return module value or null. } /** * Static method to get a general setting configuration value. * * @param string $key The general setting key to retrieve. * @return mixed The general setting value or null if key doesn't exist. */ public static function get_general_setting( $key ) { return isset( self::$general_settings[ $key ] ) ? self::$general_settings[ $key ] : null; // Return general setting value or null. } } // Example usage: // Accessing static array values without creating an object. // echo Accessibility_Onetap_Config::get_setting('language'); // Output: en. // echo Accessibility_Onetap_Config::get_module('bigger_text'); // Output: on. // echo Onetap_Pro_Config::get_general_setting('hide_powered_by_onetap'); // Output: off.