Shortcodes and extra features for Phlox theme - Version 2.10.3

Version Description

Download this release

Release Info

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

Code changes from version 2.10.1 to 2.10.3

Files changed (57) hide show
  1. README.txt +1 -1
  2. admin/assets/js/plugins.js +1 -1
  3. admin/includes/admin-hooks.php +0 -12
  4. admin/includes/compatibility/visual-composer/vc.php +0 -14
  5. admin/includes/index.php +0 -1
  6. auxin-elements.php +1 -1
  7. includes/classes/class-auxin-widget-shortcode-map.php +0 -61
  8. includes/define.php +1 -1
  9. includes/elementor/class-auxin-elementor-core-elements.php +21 -5
  10. includes/elementor/modules/query-control/module.php +12 -2
  11. includes/elements/about-widget.php +0 -1
  12. includes/elements/accordion-widget.php +0 -1
  13. includes/elements/accordion.php +0 -1
  14. includes/elements/audio.php +0 -1
  15. includes/elements/before-after.php +0 -1
  16. includes/elements/button.php +0 -1
  17. includes/elements/code.php +0 -1
  18. includes/elements/contact-form.php +0 -1
  19. includes/elements/custom-list.php +0 -1
  20. includes/elements/divider.php +0 -1
  21. includes/elements/dropcap.php +0 -1
  22. includes/elements/facebook.php +0 -1
  23. includes/elements/flickr.php +0 -1
  24. includes/elements/gallery.php +0 -1
  25. includes/elements/general-element-fields.php +0 -96
  26. includes/elements/highlight.php +0 -1
  27. includes/elements/image.php +0 -1
  28. includes/elements/instagram-feed.php +0 -1
  29. includes/elements/latest-items.php +0 -500
  30. includes/elements/latest-posts-slider.php +0 -1
  31. includes/elements/popular-posts-widget.php +0 -1
  32. includes/elements/recent-posts-grid-carousel.php +0 -1
  33. includes/elements/recent-posts-land-style.php +0 -1
  34. includes/elements/recent-posts-masonry.php +0 -1
  35. includes/elements/recent-posts-tiles-carousel.php +0 -1
  36. includes/elements/recent-posts-tiles.php +0 -1
  37. includes/elements/recent-posts-timeline.php +0 -1
  38. includes/elements/recent-posts-widget.php +0 -1
  39. includes/elements/recent-products.php +0 -1
  40. includes/elements/sample-element.php +0 -1
  41. includes/elements/search.php +0 -1
  42. includes/elements/socials-list.php +0 -2
  43. includes/elements/staff.php +0 -1
  44. includes/elements/tab-widget.php +0 -1
  45. includes/elements/tabs.php +0 -1
  46. includes/elements/testimonial.php +0 -1
  47. includes/elements/text.php +0 -1
  48. includes/elements/touch-slider.php +0 -1
  49. includes/general-hooks.php +0 -414
  50. includes/index.php +0 -1
  51. languages/auxin-elements-fa_IR.po +1635 -1921
  52. languages/auxin-elements.pot +1474 -1901
  53. public/assets/js/plugins.js +1 -1
  54. public/templates/vcomposer/auxin_shortcode_mapper.php +0 -12
  55. public/templates/vcomposer/auxin_vc_extendes.php +0 -86
  56. public/templates/vcomposer/vc_raw_html.php +0 -38
  57. public/templates/vcomposer/vc_row.php +0 -213
