| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPSpeedo_Team; |
| 4 |
|
| 5 |
if ( ! defined('ABSPATH') ) exit; |
| 6 |
|
| 7 |
class Variables { |
| 8 |
|
| 9 |
protected static $vars = []; |
| 10 |
|
| 11 |
public function __construct() { |
| 12 |
add_action( 'after_setup_theme', [ $this, 'init' ] ); |
| 13 |
} |
| 14 |
|
| 15 |
public static function init() { |
| 16 |
self::$vars = [ |
| 17 |
'group_single_name' => Utils::get_setting('group_single_name'), |
| 18 |
'location_single_name' => Utils::get_setting('location_single_name'), |
| 19 |
'language_single_name' => Utils::get_setting('language_single_name'), |
| 20 |
'specialty_single_name' => Utils::get_setting('specialty_single_name'), |
| 21 |
'gender_single_name' => Utils::get_setting('gender_single_name'), |
| 22 |
'extra_one_single_name' => Utils::get_setting('extra_one_single_name'), |
| 23 |
'extra_two_single_name' => Utils::get_setting('extra_two_single_name'), |
| 24 |
'extra_three_single_name' => Utils::get_setting('extra_three_single_name'), |
| 25 |
'extra_four_single_name' => Utils::get_setting('extra_four_single_name'), |
| 26 |
'extra_five_single_name' => Utils::get_setting('extra_five_single_name'), |
| 27 |
|
| 28 |
'panel_pos_label' => _x('Panel Position', 'Editor', 'wps-team'), |
| 29 |
'custom_url_label' => _x('Custom URL', 'Admin Metabox', 'wps-team'), |
| 30 |
'filter_txt' => _x('Filter', 'Admin', 'wps-team'), |
| 31 |
'label_txt' => _x('Label', 'Admin', 'wps-team'), |
| 32 |
'select_txt' => _x('Select', 'Admin', 'wps-team'), |
| 33 |
'filter_all_txt' => _x('Filter All Text', 'Admin', 'wps-team'), |
| 34 |
'search_filter_txt' => _x('Search Filter Text', 'Admin', 'wps-team'), |
| 35 |
'include_by_txt' => _x('Include by', 'Admin', 'wps-team'), |
| 36 |
'exclude_by_txt' => _x('Exclude by', 'Admin', 'wps-team'), |
| 37 |
'border_radius_txt' => _x('Border Radius', 'Editor', 'wps-team'), |
| 38 |
'show_txt' => _x('Show', 'Editor', 'wps-team'), |
| 39 |
'hide_txt' => _x('Hide', 'Editor', 'wps-team'), |
| 40 |
'normal_txt' => _x('Normal', 'Editor', 'wps-team'), |
| 41 |
'hover_txt' => _x('Hover', 'Editor', 'wps-team'), |
| 42 |
'active_txt' => _x('Active', 'Editor', 'wps-team'), |
| 43 |
'text_color_txt' => _x('Text Color', 'Editor', 'wps-team'), |
| 44 |
'select_size_txt' => _x('Select Size', 'Editor', 'wps-team'), |
| 45 |
'padding_txt' => _x('Padding', 'Editor', 'wps-team'), |
| 46 |
'dot_bg_color_txt' => _x('Dot BG Color', 'Editor', 'wps-team'), |
| 47 |
'dot_border_color_txt' => _x('Dot Border Color', 'Editor', 'wps-team'), |
| 48 |
'background_color_type_txt' => _x('Background Color Type', 'Editor', 'wps-team'), |
| 49 |
'background_color_txt' => _x('Background Color', 'Editor', 'wps-team'), |
| 50 |
'border_color_type_txt' => _x('Border Color Type', 'Editor', 'wps-team'), |
| 51 |
'border_color_txt' => _x('Border Color', 'Editor', 'wps-team'), |
| 52 |
'icon_color_type_txt' => _x('Icon Color Type', 'Editor', 'wps-team'), |
| 53 |
'icon_color_txt' => _x('Icon Color', 'Editor', 'wps-team'), |
| 54 |
'order_by_txt' => _x('Order By', 'Editor', 'wps-team'), |
| 55 |
'order_txt' => _x('Order', 'Editor', 'wps-team'), |
| 56 |
'ascending_txt' => _x('Ascending', 'Editor', 'wps-team'), |
| 57 |
'descending_txt' => _x('Descending', 'Editor', 'wps-team'), |
| 58 |
'typo_name_txt' => _x('Typo: Name', 'Editor', 'wps-team'), |
| 59 |
'typo_designation_txt' => _x('Typo: Designation', 'Editor', 'wps-team'), |
| 60 |
'typo_content_txt' => _x('Typo: Content', 'Editor', 'wps-team'), |
| 61 |
'typo_meta_txt' => _x('Typo: Meta', 'Editor', 'wps-team'), |
| 62 |
'typo_read_more_txt' => _x('Typo: Read More', 'Editor', 'wps-team'), |
| 63 |
'links_radius_txt' => _x('Links Radius', 'Editor', 'wps-team'), |
| 64 |
'resume_button_style_txt' => _x('Resume Button Style', 'Editor', 'wps-team'), |
| 65 |
'hire_button_style_txt' => _x('Hire Button Style', 'Editor', 'wps-team'), |
| 66 |
'thumbnail_spacing_txt' => _x('Thumbnail Spacing', 'Editor', 'wps-team'), |
| 67 |
'title_spacing_txt' => _x('Title Spacing', 'Editor', 'wps-team'), |
| 68 |
'designation_spacing_txt' => _x('Designation Spacing', 'Editor', 'wps-team'), |
| 69 |
'desc_spacing_txt' => _x('Description Spacing', 'Editor', 'wps-team'), |
| 70 |
'devider_spacing_txt' => _x('Devider Spacing', 'Editor', 'wps-team'), |
| 71 |
'social_icons_spacing_txt' => _x('Social Icons Spacing', 'Editor', 'wps-team'), |
| 72 |
'meta_info_spacing_txt' => _x('Meta Info Spacing', 'Editor', 'wps-team'), |
| 73 |
'background_txt' => _x('Background', 'Editor', 'wps-team'), |
| 74 |
'background_hover_txt' => _x('Background Hover', 'Editor', 'wps-team'), |
| 75 |
'full_card_link_txt' => _x('Full Card Link', 'Editor', 'wps-team'), |
| 76 |
|
| 77 |
'autoplay' => _x('Autoplay', 'Editor', 'wps-team'), |
| 78 |
'autoplay_delay' => _x('Autoplay Delay', 'Editor', 'wps-team'), |
| 79 |
'pause_on_hover' => _x('Pause On Hover', 'Editor', 'wps-team'), |
| 80 |
'dynamic_dots' => _x('Dynamic Dots', 'Editor', 'wps-team'), |
| 81 |
'scroll_nagivation' => _x('Scroll Navigation', 'Editor', 'wps-team'), |
| 82 |
'keyboard_navigation' => _x('Keyboard Navigation', 'Editor', 'wps-team'), |
| 83 |
'nav_icon_color_txt' => _x('Nav Icon Color', 'Editor', 'wps-team'), |
| 84 |
'nav_bg_color_txt' => _x('Nav BG Color', 'Editor', 'wps-team'), |
| 85 |
'nav_border_color_txt' => _x('Nav Border Color', 'Editor', 'wps-team'), |
| 86 |
'filter_text_color_txt' => _x('Filter Text Color', 'Editor', 'wps-team'), |
| 87 |
'filter_bg_color_txt' => _x('Filter BG Color', 'Editor', 'wps-team'), |
| 88 |
'filter_border_color_txt' => _x('Filter Border Color', 'Editor', 'wps-team'), |
| 89 |
'enable_paging' => _x('Enable Paging', 'Editor', 'wps-team'), |
| 90 |
'paging_type' => _x('Paging Type', 'Editor', 'wps-team'), |
| 91 |
'ajax_paging_limit' => _x('Load More Limit', 'Editor', 'wps-team'), |
| 92 |
'edge_page_links' => _x('Page Spread Range', 'Editor', 'wps-team'), |
| 93 |
'enable_ajax_loading' => _x('Enable AJAX Loading', 'Editor', 'wps-team'), |
| 94 |
'set_custom_size_label' => _x('Set Custom Size', 'Editor', 'wps-team'), |
| 95 |
'set_custom_size_desc' => _x('Enable the Crop Option to crop the image to exact dimensions', 'Editor', 'wps-team'), |
| 96 |
'container_custom_class' => _x('Custom Class', 'Editor', 'wps-team'), |
| 97 |
'container_z_index' => _x('Z Index', 'Editor', 'wps-team'), |
| 98 |
|
| 99 |
'enable_price_txt' => _x('Enable Pricing', 'Admin Metabox', 'wps-team'), |
| 100 |
'currency_txt' => _x('Currency', 'Admin Metabox', 'wps-team'), |
| 101 |
'currency_pos_txt' => _x('Currency position', 'Admin Metabox', 'wps-team'), |
| 102 |
'price_txt' => _x('Price', 'Admin Metabox', 'wps-team'), |
| 103 |
'sale_price_txt' => _x('Sale Price', 'Admin Metabox', 'wps-team'), |
| 104 |
'min_price_txt' => _x('Min Price', 'Admin Metabox', 'wps-team'), |
| 105 |
'max_price_txt' => _x('Max Price', 'Admin Metabox', 'wps-team'), |
| 106 |
]; |
| 107 |
} |
| 108 |
|
| 109 |
public static function get( $key ) { |
| 110 |
return isset( self::$vars[ $key ] ) ? self::$vars[ $key ] : null; |
| 111 |
} |
| 112 |
|
| 113 |
} |