Shortcodes and extra features for Phlox theme - Version 1.3.3

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Shortcodes and extra features for Phlox theme
Version 1.3.3
Comparing to
See all releases

Code changes from version 1.3.2 to 1.3.3

Files changed (48) hide show
  1. README.txt +6 -5
  2. admin/includes/metaboxes/metabox-fields-post-audio.php +2 -2
  3. admin/includes/metaboxes/metabox-fields-post-gallery.php +2 -2
  4. admin/includes/metaboxes/metabox-fields-post-quote.php +2 -2
  5. admin/includes/metaboxes/metabox-fields-post-video.php +2 -2
  6. auxin-elements.php +6 -6
  7. includes/classes/class-auxin-siteorigin-widget.php +2 -2
  8. includes/classes/class-auxin-widget-shortcode-map.php +2 -2
  9. includes/define.php +1 -1
  10. includes/elements/about-widget.php +2 -2
  11. includes/elements/accordion.php +2 -2
  12. includes/elements/attachment-url.php +2 -2
  13. includes/elements/audio.php +2 -2
  14. includes/elements/before-after.php +2 -2
  15. includes/elements/button.php +2 -2
  16. includes/elements/code.php +2 -2
  17. includes/elements/contact-box.php +6 -2
  18. includes/elements/contact-form.php +2 -2
  19. includes/elements/divider.php +2 -2
  20. includes/elements/dropcap.php +2 -2
  21. includes/elements/facebook.php +2 -2
  22. includes/elements/flickr.php +2 -2
  23. includes/elements/gallery.php +39 -24
  24. includes/elements/gmap.php +6 -2
  25. includes/elements/highlight.php +2 -2
  26. includes/elements/image.php +2 -2
  27. includes/elements/instagram-feed.php +2 -2
  28. includes/elements/latest-posts-slider.php +2 -2
  29. includes/elements/popular-posts-widget.php +2 -2
  30. includes/elements/quote.php +2 -2
  31. includes/elements/recent-posts-grid-carousel.php +2 -2
  32. includes/elements/recent-posts-land-style.php +2 -2
  33. includes/elements/recent-posts-masonry.php +2 -2
  34. includes/elements/recent-posts-tiles.php +2 -2
  35. includes/elements/recent-posts-timeline.php +2 -2
  36. includes/elements/recent-posts-widget.php +2 -2
  37. includes/elements/sample-element.php +2 -2
  38. includes/elements/search.php +2 -2
  39. includes/elements/socials-list.php +2 -2
  40. includes/elements/tabs.php +2 -2
  41. includes/elements/text.php +2 -2
  42. includes/elements/touch-slider.php +5 -3
  43. includes/elements/video.php +2 -2
  44. includes/general-functions.php +2 -2
  45. includes/general-hooks.php +21 -4
  46. public/includes/class-auxels-frontend-assets.php +2 -2
  47. public/templates/vcomposer/auxin_shortcode_mapper.php +2 -2
  48. uninstall.php +2 -2
README.txt CHANGED
@@ -5,8 +5,8 @@ License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
  Requires at least: 4.4
8
- Tested up to: 4.7.0
9
- Stable tag: 1.3.2
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
@@ -140,6 +140,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
140
 
141
  == Changelog ==
142
 
 
 
 
143
  = Version 1.3.2 / (08.01.2017) =
144
  - [New]: Introducing Before after slider element to show comparison between two images.
145
  - [New]: New slider element "touch image slider" added, now you can insert any image as a slider in any page via page builder
@@ -150,7 +153,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
150
  - [Improvement]: The functionality of lightbox in image element lightbox improved
151
  - [Fix]: Minor bugs fixed.
152
 
153
-
154
  = Version 1.3.1 / (20.12.2016) =
155
  - [Improvement]: New styles and options added to code element
156
  - [Improvement]: Adding responsive options to row and column shortcodes
@@ -190,5 +192,4 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-ele
190
  == Upgrade Notice ==
