Premium Portfolio Features for Phlox theme - Version 1.8.2

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Premium Portfolio Features for Phlox theme
Version 1.8.2
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.2

README.txt CHANGED
@@ -6,8 +6,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: phlox, gallery, elementor, siteorigin, portfolio, averta, auxin, fullwidth, masonry, timeline, projects, showcase, minimal, wix, flat
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
- Tested up to: 5.1.1
10
- Stable tag: 1.8.0
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
6
  Tags: phlox, gallery, elementor, siteorigin, portfolio, averta, auxin, fullwidth, masonry, timeline, projects, showcase, minimal, wix, flat
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
+ Tested up to: 5.2.2
10
+ Stable tag: 1.8.2
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
auxin-portfolio.php CHANGED
@@ -12,14 +12,14 @@
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
- * Version: 1.8.0
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
19
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
20
  * Text Domain: auxin-portfolio
21
  * Domain Path: /languages
22
- * Tested up to: 5.1.0
23
  */
24
 
25
  // If this file is called directly, abort.
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
+ * Version: 1.8.2
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
19
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
20
  * Text Domain: auxin-portfolio
21
  * Domain Path: /languages
22
+ * Tested up to: 5.2.2
23
  */
24
 
25
  // If this file is called directly, abort.
includes/define.php CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
15
 
16
 
17
 
18
- define( 'AUXPFO_VERSION' , '1.8.0' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.8.2' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
includes/elements/elementor/class-auxpfo-elementor-elements.php CHANGED
@@ -153,27 +153,26 @@ final class Elements {
153
  * @access public
154
  */
155
  public function register_widgets( $widgets ) {
156
-
157
- $widgets['410'] = array(
158
  'file' => $this->dir_path . '/recent-portfolios-grid.php',
159
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Grid'
160
  );
161
 
162
- $widgets['420'] = array(
163
  'file' => $this->dir_path . '/recent-portfolios-masonry.php',
164
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Masonry'
165
  );
166
 
167
- $widgets['430'] = array(
168
  'file' => $this->dir_path . '/recent-portfolios-tile.php',
169
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Tile'
170
  );
171
 
172
- $widgets['440'] = array(
173
  'file' => $this->dir_path . '/recent-portfolios-tile-carousel.php',
174
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Tile_Carousel_Carousel'
175
  );
176
- $widgets['450'] = array(
177
  'file' => $this->dir_path . '/recent-portfolios-grid-carousel.php',
178
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Grid_Carousel'
179
  );
153
  * @access public
154
  */
155
  public function register_widgets( $widgets ) {
156
+ $widgets['310'] = array(
 
157
  'file' => $this->dir_path . '/recent-portfolios-grid.php',
158
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Grid'
159
  );
160
 
161
+ $widgets['320'] = array(
162
  'file' => $this->dir_path . '/recent-portfolios-masonry.php',
163
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Masonry'
164
  );
165
 
166
+ $widgets['330'] = array(
167
  'file' => $this->dir_path . '/recent-portfolios-tile.php',
168
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Tile'
169
  );
170
 
171
+ $widgets['340'] = array(
172
  'file' => $this->dir_path . '/recent-portfolios-tile-carousel.php',
173
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Tile_Carousel_Carousel'
174
  );
175
+ $widgets['350'] = array(
176
  'file' => $this->dir_path . '/recent-portfolios-grid-carousel.php',
177
  'class' => __NAMESPACE__ . '\Elements\Recent_Portfolios_Grid_Carousel'
178
  );
includes/elements/elementor/recent-portfolios-grid-carousel.php CHANGED
@@ -281,7 +281,32 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
281
  'options' => array(
282
  '' => __('None', 'auxin-portfolio'),
283
  'arrows' => __('Arrows', 'auxin-portfolio'),
284
- 'bullets' => __('Bullets', 'auxin-portfolio')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  )
286
  )
287
  );
@@ -573,10 +598,26 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
573
  'type' => Controls_Manager::SELECT,
574
  'default' => '0.75',
575
  'options' => array(
576
- '0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
577
- '0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
578
- '1.00' => __('Square 1:1' , 'auxin-portfolio'),
579
- '1.33' => __('Vertical 3:4' , 'auxin-portfolio')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
580
  )
581
  )
582
  );
