Version Description
- 2018-03-10
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 2.4.4 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.3 to 2.4.4
- CHANGELOG.md +5 -0
- core/assets/css/orbit-fox-admin.css +1 -1
- core/assets/js/orbit-fox-admin.js +31 -13
- core/includes/class-orbit-fox.php +1 -1
- obfx_modules/google-analytics/init.php +26 -20
- readme.md +6 -0
- readme.txt +6 -0
- themeisle-companion.php +1 -1
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +5 -5
CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
### v2.4.3 - 2018-03-04
|
| 3 |
**Changes:**
|
| 4 |
* Fixed Analytics module issues.
|
| 1 |
|
| 2 |
+
### v2.4.4 - 2018-03-10
|
| 3 |
+
**Changes:**
|
| 4 |
+
* Fixed Analytics module error.
|
| 5 |
+
* UX Improvements.
|
| 6 |
+
|
| 7 |
### v2.4.3 - 2018-03-04
|
| 8 |
**Changes:**
|
| 9 |
* Fixed Analytics module issues.
|
core/assets/css/orbit-fox-admin.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
* Extends Spectre.css Library
|
| 9 |
*/
|
| 10 |
/*
|
| 11 |
-
Version: 2.4.
|
| 12 |
*/
|
| 13 |
|
| 14 |
/* Document
|
| 8 |
* Extends Spectre.css Library
|
| 9 |
*/
|
| 10 |
/*
|
| 11 |
+
Version: 2.4.4
|
| 12 |
*/
|
| 13 |
|
| 14 |
/* Document
|
core/assets/js/orbit-fox-admin.js
CHANGED
|
@@ -49,6 +49,13 @@ var obfx_admin = function ( $ ) {
|
|
| 49 |
|
| 50 |
$(
|
| 51 |
function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
$( '.obfx-mod-switch' ).on(
|
| 53 |
'click', function () {
|
| 54 |
var switch_ref = $( this );
|
|
@@ -77,16 +84,20 @@ var obfx_admin = function ( $ ) {
|
|
| 77 |
'admin-ajax.php', ajax_data, function ( response ) {
|
| 78 |
formSwitch.removeClass( 'loading' );
|
| 79 |
if ( response.type === 'success' ) {
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
-
} else {
|
| 87 |
-
$( '#obfx-mod-' + name ).hide();
|
| 88 |
-
$( '#obfx-mod-' + name ).find( 'fieldset' ).attr( 'disabled', true );
|
| 89 |
-
}
|
| 90 |
} else {
|
| 91 |
switch_ref.attr( 'checked', !switch_ref.attr( 'checked' ) );
|
| 92 |
}
|
|
@@ -95,6 +106,12 @@ var obfx_admin = function ( $ ) {
|
|
| 95 |
}
|
| 96 |
);
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
$( '.accept-confirm-intent, .close-confirm-intent' ).on(
|
| 99 |
'click', function () {
|
| 100 |
var modal = $( this ).closest( '.modal' );
|
|
@@ -103,8 +120,10 @@ var obfx_admin = function ( $ ) {
|
|
| 103 |
var name = switch_ref.attr( 'name' );
|
| 104 |
var optionsPanel = $( '#obfx-mod-' + name );
|
| 105 |
optionsPanel.find( '.btn-expand' ).click();
|
| 106 |
-
optionsPanel
|
| 107 |
-
|
|
|
|
|
|
|
| 108 |
);
|
| 109 |
|
| 110 |
$( '.close-confirm-intent' ).on(
|
|
@@ -134,8 +153,7 @@ var obfx_admin = function ( $ ) {
|
|
| 134 |
$( this ).closest( '.panel.options' ).css( 'height', '75px' );
|
| 135 |
} else {
|
| 136 |
$( this ).addClass( 'active' );
|
| 137 |
-
$( this ).closest( '.panel
|
| 138 |
-
$( this ).closest( '.panel.options' ).css( 'height', ( $( this ).closest( '.panel-header' ).siblings( '.obfx-module-form' ).height() * 1 + 80 ) + 'px' );
|
| 139 |
}
|
| 140 |
}
|
| 141 |
);
|
| 49 |
|
| 50 |
$(
|
| 51 |
function () {
|
| 52 |
+
// Scroll to module if url hash.
|
| 53 |
+
$(document).ready(function() {
|
| 54 |
+
var hash = $( '#' + window.location.hash.substr( 1 ) );
|
| 55 |
+
hash.find('.btn-expand').click();
|
| 56 |
+
scrollToAnchor( hash );
|
| 57 |
+
});
|
| 58 |
+
|
| 59 |
$( '.obfx-mod-switch' ).on(
|
| 60 |
'click', function () {
|
| 61 |
var switch_ref = $( this );
|
| 84 |
'admin-ajax.php', ajax_data, function ( response ) {
|
| 85 |
formSwitch.removeClass( 'loading' );
|
| 86 |
if ( response.type === 'success' ) {
|
| 87 |
+
var modulePanel = $( '#obfx-mod-' + name );
|
| 88 |
+
if ( checked ) {
|
| 89 |
+
$( modulePanel ).find( 'fieldset' ).removeAttr( 'disabled' );
|
| 90 |
+
$( modulePanel ).show();
|
| 91 |
+
if ( modal ) {
|
| 92 |
+
modal.addClass( 'active' );
|
| 93 |
+
} else {
|
| 94 |
+
$( modulePanel ).find( '.btn-expand' ).click();
|
| 95 |
+
scrollToAnchor( modulePanel );
|
| 96 |
+
}
|
| 97 |
+
} else {
|
| 98 |
+
$( modulePanel ).hide();
|
| 99 |
+
$( modulePanel ).find( 'fieldset' ).attr( 'disabled', true );
|
| 100 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
} else {
|
| 102 |
switch_ref.attr( 'checked', !switch_ref.attr( 'checked' ) );
|
| 103 |
}
|
| 106 |
}
|
| 107 |
);
|
| 108 |
|
| 109 |
+
function scrollToAnchor(anchor_id){
|
| 110 |
+
if( anchor_id.length ) {
|
| 111 |
+
$( 'html,body' ).animate( { scrollTop: anchor_id.offset().top }, 'slow' );
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
$( '.accept-confirm-intent, .close-confirm-intent' ).on(
|
| 116 |
'click', function () {
|
| 117 |
var modal = $( this ).closest( '.modal' );
|
| 120 |
var name = switch_ref.attr( 'name' );
|
| 121 |
var optionsPanel = $( '#obfx-mod-' + name );
|
| 122 |
optionsPanel.find( '.btn-expand' ).click();
|
| 123 |
+
scrollToAnchor(optionsPanel);
|
| 124 |
+
optionsPanel.find( '.form-input:first-of-type' ).focus();
|
| 125 |
+
|
| 126 |
+
}
|
| 127 |
);
|
| 128 |
|
| 129 |
$( '.close-confirm-intent' ).on(
|
| 153 |
$( this ).closest( '.panel.options' ).css( 'height', '75px' );
|
| 154 |
} else {
|
| 155 |
$( this ).addClass( 'active' );
|
| 156 |
+
$( this ).closest( '.panel.options' ).css( 'height', 'auto' );
|
|
|
|
| 157 |
}
|
| 158 |
}
|
| 159 |
);
|
core/includes/class-orbit-fox.php
CHANGED
|
@@ -69,7 +69,7 @@ class Orbit_Fox {
|
|
| 69 |
|
| 70 |
$this->plugin_name = 'orbit-fox';
|
| 71 |
|
| 72 |
-
$this->version = '2.4.
|
| 73 |
|
| 74 |
$this->load_dependencies();
|
| 75 |
$this->set_locale();
|
| 69 |
|
| 70 |
$this->plugin_name = 'orbit-fox';
|
| 71 |
|
| 72 |
+
$this->version = '2.4.4';
|
| 73 |
|
| 74 |
$this->load_dependencies();
|
| 75 |
$this->set_locale();
|
obfx_modules/google-analytics/init.php
CHANGED
|
@@ -98,8 +98,8 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 98 |
}
|
| 99 |
|
| 100 |
/**
|
| 101 |
-
|
| 102 |
-
|
| 103 |
* @return array|bool|WP_Error
|
| 104 |
*/
|
| 105 |
public function refresh_tracking_links() {
|
|
@@ -120,8 +120,8 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 120 |
}
|
| 121 |
|
| 122 |
/**
|
| 123 |
-
|
| 124 |
-
|
| 125 |
* @param $obfx_token
|
| 126 |
*
|
| 127 |
* @return array|bool|WP_Error
|
|
@@ -203,12 +203,13 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 203 |
public function options() {
|
| 204 |
$token = get_option( 'obfx_token', '' );
|
| 205 |
if ( empty( $token ) ) {
|
| 206 |
-
$url
|
| 207 |
-
$url
|
| 208 |
'site_hash' => $this->get_site_hash(),
|
| 209 |
'site_url' => home_url(),
|
| 210 |
-
'site_return' => admin_url( 'admin.php?page=obfx_companion' ),
|
| 211 |
), $url );
|
|
|
|
| 212 |
return array(
|
| 213 |
array(
|
| 214 |
'id' => 'google_signin',
|
|
@@ -234,13 +235,13 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 234 |
return array(
|
| 235 |
|
| 236 |
array(
|
| 237 |
-
'id'
|
| 238 |
-
'name'
|
| 239 |
-
'type'
|
| 240 |
'link-class' => 'btn btn-primary btn-sm',
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
),
|
| 245 |
array(
|
| 246 |
'id' => 'analytics_accounts_select',
|
|
@@ -250,13 +251,13 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 250 |
'default' => '-',
|
| 251 |
),
|
| 252 |
array(
|
| 253 |
-
'id'
|
| 254 |
-
'name'
|
| 255 |
-
'type'
|
| 256 |
'link-class' => 'btn btn-sm',
|
| 257 |
-
'link-id'
|
| 258 |
-
'text'
|
| 259 |
-
'url'
|
| 260 |
)
|
| 261 |
);
|
| 262 |
}
|
|
@@ -309,7 +310,12 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 309 |
* @return string
|
| 310 |
*/
|
| 311 |
private final function get_site_hash() {
|
| 312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
}
|
| 314 |
|
| 315 |
public final function maybe_save_obfx_token() {
|
| 98 |
}
|
| 99 |
|
| 100 |
/**
|
| 101 |
+
* Refresh Tracking links.
|
| 102 |
+
*
|
| 103 |
* @return array|bool|WP_Error
|
| 104 |
*/
|
| 105 |
public function refresh_tracking_links() {
|
| 120 |
}
|
| 121 |
|
| 122 |
/**
|
| 123 |
+
* Unregister website.
|
| 124 |
+
*
|
| 125 |
* @param $obfx_token
|
| 126 |
*
|
| 127 |
* @return array|bool|WP_Error
|
| 203 |
public function options() {
|
| 204 |
$token = get_option( 'obfx_token', '' );
|
| 205 |
if ( empty( $token ) ) {
|
| 206 |
+
$url = $this->api_url . '/auth';
|
| 207 |
+
$url = add_query_arg( array(
|
| 208 |
'site_hash' => $this->get_site_hash(),
|
| 209 |
'site_url' => home_url(),
|
| 210 |
+
'site_return' => admin_url( 'admin.php?page=obfx_companion#obfx-mod-google-analytics' ),
|
| 211 |
), $url );
|
| 212 |
+
|
| 213 |
return array(
|
| 214 |
array(
|
| 215 |
'id' => 'google_signin',
|
| 235 |
return array(
|
| 236 |
|
| 237 |
array(
|
| 238 |
+
'id' => 'analytics_accounts_refresh',
|
| 239 |
+
'name' => 'analytics_accounts_refresh',
|
| 240 |
+
'type' => 'link',
|
| 241 |
'link-class' => 'btn btn-primary btn-sm',
|
| 242 |
+
'link-id' => 'refresh-analytics-accounts',
|
| 243 |
+
'text' => '<i class="dashicons dashicons-update"></i> ' . __( 'Refresh Accounts', 'themeisle-companion' ),
|
| 244 |
+
'url' => ''
|
| 245 |
),
|
| 246 |
array(
|
| 247 |
'id' => 'analytics_accounts_select',
|
| 251 |
'default' => '-',
|
| 252 |
),
|
| 253 |
array(
|
| 254 |
+
'id' => 'analytics_accounts_unregister',
|
| 255 |
+
'name' => 'analytics_accounts_unregister',
|
| 256 |
+
'type' => 'link',
|
| 257 |
'link-class' => 'btn btn-sm',
|
| 258 |
+
'link-id' => 'unregister-analytics',
|
| 259 |
+
'text' => '<i class="dashicons dashicons-no"></i>' . __( 'Unregister Site', 'themeisle-companion' ),
|
| 260 |
+
'url' => ''
|
| 261 |
)
|
| 262 |
);
|
| 263 |
}
|
| 310 |
* @return string
|
| 311 |
*/
|
| 312 |
private final function get_site_hash() {
|
| 313 |
+
$pre_hash = rtrim( ltrim( sanitize_text_field( preg_replace( '/[^a-zA-Z0-9]/', '', AUTH_KEY . SECURE_AUTH_KEY . LOGGED_IN_KEY ) ) ) );
|
| 314 |
+
if ( function_exists( 'mb_strimwidth' ) ) {
|
| 315 |
+
return mb_strimwidth( $pre_hash, 0, 100 );
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
return substr( $pre_hash, 0, 100 );
|
| 319 |
}
|
| 320 |
|
| 321 |
public final function maybe_save_obfx_token() {
|
readme.md
CHANGED
|
@@ -98,6 +98,12 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
| 98 |
5. Social Sharing Module
|
| 99 |
|
| 100 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
### 2.4.3 - 2018-03-04 ###
|
| 102 |
|
| 103 |
* Fixed Analytics module issues.
|
| 98 |
5. Social Sharing Module
|
| 99 |
|
| 100 |
## Changelog ##
|
| 101 |
+
### 2.4.4 - 2018-03-10 ###
|
| 102 |
+
|
| 103 |
+
* Fixed Analytics module error.
|
| 104 |
+
* UX Improvements.
|
| 105 |
+
|
| 106 |
+
|
| 107 |
### 2.4.3 - 2018-03-04 ###
|
| 108 |
|
| 109 |
* Fixed Analytics module issues.
|
readme.txt
CHANGED
|
@@ -98,6 +98,12 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
| 98 |
5. Social Sharing Module
|
| 99 |
|
| 100 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
= 2.4.3 - 2018-03-04 =
|
| 102 |
|
| 103 |
* Fixed Analytics module issues.
|
| 98 |
5. Social Sharing Module
|
| 99 |
|
| 100 |
== Changelog ==
|
| 101 |
+
= 2.4.4 - 2018-03-10 =
|
| 102 |
+
|
| 103 |
+
* Fixed Analytics module error.
|
| 104 |
+
* UX Improvements.
|
| 105 |
+
|
| 106 |
+
|
| 107 |
= 2.4.3 - 2018-03-04 =
|
| 108 |
|
| 109 |
* Fixed Analytics module issues.
|
themeisle-companion.php
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* Plugin Name: Orbit Fox Companion
|
| 16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
| 17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
| 18 |
-
* Version: 2.4.
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: https://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
| 15 |
* Plugin Name: Orbit Fox Companion
|
| 16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
| 17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
| 18 |
+
* Version: 2.4.4
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: https://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
themeisle-hash.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"
|
| 1 |
+
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"c4490c854211aa1b877db68b762762a5","uninstall.php":"7abf753a29e0eb3a844c8a0ba9493b7c"}
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInita722a1f7104fe151caa2caa86049818a::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitf68c1b12f1f2eca69b3c1fdbd1ce9b09
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInitf68c1b12f1f2eca69b3c1fdbd1ce9b09
|
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
-
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
-
function
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInita722a1f7104fe151caa2caa86049818a
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInita722a1f7104fe151caa2caa86049818a', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita722a1f7104fe151caa2caa86049818a', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
+
composerRequirea722a1f7104fe151caa2caa86049818a($fileIdentifier, $file);
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
function composerRequirea722a1f7104fe151caa2caa86049818a($fileIdentifier, $file)
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