README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, auxin, averta, auxin-elements, framework, widge
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 6.0.1
10
- Stable tag: 2.10.1
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 6.0.1
10
+ Stable tag: 2.10.3
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.10.1 (2022-08)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
1
+ /*! Phlox Core Plugin - v2.10.3 (2022-08)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
admin/includes/admin-hooks.php CHANGED
@@ -554,18 +554,6 @@ function auxels_after_plugin_update(){
554
  add_action( 'admin_init', 'auxels_after_plugin_update', 9 );
555
 
556
 
557
- /**
558
- * Disable the query monitor on vc frontend editor
559
- *
560
- * @return bool Whether to displatche the debug report or not
561
- */
562
- function auxin_disable_query_monitor_on_vc_fronteditor( $debug_enabled ){
563
- return ( function_exists( 'vc_is_frontend_editor' ) && vc_is_frontend_editor() ) ? false : $debug_enabled;
564
- }
565
- add_filter( 'qm/dispatch/ajax', "auxin_disable_query_monitor_on_vc_fronteditor" );
566
- add_filter( 'qm/dispatch/html', "auxin_disable_query_monitor_on_vc_fronteditor" );
567
-
568
-
569
  function auxin_meida_setting_requires_modification(){
570
  echo '<div class="aux-admin-error notice notice-warning notice-large">';
571
  _e( 'Please make sure the image aspect ratio for all image sizes are the same.', 'auxin-elements' );
554
  add_action( 'admin_init', 'auxels_after_plugin_update', 9 );
555
 
556
 
 
 
 
 
 
 
 
 
 
 
 
 
557
  function auxin_meida_setting_requires_modification(){
558
  echo '<div class="aux-admin-error notice notice-warning notice-large">';
559
  _e( 'Please make sure the image aspect ratio for all image sizes are the same.', 'auxin-elements' );
admin/includes/compatibility/visual-composer/vc.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- /**
3
- * Visual Composer related functions and hooks
4
- *
5
- */
6
-
7
- // Add a separator between "Edit" and "Edit With Visual Composer" links in frontend.
8
- function auxin_vc_edit_post_link( $link ) {
9
- if ( class_exists('Vc_Frontend_Editor') ) {
10
- $link .= '<i> | </i>' ;
11
- }
12
- return $link;
13
- }
14
- add_filter( 'edit_post_link', 'auxin_vc_edit_post_link' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/includes/index.php CHANGED
@@ -7,7 +7,6 @@ Auxels_System_Check::get_instance();
7
  // load admin related functions
8
  include_once( 'admin-the-functions.php' );
9
 
10
- include_once( 'compatibility/visual-composer/vc.php' );
11
  include_once( 'compatibility/uvca/uvca.php' );
12
  include_once( 'compatibility/sliders/rev.php' );
13
  include_once( 'compatibility/sliders/layerslider.php' );
7
  // load admin related functions
8
  include_once( 'admin-the-functions.php' );
9
 
 
10
  include_once( 'compatibility/uvca/uvca.php' );
11
  include_once( 'compatibility/sliders/rev.php' );
12
  include_once( 'compatibility/sliders/layerslider.php' );
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
- * Version: 2.10.1
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
+ * Version: 2.10.3
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-widget-shortcode-map.php CHANGED
@@ -49,7 +49,6 @@ class Auxin_Widget_Shortcode_Map {
49
 
50
  public function auxin_framework_loaded(){
51
 
52
- add_action( 'vc_before_init', array( $this, 'vc_mapper' ) );
53
  add_action( 'widgets_init' , array( $this, 'add_widgets' ) );
54
 
55
  // map and add all shortcodes
@@ -72,8 +71,6 @@ class Auxin_Widget_Shortcode_Map {
72
  $element_info['is_widget'] = isset( $element_info['is_widget'] ) && $element_info['is_widget'] === false ? false : true;
73
  // determines whether the shortcode should be added or not
74
  $element_info['is_shortcode'] = isset( $element_info['is_shortcode'] ) && $element_info['is_shortcode'] === false ? false : true;
75
- // determines whether the an element in vc should be generated or not
76
- $element_info['is_vc'] = isset( $element_info['is_vc'] ) && $element_info['is_vc'] === false ? false : true;
77
 
78
  // make sure icon is set
79
  $element_info['icon'] = isset( $element_info['icon'] ) && ! empty( $element_info['icon'] ) ? $element_info['icon'] : 'dashicons dashicons-admin-generic';
@@ -250,64 +247,6 @@ class Auxin_Widget_Shortcode_Map {
250
  }
251
 
252
 
253
- /**
254
- * Adds all defined elements to vc
255
- */
256
- public function vc_mapper(){
257
- $master_array = $this->get_master_array();
258
-
259
- foreach ( $master_array as $array_node ) {
260
- if( $array_node['is_vc'] !== false ) {
261
- $array_node['params'] = $this->exchange_vc_fields( $array_node['params'] );
262
- vc_map( $this->make_vc_compatible( $array_node ) );
263
- }
264
- }
265
- }
266
-
267
- /**
268
- * Get the params array and flip the value array of its value key
269
- */
270
- public function exchange_vc_fields( $params ){
271
- $result = array();
272
-
273
- foreach ( $params as $params_cell => $params_value ) {
274
- if( in_array( $params_value['type'], array( 'aux_visual_select', 'dropdown', 'aux_select2_multiple', 'aux_select2_single' ) ) ){
275
- $params_value['value'] = ! empty( $params_value['value'] ) ? $params_value['value'] : '';
276
- $params_value['std' ] = ! empty( $params_value['def_value'] ) ? $params_value['def_value'] : $params_value['value'];
277
-
278
- if( $params_value['type' ] == 'dropdown' ){
279
- $params_value['value'] = array_flip( $params_value['value'] );
280
- }
281
- }
282
- $result[] = $params_value;
283
- }
284
-
285
- return $result;
286
- }
287
-
288
-
289
- /**
290
- * Removes all empty array keys and appends some special fields for visual composer
291
- */
292
- protected function make_vc_compatible( $element_config ){
293
-
294
- // Removes all empty array keys
295
- $element_config = $this->remove_empty_nodes_recuresively( $element_config );
296
-
297
- // Appending some special fields for visual composer
298
- if( isset( $element_config['params'] ) ){
299
- $element_config['params'][] = array(
300
- 'type' => 'css_editor',
301
- 'heading' => __( 'CSS', 'auxin-elements' ),
302
- 'param_name' => 'vc_css',
303
- 'group' => __( 'Design options', 'auxin-elements' )
304
- );
305
- }
306
-
307
- return $element_config;
308
- }
309
-
310
-
311
  /**
312
  * Return an instance of this class.
313
  *
49
 
50
  public function auxin_framework_loaded(){
51
 
 
52
  add_action( 'widgets_init' , array( $this, 'add_widgets' ) );
53
 
54
  // map and add all shortcodes
71
  $element_info['is_widget'] = isset( $element_info['is_widget'] ) && $element_info['is_widget'] === false ? false : true;
72
  // determines whether the shortcode should be added or not
73
  $element_info['is_shortcode'] = isset( $element_info['is_shortcode'] ) && $element_info['is_shortcode'] === false ? false : true;
 
 
74
 
75
  // make sure icon is set
76
  $element_info['icon'] = isset( $element_info['icon'] ) && ! empty( $element_info['icon'] ) ? $element_info['icon'] : 'dashicons dashicons-admin-generic';
247
  }
248
 
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  /**
251
  * Return an instance of this class.
252
  *
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.10.1' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.10.3' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/class-auxin-elementor-core-elements.php CHANGED
@@ -184,8 +184,14 @@ final class Elements {
184
 
185
  // Register controls, widgets, and categories
186
  add_action( 'elementor/elements/categories_registered' , [ $this, 'register_categories' ] );
187
- add_action( 'elementor/widgets/widgets_registered' , [ $this, 'register_widgets' ] );
188
- add_action( 'elementor/controls/controls_registered' , [ $this, 'register_controls' ] );
 
 
 
 
 
 
189
 
190
  // Register Widget Styles
191
  add_action( 'elementor/frontend/after_enqueue_styles' , [ $this, 'widget_styles' ] );
@@ -429,7 +435,12 @@ final class Elements {
429
  auxin_error( sprintf( __('Element class "%s" not found.', 'auxin-elements' ), $class_name ) );
430
  continue;
431
  }
432
- $widgets_manager->register_widget_type( new $class_name() );
 
 
 
 
 
433
  }
434
  }
435
  }
@@ -576,7 +587,12 @@ final class Elements {
576
  if( $control_info['type'] === 'group' ){
577
  $controls_manager->add_group_control( $control_type, new $class_name() );
578
  } else {
579
- $controls_manager->register_control( $control_type, new $class_name() );
 
 
 
 
 
580
  }
581
 
582
  }
@@ -652,7 +668,7 @@ final class Elements {
652
  * @access public
653
  */
654
  public function widget_scripts() {
655
- $dependencies = array('jquery', 'auxin-plugins');
656
 
657
  if( defined('MSWP_AVERTA_VERSION') ){
658
  $dependencies[] = 'masterslider-core';
184
 
185
  // Register controls, widgets, and categories
186
  add_action( 'elementor/elements/categories_registered' , [ $this, 'register_categories' ] );
187
+
188
+ if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) {
189
+ add_action( 'elementor/widgets/register' , [ $this, 'register_widgets' ] );
190
+ add_action( 'elementor/controls/register' , [ $this, 'register_controls' ] );
191
+ } else {
192
+ add_action( 'elementor/widgets/widgets_registered' , [ $this, 'register_widgets' ] );
193
+ add_action( 'elementor/controls/controls_registered' , [ $this, 'register_controls' ] );
194
+ }
195
 
196
  // Register Widget Styles
197
  add_action( 'elementor/frontend/after_enqueue_styles' , [ $this, 'widget_styles' ] );
435
  auxin_error( sprintf( __('Element class "%s" not found.', 'auxin-elements' ), $class_name ) );
436
  continue;
437
  }
438
+
439
+ if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) {
440
+ $widgets_manager->register( new $class_name() );
441
+ } else {
442
+ $widgets_manager->register_widget_type( new $class_name() );
443
+ }
444
  }
445
  }
446
  }
587
  if( $control_info['type'] === 'group' ){
588
  $controls_manager->add_group_control( $control_type, new $class_name() );
589
  } else {
590
+
591
+ if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) {
592
+ $controls_manager->register( new $class_name() );
593
+ } else {
594
+ $controls_manager->register_control( $control_type, new $class_name() );
595
+ }
596
  }
597
 
598
  }
668
  * @access public
669
  */
