Premium Portfolio Features for Phlox theme - Version 1.7.4

Version Description

Download this release

Release Info

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

Code changes from version 1.7.2 to 1.7.4

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, siteorigin, portfolio, averta, auxin, fullwidth
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 4.9.8
10
- Stable tag: 1.7.2
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -136,7 +136,7 @@ Bugs can be reported in our [support forums](http://support.averta.net/en/item/p
136
 
137
  == Changelog ==
138
 
139
- = Version 1.7.2 / (03.09.2018) =
140
  - [Fix]: Minor bugs fixed.
141
 
142
  = Version 1.7.0 / (09.08.2018) =
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 4.9.8
10
+ Stable tag: 1.7.4
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
136
 
137
  == Changelog ==
138
 
139
+ = Version 1.7.4 / (16.09.2018) =
140
  - [Fix]: Minor bugs fixed.
141
 
142
  = Version 1.7.0 / (09.08.2018) =
auxin-portfolio.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
- * Version: 1.7.2
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://phlox.pro/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
+ * Version: 1.7.4
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * License: GPL2
includes/define.php CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
15
 
16
 
17
 
18
- define( 'AUXPFO_VERSION' , '1.7.2' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.7.4' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
includes/elements/recent-portfolios.php CHANGED
@@ -481,7 +481,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
481
  'description' => __('Style of filter buttons.', 'auxin-portfolio' ),
482
  'param_name' => 'filter_style',
483
  'type' => 'aux_visual_select',
484
- 'def_value' => 'slideup',
485
  'holder' => '',
486
  'dependency' => array(
487
  'element' => 'show_filters',
@@ -491,36 +491,36 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
491
  'group' => 'Filter',
492
  'edit_field_class' => '',
493
  'choices' => array(
494
- 'slideup' => array(
495
  'label' => __('Slide up' , 'auxin-portfolio'),
496
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterSlideUp2.webm webm'
497
  ),
498
- 'fill' => array(
499
  'label' => __('Fill' , 'auxin-portfolio'),
500
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterFill.webm webm'
501
  ),
502
- 'cube' => array(
503
  'label' => __('Cube' , 'auxin-portfolio'),
504
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterCube.webm webm'
505
  ),
506
- 'underline' => array(
507
  'label' => __('Underline' , 'auxin-portfolio'),
508
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.mp4 mp4'
509
  ),
510
- 'overlay' => array(
511
  'label' => __('Float frame' , 'auxin-portfolio'),
512
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterFloatFrame.webm webm'
513
  ),
514
- 'bordered' => array(
515
  'label' => __('Borderd' , 'auxin-portfolio'),
516
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterBordered.mp4 mp4'
517
  ),
518
- 'underline-anim' => array(
519
  'label' => __('Float underline' , 'auxin-portfolio'),
520
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.webm webm'
521
  ),
522
- 'dropdown' => array(
523
- 'label' => __('Dropdown' , 'auxin-portfolio'),
524
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.webm webm'
525
  ),
526
  ),
@@ -910,7 +910,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
910
  echo $result['widget_header'];
911
  echo $result['widget_title'];
912
 
913
- if ( $show_filters && ! $skip_wrappers ) {
914
 
915
  // Filter Markup
916
  auxin_filter_output( array(
481
  'description' => __('Style of filter buttons.', 'auxin-portfolio' ),
482
  'param_name' => 'filter_style',
483
  'type' => 'aux_visual_select',
484
+ 'def_value' => 'aux-slideup',
485
  'holder' => '',
486
  'dependency' => array(
487
  'element' => 'show_filters',
491
  'group' => 'Filter',
492
  'edit_field_class' => '',
493
  'choices' => array(
494
+ 'aux-slideup' => array(
495
  'label' => __('Slide up' , 'auxin-portfolio'),
496
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterSlideUp2.webm webm'
497
  ),
498
+ 'aux-fill' => array(
499
  'label' => __('Fill' , 'auxin-portfolio'),
500
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterFill.webm webm'
501
  ),
502
+ 'aux-cube' => array(
503
  'label' => __('Cube' , 'auxin-portfolio'),
504
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterCube.webm webm'
505
  ),
506
+ 'aux-underline' => array(
507
  'label' => __('Underline' , 'auxin-portfolio'),
508
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.mp4 mp4'
509
  ),
510
+ 'aux-overlay' => array(
511
  'label' => __('Float frame' , 'auxin-portfolio'),
512
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterFloatFrame.webm webm'
513
  ),
514
+ 'aux-bordered' => array(
515
  'label' => __('Borderd' , 'auxin-portfolio'),
516
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterBordered.mp4 mp4'
517
  ),
518
+ 'aux-overlay aux-underline-anim' => array(
519
  'label' => __('Float underline' , 'auxin-portfolio'),
520
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.webm webm'
521
  ),
522
+ 'aux-dropdown-filter' => array(
523
+ 'label' => __('DropDown' , 'auxin-portfolio'),
524
  'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/FilterUnderline.webm webm'
525
  ),
526
  ),
910
  echo $result['widget_header'];
911
  echo $result['widget_title'];
912
 
913
+ if ( auxin_is_true($show_filters) && ! $skip_wrappers ) {
914
 
915
  // Filter Markup
916
  auxin_filter_output( array(
public/assets/js/portfolio.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Auxin portfolio - v1.7.2 (2018-09-03)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.7.2 (2018-09-16)
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.7.2 (2018-09-03)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.7.2 (2018-09-16)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
public/templates/elements/recent-portfolio.php CHANGED
@@ -177,15 +177,15 @@ function auxin_recent_portfolio( $args= array() ) {
177
 
178
  $wrapper_classes .= $show_lightbox ? ' aux-lightbox-gallery' : '';
179
 
180
- if( gettype( $args['terms'] ) === "string" ) {
181
- if( empty( $args['terms'] ) || $args['terms'] == " " ) {
182
  $tax_args = array();
183
  } else {
184
  $tax_args = array(
185
  array(
186
  'taxonomy' => $filter_by,
187
  'field' => 'slug',
188
- 'terms' => explode( ",", $args['terms'])
189
  )
190
  );
191
  }
177
 
178
  $wrapper_classes .= $show_lightbox ? ' aux-lightbox-gallery' : '';
179
 
180
+ if( gettype( $terms ) === "string" ) {
181
+ if( empty( $terms ) || $terms == " " ) {
182
  $tax_args = array();
183
  } else {
184
  $tax_args = array(
185
  array(
186
  'taxonomy' => $filter_by,
187
  'field' => 'slug',
188
+ 'terms' => explode( ",", $terms)
189
  )
190
  );
191
  }
public/templates/theme-parts/entry/portfolio-column.php CHANGED
@@ -16,8 +16,8 @@
16
  <?php if( $show_lightbox ) { ?>
17
  <div class="aux-overlay-content">
18
  <div class="aux-portfolio-overlay-buttons">
19
- <div class="aux-lightbox-btn aux-hover-circle-plus aux-delay-2x">
20
- <a href="<?php echo auxin_get_the_attachment_url( $post->ID, 'full' )?>" <?php echo $lightbox_attrs; ?> >
21
  <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
22
  <span class="aux-overlay"></span>
23
  <span class="aux-svg-arrow aux-medium-plus aux-white"></span>
16
  <?php if( $show_lightbox ) { ?>
17
  <div class="aux-overlay-content">
18
  <div class="aux-portfolio-overlay-buttons">
19
+ <div class="aux-hover-circle-plus aux-delay-2x">
20
+ <a href="<?php echo auxin_get_the_attachment_url( $post->ID, 'full' )?>" <?php echo $lightbox_attrs; ?> class="aux-lightbox-btn">
21
  <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
22
  <span class="aux-overlay"></span>
23
  <span class="aux-svg-arrow aux-medium-plus aux-white"></span>
public/templates/theme-parts/tax-portfolio.php CHANGED
@@ -16,6 +16,9 @@ $per_page = get_option( 'posts_per_page' );
16
 
17
  // if template type is masonry
18
  if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
 
 
 
19
 
20
  $args = array(
21
  'posts_per_page' => -1,
@@ -30,6 +33,8 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
30
  'show_filters' => false,
31
  'show_title' => true,
32
  'show_info' => true,
 
 
33
  'image_aspect_ratio' => auxin_get_option( 'portfolio_taxonomy_image_aspect_ratio'),
34
  'space' => auxin_get_option( 'portfolio_taxonomy_grid_space') ,
35
  'desktop_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number' ),
@@ -68,7 +73,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
68
  $q_args = '&paged='. $paged. '&posts_per_page='. get_option( 'posts_per_page' );
69
 
70
  // query the posts
71
- query_posts( $query_string . $q_args );
72
  // does this query has result?
73
  $result = have_posts();
74
  }
16
 
17
  // if template type is masonry
18
  if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
19
+ global $query_string;
20
+
21
+ $query_string = explode( '=', $query_string );
22
 
23
  $args = array(
24
  'posts_per_page' => -1,
33
  'show_filters' => false,
34
  'show_title' => true,
35
  'show_info' => true,
36
+ 'filter_by' => $query_string[0],
37
+ 'terms' => $query_string[1],
38
  'image_aspect_ratio' => auxin_get_option( 'portfolio_taxonomy_image_aspect_ratio'),
39
  'space' => auxin_get_option( 'portfolio_taxonomy_grid_space') ,
40
  'desktop_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number' ),
73
  $q_args = '&paged='. $paged. '&posts_per_page='. get_option( 'posts_per_page' );
74
 
75
  // query the posts
76
+ query_posts( $query_string . $q_args );
77
  // does this query has result?
78
  $result = have_posts();
79
  }