Skip to content

Commit

Permalink
CF7 version column to submission page, faster GTM timeout, drag and d…
Browse files Browse the repository at this point in the history
…rop fix, update service warning removed from multisite
  • Loading branch information
chrisblakley committed Mar 14, 2024
1 parent 744c98c commit 94d76b7
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 18 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.10.6.464",
"version": "11.10.14.451",
"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.10.6.464'; //Wednesday, March 6, 2024 11:07:32 AM
const NEBULA_VERSION = 'v11.10.14.451'; //Thursday, March 14, 2024 10:49:30 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.

2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion assets/js/modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ nebula.dragDropUpload = async function(){

//Drag out
dropArea.addEventListener('dragleave', function(e){
jQuery(dropArea).addClass('dragover');
jQuery(dropArea).removeClass('dragover');

thisEvent.event_name = 'file_upload_dragleave';
thisEvent.event_action = 'Drag Leave';
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.10.6.464
Version: 11.10.14.451
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
4 changes: 2 additions & 2 deletions inc/analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function gtag(){}; //No GA in Nebula
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<?php echo nebula()->get_option('gtm_id'); ?>');

<?php if ( nebula()->get_option('ga_measurement_id') ): ?>
}, 1000);
<?php if ( nebula()->get_option('ga_measurement_id') ): //100ms and 250ms seem to work here, but currently 500ms to be safe ?>
}, 500);
<?php endif; ?>
</script>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion inc/data/nebula_theme.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "11.10.6.464",
"version": "11.10.14.451",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
5 changes: 5 additions & 0 deletions libs/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,7 @@ public function cf7_submissions_columns_head($columns){
}

$columns['notes'] = 'Internal Notes';
$columns['cf7_version'] = 'CF7 Version';

unset($columns['date']); //Replacing the WP date column with our own
unset($columns['id']); //This ID is confusing since it is the submission ID
Expand Down Expand Up @@ -1623,6 +1624,10 @@ public function cf7_submissions_columns_content($column_name, $submission_id){
echo '<span>' . get_post_meta($submission_id, 'nebula_cf7_submission_notes', true) . '</span>';
}

if ( $column_name === 'cf7_version' ){
echo '<span>' . json_decode($submission_data->post_content)->_wpcf7_version . '</span>';
}

echo '';
}
}
Expand Down
3 changes: 3 additions & 0 deletions libs/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3234,8 +3234,11 @@ public function cf7_debug_info($cf7_instance){
return array();
}

global $wp_version;

$debug_info = array();

$debug_info['wp_core_version'] = $wp_version;
$debug_info['nebula_timestamp'] = date('U');
$debug_info['nebula_date_formatted'] = date('l, F j, Y \a\t g:ia');
$debug_info['nebula_version'] = $this->version('full') . ' (Committed ' . $this->version('date') . ')';
Expand Down
2 changes: 1 addition & 1 deletion libs/Utilities/Warnings.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function check_warnings(){
}

//If not pinging additional update services (blog must be public for this to be available)
if ( $this->is_warning_level('verbose') ){
if ( !is_multisite() && $this->is_warning_level('verbose') ){ //This option isunavailable on Multisite installs of WP
$ping_sites = get_option('ping_sites');
if ( $ping_sites === 'http://rpc.pingomatic.com/' ){ //If it only has the default value (ignore empty value if that is done intentionally)
$nebula_warnings['update_services'] = array(
Expand Down
Loading

0 comments on commit 94d76b7

Please sign in to comment.