Premium Portfolio Features for Phlox theme - Version 1.7.11

Version Description

Download this release

Release Info

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

Code changes from version 1.7.10 to 1.7.11

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: 5.1.0
10
- Stable tag: 1.7.10
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.10 / (12.3.2019) =
140
  - [Fix]: Minor bugs fixed.
141
 
142
  = Version 1.7.8 / (27.12.2018) =
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.1.0
10
+ Stable tag: 1.7.11
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
136
 
137
  == Changelog ==
138
 
139
+ = Version 1.7.11 / (14.3.2019) =
140
  - [Fix]: Minor bugs fixed.
141
 
142
  = Version 1.7.8 / (27.12.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.10
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.11
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.10' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.7.11' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
public/assets/js/portfolio.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Auxin portfolio - v1.7.10 (2019-03-13)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.7.11 (2019-03-14)
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.10 (2019-03-13)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
1
+ /*! Auxin portfolio - v1.7.11 (2019-03-14)
2
  * All required plugins
3
  * http://averta.net/phlox/
4
  */
public/templates/elements/recent-portfolio.php CHANGED
@@ -51,6 +51,7 @@ function auxin_recent_portfolio( $args= array() ) {
51
  'template_part_file' => 'recent-portfolio',
52
  'extra_template_path' => AUXPFO_PUB_DIR . '/templates/elements',
53
  'universal_id' => '',
 
54
  'term' => '',
55
  'query_args' => array(),
56
  'reset_query' => true,
@@ -182,25 +183,55 @@ function auxin_recent_portfolio( $args= array() ) {
182
  * if the Request is from ajax , $term variable will be empty
183
  */
184
 
185
- if( ( empty( $args['term'] ) || $args['term'] === "all" ) && !empty( $args['cat'] ) ) {
186
- $tax_args = array(
187
- array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  'taxonomy' => $filter_by,
189
  'field' => 'term_id',
190
- 'terms' => $args['cat']
191
- )
192
- );
193
- } else if ( ! empty( $args['term'] ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  $tax_args = array(
195
  array(
196
- 'taxonomy' => $filter_by,
197
  'field' => 'term_id',
198
- 'terms' => $args['term']
199
  )
200
  );
201
- } else if ( empty( $args['cat'] ) ) {
202
- $tax_args = array();
203
- }
204
 
205
  $query_arg = array(
206
  'post_type' => 'portfolio',
51
  'template_part_file' => 'recent-portfolio',
52
  'extra_template_path' => AUXPFO_PUB_DIR . '/templates/elements',
53
  'universal_id' => '',
54
+ 'use_ajax' => 0,
55
  'term' => '',
56
  'query_args' => array(),
57
  'reset_query' => true,
183
  * if the Request is from ajax , $term variable will be empty
184
  */
185
 
186
+ $tax_args = array();
187
+ $cat_args = array();
188
+
189
+ if( ! empty( $args['cat'] ) && $args['cat'] != " " && ( ! is_array( $args['cat'] ) || ! in_array( " ", $args['cat'] ) ) ) {
190
+ $cat_args = array(
191
+ 'taxonomy' => 'portfolio-cat',
192
+ 'field' => 'term_id',
193
+ 'terms' => ! is_array( $args['cat'] ) ? explode( ",", $args['cat'] ) : $args['cat']
194
+ );
195
+
196
+ $tax_args = array( $cat_args );
197
+ }
198
+
199
+ if ( auxin_is_true( $args['use_ajax' ] ) ) {
200
+
201
+ if ( ( empty( $args['term'] ) || $args['term'] === "all" ) ) {
202
+ $tax_args = ! empty ( $cat_args ) ? array( $cat_args ) : $cat_args;
203
+
204
+ } else if ( ! empty( $args['term'] ) ) {
205
+
206
+ $term_args = array(
207
  'taxonomy' => $filter_by,
208
  'field' => 'term_id',
209
+ 'terms' => $args['term']
210
+ );
211
+
212
+ if ( empty ( $cat_args ) ) {
213
+ $tax_args = array( $term_args );
214
+ } else {
215
+ $tax_args = array (
216
+ 'relation' => 'AND',
217
+ array( $cat_args ),
218
+ array( $term_args )
219
+ );
220
+ }
221
+
222
+ }
223
+
224
+ }
225
+
226
+ if ( 'taxonomy' === $args['called_from'] ) {
227
  $tax_args = array(
228
  array(
229
+ 'taxonomy' => $args['filter_by'],
230
  'field' => 'term_id',
231
+ 'terms' => $args['cat']
232
  )
233
  );
234
+ }
 
 
235
 
236
  $query_arg = array(
237
  'post_type' => 'portfolio',