Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/826 #1214

Merged
merged 62 commits into from
Nov 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
bc4ef90
Add system info tables
kevinwhoffman Nov 3, 2016
82b78af
Add row for “Permalink Structure”
kevinwhoffman Nov 3, 2016
a3a60d4
Add rows for “Show on Front”
kevinwhoffman Nov 3, 2016
76576cd
Make wp_remote_post() check Give-friendly
kevinwhoffman Nov 3, 2016
56ea08b
Fix escape function
kevinwhoffman Nov 3, 2016
75aefe5
Fix thead closing tag
kevinwhoffman Nov 3, 2016
0a31fde
Add rows for “Table Prefix”
kevinwhoffman Nov 3, 2016
2290db9
Add row for “Admin AJAX”
kevinwhoffman Nov 3, 2016
acd43ee
Add row for “Registered Post Stati”
kevinwhoffman Nov 3, 2016
216975c
Fix indentation
kevinwhoffman Nov 3, 2016
699fa4f
Create separate table for “Give Configuration”
kevinwhoffman Nov 3, 2016
bac420f
Tidy up ternary operators
kevinwhoffman Nov 3, 2016
ac44edd
Add rows for “Give Configuration”
kevinwhoffman Nov 3, 2016
84f529a
Add rows for “Page Configuration”
kevinwhoffman Nov 3, 2016
a0897bd
Add rows for “Give Gateway Configuration”
kevinwhoffman Nov 4, 2016
553f440
Remove Woo-specific functionality
kevinwhoffman Nov 4, 2016
09cbea9
Fix indentation
kevinwhoffman Nov 4, 2016
485d28e
Remove unused variables
kevinwhoffman Nov 4, 2016
11737d1
Remove target=“_blank” from plugin link
kevinwhoffman Nov 4, 2016
232507c
Add table for “Active MU Plugins”
kevinwhoffman Nov 4, 2016
941a591
Remove update checks from “Theme” table
kevinwhoffman Nov 4, 2016
b91144d
Add row for “Admin Email Notifications”
kevinwhoffman Nov 4, 2016
32aadcf
Add min version check for cURL 7.40
kevinwhoffman Nov 4, 2016
9dc21f5
Add row for “gzip”
kevinwhoffman Nov 4, 2016
30836c0
Add row for “GD Graphics Library”
kevinwhoffman Nov 4, 2016
8eb7395
Convert Woo tooltips to Give tooltips
kevinwhoffman Nov 4, 2016
0699fd1
Add .give-status-table class to all tables
kevinwhoffman Nov 4, 2016
291433d
Update display of “Currency Position”
kevinwhoffman Nov 4, 2016
96e748f
Format attribution clause
kevinwhoffman Nov 4, 2016
d82649d
Add system info styles
kevinwhoffman Nov 4, 2016
cca93d0
Move row location of “PHP Max Upload Size”
kevinwhoffman Nov 4, 2016
e3d810d
Add plain text report before tables
kevinwhoffman Nov 4, 2016
dde935c
Add styles for plain text report
kevinwhoffman Nov 4, 2016
3af62ba
Add .give-debug-report-wrapper styles
kevinwhoffman Nov 4, 2016
8651513
Add button “Understanding the System Report”
kevinwhoffman Nov 4, 2016
335cc33
Remove backticks from plain text report
kevinwhoffman Nov 7, 2016
021b868
Fix tooltips for “Server Configuration”
kevinwhoffman Nov 7, 2016
1b98200
Add table for “Session Configuration”
kevinwhoffman Nov 7, 2016
c3ba30c
Add row for “Hosting Provider”
kevinwhoffman Nov 7, 2016
4de3b29
Add condition to show PHP session info
kevinwhoffman Nov 7, 2016
688255c
Split plugins into Add-ons, Active, Inactive, MU
kevinwhoffman Nov 7, 2016
d3b41df
Add row for “Donor Email Access”
kevinwhoffman Nov 8, 2016
4f70511
Correct typo for “thousands separator”
kevinwhoffman Nov 8, 2016
0ac98dc
Change “Session” text
kevinwhoffman Nov 8, 2016
6997006
Change default Tools tab to System Info
kevinwhoffman Nov 8, 2016
d220143
Check Give add-ons for license activation
kevinwhoffman Nov 8, 2016
ec98e14
Remove Give_Settings_System_Info->get_settings()
kevinwhoffman Nov 8, 2016
be7bf8a
Update generated admin CSS
kevinwhoffman Nov 8, 2016
44ad526
Clarify plugin detection.
kevinwhoffman Nov 8, 2016
307b6f9
Fix $active_plugins typo
kevinwhoffman Nov 8, 2016
0aeb2e7
Separate plugin data logic from view
kevinwhoffman Nov 9, 2016
c47ab9e
Add @since to DocBlock
kevinwhoffman Nov 9, 2016
40d0a80
Remove wc_let_to_num() dependency
kevinwhoffman Nov 9, 2016
315946a
Remove wc_clean() dependency
kevinwhoffman Nov 9, 2016
1037f9a
Clarify child theme row
kevinwhoffman Nov 9, 2016
67726d7
Merge branch 'release/1.8' of https://github.com/WordImpress/Give int…
kevinwhoffman Nov 9, 2016
7035a61
Move location of give_let_to_num()
kevinwhoffman Nov 9, 2016
8537202
Update generated admin CSS
kevinwhoffman Nov 9, 2016
4fc811d
Fix typo in WP Memory Limit error
kevinwhoffman Nov 9, 2016
19aa699
Change license condition to avoid fatal error
kevinwhoffman Nov 9, 2016
33b249d
Skip Give core plugin in Other Active Plugins
kevinwhoffman Nov 9, 2016
db28f1a
Add icons to denote license verification
kevinwhoffman Nov 9, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions assets/css/give-admin-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2502,3 +2502,70 @@ div.sc-shortcode {
#mce-modal-block.mce-reset.mce-fade.mce-in {
opacity: 0.7;
filter: alpha(opacity=70); }

