PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / includes / admin / tools / class-settings-system-info.php

class-settings-system-info.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at includes/admin/tools/class-settings-system-info.php

63 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Give Settings Page/Tab
4 *
5 * @package Give
6 * @subpackage Classes/Give_Settings_System_Info
7 * @copyright Copyright (c) 2016, GiveWP
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.8
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly
14 }
15
16 if ( ! class_exists( 'Give_Settings_System_Info' ) ) :
17
18 /**
19 * Give_Settings_System_Info.
20 *
21 * @sine 1.8
22 */
23 class Give_Settings_System_Info extends Give_Settings_Page {
24 /**
25 * Flag to check if enable saving option for setting page or not
26 *
27 * @since 1.8.17
28 * @var bool
29 */
30 protected $enable_save = false;
31
32 /**
33 * Constructor.
34 */
35 public function __construct() {
36 $this->id = 'system-info';
37 $this->label = esc_html__( 'System Info', 'give' );
38
39 parent::__construct();
40
41 // Do not use main form for this tab.
42 if ( give_get_current_setting_tab() === $this->id ) {
43 add_action( 'give-tools_open_form', '__return_empty_string' );
44 add_action( 'give-tools_close_form', '__return_empty_string' );
45 }
46 }
47
48 /**
49 * Output the settings.
50 *
51 * @since 1.8
52 * @return void
53 */
54 public function output() {
55 $GLOBALS['give_hide_save_button'] = true;
56 include_once 'views/html-admin-page-system-info.php';
57 }
58 }
59
60 endif;
61
62 return new Give_Settings_System_Info();
63