@@ -836,6 +877,75 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
836
  );
837
 
838
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
  }
840
 
841
  /**
@@ -865,12 +975,14 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
865
  'deeplink_slug' => $settings['deeplink_slug'],
866
 
867
  // Carousel section
868
- 'carousel_navigation' => $settings['carousel_navigation'],
869
- 'button_style' => $settings['button_style'],
870
- 'carousel_navigation_control' => $settings['carousel_navigation_control'],
871
- 'carousel_loop' => $settings['carousel_loop'],
872
- 'carousel_autoplay' => $settings['carousel_autoplay'],
873
- 'carousel_autoplay_delay' => $settings['carousel_autoplay_delay'],
 
 
874
 
875
  'reveal_transition_duration' => auxin_get_control_size( $settings['reveal_transition_duration'] ),
876
  'reveal_between_delay' => auxin_get_control_size( $settings['reveal_between_delay'] ),
@@ -888,7 +1000,7 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
888
  'order' => $settings['order'],
889
  'exclude_without_media' => $settings['exclude_without_media'],
890
 
891
- 'image_aspect_ratio' => $settings['image_aspect_ratio'],
892
  'space' => auxin_get_control_size( $settings['space'] ),
893
  'item_style' => $settings['item_style'],
894
 
281
  'options' => array(
282
  '' => __('None', 'auxin-portfolio'),
283
  'arrows' => __('Arrows', 'auxin-portfolio'),
284
+ 'bullets' => __('Bullets', 'auxin-portfolio'),
285
+ 'text' => __('Text', 'auxin-portfolio'),
286
+ )
287
+ )
288
+ );
289
+
290
+ $this->add_control(
291
+ 'carousel_navigation_control_text_next',
292
+ array(
293
+ 'label' => __('Next Button', 'auxin-portfolio'),
294
+ 'type' => Controls_Manager::TEXT,
295
+ 'default' => __('Next', 'auxin-portfolio') ,
296
+ 'condition' => array(
297
+ 'carousel_navigation_control' => 'text'
298
+ )
299
+ )
300
+ );
301
+
302
+ $this->add_control(
303
+ 'carousel_navigation_control_text_prev',
304
+ array(
305
+ 'label' => __('Previous Button', 'auxin-portfolio'),
306
+ 'type' => Controls_Manager::TEXT,
307
+ 'default' => __('Prev', 'auxin-portfolio'),
308
+ 'condition' => array(
309
+ 'carousel_navigation_control' => 'text'
310
  )
311
  )
312
  );
598
  'type' => Controls_Manager::SELECT,
599
  'default' => '0.75',
600
  'options' => array(
601
+ '0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
602
+ '0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
603
+ '1.00' => __('Square 1:1' , 'auxin-portfolio'),
604
+ '1.33' => __('Vertical 3:4' , 'auxin-portfolio'),
605
+ 'custom' => __('Custom' , 'auxin-portfolio'),
606
+ )
607
+ )
608
+ );
609
+
610
+ $this->add_control(
611
+ 'image_aspect_ratio_custom',
612
+ array(
613
+ 'label' => __('Custom image aspect ratio', 'auxin-portfolio' ),
614
+ 'label_block' => true,
615
+ 'type' => Controls_Manager::NUMBER,
616
+ 'default' => 1,
617
+ 'min' => 0,
618
+ 'step' => 0.5,
619
+ 'condition' => array(
620
+ 'image_aspect_ratio' => 'custom'
621
  )
622
  )
623
  );
877
  );
878
 
879
  $this->end_controls_section();
880
+
881
+ /* Image Section
882
+ /*-------------------------------------*/
883
+
884
+ $this->start_controls_section(
885
+ 'carousel_style_section',
886
+ array(
887
+ 'label' => __( 'Carousel', 'auxin-portfolio' ),
888
+ 'tab' => Controls_Manager::TAB_STYLE,
889
+ 'condition' => array(
890
+ 'carousel_navigation_control' => 'text'
891
+ )
892
+ )
893
+ );
894
+
895
+ $this->start_controls_tabs( 'carousel_colors' );
896
+
897
+ $this->start_controls_tab(
898
+ 'carousel_color_normal',
899
+ array(
900
+ 'label' => __( 'Normal' , 'auxin-portfolio' )
901
+ )
902
+ );
903
+
904
+ $this->add_control(
905
+ 'carousel_color',
906
+ array(
907
+ 'label' => __( 'Color', 'auxin-portfolio' ),
908
+ 'type' => Controls_Manager::COLOR,
909
+ 'selectors' => array(
910
+ '{{WRAPPER}} .aux-mc-arrows .aux-text-arrow' => 'color: {{VALUE}};',
911
+ )
912
+ )
913
+ );
914
+
915
+ $this->end_controls_tab();
916
+
917
+ $this->start_controls_tab(
918
+ 'carousel_color_hover',
919
+ array(
920
+ 'label' => __( 'Hover' , 'auxin-portfolio' )
921
+ )
922
+ );
923
+
924
+ $this->add_control(
925
+ 'carousel_hover_color',
926
+ array(
927
+ 'label' => __( 'Color', 'auxin-portfolio' ),
928
+ 'type' => Controls_Manager::COLOR,
929
+ 'selectors' => array(
930
+ '{{WRAPPER}} .aux-mc-arrows .aux-text-arrow:hover' => 'color:{{VALUE}};',
931
+ )
932
+ )
933
+ );
934
+
935
+ $this->end_controls_tab();
936
+
937
+ $this->end_controls_tabs();
938
+
939
+ $this->add_group_control(
940
+ Group_Control_Typography::get_type(),
941
+ array(
942
+ 'name' => 'carousel_typography',
943
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
944
+ 'selector' => '{{WRAPPER}} .aux-mc-arrows .aux-text-arrow'
945
+ )
946
+ );
947
+
948
+ $this->end_controls_section();
949
  }
