| @@ -1,37 +1,37 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -use LearnPress\Helpers\Config; | |
| 4 | - | |
| 5 | -/** | |
| 6 | - * Class LP_Settings_General | |
| 7 | - * | |
| 8 | - * @author ThimPress | |
| 9 | - * @package LearnPress/Admin/Settings/Classes | |
| 10 | - * @version 1.0 | |
| 11 | - */ | |
| 12 | -class LP_Settings_General extends LP_Abstract_Settings_Page { | |
| 13 | - /** | |
| 14 | - * Construct | |
| 15 | - */ | |
| 16 | - public function __construct() { | |
| 17 | - $this->id = 'general'; | |
| 18 | - $this->text = esc_html__( 'General', 'learnpress' ); | |
| 19 | - | |
| 20 | - parent::__construct(); | |
| 21 | - } | |
| 22 | - | |
| 23 | - /** | |
| 24 | - * Return fields for settings page. | |
| 25 | - * | |
| 26 | - * @param string $section | |
| 27 | - * @param string $tab | |
| 28 | - * | |
| 29 | - * @return mixed | |
| 30 | - */ | |
| 31 | - public function get_settings( $section = '', $tab = '' ) { | |
| 32 | - return Config::instance()->get( 'general', 'settings' ); | |
| 33 | - } | |
| 34 | - | |
| 35 | -} | |
| 36 | - | |
| 37 | -return new LP_Settings_General(); | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +use LearnPress\Helpers\Config; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * Class LP_Settings_General | |
| 7 | + * | |
| 8 | + * @author ThimPress | |
| 9 | + * @package LearnPress/Admin/Settings/Classes | |
| 10 | + * @version 1.0 | |
| 11 | + */ | |
| 12 | +class LP_Settings_General extends LP_Abstract_Settings_Page { | |
| 13 | + /** | |
| 14 | + * Construct | |
| 15 | + */ | |
| 16 | + public function __construct() { | |
| 17 | + $this->id = 'general'; | |
| 18 | + $this->text = esc_html__( 'General', 'learnpress' ); | |
| 19 | + | |
| 20 | + parent::__construct(); | |
| 21 | + } | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * Return fields for settings page. | |
| 25 | + * | |
| 26 | + * @param string $section | |
| 27 | + * @param string $tab | |
| 28 | + * | |
| 29 | + * @return mixed | |
| 30 | + */ | |
| 31 | + public function get_settings( $section = '', $tab = '' ) { | |
| 32 | + return Config::instance()->get( 'general', 'settings' ); | |
| 33 | + } | |
| 34 | + | |
| 35 | +} | |
| 36 | + | |
| 37 | +return new LP_Settings_General(); | |