670
  public function widget_scripts() {
671
+ $dependencies = array('jquery', 'auxin-plugins', 'auxin-scripts');
672
 
673
  if( defined('MSWP_AVERTA_VERSION') ){
674
  $dependencies[] = 'masterslider-core';
includes/elementor/modules/query-control/module.php CHANGED
@@ -328,7 +328,12 @@ class Module extends Module_Base {
328
  if( $control_info['type'] === 'group' ){
329
  $controls_manager->add_group_control( $control_type, new $class_name() );
330
  } else {
331
- $controls_manager->register_control( $control_type, new $class_name() );
 
 
 
 
 
332
  }
333
 
334
  }
@@ -484,7 +489,12 @@ class Module extends Module_Base {
484
 
485
  protected function add_actions() {
486
  add_action( 'elementor/ajax/register_actions', [ $this, 'register_ajax_actions' ] );
487
- add_action( 'elementor/controls/controls_registered', [ $this, 'register_controls' ] );
 
 
 
 
 
488
 
489
  add_filter( 'auxin/core_elements/editor/localize_settings', [ $this, 'localize_settings' ] );
490
 
328
  if( $control_info['type'] === 'group' ){
329
  $controls_manager->add_group_control( $control_type, new $class_name() );
330
  } else {
331
+ if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) {
332
+ $controls_manager->register( new $class_name() );
333
+ } else {
334
+ $controls_manager->register_control( $control_type, new $class_name() );
335
+ }
336
+
337
  }
338
 
339
  }
489
 
490
  protected function add_actions() {
491
  add_action( 'elementor/ajax/register_actions', [ $this, 'register_ajax_actions' ] );
492
+
493
+ if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) {
494
+ add_action( 'elementor/controls/register', [ $this, 'register_controls' ] );
495
+ } else {
496
+ add_action( 'elementor/controls/controls_registered', [ $this, 'register_controls' ] );
497
+ }
498
 
499
  add_filter( 'auxin/core_elements/editor/localize_settings', [ $this, 'localize_settings' ] );
500
 
includes/elements/about-widget.php CHANGED
@@ -22,7 +22,6 @@ function get_auxin_about_widget( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => false,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/accordion-widget.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_accordion_widget_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => false,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/accordion.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_new_accordion_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
25
- 'is_vc' => false,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/audio.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_audio_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/before-after.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_before_after_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/button.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_button_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/code.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_code_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/contact-form.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_contact_form_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/custom-list.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_list_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
25
- 'is_vc' => false,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/divider.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_divider_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/dropcap.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_dropcap_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/facebook.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_facebook_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/flickr.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_flickr_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/gallery.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_gallery_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/general-element-fields.php DELETED
@@ -1,96 +0,0 @@
1
- <?php
2
- /**
3
- * General fields to be applied to all VC Elements
4
- *
5
- *
6
- * @package Auxin
7
- * @license LICENSE.txt
8
- * @author averta
9
- * @link http://phlox.pro/
10
- * @copyright (c) 2010-2022 averta
11
- */
12
-
13
- function auxin_add_vc_extra_fields_for_all( $master_array ){
14
-
15
- foreach ( $master_array as $element_base => $element ) {
16
-
17
- if( isset( $element['is_vc'] ) && false !== auxin_is_true( $element['is_vc'] ) ){
18
-
19
- $master_array[ $element_base ]['params'][] = array(
20
- 'type' => 'dropdown',
21
- 'heading' => __( 'Transition', 'auxin-elements' ),
22
- 'description' => __( 'Choose the type of tranistion while the element enters in view.', 'auxin-elements' ),
23
- 'param_name' => 'inview_transition',
24
- 'class' => '',
25
- 'group' => __( 'Animation', 'auxin-elements' ),
26
- 'value' => array(
27
- 'none' => __( 'None' , 'auxin-elements' ),
28
- 'aux-invu-short-left' => __( 'Short from left' , 'auxin-elements' ),
29
- 'aux-invu-short-right' => __( 'Short from right' , 'auxin-elements' ),
30
- 'aux-invu-short-bottom' => __( 'Short from bottom', 'auxin-elements' ),
31
- 'aux-invu-short-top' => __( 'Short from top' , 'auxin-elements' ),
32
- 'aux-invu-medium-left' => __( 'Medium from left' , 'auxin-elements' ),
33
- 'aux-invu-medium-right' => __( 'Medium from right' , 'auxin-elements' ),
34
- 'aux-invu-medium-bottom' => __( 'Medium from bottom', 'auxin-elements' ),
35
- 'aux-invu-medium-top' => __( 'Medium from top' , 'auxin-elements' ),
36
- 'aux-invu-long-left' => __( 'Long from left' , 'auxin-elements' ),
37
- 'aux-invu-long-right' => __( 'Long from right' , 'auxin-elements' ),
38
- 'aux-invu-long-bottom' => __( 'Long from bottom', 'auxin-elements' ),
39
- 'aux-invu-long-top' => __( 'Long from top' , 'auxin-elements' ),
40
- 'aux-invu-scale-down-small' => __( 'Small scale down' , 'auxin-elements' ),
41
- 'aux-invu-scale-down-medium' => __( 'Medium scale down' , 'auxin-elements' ),
42
- 'aux-invu-scale-down-large' => __( 'Large scale down', 'auxin-elements' ),
43
- 'aux-invu-scale-up-small' => __( 'Small scale up' , 'auxin-elements' ),
44
- 'aux-invu-scale-up-medium' => __( 'Medium scale up' , 'auxin-elements' ),
45
- 'aux-invu-scale-up-large' => __( 'Large scale up', 'auxin-elements' )
46
- )
47
- );
48
-
49
- $master_array[ $element_base ]['params'][] = array(
50
- 'type' => 'textfield',
51
- 'heading' => __( 'Duration', 'auxin-elements' ),
52
- 'description' => __( 'The transition duration in milliseconds.', 'auxin-elements' ),
53
- 'param_name' => 'inview_duration',
54
- 'class' => '',
55
- 'group' => __( 'Animation', 'auxin-elements' ),
56
- 'value' => 600
57
- );
58
-
59
- $master_array[ $element_base ]['params'][] = array(
60
- 'type' => 'textfield',
61
- 'heading' => __( 'Delay', 'auxin-elements' ),
62
- 'description' => __( 'The delay before starting the animation in milliseconds.', 'auxin-elements' ),
63
- 'param_name' => 'inview_delay',
64
- 'group' => __( 'Animation', 'auxin-elements' )
65
- );
66
-
67
- $master_array[ $element_base ]['params'][] = array(
68
- 'type' => 'dropdown',
69
- 'heading' => __( 'Repeat', 'auxin-elements' ),
70
- 'description' => __( 'Choose "yes" to repeat the animation, or choose "no" to display the animation only once.', 'auxin-elements' ),
71
- 'param_name' => 'inview_repeat',
72
- 'group' => __( 'Animation', 'auxin-elements' ),
73
- 'value' => array(
74
- 'no' => __( 'No' , 'auxin-elements' ),
75
- 'yes' => __( 'Yes', 'auxin-elements' )
76
- ),
77
- 'def_value' => 'no'
78
- );
79
-
80
- $master_array[ $element_base ]['params'][] = array(
81
- 'type' => 'textfield',
82
- 'heading' => __( 'Offset', 'auxin-elements' ),
83
- 'description' => __( 'The vertical offset in pixels in order to start playing the animation.', 'auxin-elements' ),
84
- 'param_name' => 'inview_offset',
85
- 'group' => __( 'Animation', 'auxin-elements' )
86
- );
87
-
88
- }
89
-
90
- }
91
-
92
- return $master_array;
93
- }
94
-
95
- add_filter( 'auxin_master_array_shortcodes', 'auxin_add_vc_extra_fields_for_all', 110, 1 );
96
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/elements/highlight.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_highlight_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
24
- 'is_vc' => false,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/image.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_image_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/instagram-feed.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_instagram_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/latest-items.php DELETED
@@ -1,500 +0,0 @@
1
- <?php
2
- /**
3
- * This is a sample of how to create a new element on widgets and visual composer element
4
- * Auxin callout widget you can set all the options of this widget here like widget definitation,
5
- * its element on visual composer and under appearance/ widgets
6
- */
7
- function get_auxin_latest_items_vc( $master_array ) {
8
-
9
- $auxin_latest_items_vc = array( // shortcode info here
10
- 'name' => __("Auxin latest_items", 'auxin-elements' ), // [str] name of your shortcode for human reading inside element list
11
- 'auxin_output_callback' => 'auxin_widget_latest_items', // [str] NAme of widget function callback which define below this array
12
- 'base' => 'auxin_latest_items', // [str] shortcode tag. For [my_shortcode] shortcode base is my_shortcode
13
- 'description' => __('This is will add latest_items element', 'auxin-elements'), // [str] short description of your element, it will be visible in "Add element" window
14
- 'class' => 'auxin-latest_items', // [str] CSS class which will be added to the shortcode's content element in the page edit screen in Visual Composer backend edit mode. adds 3 classes like testt_o testt_v and testt
15
- 'show_settings_on_create' => true, // [Boolean] set it to false if content element's settings page shouldn't open automatically after adding it to the stage
16
- 'weight' => 1, // [Int] content elements with greater weight will be rendered first in "Content Elements" grid, higher appear upper
17
- 'category' => THEME_NAME, // [str] category which best suites to describe functionality of this shortcode.
18
- 'group' => '', // [str] TODO: no idea Group your params in groups, they will be divided in tabs in the edit element window
19
- 'admin_enqueue_js' => '', // [str/arr] this js will be loaded in the js_composer edit mode
20
- 'admin_enqueue_css' => '', // [str/arr] absolute url to css file
21
- 'front_enqueue_js' => '', // [str/arr] to load custom js file in the frontend editing mode
22
- 'front_enqueue_css' => '', // [str/arr] to load custom css file in the frontend editing mode
23
- 'icon' => '', // URL or CSS class with icon image
24
- 'custom_markup' => '', // [str] custom html markup for representing shortcode in visual composer editor. This will replace visual composer element where shows the param and its value
25
- 'js_view' => '', // TODO: no idea Set custom backbone.js view controller for this content element there is a sample wich sets it to
26
- 'html_template' => '', // it uses to oerride the output of shortcode. Path to shortcode template. This is useful if you want to reassign path of existing content elements lets say override the seprator defined by visual composer.
27
- 'deprecated' => '', // enter version number of visual composer from which content element will be deprecated
28
- 'content_element' => '', // If set to false, content element will be hidden from "Add element" window. It is handy to use this param in pair with 'deprecated' param
29
- 'as_parent' => '', // use only|except attributes to limit child shortcodes (separate multiple values with comma)
30
- 'as_child' => '', // use only|except attributes to limit parent (separate multiple values with comma)
31
- 'params' => array(
32
- array( // array of parameter
33
- 'param_name' => 'col', // [str] must be the same as your parameter name
34
- 'type' => 'textfield', // [str] attribute type
35
- 'value' => '33', // [str/arr] default attribute's value
36
- 'def_value' => '33', // [str/arr] default attribute's value
37
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
38
- 'class' => 'col', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
39
- 'heading' => __('col','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
40
- 'description' => __('If you choose Callout a big box appears around the content','auxin-elements'),
41
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
42
- 'dependency' => '', // [arr] define param visibility depending on other field value
43
- 'weight' => '', // [int] params with greater weight will be rendered first
44
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
45
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
46
- ),
47
- array( // array of parameter
48
- 'param_name' => 'mode', // [str] must be the same as your parameter name
49
- 'type' => 'dropdown', // [str] attribute type
50
- 'def_value' => 'no', // [str/arr] default attribute's value
51
- 'value' => array( 'none' => __('none', 'auxin-elements'), 'caption-over' => __('caption-over', 'auxin-elements') ),
52
- 'holder' => '', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
53
- 'class' => 'mode', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
54
- 'heading' => __('mode type','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
55
- 'description' => __('The round is used got button','auxin-elements'),
56
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
57
- 'dependency' => '', // [arr] define param visibility depending on other field value
58
- 'weight' => '', // [int] params with greater weight will be rendered first
59
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
60
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
61
- ),
62
- array( // array of parameter
63
- 'param_name' => 'grid', // [str] must be the same as your parameter name
64
- 'type' => 'textfield', // [str] attribute type
65
- 'value' => '', // [str/arr] default attribute's value
66
- 'def_value' => '', // [str/arr] default attribute's value
67
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
68
- 'class' => 'grid', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
69
- 'heading' => __('grid','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
70
- 'description' => __('attachment grid', 'auxin-elements'),
71
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
72
- 'dependency' => '', // [arr] define param visibility depending on other field value
73
- 'weight' => '', // [int] params with greater weight will be rendered first
74
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
75
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
76
- ),
77
- array( // array of parameter
78
- 'param_name' => 'num', // [str] must be the same as your parameter name
79
- 'type' => 'textfield', // [str] attribute type
80
- 'value' => '', // [str/arr] default attribute's value
81
- 'def_value' => '', // [str/arr] default attribute's value
82
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
83
- 'class' => 'num', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
84
- 'heading' => __('num','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
85
- 'description' => __('attachment num', 'auxin-elements'),
86
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
87
- 'dependency' => '', // [arr] define param visibility depending on other field value
88
- 'weight' => '', // [int] params with greater weight will be rendered first
89
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
90
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
91
- ),
92
- array( // array of parameter
93
- 'param_name' => 'nav', // [str] must be the same as your parameter name
94
- 'type' => 'dropdown', // [str] attribute type
95
- 'def_value' => 'pagination', // [str/arr] default attribute's value
96
- 'value' => array( 'pagination' => __('pagination', 'auxin-elements'), 'regular' => __('regular', 'auxin-elements') ),
97
- 'holder' => '', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
98
- 'class' => 'nav', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
99
- 'heading' => __('nav type','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
100
- 'description' => __('The round is used got button','auxin-elements'),
101
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
102
- 'dependency' => '', // [arr] define param visibility depending on other field value
103
- 'weight' => '', // [int] params with greater weight will be rendered first
104
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
105
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
106
- ),
107
- array( // array of parameter
108
- 'param_name' => 'title', // [str] must be the same as your parameter name
109
- 'type' => 'textfield', // [str] attribute type
110
- 'value' => '', // [str/arr] default attribute's value
111
- 'def_value' => '', // [str/arr] default attribute's value
112
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
113
- 'class' => 'title', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
114
- 'heading' => __('title','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
115
- 'description' => __('attachment link', 'auxin-elements'),
116
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
117
- 'dependency' => '', // [arr] define param visibility depending on other field value
118
- 'weight' => '', // [int] params with greater weight will be rendered first
119
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
120
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
121
- ),
122
- array( // array of parameter
123
- 'param_name' => 'posttype', // [str] must be the same as your parameter name
124
- 'type' => 'dropdown', // [str] attribute type
125
- 'def_value' => 'pagination', // [str/arr] default attribute's value
126
- 'value' => array( 'post' => __('post', 'auxin-elements'), 'regular' => __('regular', 'auxin-elements') ),
127
- 'holder' => '', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
128
- 'class' => 'posttype', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
129
- 'heading' => __('posttype type','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
130
- 'description' => __('The round is used got button','auxin-elements'),
131
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
132
- 'dependency' => '', // [arr] define param visibility depending on other field value
133
- 'weight' => '', // [int] params with greater weight will be rendered first
134
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
135
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
136
- ),
137
- array( // array of parameter
138
- 'param_name' => 'cat_id', // [str] must be the same as your parameter name
139
- 'type' => 'textfield', // [str] attribute type
140
- 'value' => '', // [str/arr] default attribute's value
141
- 'def_value' => '', // [str/arr] default attribute's value
142
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
143
- 'class' => 'cat_id', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
144
- 'heading' => __('cat_id','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
145
- 'description' => __('attachment alt', 'auxin-elements'),
146
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
147
- 'dependency' => '', // [arr] define param visibility depending on other field value
148
- 'weight' => '', // [int] params with greater weight will be rendered first
149
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
150
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
151
- ),
152
- array( // array of parameter
153
- 'param_name' => 'taxonomy', // [str] must be the same as your parameter name
154
- 'type' => 'textfield', // [str] attribute type
155
- 'value' => 'category', // [str/arr] default attribute's value
156
- 'def_value' => 'category', // [str/arr] default attribute's value
157
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
158
- 'class' => 'taxonomy', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
159
- 'heading' => __('width','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
160
- 'description' => __('attachment width', 'auxin-elements'),
161
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
162
- 'dependency' => '', // [arr] define param visibility depending on other field value
163
- 'weight' => '', // [int] params with greater weight will be rendered first
164
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
165
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
166
- ),
167
- array( // array of parameter
168
- 'param_name' => 'view_excerpt', // [str] must be the same as your parameter name
169
- 'type' => 'dropdown', // [str] attribute type
170
- 'def_value' => 'no', // [str/arr] default attribute's value
171
- 'value' => array( 'yes' => __('Yes', 'auxin-elements'), 'no' => __('No', 'auxin-elements') ),
172
- 'holder' => '', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
173
- 'class' => 'view_excerpt', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
174
- 'heading' => __('view_excerpt ?','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
175
- 'description' => __('The round is used got button','auxin-elements'),
176
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
177
- 'dependency' => '', // [arr] define param visibility depending on other field value
178
- 'weight' => '', // [int] params with greater weight will be rendered first
179
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
180
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
181
- ),
182
- array( // array of parameter
183
- 'param_name' => 'view_title', // [str] must be the same as your parameter name
184
- 'type' => 'dropdown', // [str] attribute type
185
- 'def_value' => 'no', // [str/arr] default attribute's value
186
- 'value' => array( 'yes' => __('Yes', 'auxin-elements'), 'no' => __('No', 'auxin-elements') ),
187
- 'holder' => '', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
188
- 'class' => 'view_title', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
189
- 'heading' => __('view_title ?','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
190
- 'description' => __('The round is used got button','auxin-elements'),
191
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
192
- 'dependency' => '', // [arr] define param visibility depending on other field value
193
- 'weight' => '', // [int] params with greater weight will be rendered first
194
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
195
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
196
- ),
197
- array( // array of parameter
198
- 'param_name' => 'excerpt_len', // [str] must be the same as your parameter name
199
- 'type' => 'textfield', // [str] attribute type
200
- 'value' => '100', // [str/arr] default attribute's value
201
- 'def_value' => '100', // [str/arr] default attribute's value
202
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
203
- 'class' => 'excerpt_len', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
204
- 'heading' => __('excerpt_len','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
205
- 'description' => __('attachment width', 'auxin-elements'),
206
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
207
- 'dependency' => '', // [arr] define param visibility depending on other field value
208
- 'weight' => '', // [int] params with greater weight will be rendered first
209
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
210
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
211
- ),
212
- array( // array of parameter
213
- 'param_name' => 'section_index', // [str] must be the same as your parameter name
214
- 'type' => 'textfield', // [str] attribute type
215
- 'value' => 'category', // [str/arr] default attribute's value
216
- 'def_value' => 'category', // [str/arr] default attribute's value
217
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
218
- 'class' => 'section_index', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
219
- 'heading' => __('section_index','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
220
- 'description' => __('attachment section_index', 'auxin-elements'),
221
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
222
- 'dependency' => '', // [arr] define param visibility depending on other field value
223
- 'weight' => '', // [int] params with greater weight will be rendered first
224
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
225
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
226
- ),
227
- array( // array of parameter
228
- 'param_name' => 'paged', // [str] must be the same as your parameter name
229
- 'type' => 'textfield', // [str] attribute type
230
- 'value' => 'category', // [str/arr] default attribute's value
231
- 'def_value' => 'category', // [str/arr] default attribute's value
232
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
233
- 'class' => 'paged', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
234
- 'heading' => __('paged','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
235
- 'description' => __('attachment paged', 'auxin-elements'),
236
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
237
- 'dependency' => '', // [arr] define param visibility depending on other field value
238
- 'weight' => '', // [int] params with greater weight will be rendered first
239
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
240
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
241
- ),
242
- array( // array of parameter
243
- 'param_name' => 'extra_classes', // [str] must be the same as your parameter name
244
- 'type' => 'textfield', // [str] attribute type
245
- 'value' => '', // [str/arr] default attribute's value
246
- 'def_value' => '', // [str/arr] default attribute's value
247
- 'holder' => 'textfield', // [str] HTML tag name where Visual Composer will store attribute value in Visual Composer edit mode
248
- 'class' => 'extra_classes', // [str] class name that will be added to the "holder" HTML tag. Useful if you want to target some CSS rules to specific items in the backend edit interface
249
- 'heading' => __('Extra class name','auxin-elements'), // [str] human friendly title of your param. Will be visible in shortcode's edit screen
250
- 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements'),
251
- 'admin_label' => true, // [bool] show value of param in Visual Composer editor
252
- 'dependency' => '', // [arr] define param visibility depending on other field value
253
- 'weight' => '', // [int] params with greater weight will be rendered first
254
- 'group' => '' , // [str] use it to divide your params within groups (tabs)
255
- 'edit_field_class' => '' // [str] set param container width in content element edit window. According to Bootstrap logic eg. col-md-4. (Available from Visual Composer 4.0)
256
- )
257
-
258
- // , // another array for another param
259
- )
260
- );
261
-
262
- // push this node in master_array
263
- $master_array[] = $auxin_latest_items_vc;
264
-
265
- return $master_array;
266
- }
267
-
268
- add_filter( 'auxin_master_array_shortcodes', 'get_auxin_latest_items_vc', 10, 1 );
269
-
270
-
271
- // This is the widget call back in fact the front end out put of this widget comes from this function
272
- function auxin_widget_latest_items( $atts, $shortcode_content = null ){
273
-
274
-
275
- // @TODO
276
- // Defining default attributes
277
- $default_atts = array(
278
- 'title' => '', // header title
279
- 'size' => 100, // section size
280
- 'col' => '33', // one .. six-column
281
- 'mode' => 'none', // caption-over, none
282
- 'grid' => '', // custome grid
283
- 'num' => -1, // fetch num
284
- 'nav' => 'pagination', // pagination , filterable
285
- 'title' => '', // widget header title
286
- 'posttype' => 'post', // posttype
287
- 'cat_id' => '',
288
- 'taxonomy' => 'category',
289
- 'view_excerpt' => 'yes',
290
- 'view_title' => 'yes',
291
- 'excerpt_len' => '100',
292
- 'section_index'=> '',
293
- 'paged' => '1',
294
- 'col' => 3,
295
- 'extra_classes' => '', // custom css class names for this element
296
- 'custom_el_id' => '', // custom id attribute for this element
297
- );
298
-
299
- // Widget Info -----------------------------
300
-
301
- // Widget general info
302
- $before_widget = $after_widget = '';
303
- $before_title = $after_title = '';
304
-
305
- // If widget info is passed, extract them in above variables
306
- if( isset( $atts['widget_info'] ) ){
307
- extract( $atts['widget_info'] );
308
- }
309
- $widget_title = isset( $atts['widget_title'] ) ? $atts['widget_title'] : '';
310
-
311
- // CSS class names for section -------------
312
-
313
- // The default CSS classes for widget container
314
- // Note that 'widget-container' should be in all element
315
- $default_atts['_css_classes'] = array( 'widget-container' );
316
-
317
- // Parse shortcode attributes
318
- $parsed_atts = shortcode_atts( $default_atts, $atts, __FUNCTION__ );
319
-
320
- // Extract array nodes in variables
321
- extract( $parsed_atts );
322
-
323
- // Defining extra class names --------------
324
-
325
- // Add extra class names to class list here - widget-{element_name}
326
- $_css_classes[] = 'widget-pages'; // @TODO define widget-{element_name}
327
-
328
- // Covering classes in list to class attribute for main section
329
- $section_class_attr = auxin_make_html_class_attribute( $_css_classes, $extra_classes );
330
-
331
- $content = wpb_js_remove_wpautop($shortcode_content, true); // fix unclosed/unwanted paragraph tags in $content
332
- // TODO: axi should change to aux
333
- global $axi_img_size;
334
-
335
- // Defining query base on needs ------------
336
-
337
- // create an id for this section
338
- $uid = "axi_pbei".$section_index;
339
- if(empty($section_index)) $uid = uniqid("axi_pbei");
340
-
341
- // validate number fetched items
342
- $num = ((int)$num > 0)?$num:-1;
343
- // set column number to 3 if its empty
344
- $col = empty($col)?"1/3":$col;
345
-
346
- // get number of grid column ---------------------------------
347
- // actual col size
348
- // get number of grid column
349
- $wrapper_size = empty($size)?100:$size;
350
- $col_actual = ($wrapper_size / 100) * (int)$col;
351
- $col_num = floor(100 / $col_actual);
352
- $col_num = $col_num > 5?5:$col_num; // max column num is 5
353
- // get thumbnsil size name
354
- $image_size_name = "i".$col_num;
355
-
356
-
357
-
358
- // get all taxonomy items for filtering purpose ---------------
359
- $tax_args = array('taxonomy' => $taxonomy, 'terms' => $cat_id );
360
-
361
- if(empty($cat_id) || $cat_id == "all" ) $tax_args = "";
362
-
363
- // get all taxonomy items for filtering purpose ---------------
364
- $tax_args = array('taxonomy' => $taxonomy, 'terms' => $cat_id );
365
-
366
- if(empty($cat_id) || $cat_id == "all" ) $tax_args = "";
367
-
368
- // Create wp_query to get pages
369
- $query_args = array(
370
- 'post_type' => $posttype,
371
- 'orderby' => "menu_order date",
372
- 'post_status'=> 'publish',
373
- 'posts_per_page' => $num,
374
- 'paged' => $paged,
375
- 'tax_query' => array($tax_args)
376
- );
377
-
378
- $query_res = null;
379
- $query_res = new WP_Query( $query_args );
380
-
381
- ob_start();
382
- ?>
383
- <?php echo wp_kses_post( $before_widget ); ?>
384
-
385
- <section id="<?php echo esc_attr( $custom_el_id ); ?>" <?php echo wp_kses_post( $section_class_attr ); ?>>
386
-
387
- <?php
388
- if( ! empty( $before_title ) ){
389
- echo wp_kses_post( $before_title . $widget_title . $after_title );
390
- } elseif( ! empty( $title ) ){
391
- echo get_widget_title( $title );
392
- }
393
- ?>
394
-
395
- <div class="widget-inner">
396
-
397
- <div class="aux-col-wrapper <?php echo "aux-" . esc_attr( $col ); ?>"> // faghat vase seton
398
-
399
- <?php if( $query_res->have_posts() ): while ( $query_res->have_posts() ) : $query_res->the_post(); ?>
400
-
401
- <article class="aux-col">
402
- <!-- @TODO - The output for each element here -->
403
- <?php // reset current item image size name
404
- $thumb_size = $image_size_name;
405
-
406
- // is current item highlighted?
407
- $is_highlight = get_post_meta($th_query->post->ID, 'is_highlighted', true);
408
-
409
- // this is the css class name that indicates the thumbnail size in browser
410
- $classSize = "";
411
- if($is_highlight == "yes" && $mode == "caption-over"){
412
- $classSize = "height2";
413
- $thumb_size .= "_2"; // if the item is marked as highlited, make it 2x bigger in height
414
- }else{
415
- $classSize = "height1";
416
- $thumb_size .= "_1";
417
- }
418
-
419
- // get suite thumb size
420
- $dimentions = $axi_img_size[$thumb_size];
421
-
422
- // retinafy thumbnail
423
- $dimentions[0] = 1.8 * $dimentions[0];
424
- $dimentions[1] = 1.8 * $dimentions[1];
425
- ?>
426
-
427
- <?php // get the current item tag for filtering content
428
- $tax_name = 'portfolio-tag';
429
- $tax_terms = wp_get_post_terms($th_query->post->ID, $tax_name);
430
- // stores all current item tag slugs az class attrs
431
- $tax_slugs = "";
432
-
433
- if($tax_terms){
434
- foreach($tax_terms as $term)
435
- $tax_slugs .= " ".$term->slug;
436
- }
437
- ?>
438
-
439
- <article class="col" data-filter="<?php echo esc_attr( $tax_slugs ); ?>" >
440
- <figure>
441
- <div class="imgHolder <?php echo esc_attr( $classSize ); ?>">
442
- <a href="<?php the_permalink(); ?>">
443
- <?php
444
- auxin_the_post_thumbnail($th_query->post->ID, $dimentions[0], $dimentions[1], true, 70);
445
- ?>
446
- <?php if ($mode == "caption-over"): ?>
447
-
448
- <em>
449
- <?php if($view_title == 'yes'){ ?>
450
- <h4><?php the_title(); ?></h4>
451
- <?php } ?>
452
-
453
- <?php
454
- $cat_terms = wp_get_post_terms(get_the_ID(), 'project-type');
455
- if(!empty($cat_terms)){
456
- echo '<i>';
457
- $cnt = 0;
458
- foreach($cat_terms as $term){
459
- echo $cnt == 0?'':' / ';
460
- echo esc_html( $term->name );
461
- $cnt++;
462
- }
463
- echo '</i>';
464
- }
465
- ?>
466
- </em>
467
-
468
- <?php endif; ?>
469
- </a>
470
- </div>
471
- <?php if ($mode != "caption-over") { ?>
472
-
473
- <figcaption>
474
- <h4 class="fig-title">
475
- <?php if($view_title == 'yes'){ ?>
476
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
477
- <?php } ?>
478
- </h4>
479
- <?php if($view_excerpt == "yes") auxin_the_trimmed_string(get_the_excerpt(),$excerpt_len); ?>
480
- </figcaption>
481
-
482
- <?php } ?>
483
- </figure>
484
- </article>
485
- </article>
486
- <?php
487
- endwhile; endif;
488
- wp_reset_query();
489
- ?>
490
-
491
- </div><!-- aux-col-wrapper -->
492
- </div><!-- widget-inner -->
493
- </section><!-- widget-container -->
494
-
495
- <?php echo wp_kses_post( $after_widget ); ?>
496
-
497
- <?php
498
- return ob_get_clean();
499
- }
500
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/elements/latest-posts-slider.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_post_slider_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/popular-posts-widget.php CHANGED
@@ -29,7 +29,6 @@ function auxin_get_popular_post_widget_master_array( $master_array ) {
29
  'weight' => 1,
30
  'is_widget' => true,
31
  'is_shortcode' => false,
32
- 'is_vc' => false,
33
  'category' => THEME_NAME,
34
  'group' => '',
35
  'admin_enqueue_js' => '',
29
  'weight' => 1,
30
  'is_widget' => true,
31
  'is_shortcode' => false,
 
32
  'category' => THEME_NAME,
33
  'group' => '',
34
  'admin_enqueue_js' => '',
includes/elements/recent-posts-grid-carousel.php CHANGED
@@ -35,7 +35,6 @@ function auxin_get_recent_posts_master_array( $master_array ) {
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
38
- 'is_vc' => true,
39
  'category' => THEME_NAME,
40
  'group' => '',
41
  'admin_enqueue_js' => '',
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
 
38
  'category' => THEME_NAME,
39
  'group' => '',
40
  'admin_enqueue_js' => '',
includes/elements/recent-posts-land-style.php CHANGED
@@ -35,7 +35,6 @@ function auxin_get_recent_posts_land_master_array( $master_array ) {
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
38
- 'is_vc' => true,
39
  'category' => THEME_NAME,
40
  'group' => '',
41
  'admin_enqueue_js' => '',
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
 
38
  'category' => THEME_NAME,
39
  'group' => '',
40
  'admin_enqueue_js' => '',
includes/elements/recent-posts-masonry.php CHANGED
@@ -35,7 +35,6 @@ function auxin_get_recent_posts_masonry_master_array( $master_array ) {
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
38
- 'is_vc' => true,
39
  'category' => THEME_NAME,
40
  'group' => '',
41
  'admin_enqueue_js' => '',
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
 
38
  'category' => THEME_NAME,
39
  'group' => '',
40
  'admin_enqueue_js' => '',
includes/elements/recent-posts-tiles-carousel.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_recent_posts_tiles_carousel_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/recent-posts-tiles.php CHANGED
@@ -35,7 +35,6 @@ function auxin_get_recent_posts_tiles_master_array( $master_array ) {
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
38
- 'is_vc' => true,
39
  'category' => THEME_NAME,
40
  'group' => '',
41
  'admin_enqueue_js' => '',
35
  'weight' => 1,
36
  'is_widget' => false,
37
  'is_shortcode' => true,
 
38
  'category' => THEME_NAME,
39
  'group' => '',
40
  'admin_enqueue_js' => '',
includes/elements/recent-posts-timeline.php CHANGED
@@ -29,7 +29,6 @@ function auxin_get_recent_posts_timeline_master_array( $master_array ) {
29
  'weight' => 1,
30
  'is_widget' => false,
31
  'is_shortcode' => true,
32
- 'is_vc' => true,
33
  'category' => THEME_NAME,
34
  'group' => '',
35
  'admin_enqueue_js' => '',
29
  'weight' => 1,
30
  'is_widget' => false,
31
  'is_shortcode' => true,
 
32
  'category' => THEME_NAME,
33
  'group' => '',
34
  'admin_enqueue_js' => '',
includes/elements/recent-posts-widget.php CHANGED
@@ -35,7 +35,6 @@ function auxin_get_recent_post_widget_master_array( $master_array ) {
35
  'weight' => 1,
36
  'is_widget' => true,
37
  'is_shortcode' => false,
38
- 'is_vc' => false,
39
  'category' => THEME_NAME,
40
  'group' => '',
41
  'admin_enqueue_js' => '',
35
  'weight' => 1,
36
  'is_widget' => true,
37
  'is_shortcode' => false,
 
38
  'category' => THEME_NAME,
39
  'group' => '',
40
  'admin_enqueue_js' => '',
includes/elements/recent-products.php CHANGED
@@ -20,7 +20,6 @@ function auxin_get_the_recent_products_master_array( $master_array ) {
20
  'show_settings_on_create' => true,
21
  'weight' => 1,
22
  'category' => THEME_NAME,
23
- 'is_vc' => true,
24
  'is_widget' => true,
25
  'is_shortcode' => true,
26
  'group' => '',
20
  'show_settings_on_create' => true,
21
  'weight' => 1,
22
  'category' => THEME_NAME,
 
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
  'group' => '',
includes/elements/sample-element.php CHANGED
@@ -25,7 +25,6 @@ function auxin_get_sample_master_array( $master_array ) {
25
  'weight' => 1, // [Int] content elements with greater weight will be rendered first in "Content Elements" grid, higher appear upper
26
  'is_widget' => true, // whether to add widget not not
27
  'is_shortcode' => true, // whether to add shortcode not not
28
- 'is_vc' => true, // whether to add the element to visual composer or not
29
  'category' => THEME_NAME, // [str] category which best suites to describe functionality of this shortcode.
30
  'group' => '', // [str] TODO: no idea Group your params in groups, they will be divided in tabs in the edit element window
31
  'admin_enqueue_js' => '', // [str/arr] this js will be loaded in the js_composer edit mode
25
  'weight' => 1, // [Int] content elements with greater weight will be rendered first in "Content Elements" grid, higher appear upper
26
  'is_widget' => true, // whether to add widget not not
27
  'is_shortcode' => true, // whether to add shortcode not not
 
28
  'category' => THEME_NAME, // [str] category which best suites to describe functionality of this shortcode.
29
  'group' => '', // [str] TODO: no idea Group your params in groups, they will be divided in tabs in the edit element window
30
  'admin_enqueue_js' => '', // [str/arr] this js will be loaded in the js_composer edit mode
includes/elements/search.php CHANGED
@@ -20,7 +20,6 @@ function auxin_get_search_master_array( $master_array ) {
20
  'weight' => 1,
21
  'is_widget' => true,
22
  'is_shortcode' => true,
23
- 'is_vc' => true,
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
20
  'weight' => 1,
21
  'is_widget' => true,
22
  'is_shortcode' => true,
 
23
  'category' => THEME_NAME,
24
  'group' => '',
25
  'admin_enqueue_js' => '',
includes/elements/socials-list.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_social_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
@@ -158,7 +157,6 @@ function auxin_get_social_widget_master_array( $master_array ) {
158
  'weight' => 1,
159
  'is_widget' => true,
160
  'is_shortcode' => false,
161
- 'is_vc' => false,
162
  'category' => THEME_NAME,
163
  'group' => '',
164
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
157
  'weight' => 1,
158
  'is_widget' => true,
159
  'is_shortcode' => false,
 
160
  'category' => THEME_NAME,
161
  'group' => '',
162
  'admin_enqueue_js' => '',
includes/elements/staff.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_staff_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/tab-widget.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_tabs_widget_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
24
- 'is_vc' => false,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => true,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/tabs.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_tabs_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
24
- 'is_vc' => false,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/testimonial.php CHANGED
@@ -22,7 +22,6 @@ function auxin_get_testimonial_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => true,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/elements/text.php CHANGED
@@ -21,7 +21,6 @@ function auxin_get_text_master_array( $master_array ) {
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
24
- 'is_vc' => true,
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
21
  'weight' => 1,
22
  'is_widget' => false,
23
  'is_shortcode' => true,
 
24
  'category' => THEME_NAME,
25
  'group' => '',
26
  'admin_enqueue_js' => '',
includes/elements/touch-slider.php CHANGED
@@ -22,7 +22,6 @@ function auxin_touch_slider_master_array( $master_array ) {
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
25
- 'is_vc' => true,
26
  'category' => THEME_NAME,
27
  'group' => '',
28
  'admin_enqueue_js' => '',
22
  'weight' => 1,
23
  'is_widget' => false,
24
  'is_shortcode' => true,
 
25
  'category' => THEME_NAME,
26
  'group' => '',
27
  'admin_enqueue_js' => '',
includes/general-hooks.php CHANGED
@@ -31,420 +31,6 @@ function auxels_body_class( $classes ) {
31
  add_filter( 'body_class', 'auxels_body_class', 13 );
32
 
33
 
34
- /**
35
- * Add meta custom field types for vc
36
- *
37
- * @return void
38
- */
39
- function auxin_add_vc_field_types(){
40
-
41
- if ( defined( 'WPB_VC_VERSION' ) ) {
42
-
43
- // aux_iconpicker field type definition for VC
44
- vc_add_shortcode_param( 'aux_iconpicker', 'auxin_aux_iconpicker_settings_field', ADMIN_JS_URL . 'scripts.js' );
45
- function auxin_aux_iconpicker_settings_field( $settings, $value ) {
46
-
47
- $font_icons = Auxin()->Font_Icons->get_icons_list('fontastic');
48
- $output = '<div class="aux-element-field aux-iconpicker">';
49
- $output .= sprintf( '<select name="%1$s" id="%1$s" class="aux-fonticonpicker aux-select wpb_vc_param_value wpb-select ' .
50
- esc_attr( $settings['param_name'] ) . ' ' . $settings['type'] . '_field" >', esc_attr($settings['param_name']) );
51
- $output .= '<option value="">' . __('Choose ..', 'auxin-elements') . '</option>';
52
-
53
- if( is_array( $font_icons ) ) {
54
- foreach ( $font_icons as $icon ) {
55
- $icon_id = trim( $icon->classname, '.' );
56
- // $output .= '<option value="'. $icon_id .'" '. selected( $instance[$id], $icon_id, false ) .' >'. $icon->name . '</option>';
57
- $output .= '<option value="'. $icon_id .'" '. selected( esc_attr( $value ) , $icon_id, false ) .' >'. $icon->name . '</option>';
58
-
59
- }
60
- }
61
-
62
- $output .= '</select>';
63
- $output .= '</div>';
64
-
65
- return $output; // This is html markup that will be outputted in content elements edit form
66
- }
67
-
68
- // aux_visual_select field type definition for VC
69
- vc_add_shortcode_param( 'aux_visual_select', 'auxin_aux_visual_select_settings_field', ADMIN_JS_URL . 'scripts.js' );
70
- function auxin_aux_visual_select_settings_field( $settings, $value ) {
71
-
72
- $output = '<select name="' . esc_attr($settings['param_name']) .
73
- '" class="aux-element-field visual-select-wrapper wpb_vc_param_value wpb-select ' .
74
- esc_attr( $settings['param_name'] ) . ' ' . $settings['type'] . '_field" '.
75
- ' id="' . esc_attr($settings['param_name']) .
76
- '" data-option="' . esc_attr( $value ) . '" >';
77
- foreach ( $settings['choices'] as $id => $option_info ) {
78
- $active_attr = ( $id == esc_attr( $value ) ) ? 'selected' : '';
79
- $data_class = isset( $option_info['css_class'] ) && ! empty( $option_info['css_class'] ) ? 'data-class="'. $option_info['css_class'].'"' : '';
80
- $data_symbol = empty( $data_class ) && isset( $option_info['image'] ) && ! empty( $option_info['image'] ) ? 'data-symbol="'. $option_info['image'].'"' : '';
81
- $data_video = ! empty( $option_info['video_src'] ) ? 'data-video-src="'. esc_attr( $option_info['video_src'] ).'"' : '';
82
- $css_classs = 'class="'. ($id) .'"';
83
- $output .= sprintf( '<option value="%s" %s %s %s %s %s>%s</option>', $id,$css_classs, $active_attr, $data_symbol, $data_video, $data_class, $option_info['label'] );
84
- }
85
- $output .= '</select>';
86
-
87
- return $output; // This is html markup that will be outputted in content elements edit form
88
- }
89
-
90
- // aux_select_audio field type definition for VC
91
- vc_add_shortcode_param( 'aux_select_audio', 'aux_select_audio_settings_field', ADMIN_JS_URL . 'scripts.js' );
92
- function aux_select_audio_settings_field( $settings, $value ) {
93
-
94
- // Store attachment src for avertaAttachMedia field
95
- if( !empty( $value) ) {
96
- $att_ids = explode( ',', $value );
97
- $attach_ids_list = auxin_get_the_resized_attachment_src( $att_ids, 80, 80, true );
98
- if(!empty($att_ids)) {
99
- printf( "<script>auxin.attachmedia = jQuery.extend( auxin.attachmedia, %s );</script>", wp_json_encode( array_unique( $attach_ids_list ) ) );
100
- }
101
- }
102
- $output = '';
103
- $output .= '<div class="aux-element-field av3_container aux_select_image axi-attachmedia-wrapper">'.
104
- '<input type="text" class="wpb-multiselect wpb_vc_param_value ' . esc_sql($settings['param_name']) . ' ' . $settings['type'] . '_field" name="' . esc_attr($settings['param_name']) . '" ' . 'id="' . esc_attr($settings['param_name']) . '" '
105
- . 'value="' . esc_attr( $value ) . '" data-media-type="audio" data-limit="1" data-multiple="0"'
106
- .'data-add-to-list="'.__('Add Audio', 'auxin-elements').'" '
107
- .'data-uploader-submit="'.__('Add Audio', 'auxin-elements').'"'
108
- .'data-uploader-title="'.__('Select Audio', 'auxin-elements').'"> '
109
- .'</div>';
110
-
111
- return $output; // This is html markup that will be outputted in content elements edit form
112
- }
113
-
114
- // aux_select_video field type definition for VC
115
- vc_add_shortcode_param( 'aux_select_video', 'aux_select_video_settings_field', ADMIN_JS_URL . 'scripts.js' );
116
- function aux_select_video_settings_field( $settings, $value ) {
117
-
118
- // Store attachment src for avertaAttachMedia field
119
- if( !empty( $value) ) {
120
- $att_ids = explode( ',', $value );
121
- $attach_ids_list = auxin_get_the_resized_attachment_src( $att_ids, 80, 80, true );
122
- if(!empty($att_ids)) {
123
- printf( "<script>auxin.attachmedia = jQuery.extend( auxin.attachmedia, %s );</script>", wp_json_encode( array_unique( $attach_ids_list ) ) );
124
- }
125
- }
126
- $output = '';
127
- $output .= '<div class="aux-element-field av3_container aux_select_image axi-attachmedia-wrapper">'.
128
- '<input type="text" class="wpb-multiselect wpb_vc_param_value ' . esc_sql($settings['param_name']) . ' ' . $settings['type'] . '_field" name="' . esc_attr($settings['param_name']) . '" ' . 'id="' . esc_attr($settings['param_name']) . '" '
129
- . 'value="' . esc_attr( $value ) . '" data-media-type="video" data-limit="1" data-multiple="0"'
130
- .'data-add-to-list="'.__('Add Video', 'auxin-elements').'" '
131
- .'data-uploader-submit="'.__('Add Video', 'auxin-elements').'"'
132
- .'data-uploader-title="'.__('Select Video', 'auxin-elements').'"> '
133
- .'</div>';
134
-
135
- return $output; // This is html markup that will be outputted in content elements edit form
136
- }
137
-
138
- // aux_select2_multiple field type definition for VC
139
- vc_add_shortcode_param( 'aux_select2_multiple', 'aux_multiple_selector_settings_field', ADMIN_JS_URL . 'scripts.js' );
140
- function aux_multiple_selector_settings_field( $settings, $value ) {
141
-
142
- if( gettype( $value ) === "string" ) {
143
- $value = explode( ",", $value);
144
- }
145
- $select = $value;
146
- $output = '';
147
- $output .= '<select multiple="multiple" name="' . esc_sql($settings['param_name']) . '" style="width:100%" ' . ' class="wpb-multiselect wpb_vc_param_value aux-select2-multiple ' . esc_sql($settings['param_name']) . ' ' . $settings['type'] . '_field" '. '>';
148
- foreach ( $settings['value'] as $id => $option_info ) {
149
- $active_attr = in_array( $id, $select) ? 'selected="selected"' : '';
150
- $output .= sprintf( '<option value="%s" %s >%s</option>', $id, $active_attr, $option_info );
151
- }
152
- $output.= '</select>';
153
-
154
- return $output; // This is html markup that will be outputted in content elements edit form
155
- }
156
-
157
- // aux_taxonomy field type definition for VC
158
- vc_add_shortcode_param( 'aux_taxonomy', 'aux_taxonomy_selector_settings_field', ADMIN_JS_URL . 'scripts.js' );
159
- function aux_taxonomy_selector_settings_field( $settings, $value ) {
160
-
161
- $categories = get_terms(
162
- array( 'taxonomy' => $settings['taxonomy'],
163
- 'orderby' => 'count',
164
- 'hide_empty' => true
165
- ));
166
-
167
- $categories_list = array( ' ' => __('All Categories', 'auxin-elements' ) );
168
- foreach ( $categories as $key => $value_id ) {
169
- $categories_list[$value_id->term_id] = $value_id->name;
170
- }
171
- if( gettype( $value ) === "string" ) {
172
- $value = explode( ",", $value);
173
- }
174
- $selected = $value;
175
- $output = '';
176
- $output .= '<select multiple="multiple" name="' . $settings['param_name'] . '" style="width:100%" ' . ' class="wpb-multiselect wpb_vc_param_value aux-select2-multiple ' . esc_sql($settings['param_name']) . ' ' . 'aux-admin-select2 ' . $settings['type'] . '_field" '. '>';
177
- foreach ( $categories_list as $id => $options_info ) {
178
- $active_attr = in_array( $id, $selected) ? 'selected="selected"' : '';
179
- $output .= sprintf( '<option value="%s" %s >%s</option>', $id, $active_attr, $options_info );
180
- }
181
- $output.= '</select>';
182
-
183
- return $output; // This is html markup that will be outputted in content elements edit form
184
- }
185
-
186
- vc_add_shortcode_param( 'aux_switch', 'auxin_aux_switch_settings_field', ADMIN_JS_URL . 'scripts.js' );
187
- function auxin_aux_switch_settings_field( $settings, $value ) {
188
- $active_attr = auxin_is_true( $value ) ? 'checked="checked"' : '';
189
- return '<div class="av3_container aux_switch">'.
190
- '<input type="checkbox" name="' . esc_attr( $settings['param_name'] ) . '" class="wpb_vc_param_value wpb_checkbox checkbox '.
191
- esc_attr( $settings['param_name'] ) . ' ' .
192
- esc_attr( $settings['type'] ) . '_field' .
193
- '" value="' . esc_attr( $value ) . '" ' . $active_attr . ' >' .
194
- '</div>'; // This is html markup that will be outputted in content elements edit form
195
- }
196
-
197
-
198
-
199
- }
200
-
201
- /**
202
- * Enqueue all my widget's admin scripts
203
- */
204
- function auxin_widgets_enqueue_scripts(){
205
- wp_enqueue_script('auxin_widget');
206
-
207
- }
208
- add_action( 'admin_print_scripts-widgets.php', 'auxin_widgets_enqueue_scripts' );
209
-
210
- /**
211
- * This part is for adding Auxin font icon to Visual composer icon
212
- * this is just temporary and need to move and write in a better manner when it is compelete
213
- * TODO: just for now to see it is working
214
- */
215
-
216
- // Add Auxin icons to Visual Composer icons
217
- $settings = array(
218
- 'name' => __( 'Auxin Icons', 'auxin-elements' ),
219
- 'category' => THEME_NAME,
220
- 'params' => array(
221
- array(
222
- 'type' => 'dropdown',
223
- 'heading' => __( 'Icon library', 'auxin-elements' ),
224
- 'value' => array(
225
- __( 'Font Awesome', 'auxin-elements' ) => 'fontawesome',
226
- __( 'Open Iconic', 'auxin-elements' ) => 'openiconic',
227
- __( 'Typicons', 'auxin-elements' ) => 'typicons',
228
- __( 'Entypo', 'auxin-elements' ) => 'entypo',
229
- __( 'Linecons', 'auxin-elements' ) => 'linecons',
230
- __( 'Auxin', 'auxin-elements' ) => 'auxin'
231
- ),
232
- 'admin_label' => true,
233
- 'param_name' => 'type',
234
- 'description' => __( 'Select icon library.', 'auxin-elements' )
235
- ),
236
- array(
237
- 'type' => 'iconpicker',
238
- 'heading' => __( 'Icon', 'auxin-elements' ),
239
- 'param_name' => 'icon_auxin',
240
- 'value' => 'auxin-icon-basket-1', // default value to backend editor admin_label
241
- 'settings' => array(
242
- 'emptyIcon' => false,
243
- // default true, display an "EMPTY" icon?
244
- 'type' => 'auxin',
245
- 'iconsPerPage' => 4000
246
- // default 100, how many icons per/page to display, we use (big number) to display all icons in single page
247
- ),
248
- 'dependency' => array(
249
- 'element' => 'type',
250
- 'value' => 'auxin'
251
- ),
252
- 'description' => __( 'Select icon from library.', 'auxin-elements' )
253
- ),
254
- array(
255
- 'type' => 'iconpicker',
256
- 'heading' => __( 'Icon', 'auxin-elements' ),
257
- 'param_name' => 'icon_fontawesome',
258
- 'value' => 'fa fa-adjust', // default value to backend editor admin_label
259
- 'settings' => array(
260
- 'emptyIcon' => false,
261
- // default true, display an "EMPTY" icon?
262
- 'iconsPerPage' => 4000
263
- // default 100, how many icons per/page to display, we use (big number) to display all icons in single page
264
- ),
265
- 'dependency' => array(
266
- 'element' => 'type',
267
- 'value' => 'fontawesome'
268
- ),
269
- 'description' => __( 'Select icon from library.', 'auxin-elements' )
270
- ),
271
- array(
272
- 'type' => 'iconpicker',
273
- 'heading' => __( 'Icon', 'auxin-elements' ),
274
- 'param_name' => 'icon_openiconic',
275