Skip to content

Commit c9de4fb

Browse files
committed
Version 5 launch, added another autotrack library, some bugfixes, lots of other prep.
1 parent c5651cc commit c9de4fb

File tree

21 files changed

+415
-202
lines changed

21 files changed

+415
-202
lines changed

Nebula-Child/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/dev.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
/* Processed on Monday, April 24, 2017 at 12:25am */
2+
/* Processed on Thursday, April 27, 2017 at 6:49pm */

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/tinymce.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/wireframing.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/main.js

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ function isGoogleAnalyticsReady(){
207207
//Detect Battery Level
208208
function nebulaBattery(){
209209
nebula.user.client.device.battery = false;
210-
if ( typeof Modernizr != 'undefined' && has(Modernizr, 'batteryapi') ){
210+
211+
if ( has(navigator, 'getBattery') ){
211212
navigator.getBattery().then(function(battery){
212213
nebulaBatteryData(battery);
213214
jQuery(battery).on('chargingchange levelchange', function(){
@@ -414,15 +415,6 @@ function eventTracking(){
414415
ga('send', 'event', 'Button Click', btnText, jQuery(this).attr('href'));
415416
});
416417

417-
//Outbound Links
418-
nebula.dom.document.on('mousedown touch tap', "a[rel*='external']", function(e){
419-
eventIntent = ( e.which >= 2 )? 'Intent' : 'Explicit';
420-
ga('set', gaCustomDimensions['eventIntent'], eventIntent);
421-
ga('set', gaCustomDimensions['timestamp'], localTimestamp());
422-
ga('send', 'event', 'Outbound Link', 'Click', jQuery(this).attr('href'));
423-
nv('append', {'outbound_links': jQuery(this).attr('href')});
424-
});
425-
426418
//PDF View/Download
427419
nebula.dom.document.on('mousedown touch tap', "a[href$='.pdf']", function(e){
428420
eventIntent = ( e.which >= 2 )? 'Intent' : 'Explicit';
@@ -1595,9 +1587,9 @@ function cf7Functions(){
15951587
}
15961588

15971589
//Track CF7 forms when they scroll into view (Autotrack). Currently not possible to change category/action/label for just these impressions.
1598-
jQuery('form.wpcf7-form').each(function(){
1590+
jQuery('form').each(function(){
15991591
ga('impressionTracker:observeElements', [{
1600-
'id': jQuery(this).closest('.wpcf7').attr('id'),
1592+
'id': jQuery(this).closest('.wpcf7').attr('id') || jQuery(this).attr('id'),
16011593
'threshold': 0.25
16021594
}]);
16031595
});
@@ -1606,7 +1598,7 @@ function cf7Functions(){
16061598
jQuery('.wpcf7-form input, .wpcf7-form textarea').on('focus', function(){
16071599
formID = jQuery(this).parents('div.wpcf7').attr('id');
16081600

1609-
if ( !jQuery('form').hasClass('.ignore-form') && !jQuery('form').find('.ignore-form').length && (typeof formStarted[formID] === 'undefined' || !formStarted[formID]) ){
1601+
if ( !jQuery('form').hasClass('.ignore-form') && !jQuery('form').find('.ignore-form').length && !jQuery('#' + e.target.id).parents('.ignore-form').length && (typeof formStarted[formID] === 'undefined' || !formStarted[formID]) ){
16101602
ga('set', gaCustomDimensions['timestamp'], localTimestamp());
16111603
ga('set', gaCustomMetrics['formStarts'], 1);
16121604
ga('send', 'event', 'CF7 Form', 'Started Form (Focus)', 'Began filling out form ID: ' + formID + ' (' + jQuery(this).attr('id') + ')');
@@ -1675,7 +1667,7 @@ function cf7Functions(){
16751667
//CF7 Mail Sent Success (CF7 AJAX response after submit success)
16761668
nebula.dom.document.on('wpcf7mailsent', function(e){
16771669
var formTime = nebulaTimer(e.target.id, 'end');
1678-
if ( !jQuery('#' + e.target.id).hasClass('.ignore-form') && !jQuery('#' + e.target.id).find('.ignore-form').length ){
1670+
if ( !jQuery('#' + e.target.id).hasClass('.ignore-form') && !jQuery('#' + e.target.id).find('.ignore-form').length && !jQuery('#' + e.target.id).parents('.ignore-form').length ){
16791671
ga('set', gaCustomMetrics['formSubmissions'], 1);
16801672
}
16811673
ga('set', gaCustomDimensions['contactMethod'], 'CF7 Form (Success)');
@@ -1745,10 +1737,6 @@ function cf7LocalStorage(){
17451737

17461738
//Form live (soft) validator
17471739
function nebulaLiveValidator(){
1748-
if ( !jQuery('.nebula-validate').length ){ //@TODO "Nebula" 0: This isn't necessarily required... Maybe remove this restriction?
1749-
return false;
1750-
}
1751-
17521740
//Standard text inputs and select menus
17531741
jQuery('.nebula-validate-text, .nebula-validate-select').on('keyup change blur', function(e){
17541742
if ( jQuery(this).val() === '' ){
@@ -2896,7 +2884,7 @@ function has(obj, prop){
28962884

28972885
//Functionality for selecting and copying text using Nebula Pre tags.
28982886
function nebulaPre(){
2899-
try { //@TODO "Nebula" 0: Use Modernizr check here instead.
2887+
try {
29002888
if ( document.queryCommandEnabled("SelectAll") ){ //@TODO "Nebula" 0: If using document.queryCommandSupported("copy") it always returns false (even though it does actually work when execCommand('copy') is called.
29012889
var selectCopyText = 'Copy to clipboard';
29022890
} else if ( document.body.createTextRange || window.getSelection ){
@@ -3081,7 +3069,7 @@ function nebulaVideoTracking(){
30813069

30823070
//Native HTML5 Video Tracking
30833071
function nebulaHTML5VideoTracking(){
3084-
if ( jQuery('video').is(':visible').length ){ //@TODO "Nebula" 0: Better detection for Modernizr's video polyfill?
3072+
if ( jQuery('video').is(':visible').length ){
30853073
jQuery('video').each(function(){
30863074
var oThis = jQuery(this);
30873075
var id = oThis.attr('id');

assets/scss/style.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
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.
55
Author: Pinckney Hugo Group
66
Author URI: http://www.pinckneyhugo.com
7-
Version: 4.11.22
7+
Version: 5.0.0
88
License: GNU General Public License v2.0 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready
@@ -86,7 +86,7 @@ form.nebula-search-iconable {position: relative; display: inline-block; margin:
8686
.lte-ie9 &,
8787
.ie10 & {background: #eee;}
8888
}
89-
.borderimage &:before {content: '\f002'; display: inline-block; position: absolute; top: 4px; left: 7px; width: 12px; height: 12px; pointer-events: none; font-family: "FontAwesome"; font-size: rem(12px); line-height: rem(20px); text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transform: translate(0, 0);}
89+
.borderimage &:before {content: '\f002'; display: inline-block; position: absolute; top: rem(9px); left: 7px; pointer-events: none; font-family: "FontAwesome"; font-size: rem(12px); line-height: 100%; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transform: translate(0, 0);}
9090
.borderimage &.searching:before {content: '\f110'; @include prefix((animation: fa-spin 2s infinite linear), webkit moz);}
9191
}
9292

@@ -243,8 +243,8 @@ input:-ms-input-placeholder {font-weight: 300; color: $placeholder_color; @inclu
243243
//jQuery UI Autocomplete Hero Search
244244
div#nebula-hero-formcon {text-align: center; display: none; @include media("lg"){display: block;};}
245245
form#nebula-hero-search {position: relative; margin: 0; width: 100%; max-width: 600px; text-align: center; z-index: 100; @include prefix((transition: all 0.5s));
246-
&:before {top: 9px; left: 10px; width: 16px; height: 16px; font-size: rem(16px); line-height: 16px;}
247-
input {display: block; width: 100%; font-size: rem(18px); line-height: 23px; padding: 5px 6px 5px 30px; @include background-color(#fff, 0.9); border-radius: 0; box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.2);
246+
&:before {left: 10px; font-size: rem(16px);}
247+
input {display: block; width: 100%; font-size: rem(18px); line-height: 23px; padding: 5px 6px 5px 32px; @include background-color(#fff, 0.9); border-radius: 0; box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.2);
248248
&.active {@include background-color(#fff, 0.95); box-shadow: 0 0 25px rgba(red($primary_color), green($primary_color), blue($primary_color), 0.6);}
249249
}
250250
&.autocompleted input {border-bottom-left-radius: 0; border-bottom-right-radius: 0; border: none;}

0 commit comments

Comments
 (0)