191
 
192
  = 1.3.2 =
193
- - [New]: Introducing Before after slider element to show comparison between two images.
194
- - [New]: Introducing tiles layout for auxin gallery element
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: banner SEO, shortcode, page-builder, siteorigin, auxin, framework, widget, element, phlox, averta, fullwidth, masonry, timeline
7
  Requires at least: 4.4
8
+ Tested up to: 4.7.1
9
+ Stable tag: 1.3.3
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl.html
12
 
140
 
141
  == Changelog ==
142
 
143
+ = Version 1.3.2 / (15.01.2017) =
144
+ - [Improvement]: New option for defining google map api key added
145
+
146
  = Version 1.3.2 / (08.01.2017) =
147
  - [New]: Introducing Before after slider element to show comparison between two images.
148
  - [New]: New slider element "touch image slider" added, now you can insert any image as a slider in any page via page builder
153
  - [Improvement]: The functionality of lightbox in image element lightbox improved
154
  - [Fix]: Minor bugs fixed.
155
 
 
156
  = Version 1.3.1 / (20.12.2016) =
157
  - [Improvement]: New styles and options added to code element
158
  - [Improvement]: Adding responsive options to row and column shortcodes
192
  == Upgrade Notice ==
193
 
194
  = 1.3.2 =
195
+ - [Improvement]: New option for defining google map api key added
 
admin/includes/metaboxes/metabox-fields-post-audio.php CHANGED
@@ -3,10 +3,10 @@
3
  * Add Video Option meta box for video post format
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Add Video Option meta box for video post format
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
admin/includes/metaboxes/metabox-fields-post-gallery.php CHANGED
@@ -3,10 +3,10 @@
3
  * Add gallery Option meta box for gallery post format
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Add gallery Option meta box for gallery post format
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
admin/includes/metaboxes/metabox-fields-post-quote.php CHANGED
@@ -3,10 +3,10 @@
3
  * Add quote Option meta box for quote post format
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Add quote Option meta box for quote post format
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
admin/includes/metaboxes/metabox-fields-post-video.php CHANGED
@@ -3,10 +3,10 @@
3
  * Add Video Option meta box for video post format
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Add Video Option meta box for video post format
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
auxin-elements.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php
2
  /**
3
- * Extra features, shortcodes and widgets for themes with auxin framework
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  *
12
  * Plugin Name: Auxin Essential Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
- * Version: 1.3.2
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
19
  * License URI: LICENSE.txt
20
  * Domain Path: /languages
21
- * Tested up to: 4.7.0
22
  */
23
 
24
  // If this file is called directly, abort.
@@ -54,7 +54,7 @@ if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
54
 
55
  // Check if the theme meets the plugin requirements