950
 
951
  /**
975
  'deeplink_slug' => $settings['deeplink_slug'],
976
 
977
  // Carousel section
978
+ 'carousel_navigation' => $settings['carousel_navigation'],
979
+ 'button_style' => $settings['button_style'],
980
+ 'carousel_navigation_control' => $settings['carousel_navigation_control'],
981
+ 'carousel_loop' => $settings['carousel_loop'],
982
+ 'carousel_autoplay' => $settings['carousel_autoplay'],
983
+ 'carousel_autoplay_delay' => $settings['carousel_autoplay_delay'],
984
+ 'carousel_navigation_control_text_next' => $settings['carousel_navigation_control_text_next'],
985
+ 'carousel_navigation_control_text_prev' => $settings['carousel_navigation_control_text_prev'],
986
 
987
  'reveal_transition_duration' => auxin_get_control_size( $settings['reveal_transition_duration'] ),
988
  'reveal_between_delay' => auxin_get_control_size( $settings['reveal_between_delay'] ),
1000
  'order' => $settings['order'],
1001
  'exclude_without_media' => $settings['exclude_without_media'],
1002
 
1003
+ 'image_aspect_ratio' => $settings['image_aspect_ratio'] !== 'custom' ? $settings['image_aspect_ratio'] : $settings['image_aspect_ratio_custom'] ,
1004
  'space' => auxin_get_control_size( $settings['space'] ),
1005
  'item_style' => $settings['item_style'],
1006
 
includes/elements/elementor/recent-portfolios-grid.php CHANGED
@@ -474,6 +474,71 @@ class Recent_Portfolios_Grid extends Widget_Base {
474
  )
475
  );
476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
  $this->end_controls_section();
478
 
479
  /* Transition Section
@@ -653,10 +718,26 @@ class Recent_Portfolios_Grid extends Widget_Base {
653
  'type' => Controls_Manager::SELECT,
654
  'default' => '0.75',
655
  'options' => array(
656
- '0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
657
- '0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
658
- '1.00' => __('Square 1:1' , 'auxin-portfolio'),
659
- '1.33' => __('Vertical 3:4' , 'auxin-portfolio')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
660
  )
661
  )
662
  );
@@ -1084,7 +1165,7 @@ class Recent_Portfolios_Grid extends Widget_Base {
1084
  'perpage' => $settings['perpage'],
1085
  'display_title' => $settings['display_title'],
1086
  'show_info' => $settings['show_info'],
1087
- 'image_aspect_ratio' => $settings['image_aspect_ratio'],
1088
  'space' => auxin_get_control_size( $settings['space'] ),
1089
  'desktop_cnum' => $settings['columns'],
1090
  'tablet_cnum' => $settings['columns_tablet'],
474
  )
475
  );
476
 
477
+ $this->start_controls_tabs( 'filters_colors' );
478
+
479
+ $this->start_controls_tab(
480
+ 'filters_color_normal',
481
+ array(
482
+ 'label' => __( 'Normal' , 'auxin-portfolio' )
483
+ )
484
+ );
485
+
486
+ $this->add_control(
487
+ 'filters_color',
488
+ array(
489
+ 'label' => __( 'Color', 'auxin-portfolio' ),
490
+ 'type' => Controls_Manager::COLOR,
491
+ 'selectors' => array(
492
+ '{{WRAPPER}} .aux-filters li > a span:before' => 'color: {{VALUE}};',
493
+ )
494
+ )
495
+ );
496
+
497
+ $this->end_controls_tab();
498
+
499
+ $this->start_controls_tab(
500
+ 'filters_color_hover',
501
+ array(
502
+ 'label' => __( 'Hover' , 'auxin-portfolio' )
503
+ )
504
+ );
505
+
506
+ $this->add_control(
507
+ 'filters_hover_color',
508
+ array(
509
+ 'label' => __( 'Color', 'auxin-portfolio' ),
510
+ 'type' => Controls_Manager::COLOR,
511
+ 'selectors' => array(
512
+ '{{WRAPPER}} .aux-filters li > a span:before:hover' => 'color:{{VALUE}};',
513
+ )
514
+ )
515
+ );
516
+
517
+ $this->end_controls_tab();
518
+
519
+ $this->end_controls_tabs();
520
+
521
+ $this->add_group_control(
522
+ Group_Control_Typography::get_type(),
523
+ array(
524
+ 'name' => 'filters_typography',
525
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
526
+ 'selector' => '{{WRAPPER}} .aux-filters li > a'
527
+ )
528
+ );
529
+
530
+ $this->add_responsive_control(
531
+ 'filters_padding',
532
+ array(
533
+ 'label' => __( 'Padding', 'auxin-portfolio' ),
534
+ 'type' => Controls_Manager::DIMENSIONS,
535
+ 'size_units' => array( 'px', '%' ),
536
+ 'selectors' => array(
537
+ '{{WRAPPER}} .aux-filters li > a > span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
538
+ )
539
+ )
540
+ );
541
+
542
  $this->end_controls_section();
543
 
544
  /* Transition Section
718
  'type' => Controls_Manager::SELECT,
719
  'default' => '0.75',
720
  'options' => array(
721
+ '0.75' => __('Horizontal 4 : 3' , 'auxin-portfolio'),
722
+ '0.56' => __('Horizontal 16: 9', 'auxin-portfolio'),
723
+ '1.00' => __('Square 1 : 1' , 'auxin-portfolio'),
724
+ '1.33' => __('Vertical 3 : 4' , 'auxin-portfolio'),
725
+ 'custom' => __('Custom' , 'auxin-portfolio')
726
+ )
727
+ )
728
+ );
729
+
730
+ $this->add_control(
731
+ 'image_aspect_ratio_custom',
732
+ array(
733
+ 'label' => __('Custom image aspect ratio', 'auxin-portfolio' ),
734
+ 'label_block' => true,
735
+ 'type' => Controls_Manager::NUMBER,
736
+ 'default' => 1,
737
+ 'min' => 0,
738
+ 'step' => 0.5,
739
+ 'condition' => array(
740
+ 'image_aspect_ratio' => 'custom'
741
  )
742
  )
743
  );
1165
  'perpage' => $settings['perpage'],
1166
  'display_title' => $settings['display_title'],
1167
  'show_info' => $settings['show_info'],
1168
+ 'image_aspect_ratio' => $settings['image_aspect_ratio'] !== 'custom' ? $settings['image_aspect_ratio'] : $settings['image_aspect_ratio_custom'] ,
1169
  'space' => auxin_get_control_size( $settings['space'] ),
1170
  'desktop_cnum' => $settings['columns'],
1171
  'tablet_cnum' => $settings['columns_tablet'],
includes/elements/recent-portfolios-grid-carousel.php CHANGED
@@ -33,7 +33,8 @@ function auxin_widget_recent_portfolios_grid_carousel_callback( $atts, $shortcod
33
  'hide_between_delay' => '30',
34
  'item_style' => 'classic',
35
  'perpage' => 10,
36
-
 
37
  'preloadable' => false,
38
  'preload_preview' => true,
39
  'preload_bgcolor' => '',
@@ -202,7 +203,7 @@ function auxin_widget_recent_portfolios_grid_carousel_callback( $atts, $shortcod
202
  $carousel_attrs .= ' data-wrap-controls="true"';
203
  $carousel_attrs .= ' data-bullets="' . ('bullets' == $carousel_navigation_control ? 'true' : 'false') . '"';
204
  $carousel_attrs .= ' data-bullet-class="aux-bullets aux-small aux-mask"';
205
- $carousel_attrs .= ' data-arrows="' . ('arrows' == $carousel_navigation_control ? 'true' : 'false') . '"';
206
  $carousel_attrs .= ' data-same-height="true"';
207
 
208
  if ( 'inherit' != $tablet_cnum || 'inherit' != $phone_cnum ) {
@@ -221,7 +222,7 @@ function auxin_widget_recent_portfolios_grid_carousel_callback( $atts, $shortcod
221
  $wp_query->the_post();
222
  $post = $wp_query->post;
223
  $column_class = 'aux-mc-item';
224
- $item_inner_classes = '';
225
 
226
  $post_vars = auxin_get_post_type_media_args(
227
  $post,
@@ -258,7 +259,16 @@ function auxin_widget_recent_portfolios_grid_carousel_callback( $atts, $shortcod
258
  echo '</div>';
259
 
260
  }
261
- if ( 'bullets' != $carousel_navigation_control ) {
 
 
 
 
 
 
 
 
 
262
  if ( 'boxed' === $carousel_nav_control_skin ) :?>
263
  <div class="aux-carousel-controls">
264
  <div class="aux-next-arrow aux-arrow-nav aux-outline aux-hover-fill">
@@ -282,7 +292,7 @@ function auxin_widget_recent_portfolios_grid_carousel_callback( $atts, $shortcod
282
  </div>
283
  <?php endif;
284
  }
285
-
286
  echo '</div></div>';
287
 
288
  } // End if have_posts
33
  'hide_between_delay' => '30',
34
  'item_style' => 'classic',
35
  'perpage' => 10,
36
+ 'carousel_navigation_control_text_next' => __('Next', 'auxin-portfolio'),
37
+ 'carousel_navigation_control_text_prev' => __('Previous', 'auxin-portfolio') ,
38
  'preloadable' => false,
39
  'preload_preview' => true,
40
  'preload_bgcolor' => '',
203
  $carousel_attrs .= ' data-wrap-controls="true"';
204
  $carousel_attrs .= ' data-bullets="' . ('bullets' == $carousel_navigation_control ? 'true' : 'false') . '"';
205
  $carousel_attrs .= ' data-bullet-class="aux-bullets aux-small aux-mask"';
206
+ $carousel_attrs .= ' data-arrows="' . ( in_array( $carousel_navigation_control, array( 'arrows', 'text' ) ) ? 'true' : 'false') . '"';
207
  $carousel_attrs .= ' data-same-height="true"';
208
 
209
  if ( 'inherit' != $tablet_cnum || 'inherit' != $phone_cnum ) {
222
  $wp_query->the_post();
223
  $post = $wp_query->post;
224
  $column_class = 'aux-mc-item';
225
+ $item_inner_classes = '';
226
 
227
  $post_vars = auxin_get_post_type_media_args(
228
  $post,
259
  echo '</div>';
260
 
261
  }
262
+ if ( 'text' === $carousel_navigation_control ) { ?>
263
+ <div class="aux-carousel-controls">
264
+ <div class="aux-next-arrow">
265
+ <span class="aux-text-arrow"> <?php echo esc_html( $carousel_navigation_control_text_next ) ;?> </span>
266
+ </div>
267
+ <div class="aux-prev-arrow">
268
+ <span class="aux-text-arrow"> <?php echo esc_html( $carousel_navigation_control_text_prev ) ;?> </span>
269
+ </div>
270
+ </div> <?php
271
+ } else if ( 'bullets' != $carousel_navigation_control ) {
272
  if ( 'boxed' === $carousel_nav_control_skin ) :?>
273
  <div class="aux-carousel-controls">
274
  <div class="aux-next-arrow aux-arrow-nav aux-outline aux-hover-fill">
292
  </div>
293
  <?php endif;
294
  }
295
+
296
  echo '</div></div>';
297
 
298
  } // End if have_posts
includes/elements/recent-portfolios-tile-carousel.php CHANGED
@@ -417,6 +417,8 @@ add_filter( 'auxin_master_array_shortcodes', 'auxin_get_recent_portfolios_tiles_
417
  */
