Skip to content

Commit

Permalink
Additional CF7 submission indicators, clarified logic notes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblakley committed Apr 8, 2024
1 parent 10d0b3d commit 36f8df3
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "11.11.6.706",
"version": "11.11.8.001",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/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 Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v11.11.6.706'; //Saturday, April 6, 2024 4:56:04 PM
const NEBULA_VERSION = 'v11.11.8.001'; //Monday, April 8, 2024 12:01:42 AM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
Expand Down
4 changes: 2 additions & 2 deletions Nebula-Child/style.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.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/pre.css

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

12 changes: 12 additions & 0 deletions assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ nebula.initializationStuff = function(){

//Re-organize the CF7 submission details screen
nebula.cf7SubmissionsOrganization = function(){
//Submission listing page
if ( jQuery('.post-type-nebula_cf7_submits .wp-list-table').length ){
jQuery('.cf7-note-caution').each(function(){
jQuery(this).parents('tr').addClass('caution-row');
});

jQuery('.cf7-note-failed').each(function(){
jQuery(this).parents('tr').addClass('failed-row');
});
}

//Submission details page
if ( jQuery('.post-type-nebula_cf7_submits').length ){
jQuery('#save-post').val('Save').insertBefore('#publish').css('float', 'right');
jQuery('#publish').remove();
Expand Down
32 changes: 27 additions & 5 deletions assets/scss/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -368,30 +368,52 @@ body.appearance_page_nebula_options {background-color: #f1f1f1;}
//Nebula CF7 Submissions
#adminmenu .toplevel_page_wpcf7.wp-not-current-submenu .wp-submenu {min-width: 225px;} //Widen admin submenu for badge count (when not on that page)

.cf7-submits-today-color {color: $success_color;}
.cf7-submits-today-color {color: $success_color;
.status-invalid & {color: $warning_color;}
.status-spam & {color: $danger_color;}
}
.cf7-submits-today-bg {background-color: $success_color !important;}

#poststuff .nebula-form-title {padding: 15px 0 0 0; font-size: 28px;}

.cf7-submits-possible-spam {opacity: 0.5;}

.post-type-nebula_cf7_submits {
$submission_color: $success_color;
$caution_color: darken($info_color, 11%);
$failed_color: #9C12BB;
$invalid_color: $warning_color;
$spam_color: $danger_color;

table.wp-list-table {table-layout: auto;
tr.status-submission {
th {border-left: 4px solid rgba($submission_color, 0.5); }

&.caution-row th {border-left: 4px solid rgba($caution_color, 0.15);}
&.failed-row th {border-left: 4px solid rgba($failed_color, 0.5);}
}
tr.status-invalid th {border-left: 4px solid rgba($invalid_color, 0.25);}
tr.status-spam th {border-left: 4px solid rgba($spam_color, 0.25);}

.cf7-note-failed i,
.cf7-note-failed strong {color: #9C12BB;}

td.title {max-width: 250px;}
td.formatted_date .just-now,
td.formatted_date .today {font-weight: bold;}
td.attribution,
td.notes {max-width: 200px;}
}

#post-body-content {
.nebula-cf7-notice {background: #fff; border: 1px solid #c3c4c7; border-left-width: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); margin-top: 19px; padding: 1px 12px;
&.notice-success {border-left-color: $success_color;}
&.notice-success {border-left-color: $submission_color;}
&.notice-info,
&.notice-caution {border-left-color: darken($info_color, 11%);}
&.notice-caution {border-left-color: $caution_color;}
&.notice-warning,
&.notice-invalid {border-left-color: $warning_color;}
&.notice-invalid {border-left-color: $invalid_color;}
&.notice-error,
&.notice-spam {border-left-color: $danger_color;}
&.notice-spam {border-left-color: $spam_color;}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Theme URI: https://nebula.gearside.com
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
Author: Nebula
Version: 11.11.6.706
Version: 11.11.8.001
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebula
Expand Down
Loading

0 comments on commit 36f8df3

Please sign in to comment.