56
  function auel_auxin_theme_requirement_notice() {
57
- if ( defined('THEME_VERSION') && version_compare( THEME_VERSION, '1.6.0', '<' ) ) {
58
  echo '<div class="error"><p>'.
59
  sprintf(
60
  __( 'You are using %1$s theme version %2$s. You need to update the %1$s theme to latest version in order to use %3$s plugin', 'auxin-elements' ),
1
  <?php
2
  /**
3
+ * Extra features, shortcodes and widgets for themes with auxin framework (i.e Phlox Theme)
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  *
12
  * Plugin Name: Auxin Essential Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Powerful and comprehensive plugin that extends the functionality of Phlox theme by adding new shortcodes, widgets and options
15
+ * Version: 1.3.3
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
19
  * License URI: LICENSE.txt
20
  * Domain Path: /languages
21
+ * Tested up to: 4.7.1
22
  */
23
 
24
  // If this file is called directly, abort.
54
 
55
  // Check if the theme meets the plugin requirements
56
  function auel_auxin_theme_requirement_notice() {
57
+ if ( defined('THEME_VERSION') && version_compare( THEME_VERSION, '1.6.2', '<' ) ) {
58
  echo '<div class="error"><p>'.
59
  sprintf(
60
  __( 'You are using %1$s theme version %2$s. You need to update the %1$s theme to latest version in order to use %3$s plugin', 'auxin-elements' ),
includes/classes/class-auxin-siteorigin-widget.php CHANGED
@@ -3,10 +3,10 @@
3
  * A class for creating SiteOrigin widgets from the master widgets list
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * A class for creating SiteOrigin widgets from the master widgets list
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/classes/class-auxin-widget-shortcode-map.php CHANGED
@@ -4,10 +4,10 @@
4
  * (visual composer and siteorigin page builder elements are the same)
5
  *
6
  *
7
- * @package auxin-elements
8
  * @license LICENSE.txt
9
  * @author
10
- * @link https://bitbucket.org/averta/
11
  * @copyright (c) 2010-2017
12
  */
13
 
4
  * (visual composer and siteorigin page builder elements are the same)
5
  *
6
  *
7
+ * @package Auxin
8
  * @license LICENSE.txt
9
  * @author
10
+ * @link http://averta.net/phlox/
11
  * @copyright (c) 2010-2017
12
  */
13
 
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '1.3.2' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '1.3.3' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elements/about-widget.php CHANGED
@@ -3,10 +3,10 @@
3
  * About element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * About element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/accordion.php CHANGED
@@ -3,10 +3,10 @@
3
  * Accordion element if site origin bundle plugin is activaited
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Accordion element if site origin bundle plugin is activaited
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/attachment-url.php CHANGED
@@ -3,10 +3,10 @@
3
  * Retrieves attachment URL
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Retrieves attachment URL
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/audio.php CHANGED
@@ -3,10 +3,10 @@
3
  * Audio player element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_audio_master_array( $master_array ) {
3
  * Audio player element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_audio_master_array( $master_array ) {
includes/elements/before-after.php CHANGED
@@ -3,10 +3,10 @@
3
  * Before after slider element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_before_after_master_array( $master_array ) {
3
  * Before after slider element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_before_after_master_array( $master_array ) {
includes/elements/button.php CHANGED
@@ -3,10 +3,10 @@
3
  * Button element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Button element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/code.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/contact-box.php CHANGED
@@ -3,10 +3,10 @@
3
  * Contact box element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
@@ -367,6 +367,10 @@ function auxin_widget_contact_box( $atts, $shortcode_content = null ){
367
 
368
  <script>
369
  jQuery( function($) {
 
 
 
 
370
  var map = new GMaps({
371
  el: "#<?php echo $mapid; ?>",
372
  lat: <?php echo $latitude; ?>,
3
  * Contact box element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
367
 
368
  <script>
369
  jQuery( function($) {
370
+ if(typeof GMaps != 'function'){
371
+ console.warn( "Please add google map API key in theme options. https://developers.google.com/maps/documentation/javascript/" );
372
+ return;
373
+ }
374
  var map = new GMaps({
375
  el: "#<?php echo $mapid; ?>",
376
  lat: <?php echo $latitude; ?>,
includes/elements/contact-form.php CHANGED
@@ -3,10 +3,10 @@
3
  * Contact form element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Contact form element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/divider.php CHANGED
@@ -3,10 +3,10 @@
3
  * Divider element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Divider element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/dropcap.php CHANGED
@@ -3,10 +3,10 @@
3
  * Dropcap element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_dropcap_master_array( $master_array ) {
3
  * Dropcap element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_dropcap_master_array( $master_array ) {
includes/elements/facebook.php CHANGED
@@ -3,10 +3,10 @@
3
  * Divider element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Divider element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/flickr.php CHANGED
@@ -3,10 +3,10 @@
3
  * Divider element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Divider element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/gallery.php CHANGED
@@ -3,10 +3,10 @@
3
  * Filterable gallery with lightbox
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_gallery_master_array( $master_array ) {
@@ -68,6 +68,38 @@ function auxin_get_gallery_master_array( $master_array ) {
68
  'group' => '' ,
69
  'edit_field_class' => ''
70
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  array(
72
  'heading' => __('Order images by query','auxin-elements'),
73
  'description' => '',
@@ -125,26 +157,6 @@ function auxin_get_gallery_master_array( $master_array ) {
125
  'group' => '' ,
126
  'edit_field_class' => ''
127
  ),
128
- array(
129
- 'heading' => __('Gallery layout','auxin-elements'),
130
- 'description' => '',
131
- 'param_name' => 'layout',
132
- 'type' => 'dropdown',
133
- 'def_value' => 'grid',
134
- 'value' => array(
135
- 'grid' => __('Grid', 'auxin-elements'),
136
- 'masonry' => __('Masonry', 'auxin-elements'),
137
- 'tiles' => __('Tiles', 'auxin-elements')//,
138
- //'justify-rows' => __('Justify rows', 'auxin-elements')
139
- ),
140
- 'holder' => 'dropdown',
141
- 'class' => 'layout',
142
- 'admin_label' => true,
143
- 'dependency' => '',
144
- 'weight' => '',
145
- 'group' => '' ,
146
- 'edit_field_class' => ''
147
- ),
148
  array(
149
  'heading' => __('Number of columns', 'auxin-elements'),
150
  'description' => '',
@@ -349,6 +361,8 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
349
  $instance++;
350
  $selector = "aux-gallery-{$instance}";
351
 
 
 
352
  // Defining default attributes
353
  $default_atts = array(
354
  'order' => 'ASC',
@@ -365,6 +379,7 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
365
  'perpage' => 24,
366
  'pagination' => false,
367
  'lazyload' => false,
 
368
  'title' => '', // header title
369
  'extra_classes' => '', // custom css class names for this element
370
  'custom_el_id' => '', // custom id attribute for this element
@@ -497,7 +512,7 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
497
  'preloadable' => $lazyload,
498
  'crop' => true,
499
  'add_hw' => false, // whether add width and height attr or not
500
- // 'size' => array( 'width' => $column_media_width, 'height' => $column_media_height ),
501
  'image_sizes' => $item_pattern_info['image_sizes'],
502
  'srcset_sizes' => $item_pattern_info['srcset_sizes']
503
  )
@@ -515,7 +530,7 @@ function auxin_widget_gallery_callback( $attr, $shortcode_content = null ){
515
  'upscale' => true,
516
  'preloadable' => $lazyload,
517
  'crop' => $crop,
518
- 'size' => array( 'width' => $column_media_width, 'height' => $column_media_height ),
519
  'add_hw' => true, // whether add width and height attr or not
520
  'image_sizes' => array(
521
  array( 'min' => '', 'max' => '767px', 'width' => round( 100 / $phone_cnum ).'vw' ),
3
  * Filterable gallery with lightbox
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_gallery_master_array( $master_array ) {
68
  'group' => '' ,
69
  'edit_field_class' => ''
70
  ),
71
+ array(
72
+ 'heading' => __('Gallery layout','auxin-elements'),
73
+ 'description' => '',
74
+ 'param_name' => 'layout',
75
+ 'type' => 'aux_visual_select',
76
+ 'def_value' => 'grid',
77
+ 'choices' => array(
78
+ 'grid' => array(
79
+ 'label' => __('Grid', 'auxin-elements'),
80
+ 'image' => AUX_URL . 'images/visual-select/gallery-grid.svg'
81
+ ),
82
+ 'masonry' => array(
83
+ 'label' => __('Masonry', 'auxin-elements'),
84
+ 'image' => AUX_URL . 'images/visual-select/gallery-masonry.svg'
85
+ ),
86
+ 'tiles' => array(
87
+ 'label' => __('Tiles', 'auxin-elements'),
88
+ 'image' => AUX_URL . 'images/visual-select/gallery-tile.svg'
89
+ ),
90
+ // 'justify-rows' => array(
91
+ // 'label' => __('Justify rows', 'auxin-elements'),
92
+ // 'image' => AUX_URL . 'images/visual-select/divider-diamond.svg'
93
+ // )
94
+ ),
95
+ 'holder' => 'dropdown',
96
+ 'class' => 'layout',
97
+ 'admin_label' => true,
98
+ 'dependency' => '',
99
+ 'weight' => '',
100
+ 'group' => '' ,
101
+ 'edit_field_class' => ''
102
+ ),
103
  array(
104
  'heading' => __('Order images by query','auxin-elements'),
105
  'description' => '',
157
  'group' => '' ,
158
  'edit_field_class' => ''
159
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  array(
161
  'heading' => __('Number of columns', 'auxin-elements'),
162
  'description' => '',
361
  $instance++;
362
  $selector = "aux-gallery-{$instance}";
363
 
364
+ global $post;
365
+
366
  // Defining default attributes
367
  $default_atts = array(
368
  'order' => 'ASC',
379
  'perpage' => 24,
380
  'pagination' => false,
381
  'lazyload' => false,
382
+ 'wp_order' => false,
383
  'title' => '', // header title
384
  'extra_classes' => '', // custom css class names for this element
385
  'custom_el_id' => '', // custom id attribute for this element
512
  'preloadable' => $lazyload,
513
  'crop' => true,
514
  'add_hw' => false, // whether add width and height attr or not
515
+ 'size' => $item_pattern_info['size'],
516
  'image_sizes' => $item_pattern_info['image_sizes'],
517
  'srcset_sizes' => $item_pattern_info['srcset_sizes']
518
  )
530
  'upscale' => true,
531
  'preloadable' => $lazyload,
532
  'crop' => $crop,
533
+ 'size' => array( 'width' => $column_media_width, 'height' => $column_media_width * $image_aspect_ratio ),
534
  'add_hw' => true, // whether add width and height attr or not
535
  'image_sizes' => array(
536
  array( 'min' => '', 'max' => '767px', 'width' => round( 100 / $phone_cnum ).'vw' ),
includes/elements/gmap.php CHANGED
@@ -3,10 +3,10 @@
3
  * Google Map element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_gmap_master_array( $master_array ) {
@@ -262,6 +262,10 @@ function auxin_widget_gmaps_callback( $atts, $shortcode_content = null ){
262
  "use strict";
263
 
264
  $(function(){
 
 
 
 
265
  var map = new GMaps({
266
  el: "#<?php echo $mapid; ?>",
267
  lat: <?php echo $latitude; ?>,
3
  * Google Map element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_gmap_master_array( $master_array ) {
262
  "use strict";
263
 
264
  $(function(){
265
+ if(typeof GMaps != 'function'){
266
+ console.warn( "Please add google map API key in theme options. https://developers.google.com/maps/documentation/javascript/" );
267
+ return;
268
+ }
269
  var map = new GMaps({
270
  el: "#<?php echo $mapid; ?>",
271
  lat: <?php echo $latitude; ?>,
includes/elements/highlight.php CHANGED
@@ -3,10 +3,10 @@
3
  * Hightlight text
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_highlight_master_array( $master_array ) {
3
  * Hightlight text
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_highlight_master_array( $master_array ) {
includes/elements/image.php CHANGED
@@ -3,10 +3,10 @@
3
  * Image element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_image_master_array( $master_array ) {
3
  * Image element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_image_master_array( $master_array ) {
includes/elements/instagram-feed.php CHANGED
@@ -3,10 +3,10 @@
3
  * Instagram feed
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_instagram_master_array( $master_array ) {
3
  * Instagram feed
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_instagram_master_array( $master_array ) {
includes/elements/latest-posts-slider.php CHANGED
@@ -3,10 +3,10 @@
3
  * Latest Post slider element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_post_slider_master_array( $master_array ) {
3
  * Latest Post slider element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_post_slider_master_array( $master_array ) {
includes/elements/popular-posts-widget.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/quote.php CHANGED
@@ -3,10 +3,10 @@
3
  * Quote element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_quote_master_array( $master_array ) {
3
  * Quote element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_quote_master_array( $master_array ) {
includes/elements/recent-posts-grid-carousel.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/recent-posts-land-style.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/recent-posts-masonry.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/recent-posts-tiles.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/recent-posts-timeline.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/recent-posts-widget.php CHANGED
@@ -3,10 +3,10 @@
3
  * Code highlighter element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Code highlighter element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/sample-element.php CHANGED
@@ -3,10 +3,10 @@
3
  * Sample Element element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Sample Element element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
includes/elements/search.php CHANGED
@@ -3,10 +3,10 @@
3
  * Search element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_search_master_array( $master_array ) {
3
  * Search element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_search_master_array( $master_array ) {
includes/elements/socials-list.php CHANGED
@@ -3,10 +3,10 @@
3
  * Social List
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_social_master_array( $master_array ) {
3
  * Social List
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_social_master_array( $master_array ) {
includes/elements/tabs.php CHANGED
@@ -3,10 +3,10 @@
3
  * Tabs element if site origin bundle plugin is activaited
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_tabs_master_array( $master_array ) {
3
  * Tabs element if site origin bundle plugin is activaited
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_tabs_master_array( $master_array ) {
includes/elements/text.php CHANGED
@@ -3,10 +3,10 @@
3
  * Text element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_text_master_array( $master_array ) {
3
  * Text element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_text_master_array( $master_array ) {
includes/elements/touch-slider.php CHANGED
@@ -4,10 +4,10 @@
4
  * You should have 'Master Slider' plugin installed to use this element
5
  *
6
  *
7
- * @package auxin-elements
8
  * @license LICENSE.txt
9
  * @author
10
- * @link https://bitbucket.org/averta/
11
  * @copyright (c) 2010-2017
12
  */
13
  function auxin_touch_slider_master_array( $master_array ) {
@@ -241,7 +241,9 @@ function auxin_touch_slider_callback( $atts, $shortcode_content = null ){
241
  extract( $result['parsed_atts'] );
242
 
243
  $attachments = auxin_get_the_resized_images_by_attach_ids( $images, $width , $height, true );
244
-
 
 
245
  ob_start();
246
 
247
  // widget header ------------------------------
4
  * You should have 'Master Slider' plugin installed to use this element
5
  *
6
  *
7
+ * @package Auxin
8
  * @license LICENSE.txt
9
  * @author
10
+ * @link http://averta.net/phlox/
11
  * @copyright (c) 2010-2017
12
  */
13
  function auxin_touch_slider_master_array( $master_array ) {
241
  extract( $result['parsed_atts'] );
242
 
243
  $attachments = auxin_get_the_resized_images_by_attach_ids( $images, $width , $height, true );
244
+ if( empty( $attachments ) ){
245
+ return '';
246
+ }
247
  ob_start();
248
 
249
  // widget header ------------------------------
includes/elements/video.php CHANGED
@@ -3,10 +3,10 @@
3
  * Video player element
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_video_master_array( $master_array ) {
3
  * Video player element
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
  function auxin_get_video_master_array( $master_array ) {
includes/general-functions.php CHANGED
@@ -2,10 +2,10 @@
2
  /**
3
  *
4
  *
5
- * @package auxin-elements
6
  * @license LICENSE.txt
7
  * @author
8
- * @link https://bitbucket.org/averta/
9
  * @copyright (c) 2010-2017
10
  */
11
 
2
  /**
3
  *
4
  *
5
+ * @package Auxin
6
  * @license LICENSE.txt
7
  * @author
8
+ * @link http://averta.net/phlox/
9
  * @copyright (c) 2010-2017
10
  */
11
 
includes/general-hooks.php CHANGED
@@ -3,10 +3,10 @@
3
  * Before Single Products Summary Div
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
@@ -374,8 +374,8 @@ function auxin_add_theme_options_in_plugin( $fields_sections_list ){
374
  $fields_sections_list['sections'][] = array(
375
  'id' => 'general-setting-section-seo',
376
  'parent' => 'general-setting-section', // section parent's id
377
- 'title' => __( 'Tracking & SEO', 'auxin-elements'),
378
- 'description' => __( 'Tracking & SEO', 'auxin-elements')
379
  );
380
 
381
 
@@ -403,6 +403,22 @@ function auxin_add_theme_options_in_plugin( $fields_sections_list ){
403
  'type' => 'code'
404
  );
405
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  $fields_sections_list['fields'][] = array(
407
  'title' => __('Google marketing code', 'auxin-elements'),
408
  'description' => sprintf( __('You can add your Google marketing code here.%s DO NOT use %s tag.', 'auxin-elements'), '<br />' , '<code>&lt;script&gt;</code>' ),
@@ -421,6 +437,7 @@ function auxin_add_theme_options_in_plugin( $fields_sections_list ){
421
 
422
 
423
 
 
424
  // Sub section - Login page customizer -------------------------------
425
 
426
  $fields_sections_list['sections'][] = array(
3
  * Before Single Products Summary Div
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
374
  $fields_sections_list['sections'][] = array(
375
  'id' => 'general-setting-section-seo',
376
  'parent' => 'general-setting-section', // section parent's id
377
+ 'title' => __( 'Google API Keys & SEO', 'auxin-elements'),
378
+ 'description' => __( 'Google API Keys & SEO', 'auxin-elements')
379
  );
380
 
381
 
403
  'type' => 'code'
404
  );
405
 
406
+ $fields_sections_list['fields'][] = array(
407
+ 'title' => __('Google maps API key', 'auxin-elements'),
408
+ 'description' => sprintf(
409
+ __( 'In order to use google maps on your website, you have to %s create an api key %s and insert it in this field.', 'auxin-elements' ),
410
+ '<a href="https://developers.google.com/maps/documentation/javascript/" target="_blank">',
411
+ '</a>'
412
+ ),
413
+ 'id' => 'auxin_google_map_api_key',
414
+ 'section' => 'general-setting-section-seo',
415
+ 'dependency' => array(),
416
+ 'default' => '',
417
+ 'transport' => 'postMessage',
418
+ 'mode' => 'javascript',
419
+ 'type' => 'text'
420
+ );
421
+
422
  $fields_sections_list['fields'][] = array(
423
  'title' => __('Google marketing code', 'auxin-elements'),
424
  'description' => sprintf( __('You can add your Google marketing code here.%s DO NOT use %s tag.', 'auxin-elements'), '<br />' , '<code>&lt;script&gt;</code>' ),
437
 
438
 
439
 
440
+
441
  // Sub section - Login page customizer -------------------------------
442
 
443
  $fields_sections_list['sections'][] = array(
public/includes/class-auxels-frontend-assets.php CHANGED
@@ -3,10 +3,10 @@
3
  * Load frontend scripts and styles
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Load frontend scripts and styles
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
public/templates/vcomposer/auxin_shortcode_mapper.php CHANGED
@@ -3,10 +3,10 @@
3
  * Maps all theme shortcodes to Visual Composer
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Maps all theme shortcodes to Visual Composer
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
 
uninstall.php CHANGED
@@ -3,10 +3,10 @@
3
  * Fired when the plugin is uninstalled.
4
  *
5
  *
6
- * @package auxin-elements
7
  * @license LICENSE.txt
8
  * @author
9
- * @link https://bitbucket.org/averta/
10
  * @copyright (c) 2010-2017
11
  */
12
 
3
  * Fired when the plugin is uninstalled.
4
  *
5
  *
6
+ * @package Auxin
7
  * @license LICENSE.txt
8
  * @author
9
+ * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12