1 | <?php |
||
10 | class WETU_Importer_Settings extends WETU_Importer { |
||
11 | |||
12 | /** |
||
13 | * Initialize the plugin by setting localization, filters, and administration functions. |
||
14 | * |
||
15 | * @since 1.0.0 |
||
16 | * |
||
17 | * @access private |
||
18 | */ |
||
19 | public function __construct() { |
||
20 | $temp_options = get_option('_lsx-to_settings',false); |
||
21 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
||
22 | $this->options = $temp_options[$this->plugin_slug]; |
||
23 | $this->set_variables(); |
||
24 | } |
||
25 | |||
26 | add_filter( 'lsx_to_framework_settings_tabs', array( $this, 'settings_page_array') ); |
||
27 | add_action('lsx_to_framework_api_tab_content',array( $this, 'api_settings'),10,1); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Returns the array of settings to the UIX Class in the lsx framework |
||
32 | */ |
||
33 | public function settings_page_array($tabs){ |
||
43 | |||
44 | /** |
||
45 | * Adds the API key to the API Tab |
||
46 | */ |
||
47 | public function api_settings($tab='general') { |
||
80 | } |
||
81 | $wetu_importer_settings = new WETU_Importer_Settings(); |
||
82 |