| 1 |
<?php |
| 2 |
/** |
| 3 |
* Give Settings Page/Tab |
| 4 |
* |
| 5 |
* @package Give |
| 6 |
* @subpackage Classes/Give_Settings_Logs |
| 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_Logs' ) ) : |
| 17 |
|
| 18 |
/** |
| 19 |
* Give_Settings_Logs. |
| 20 |
* |
| 21 |
* @sine 1.8 |
| 22 |
*/ |
| 23 |
class Give_Settings_Logs 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 = 'logs'; |
| 37 |
$this->label = __( 'Logs', 'give' ); |
| 38 |
parent::__construct(); |
| 39 |
|
| 40 |
// Do not use main form for this tab. |
| 41 |
if ( give_get_current_setting_tab() === $this->id ) { |
| 42 |
add_action( 'give-tools_open_form', '__return_empty_string' ); |
| 43 |
add_action( 'give-tools_close_form', '__return_empty_string' ); |
| 44 |
} |
| 45 |
|
| 46 |
} |
| 47 |
|
| 48 |
/** |
| 49 |
* Logs list table app container |
| 50 |
* |
| 51 |
* @since 2.10.0 |
| 52 |
*/ |
| 53 |
public function output() { |
| 54 |
echo '<div id="give-logs-list-table-app" style="padding-top: 20px;"></div>'; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
endif; |
| 59 |
|
| 60 |
return new Give_Settings_Logs(); |
| 61 |
|