418
  function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortcode_content = null ){
419
 
 
 
420
  // Defining default attributes
421
  $default_atts = array(
422
  'title' => '', // header title
@@ -440,7 +442,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
440
  'button_style' => 'pattern-1',
441
  'display_title' => true,
442
  'show_info' => true,
443
-
444
  'extra_classes' => '',
445
  'tax_args' => '',
446
  'extra_column_classes' => '',
@@ -567,7 +569,6 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
567
  $carousel_attrs .= ' data-bullet-class="aux-bullets aux-small aux-mask"';
568
  $carousel_attrs .= ' data-arrows="' . ('arrows' == $carousel_navigation_control ? 'true' : 'false') . '"';
569
  $carousel_attrs .= ' data-same-height="false"';
570
- $column_media_width = auxin_get_content_column_width( 4, 0, $content_width );
571
  $item_inner_classes = '';
572
  $have_posts = $wp_query->have_posts();
573
 
@@ -577,7 +578,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
577
  echo ! $skip_wrappers ? sprintf( '<div data-element-id="%s" class="%s" %s>', esc_attr( $universal_id ), esc_attr( $container_class ), $carousel_attrs ) : '';
578
 
579
  while ( $wp_query->have_posts() ) {
580
- $item_pattern_info = auxin_get_tile_pattern( $tile_style_pattern, $post_counter, $column_media_width );
581
 
582
  $post_counter++;
583
 
@@ -595,13 +596,13 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
595
  array(
596
  'request_from' => 'archive',
597
  'media_width' => $phone_break_point,
598
- 'media_size' => 'large',
599
  'upscale_image' => true,
600
  'image_from_content' => ! $exclude_without_media,
601
  'ignore_formats' => array( '*' ),
602
  'preloadable' => false,
603
- 'image_sizes' => $item_pattern_info['image_sizes'],
604
- 'srcset_sizes' => $item_pattern_info['srcset_sizes']
605
  )
606
  );
607
  $item_classes = $item_pattern_info['classname'];
@@ -619,8 +620,8 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
619
  </div><?php
620
 
621
  if ( ( $post_counter % $num ) == 0 ){
622
- $post_counter = 0;
623
- echo '</div>';
624
  }
625
 
626
  }
417
  */
418
  function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortcode_content = null ){
419
 
420
+ global $aux_content_width;
421
+
422
  // Defining default attributes
423
  $default_atts = array(
424
  'title' => '', // header title
442
  'button_style' => 'pattern-1',
443
  'display_title' => true,
444
  'show_info' => true,
445
+
446
  'extra_classes' => '',
447
  'tax_args' => '',
448
  'extra_column_classes' => '',
569
  $carousel_attrs .= ' data-bullet-class="aux-bullets aux-small aux-mask"';
570
  $carousel_attrs .= ' data-arrows="' . ('arrows' == $carousel_navigation_control ? 'true' : 'false') . '"';
571
  $carousel_attrs .= ' data-same-height="false"';
 
572
  $item_inner_classes = '';
573
  $have_posts = $wp_query->have_posts();
574
 
578
  echo ! $skip_wrappers ? sprintf( '<div data-element-id="%s" class="%s" %s>', esc_attr( $universal_id ), esc_attr( $container_class ), $carousel_attrs ) : '';
579
 
580
  while ( $wp_query->have_posts() ) {
581
+ $item_pattern_info = auxin_get_tile_pattern( $tile_style_pattern, $post_counter, $aux_content_width );
582
 
583
  $post_counter++;
584
 
596
  array(
597
  'request_from' => 'archive',
598
  'media_width' => $phone_break_point,
599
+ 'media_size' => $item_pattern_info['size'],
600
  'upscale_image' => true,
601
  'image_from_content' => ! $exclude_without_media,
602
  'ignore_formats' => array( '*' ),
603
  'preloadable' => false,
604
+ 'image_sizes' => 'auto',
605
+ 'srcset_sizes' => 'auto'
606
  )
607
  );
608
  $item_classes = $item_pattern_info['classname'];
620
  </div><?php
621
 
622
  if ( ( $post_counter % $num ) == 0 ){
623
+ $post_counter = 0;
624
+ echo '</div>';
625
  }
626
 
627
  }
public/assets/js/portfolio.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Auxin portfolio - v1.8.0 (2019-04-23)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.8.0 (2019-07-17)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
public/assets/js/portfolio.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Auxin portfolio - v1.8.0 (2019-04-23)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.8.0 (2019-07-17)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
public/templates/elements/recent-portfolio.php CHANGED
@@ -231,7 +231,7 @@ function auxin_recent_portfolio( $args= array() ) {
231
  'terms' => $args['cat']
232
  )
233
  );
234
- }
235
 
236
  $query_arg = array(
237
  'post_type' => 'portfolio',
@@ -335,7 +335,7 @@ function auxin_recent_portfolio( $args= array() ) {
335
  }
336
  }
337
 
338
-
339
  // // Lightbox attributes
340
  if ( $show_lightbox ) {
341
  $attach_id = get_post_thumbnail_id($post->ID);
231
  'terms' => $args['cat']
232
  )
233
  );
234
+ }
235
 
236
  $query_arg = array(
237
  'post_type' => 'portfolio',
335
  }
336
  }
337
 
338
+
339
  // // Lightbox attributes
340
  if ( $show_lightbox ) {
341
  $attach_id = get_post_thumbnail_id($post->ID);