Skip to content

Commit

Permalink
Timezone improvements, default CID to session storage, removed date r…
Browse files Browse the repository at this point in the history
…estriction on related CF7 submissions
  • Loading branch information
chrisblakley committed Apr 12, 2024
1 parent be21190 commit 2085f02
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 60 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.11.587",
"version": "11.11.12.378",
"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.11.587'; //Thursday, April 11, 2024 2:05:46 PM
const NEBULA_VERSION = 'v11.11.12.378'; //Friday, April 12, 2024 9:03:46 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/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.11.587
Version: 11.11.12.378
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
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.11.11.587",
"version": "11.11.12.378",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
20 changes: 11 additions & 9 deletions libs/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,10 @@ public function admin_bar_menus(WP_Admin_Bar $wp_admin_bar){
$current_id = get_option('page_for_posts');
} elseif ( is_archive() ){
$term_object = get_queried_object();
$current_id = $term_object->term_id;
$post_type_name = $term_object->taxonomy;
if ( !empty($term_object->term_id) ){
$current_id = $term_object->term_id;
$post_type_name = $term_object->taxonomy;
}
$original_date = false;
$status = false;
}
Expand Down Expand Up @@ -1697,7 +1699,7 @@ public function cf7_submissions_columns_content($column_name, $submission_id){
echo '<p><i class="fa-solid fa-fw fa-shield-halved"></i> Preserved<br /><small>This submission will not be automatically deleted</small></p>';
}

//Interal Staff submissions
//Internal Staff submissions
if ( !empty($form_data->_nebula_staff) ){
echo '<p class="cf7-note-internal"><i class="fa-solid fa-fw fa-clipboard-user"></i> Internal Staff<br /><small>This submission was by someone on the internal staff.</small></p>';
}
Expand Down Expand Up @@ -1964,11 +1966,11 @@ public function cf7_storage_output($post){
'posts_per_page' => 15, //Limit the number of results
'orderby' => 'date',
'order' => 'ASC', //Earliest to more recent
'date_query' => array(
'after' => date('Y-m-d', $form_data->_nebula_timestamp-YEAR_IN_SECONDS), //Check over the last year for successful/invalid submissions
'before' => date('Y-m-d'),
'inclusive' => true,
),
// 'date_query' => array(
// 'after' => date('Y-m-d', $form_data->_nebula_timestamp-YEAR_IN_SECONDS), //Check over the last year for successful/invalid submissions
// 'before' => date('Y-m-d'),
// 'inclusive' => true,
// ),
's' => $form_data->_nebula_ga_cid,
));

Expand Down Expand Up @@ -2259,7 +2261,7 @@ public function clear_all_w3_caches(){

//Admin footer left side
public function change_admin_footer_left(){
//return '<a href="https://www.google.com/maps/dir/Current+Location/760+West+Genesee+Street+Syracuse+NY+13204" target="_blank" rel="noopener">760 West Genesee Street, Syracuse, NY 13204</a> &bull; (315) 478-6700';
//return '';
}

//Admin footer right side
Expand Down
Loading

0 comments on commit 2085f02

Please sign in to comment.