| 1 |
<?php |
| 2 |
/** |
| 3 |
* Class LP_Settings_Profile |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Admin/Classes/Settings |
| 7 |
* @version 4.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
use LearnPress\Helpers\Config; |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit; |
| 13 |
|
| 14 |
class LP_Settings_Advanced extends LP_Abstract_Settings_Page { |
| 15 |
|
| 16 |
public function __construct() { |
| 17 |
$this->id = 'advanced'; |
| 18 |
$this->text = esc_html__( 'Advanced', 'learnpress' ); |
| 19 |
|
| 20 |
parent::__construct(); |
| 21 |
} |
| 22 |
|
| 23 |
public function get_settings( $section = '', $tab = '' ) { |
| 24 |
return Config::instance()->get( 'advanced', 'settings' ); |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Get sections for advanced settings. |
| 29 |
* |
| 30 |
* @return array<string, string> |
| 31 |
*/ |
| 32 |
public function get_sections() { |
| 33 |
return array( |
| 34 |
'general' => esc_html__( 'General', 'learnpress' ), |
| 35 |
); |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
return new LP_Settings_Advanced(); |
| 40 |
|