Orbit Fox by ThemeIsle - Version 2.2.4

Version Description

  • 2017-12-04
Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Orbit Fox by ThemeIsle
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v2.2.3 - 2017-11-27
3
  **Changes:**
4
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
1
 
2
+ ### v2.2.4 - 2017-12-04
3
+ **Changes:**
4
+ * Fixed issue with menu icons module loading.
5
+
6
  ### v2.2.3 - 2017-11-27
7
  **Changes:**
8
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
core/assets/css/orbit-fox-admin.css CHANGED
@@ -8,7 +8,7 @@
8
  * Extends Spectre.css Library
9
  */
10
  /*
11
- Version: 2.2.3
12
  */
13
 
14
  /* Document
8
  * Extends Spectre.css Library
9
  */
10
  /*
11
+ Version: 2.2.4
12
  */
13
 
14
  /* Document
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.2.3';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
69
 
70
  $this->plugin_name = 'orbit-fox';
71
 
72
+ $this->version = '2.2.4';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
obfx_modules/elementor-widgets/js/obfx-grid.js CHANGED
@@ -1,6 +1,5 @@
1
  /* global elementor */
2
  (function ($) {
3
-
4
  $( document ).ready(
5
  function () {
6
  checkImageSize();
1
  /* global elementor */
2
  (function ($) {
 
3
  $( document ).ready(
4
  function () {
5
  checkImageSize();
obfx_modules/elementor-widgets/widgets/class-obfx-elementor-widget-posts-grid.php CHANGED
@@ -12,7 +12,7 @@ namespace Elementor;
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
- } // Exit if accessed directly
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Features
@@ -1521,13 +1521,13 @@ class OBFX_Elementor_Widget_Posts_Grid extends Widget_Base {
1521
  <?php
1522
  break;
1523
  endswitch;
1524
- } // end foreach
1525
  ?>
1526
 
1527
  </div>
1528
  <?php
1529
- }
1530
- }
1531
  }
1532
 
1533
  /**
@@ -1709,7 +1709,7 @@ endswitch;
1709
  echo '</article>';
1710
  echo '</div>';
1711
 
1712
- } // end while;
1713
 
1714
  // Pagination.
1715
  if ( ! empty( $settings['grid_pagination'] ) ) {
@@ -1742,7 +1742,7 @@ endswitch;
1742
  </div>
1743
  <?php
1744
  }
1745
- } // end if;
1746
 
1747
  // Restore original data.
1748
  wp_reset_postdata();
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
+ } // End if().
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Features
1521
  <?php
1522
  break;
1523
  endswitch;
1524
+ } // End foreach().
1525
  ?>
1526
 
1527
  </div>
1528
  <?php
1529
+ }// End if().
1530
+ }// End if().
1531
  }
1532
 
1533
  /**
1709
  echo '</article>';
1710
  echo '</div>';
1711
 
1712
+ } // End while().
1713
 
1714
  // Pagination.
1715
  if ( ! empty( $settings['grid_pagination'] ) ) {
1742
  </div>
1743
  <?php
1744
  }
1745
+ } // End if().
1746
 
1747
  // Restore original data.
1748
  wp_reset_postdata();
obfx_modules/elementor-widgets/widgets/class-obfx-elementor-widget-pricing-table.php CHANGED
@@ -12,7 +12,7 @@ namespace Elementor;
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
- } // Exit if accessed directly
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Pricing_Table
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
+ } // End if().
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Pricing_Table
obfx_modules/elementor-widgets/widgets/class-obfx-elementor-widget-services.php CHANGED
@@ -12,7 +12,7 @@ namespace Elementor;
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
- } // Exit if accessed directly
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Services
@@ -608,7 +608,7 @@ if ( ! empty( $service['text'] ) ) {
608
  ?>
609
  </div><!-- /.obfx-grid-wrapper -->
610
  <?php
611
- }
612
  echo '</div></div>';
613
 
614
  }
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
+ } // End if().
16
 
17
  /**
18
  * Class OBFX_Elementor_Widget_Services
608
  ?>
609
  </div><!-- /.obfx-grid-wrapper -->
610
  <?php
611
+ }// End foreach().
612
  echo '</div></div>';
613
 
614
  }
obfx_modules/menu-icons/init.php CHANGED
@@ -195,6 +195,10 @@ class Menu_Icons_OBFX_Module extends Orbit_Fox_Module_Abstract {
195
  return;
196
  }
197
 
 
 
 
 
198
  $screen = get_current_screen();
199
  if ( ! $screen instanceof WP_Screen || 'nav-menus' !== $screen->id ) {
200
  return;
195
  return;
196
  }
197
 
198
+ if ( ! function_exists( 'get_current_screen' ) ) {
199
+ return;
200
+ }
201
+
202
  $screen = get_current_screen();
203
  if ( ! $screen instanceof WP_Screen || 'nav-menus' !== $screen->id ) {
204
  return;
obfx_modules/menu-icons/js/admin.js CHANGED
@@ -13,8 +13,13 @@ var obfx_menuicons_module_admin = function( $, menu_icons ) {
13
  'use strict';
14
 
15
  var default_icon = menu_icons.icon_default;
 
 
16
 
17
  function get_prefix(icon){
 
 
 
18
  if (icon.match( /^fa-/ )) {
19
  return 'fa ';
20
  } else if (icon.match( /^dashicons-/ )) {
@@ -26,22 +31,16 @@ var obfx_menuicons_module_admin = function( $, menu_icons ) {
26
 
27
  // lets observe for new li tags added to the ul for when items are added to the menu.
28
  function listen_for_new_items(){
29
- var mutateObserver = new MutationObserver(
30
- function(records) {
31
- records.forEach(
32
- function(record) {
33
- $( record.addedNodes ).each(
34
- function(i, x){
35
- // process only the li elements.
36
- if ($( x ).prop( 'tagName' ) === 'LI') {
37
- add_icon( x );
38
- }
39
- }
40
- );
41
  }
42
- );
43
- }
44
- );
45
 
46
  mutateObserver.observe( $( 'ul#menu-to-edit' ).get( 0 ), {childList: true} );
47
  }
@@ -56,51 +55,41 @@ var obfx_menuicons_module_admin = function( $, menu_icons ) {
56
  }
57
  var prefix = get_prefix( icon );
58
 
59
- $( el ).find( '.menu-item-bar .menu-item-handle .item-title' ).prepend(
60
- $(
61
- '<div class="input-group obfx-menu-icon-container" style="display: inline-block"><input class="form-control obfx-menu-icon ' + no_icon_class + '" value="' + icon + '" style="display: none" type="text" data-menu-item-id="' + item_id + '"><span class="input-group-addon" style="cursor: pointer"><i class="' + prefix + icon + '"></i></span></div>'
62
- )
63
- );
64
 
65
  // ensure the popover comes over the menu bar.
66
  $( el ).find( '.menu-item-bar .menu-item-handle' ).css( 'overflow', 'initial' );
67
 
68
- $( el ).find( '.obfx-menu-icon' ).iconpicker(
69
- {
70
- // added blank icon for deselection.
71
- icons: $.merge( [default_icon], $.merge( menu_icons.icons, $.iconpicker.defaultOptions.icons ) ),
72
- fullClassFormatter: function(val){
73
- return get_prefix( val ) + val;
74
- },
75
- hideOnSelect: true,
76
- placement: 'bottomLeft',
77
- selectedCustomClass: 'obfx-menu-icon-selected'
78
- }
79
- );
80
-
81
- // add the selected icon to the hidden element.
82
- $( el ).find( '.obfx-menu-icon' ).on(
83
- 'iconpickerSelected', function(e) {
84
- var icon = e.iconpickerValue;
85
- var id = $( this ).attr( 'data-menu-item-id' );
86
- $( '#menu-item-icon-' + id ).val( icon );
87
- }
88
- );
89
 
90
  }
91
 
92
- $(
93
- function() {
94
- // add the existing menu item id to the dropdown as an attribute.
95
- $( 'li.menu-item' ).each(
96
- function(i, x){
97
- add_icon( x );
98
- }
99
- );
100
 
101
- listen_for_new_items();
102
- }
103
- );
104
 
105
  };
106
 
13
  'use strict';
14
 
15
  var default_icon = menu_icons.icon_default;
16
+ // added blank icon for deselection.
17
+ var all_icons = $.merge( [default_icon], $.merge( menu_icons.icons, $.iconpicker.defaultOptions.icons ) );
18
 
19
  function get_prefix(icon){
20
+ if(typeof icon === 'undefined') {
21
+ return '';
22
+ }
23
  if (icon.match( /^fa-/ )) {
24
  return 'fa ';
25
  } else if (icon.match( /^dashicons-/ )) {
31
 
32
  // lets observe for new li tags added to the ul for when items are added to the menu.
33
  function listen_for_new_items(){
34
+ var mutateObserver = new MutationObserver(function(records) {
35
+ records.forEach(function(record) {
36
+ $( record.addedNodes ).each(function(i, x){
37
+ // process only the li elements.
38
+ if ($( x ).prop( 'tagName' ) === 'LI') {
39
+ add_icon( x );
 
 
 
 
 
 
40
  }
41
+ });
42
+ });
43
+ });
44
 
45
  mutateObserver.observe( $( 'ul#menu-to-edit' ).get( 0 ), {childList: true} );
46
  }
55
  }
56
  var prefix = get_prefix( icon );
57
 
58
+ if ( ! $( el ).find( '.menu-item-bar .menu-item-handle .item-title div' ).hasClass('obfx-menu-icon-container') ) {
59
+ $( el ).find( '.menu-item-bar .menu-item-handle .item-title' ).prepend($(
60
+ '<div class="input-group obfx-menu-icon-container" style="display: inline-block"><input class="form-control obfx-menu-icon ' + no_icon_class + '" value="' + icon + '" style="display: none" type="text" data-menu-item-id="' + item_id + '"><span class="input-group-addon" style="cursor: pointer"><i class="' + prefix + icon + '"></i></span></div>'
61
+ ));
62
+ }
63
 
64
  // ensure the popover comes over the menu bar.
65
  $( el ).find( '.menu-item-bar .menu-item-handle' ).css( 'overflow', 'initial' );
66
 
67
+ $( el ).find( '.obfx-menu-icon ~ span' ).on('hover', function(){
68
+ $(this).parent().find('.obfx-menu-icon').iconpicker({
69
+ icons: all_icons,
70
+ fullClassFormatter: function(val){
71
+ return get_prefix( val ) + val;
72
+ },
73
+ hideOnSelect: true,
74
+ placement: 'bottomLeft',
75
+ selectedCustomClass: 'obfx-menu-icon-selected'
76
+ }).on('iconpickerSelected', function(e) {
77
+ var icon = e.iconpickerValue;
78
+ var id = $( this ).attr( 'data-menu-item-id' );
79
+ $( '#menu-item-icon-' + id ).val( icon );
80
+ });
81
+ });
 
 
 
 
 
 
82
 
83
  }
84
 
85
+ $( function() {
86
+ // add the existing menu item id to the dropdown as an attribute.
87
+ $( 'li.menu-item' ).each(function(i, x){
88
+ add_icon( x );
89
+ });
 
 
 
90
 
91
+ listen_for_new_items();
92
+ } );
 
93
 
94
  };
95
 
obfx_modules/template-directory/views/template-directory-page-tpl.php CHANGED
@@ -52,6 +52,6 @@ if ( is_array( $templates_array ) ) {
52
  if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
53
  $html .= $requires_plugins;
54
  }
55
- }
56
 
57
  echo $html;
52
  if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
53
  $html .= $requires_plugins;
54
  }
55
+ }// End if().
56
 
57
  echo $html;
readme.md CHANGED
@@ -86,6 +86,11 @@ Activating the Orbit Fox Companion plugin is just like any other plugin. If you'
86
  3. Screenshot 3. How reports module is looking
87
 
88
  ## Changelog ##
 
 
 
 
 
89
  ### 2.2.3 - 2017-11-27 ###
90
 
91
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
86
  3. Screenshot 3. How reports module is looking
87
 
88
  ## Changelog ##
89
+ ### 2.2.4 - 2017-12-04 ###
90
+
91
+ * Fixed issue with menu icons module loading.
92
+
93
+
94
  ### 2.2.3 - 2017-11-27 ###
95
 
96
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
readme.txt CHANGED
@@ -86,6 +86,11 @@ Activating the Orbit Fox Companion plugin is just like any other plugin. If you'
86
  3. Screenshot 3. How reports module is looking
87
 
88
  == Changelog ==
 
 
 
 
 
89
  = 2.2.3 - 2017-11-27 =
90
 
91
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
86
  3. Screenshot 3. How reports module is looking
87
 
88
  == Changelog ==
89
+ = 2.2.4 - 2017-12-04 =
90
+
91
+ * Fixed issue with menu icons module loading.
92
+
93
+
94
  = 2.2.3 - 2017-11-27 =
95
 
96
  * [Hestia] Fixed issue with Team member section not opening external links in a new tab
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: Enhances ThemeIsle's themes with extra functionality.
18
- * Version: 2.2.3
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: Enhances ThemeIsle's themes with extra functionality.
18
+ * Version: 2.2.4
19
  * Author: Themeisle
20
  * Author URI: https://themeisle.com
21
  * License: GPL-2.0+
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3c37963727aa7ad2edc99b3bed9e1711::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit148d40e7c5f191f525c153f8c2785c97
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequire148d40e7c5f191f525c153f8c2785c97($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequire148d40e7c5f191f525c153f8c2785c97($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit3c37963727aa7ad2edc99b3bed9e1711
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3c37963727aa7ad2edc99b3bed9e1711', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3c37963727aa7ad2edc99b3bed9e1711', '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
+ composerRequire3c37963727aa7ad2edc99b3bed9e1711($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire3c37963727aa7ad2edc99b3bed9e1711($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;