/**
* Give System Info SCSS
*
* @description System Info Styles
* @package Give
* @subpackage SCSS/Admin
* @copyright Copyright (c) 2016, WordImpress
* @license https://opensource.org/licenses/gpl-3.0/ GNU Public License
*
* The following code is a derivative work of the code from the WooCommerce
* plugin, which is licensed GPLv3. This code therefore is also licensed under
* the terms of the GNU Public License, version 3.
*
* Copyright (c) 2015 WooThemes
* Copyright (c) 2016 WordImpress, LLC
*/
.give-status-table {
margin-bottom: 1em; }
.give-status-table h2 {
font-size: 14px;
margin: 0; }
.give-status-table tr:nth-child(2n) th,
.give-status-table tr:nth-child(2n) td {
background: #fcfcfc; }
.give-status-table th {
font-weight: 700;
padding: 9px; }
.give-status-table td:first-child {
width: 33%; }
.give-status-table td.help {
width: 1em; }
.give-status-table td {
padding: 9px;
font-size: 1.1em; }
.give-status-table td mark {
background: transparent none; }
.give-status-table td mark.yes {
color: #7ad03a; }
.give-status-table td mark.no {
color: #999; }
.give-status-table td mark.error {
color: #a00; }
.give-status-table td ul {
margin: 0; }

.wrap div.give-debug-report-wrapper {
margin-top: 1em; }

.give-debug-report {
display: none;
margin: 10px 0;
padding: 0;
position: relative; }
.give-debug-report textarea {
font-family: monospace;
width: 100%;
margin: 0;
height: 300px;
padding: 20px;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
resize: none;
font-size: 12px;
line-height: 20px;
outline: 0; }
2 changes: 1 addition & 1 deletion assets/css/give-admin-rtl.min.css

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions assets/css/give-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/give-admin.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/scss/admin/give-admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
@import 'donors';
@import 'buttons';
@import 'shortcodes';
@import 'system-info';
98 changes: 98 additions & 0 deletions assets/scss/admin/system-info.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/**
* Give System Info SCSS
*
* @description System Info Styles
* @package Give
* @subpackage SCSS/Admin
* @copyright Copyright (c) 2016, WordImpress
* @license https://opensource.org/licenses/gpl-3.0/ GNU Public License
*
* The following code is a derivative work of the code from the WooCommerce
* plugin, which is licensed GPLv3. This code therefore is also licensed under
* the terms of the GNU Public License, version 3.
*
* Copyright (c) 2015 WooThemes
* Copyright (c) 2016 WordImpress, LLC
*/

.give-status-table {
margin-bottom: 1em;

h2 {
font-size: 14px;
margin: 0;
}

tr {
&:nth-child(2n) {
th,
td {
background: #fcfcfc;
}
}
}

th {
font-weight: 700;
padding: 9px;
}

td:first-child {
width: 33%;
}

td.help {
width: 1em;
}

td {
padding: 9px;
font-size: 1.1em;

mark {
background: transparent none;
}

mark.yes {
color: $green;
}

mark.no {
color: #999;
}

mark.error {
color: $red;
}

ul {
margin: 0;
}
}
}

.wrap div.give-debug-report-wrapper {
margin-top: 1em;
}

.give-debug-report {
display: none;
margin: 10px 0;
padding: 0;
position: relative;

textarea {
font-family: monospace;
width: 100%;
margin: 0;
height: 300px;
padding: 20px;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
resize: none;
font-size: 12px;
line-height: 20px;
outline: 0;
}
}
2 changes: 1 addition & 1 deletion assets/sourcemaps/give-admin.css.map

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions includes/admin/admin-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,18 +372,17 @@ function give_settings_page_pages( $settings ) {
*/
function give_tools_page_pages( $settings ) {
$settings = array(
// System Info.
include( 'tools/class-setting-system-info.php' ),

// Logs.
include( 'tools/class-settings-logs.php' ),

// API.
include( 'tools/class-settings-api.php' ),

// Tools.
// Data.
include( 'tools/class-settings-data.php' ),

// System Info.
include( 'tools/class-setting-system-info.php' )
);

// Output.
Expand All @@ -399,6 +398,6 @@ function give_tools_page_pages( $settings ) {
* @return string
*/
function give_set_default_tab_form_tools_page( $default_tab ) {
return 'logs';
return 'system-info';
}
add_filter( 'give_default_setting_tab_give-tools', 'give_set_default_tab_form_tools_page', 10, 1 );
47 changes: 3 additions & 44 deletions includes/admin/tools/class-setting-system-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Give_Settings_System_Info {
* Constructor.
*/
public function __construct() {
$this->id = 'general';
$this->id = 'system-info';
$this->label = esc_html__( 'System Info', 'give' );

add_filter( 'give-tools_tabs_array', array( $this, 'add_settings_page' ), 20 );
Expand All @@ -68,56 +68,15 @@ public function add_settings_page( $pages ) {
return $pages;
}

/**
* Get settings array.
*
* @since 1.8
* @return array
*/
public function get_settings() {
// Hide save button.
$GLOBALS['give_hide_save_button'] = true;

// Get settings.
$settings = apply_filters( 'give_settings_system', array(
array(
'id' => 'give_totls_system_info',
'type' => 'title'
),
array(
'id' => 'system-info-textarea',
'name' => esc_html__( 'System Info', 'give' ),
'desc' => esc_html__( 'Please copy and paste this information in your ticket when contacting support.', 'give' ),
'type' => 'system_info'
),
array(
'id' => 'give_totls_system_info',
'type' => 'sectionend'
)
));

/**
* Filter the settings.
*
* @since 1.8
* @param array $settings
*/
$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );

// Output.
return $settings;
}

/**
* Output the settings.
*
* @since 1.8
* @return void
*/
public function output() {
$settings = $this->get_settings();

Give_Admin_Settings::output_fields( $settings, 'give_settings' );
$GLOBALS['give_hide_save_button'] = true;
include_once( 'views/html-admin-page-system-info.php' );
}
}

Expand Down
Loading