/** * General / Data * * @param SLP_Settings $settings */ public function add_data_subtab($settings) { $section_params['name'] = __('Data', 'store-locator-le'); $section_params['slug'] = 'data'; $settings->add_section($section_params); $group_params['header'] = __('Packaged Data Extensions', 'store-locator-le'); $group_params['group_slug'] = 'packaged_data_extensions'; $group_params['section_slug'] = $section_params['slug']; $group_params['intro'] = __('Add pre-defined groups of extended data fields to your locations. ', 'store-locator-le'); $group_params['plugin'] = $this->slplus; $settings->add_group($group_params); // Don't show the notice if these add-ons are active. // if ($this->slplus->add_ons->is_active('slp-premier')) { return; } if ($this->slplus->add_ons->is_active('slp-power')) { return; } // Note that some add-on packs will put settings here. // $settings->add_ItemToGroup(array('group_params' => $group_params, 'type' => 'details', 'custom' => sprintf(__('Some of the %s add ons will add settings here. ', 'store-locator-le'), $this->slplus->text_manager->get_text_string('slp')) . sprintf(__('Visit the %s to see a full list of features you can add to this plugin. ', 'store-locator-le'), $this->slplus->get_web_link('slp_store')))); }