Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
- README.txt +1 -1
- admin/includes/admin-ajax.php +5 -2
- admin/includes/admin-hooks.php +8 -0
- admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +1 -1
- admin/includes/metaboxes/metabox-fields-portfolio-related.php +1 -1
- admin/includes/metaboxes/metabox-fields-portfolio.php +1 -1
- auxin-portfolio.php +2 -2
- includes/classes/class-auxpfo-post-type-portfolio.php +1 -1
- includes/classes/class-auxpfo-template-loader.php +1 -1
- includes/define.php +1 -1
- includes/elements/elementor/class-auxpfo-elementor-elements.php +1 -1
- includes/elements/elementor/recent-portfolios-grid-carousel.php +1 -1
- includes/elements/elementor/recent-portfolios-grid.php +4 -4
- includes/elements/elementor/recent-portfolios-masonry.php +4 -4
- includes/elements/elementor/recent-portfolios-tile-carousel.php +1 -1
- includes/elements/elementor/recent-portfolios-tile.php +4 -4
- includes/elements/recent-portfolios-tile-carousel.php +1 -1
- includes/elements/recent-portfolios.php +6 -5
- includes/general-functions.php +1 -1
- includes/general-hooks.php +3 -3
- public/assets/js/portfolio.js +2 -2
- public/assets/js/portfolio.min.js +2 -2
- public/assets/js/src/init.general.js +1 -1
- public/class-auxpfo.php +1 -1
- public/includes/class-auxpfo-frontend-assets.php +1 -1
- public/templates/archive-portfolio.php +1 -1
- public/templates/elements/recent-portfolio.php +16 -29
- public/templates/single-portfolio.php +1 -1
- public/templates/taxonomy-portfolio-cat.php +1 -1
- public/templates/taxonomy-portfolio-filter.php +1 -1
- public/templates/taxonomy-portfolio-tag.php +1 -1
- public/templates/theme-parts/entry/portfolio-column.php +1 -1
- public/templates/theme-parts/entry/portfolio-land.php +1 -1
- public/templates/theme-parts/entry/portfolio.php +1 -1
- public/templates/theme-parts/tax-portfolio.php +6 -8
- uninstall.php +1 -1
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.0.2
|
10 |
-
Stable tag: 1.7.
|
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: 5.0.2
|
10 |
+
Stable tag: 1.7.9
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
admin/includes/admin-ajax.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
function auxin_recent_portfolios_ajax_handler() {
|
@@ -18,7 +18,10 @@ function auxin_recent_portfolios_ajax_handler() {
|
|
18 |
|
19 |
$args = $_POST['args'];
|
20 |
|
21 |
-
|
|
|
|
|
|
|
22 |
$args['skip_wrappers'] = true;
|
23 |
|
24 |
include auxin_get_template_file( $args['template_part_file'], '', $args['extra_template_path'] );
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
function auxin_recent_portfolios_ajax_handler() {
|
18 |
|
19 |
$args = $_POST['args'];
|
20 |
|
21 |
+
if ( isset( $_POST['term'] ) ){
|
22 |
+
$args['term'] = $_POST['term'];
|
23 |
+
}
|
24 |
+
|
25 |
$args['skip_wrappers'] = true;
|
26 |
|
27 |
include auxin_get_template_file( $args['template_part_file'], '', $args['extra_template_path'] );
|
admin/includes/admin-hooks.php
CHANGED
@@ -17,3 +17,11 @@ function auxpfo_after_plugin_update(){
|
|
17 |
}
|
18 |
}
|
19 |
add_action( "admin_init", "auxpfo_after_plugin_update");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
}
|
19 |
add_action( "admin_init", "auxpfo_after_plugin_update");
|
20 |
+
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Set the uncategorized category for newest portfolios
|
24 |
+
*
|
25 |
+
* @return void
|
26 |
+
*/
|
27 |
+
add_action( 'save_post_portfolio' , 'auxin_set_uncategorized_term' , 10, 2 );
|
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
function auxpfo_metabox_fields_portfolio_metadata(){
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
function auxpfo_metabox_fields_portfolio_metadata(){
|
admin/includes/metaboxes/metabox-fields-portfolio-related.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
function auxpfo_metabox_fields_portfolio_related_metadata(){
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
function auxpfo_metabox_fields_portfolio_related_metadata(){
|
admin/includes/metaboxes/metabox-fields-portfolio.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
auxin-portfolio.php
CHANGED
@@ -7,12 +7,12 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://phlox.pro/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
-
* Version: 1.7.
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://phlox.pro/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
+
* Version: 1.7.9
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
includes/classes/class-auxpfo-post-type-portfolio.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
includes/classes/class-auxpfo-template-loader.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
// no direct access allowed
|
includes/define.php
CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
15 |
|
16 |
|
17 |
|
18 |
-
define( 'AUXPFO_VERSION' , '1.7.
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
15 |
|
16 |
|
17 |
|
18 |
+
define( 'AUXPFO_VERSION' , '1.7.9' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/elementor/class-auxpfo-elementor-elements.php
CHANGED
@@ -11,7 +11,7 @@ namespace Auxin\Plugin\Portfolio\Elementor;
|
|
11 |
* @license LICENSE.txt
|
12 |
* @author
|
13 |
* @link http://averta.net/phlox/
|
14 |
-
* @copyright (c) 2010-
|
15 |
*/
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
* @license LICENSE.txt
|
12 |
* @author
|
13 |
* @link http://averta.net/phlox/
|
14 |
+
* @copyright (c) 2010-2019
|
15 |
*/
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/elements/elementor/recent-portfolios-grid-carousel.php
CHANGED
@@ -4,7 +4,7 @@ namespace Auxin\Plugin\Portfolio\Elementor\Elements;
|
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
-
use Elementor\
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
+
use Elementor\Core\Files\CSS\Post;
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
includes/elements/elementor/recent-portfolios-grid.php
CHANGED
@@ -4,7 +4,7 @@ namespace Auxin\Plugin\Portfolio\Elementor\Elements;
|
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
-
use Elementor\
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
@@ -105,7 +105,7 @@ class Recent_Portfolios_Grid extends Widget_Base {
|
|
105 |
);
|
106 |
|
107 |
// Then create a list
|
108 |
-
$list = array(
|
109 |
|
110 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
111 |
foreach ( $terms as $key => $value ) {
|
@@ -249,11 +249,11 @@ class Recent_Portfolios_Grid extends Widget_Base {
|
|
249 |
'cat',
|
250 |
array(
|
251 |
'label' => __('Categories', 'auxin-portfolio'),
|
252 |
-
'description' => __('Specifies a category that you want to show posts from it.', 'auxin-portfolio' ),
|
253 |
'type' => Controls_Manager::SELECT2,
|
254 |
'multiple' => true,
|
255 |
'options' => $this->get_terms(),
|
256 |
-
'default' => array(
|
257 |
)
|
258 |
);
|
259 |
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
+
use Elementor\Core\Files\CSS\Post;
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
105 |
);
|
106 |
|
107 |
// Then create a list
|
108 |
+
$list = array();
|
109 |
|
110 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
111 |
foreach ( $terms as $key => $value ) {
|
249 |
'cat',
|
250 |
array(
|
251 |
'label' => __('Categories', 'auxin-portfolio'),
|
252 |
+
'description' => __('Specifies a category that you want to show posts from it. In order to choose the all categories leave the field empty', 'auxin-portfolio' ),
|
253 |
'type' => Controls_Manager::SELECT2,
|
254 |
'multiple' => true,
|
255 |
'options' => $this->get_terms(),
|
256 |
+
'default' => array(),
|
257 |
)
|
258 |
);
|
259 |
|
includes/elements/elementor/recent-portfolios-masonry.php
CHANGED
@@ -4,7 +4,7 @@ namespace Auxin\Plugin\Portfolio\Elementor\Elements;
|
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
-
use Elementor\
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
@@ -104,7 +104,7 @@ class Recent_Portfolios_Masonry extends Widget_Base {
|
|
104 |
);
|
105 |
|
106 |
// Then create a list
|
107 |
-
$list = array(
|
108 |
|
109 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
110 |
foreach ( $terms as $key => $value ) {
|
@@ -248,11 +248,11 @@ class Recent_Portfolios_Masonry extends Widget_Base {
|
|
248 |
'cat',
|
249 |
array(
|
250 |
'label' => __('Categories', 'auxin-portfolio'),
|
251 |
-
'description' => __('Specifies a category that you want to show posts from it.', 'auxin-portfolio' ),
|
252 |
'type' => Controls_Manager::SELECT2,
|
253 |
'multiple' => true,
|
254 |
'options' => $this->get_terms(),
|
255 |
-
'default' => array(
|
256 |
)
|
257 |
);
|
258 |
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
+
use Elementor\Core\Files\CSS\Post;
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
104 |
);
|
105 |
|
106 |
// Then create a list
|
107 |
+
$list = array();
|
108 |
|
109 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
110 |
foreach ( $terms as $key => $value ) {
|
248 |
'cat',
|
249 |
array(
|
250 |
'label' => __('Categories', 'auxin-portfolio'),
|
251 |
+
'description' => __('Specifies a category that you want to show posts from it. In order to choose the all categories leave the field empty', 'auxin-portfolio' ),
|
252 |
'type' => Controls_Manager::SELECT2,
|
253 |
'multiple' => true,
|
254 |
'options' => $this->get_terms(),
|
255 |
+
'default' => array(),
|
256 |
)
|
257 |
);
|
258 |
|
includes/elements/elementor/recent-portfolios-tile-carousel.php
CHANGED
@@ -4,7 +4,7 @@ namespace Auxin\Plugin\Portfolio\Elementor\Elements;
|
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
-
use Elementor\
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
+
use Elementor\Core\Files\CSS\Post;
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
includes/elements/elementor/recent-portfolios-tile.php
CHANGED
@@ -4,7 +4,7 @@ namespace Auxin\Plugin\Portfolio\Elementor\Elements;
|
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
-
use Elementor\
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
@@ -105,7 +105,7 @@ class Recent_Portfolios_Tile extends Widget_Base {
|
|
105 |
);
|
106 |
|
107 |
// Then create a list
|
108 |
-
$list = array(
|
109 |
|
110 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
111 |
foreach ( $terms as $key => $value ) {
|
@@ -266,11 +266,11 @@ class Recent_Portfolios_Tile extends Widget_Base {
|
|
266 |
'cat',
|
267 |
array(
|
268 |
'label' => __('Categories', 'auxin-portfolio'),
|
269 |
-
'description' => __('Specifies a category that you want to show posts from it.', 'auxin-portfolio' ),
|
270 |
'type' => Controls_Manager::SELECT2,
|
271 |
'multiple' => true,
|
272 |
'options' => $this->get_terms(),
|
273 |
-
'default' => array(
|
274 |
)
|
275 |
);
|
276 |
|
4 |
use Elementor\Plugin;
|
5 |
use Elementor\Widget_Base;
|
6 |
use Elementor\Controls_Manager;
|
7 |
+
use Elementor\Core\Files\CSS\Post;
|
8 |
use Elementor\Group_Control_Image_Size;
|
9 |
use Elementor\Group_Control_Typography;
|
10 |
use Elementor\Scheme_Color;
|
105 |
);
|
106 |
|
107 |
// Then create a list
|
108 |
+
$list = array();
|
109 |
|
110 |
if ( ! is_wp_error( $terms ) && is_array( $terms ) ){
|
111 |
foreach ( $terms as $key => $value ) {
|
266 |
'cat',
|
267 |
array(
|
268 |
'label' => __('Categories', 'auxin-portfolio'),
|
269 |
+
'description' => __('Specifies a category that you want to show posts from it. In order to choose the all categories leave the field empty', 'auxin-portfolio' ),
|
270 |
'type' => Controls_Manager::SELECT2,
|
271 |
'multiple' => true,
|
272 |
'options' => $this->get_terms(),
|
273 |
+
'default' => array(),
|
274 |
)
|
275 |
);
|
276 |
|
includes/elements/recent-portfolios-tile-carousel.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
function auxin_get_recent_portfolios_tiles_carousel_master_array( $master_array ) {
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
function auxin_get_recent_portfolios_tiles_carousel_master_array( $master_array ) {
|
includes/elements/recent-portfolios.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
function auxin_get_recent_portfolios_master_array( $master_array ) {
|
@@ -60,10 +60,10 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
60 |
'param_name' => 'cat',
|
61 |
'type' => 'aux_taxonomy',
|
62 |
'taxonomy' => 'portfolio-cat',
|
63 |
-
'def_value' => '
|
64 |
'holder' => '',
|
65 |
'class' => 'cat',
|
66 |
-
'value' => '
|
67 |
'admin_label' => false,
|
68 |
'dependency' => array(
|
69 |
'element' => 'filter_by',
|
@@ -857,7 +857,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
857 |
// Defining default attributes
|
858 |
$default_atts = array(
|
859 |
'title' => '', // header title
|
860 |
-
'cat' => '
|
861 |
'num' => '8', // max generated entry
|
862 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
863 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
@@ -915,7 +915,8 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
915 |
'loadmore_per_page' => '',
|
916 |
'term_field' => 'slug',
|
917 |
'base' => 'aux_recent_portfolios_grid',
|
918 |
-
'base_class' => 'aux-widget-recent-portfolios'
|
|
|
919 |
);
|
920 |
|
921 |
$result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
function auxin_get_recent_portfolios_master_array( $master_array ) {
|
60 |
'param_name' => 'cat',
|
61 |
'type' => 'aux_taxonomy',
|
62 |
'taxonomy' => 'portfolio-cat',
|
63 |
+
'def_value' => '',
|
64 |
'holder' => '',
|
65 |
'class' => 'cat',
|
66 |
+
'value' => '', // should use the taxonomy name
|
67 |
'admin_label' => false,
|
68 |
'dependency' => array(
|
69 |
'element' => 'filter_by',
|
857 |
// Defining default attributes
|
858 |
$default_atts = array(
|
859 |
'title' => '', // header title
|
860 |
+
'cat' => '',
|
861 |
'num' => '8', // max generated entry
|
862 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
863 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
915 |
'loadmore_per_page' => '',
|
916 |
'term_field' => 'slug',
|
917 |
'base' => 'aux_recent_portfolios_grid',
|
918 |
+
'base_class' => 'aux-widget-recent-portfolios',
|
919 |
+
'paged' => ''
|
920 |
);
|
921 |
|
922 |
$result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
|
includes/general-functions.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @license LICENSE.txt
|
7 |
* @author
|
8 |
* @link http://averta.net/phlox/
|
9 |
-
* @copyright (c) 2010-
|
10 |
*/
|
11 |
|
12 |
|
6 |
* @license LICENSE.txt
|
7 |
* @author
|
8 |
* @link http://averta.net/phlox/
|
9 |
+
* @copyright (c) 2010-2019
|
10 |
*/
|
11 |
|
12 |
|
includes/general-hooks.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
|
@@ -20,7 +20,7 @@
|
|
20 |
* @license LICENSE.txt
|
21 |
* @author
|
22 |
* @link http://averta.net/phlox/
|
23 |
-
* @copyright (c) 2010-
|
24 |
*/
|
25 |
function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
26 |
|
@@ -3041,7 +3041,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php' ) ) {
|
|
3041 |
function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
|
3042 |
|
3043 |
if( function_exists( 'wp_ulike' ) && $show_like_btn ){
|
3044 |
-
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
|
3045 |
}
|
3046 |
if( $show_share_btn ) {
|
3047 |
?>
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
|
20 |
* @license LICENSE.txt
|
21 |
* @author
|
22 |
* @link http://averta.net/phlox/
|
23 |
+
* @copyright (c) 2010-2019
|
24 |
*/
|
25 |
function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
26 |
|
3041 |
function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
|
3042 |
|
3043 |
if( function_exists( 'wp_ulike' ) && $show_like_btn ){
|
3044 |
+
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike aux-wpulike-portfolio' ) );
|
3045 |
}
|
3046 |
if( $show_share_btn ) {
|
3047 |
?>
|
public/assets/js/portfolio.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Auxin portfolio - v1.7.
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
@@ -21,7 +21,7 @@
|
|
21 |
|
22 |
data = {
|
23 |
action : 'aux_recent_portfolio_filter_content',
|
24 |
-
term : $this.data('
|
25 |
taxonomy: $container.data('taxonomy'),
|
26 |
num : $container.data('num'),
|
27 |
order : $container.data('order'),
|
1 |
+
/*! Auxin portfolio - v1.7.9 (2019-02-24)
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
21 |
|
22 |
data = {
|
23 |
action : 'aux_recent_portfolio_filter_content',
|
24 |
+
term : $this.data('category-id'),
|
25 |
taxonomy: $container.data('taxonomy'),
|
26 |
num : $container.data('num'),
|
27 |
order : $container.data('order'),
|
public/assets/js/portfolio.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Auxin portfolio - v1.7.
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
@@ -6,4 +6,4 @@
|
|
6 |
*
|
7 |
* ================== public/assets/js/src/init.general.js ===================
|
8 |
**/
|
9 |
-
!function($){var filterList=$(".aux-widget-recent-portfolios .aux-ajax-filters li[data-filter]");filterList.on("click",function(e){e.preventDefault();var $this=$(this),$container=$this.parents(".aux-widget-recent-portfolios").find(".aux-ajax-view"),data={action:"aux_recent_portfolio_filter_content",term:$this.data("
|
1 |
+
/*! Auxin portfolio - v1.7.9 (2019-02-24)
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
6 |
*
|
7 |
* ================== public/assets/js/src/init.general.js ===================
|
8 |
**/
|
9 |
+
!function($){var filterList=$(".aux-widget-recent-portfolios .aux-ajax-filters li[data-filter]");filterList.on("click",function(e){e.preventDefault();var $this=$(this),$container=$this.parents(".aux-widget-recent-portfolios").find(".aux-ajax-view"),data={action:"aux_recent_portfolio_filter_content",term:$this.data("category-id"),taxonomy:$container.data("taxonomy"),num:$container.data("num"),order:$container.data("order"),orderby:$container.data("orderby"),n:$container.data("n"),args:eval($container.data("element-id")+"AjaxConfig")};$container.AuxIsotope("removeAll"),$container.AuxIsotope("showLoading"),$.post(auxpfo.ajax_url,data,function(res){if(res){var $data=$(res.data);setTimeout(function(){$data.each(function(index,element){$item=$(element),$item.hasClass("aux-iso-item")&&($container.AuxIsotope("insert",$item),$item.AuxTwoWayHover(),$item.photoSwipe({target:".aux-lightbox-btn",bgOpacity:.97,shareEl:!0}))})},1e3)}})})}(jQuery);
|
public/assets/js/src/init.general.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
|
10 |
data = {
|
11 |
action : 'aux_recent_portfolio_filter_content',
|
12 |
-
term : $this.data('
|
13 |
taxonomy: $container.data('taxonomy'),
|
14 |
num : $container.data('num'),
|
15 |
order : $container.data('order'),
|
9 |
|
10 |
data = {
|
11 |
action : 'aux_recent_portfolio_filter_content',
|
12 |
+
term : $this.data('category-id'),
|
13 |
taxonomy: $container.data('taxonomy'),
|
14 |
num : $container.data('num'),
|
15 |
order : $container.data('order'),
|
public/class-auxpfo.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
if ( ! class_exists( 'AUXPFO' ) ) :
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
if ( ! class_exists( 'AUXPFO' ) ) :
|
public/includes/class-auxpfo-frontend-assets.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
/**
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
/**
|
public/templates/archive-portfolio.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
get_header();?>
|
13 |
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
get_header();?>
|
13 |
|
public/templates/elements/recent-portfolio.php
CHANGED
@@ -5,7 +5,7 @@ function auxin_recent_portfolio( $args= array() ) {
|
|
5 |
|
6 |
$defaults = array (
|
7 |
'title' => '', // header title
|
8 |
-
'cat' => '
|
9 |
'num' => '8', // max generated entry
|
10 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
11 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
@@ -182,38 +182,24 @@ function auxin_recent_portfolio( $args= array() ) {
|
|
182 |
* if the Request is from ajax , $term variable will be empty
|
183 |
*/
|
184 |
|
185 |
-
if ( empty
|
186 |
-
|
187 |
-
if ( empty( $cat ) || $cat == " " || ( is_array( $cat ) && ( sizeof( $cat ) == 1 && in_array( ' ', $cat ) ) ) ) {
|
188 |
-
$tax_args = array();
|
189 |
-
} else if ( is_array( $cat ) ) {
|
190 |
-
$tax_args = array(
|
191 |
-
array(
|
192 |
-
'taxonomy' => 'portfolio-cat',
|
193 |
-
'field' => 'term_id',
|
194 |
-
'terms' => $cat
|
195 |
-
)
|
196 |
-
);
|
197 |
-
} else if ( 'string' === gettype( $cat ) ) {
|
198 |
-
$tax_args = array(
|
199 |
-
array(
|
200 |
-
'taxonomy' => 'portfolio-cat',
|
201 |
-
'field' => 'slug',
|
202 |
-
'terms' => $cat
|
203 |
-
)
|
204 |
-
);
|
205 |
-
}
|
206 |
-
|
207 |
-
} else {
|
208 |
-
|
209 |
$tax_args = array(
|
210 |
array(
|
211 |
'taxonomy' => $filter_by,
|
212 |
-
'field' => '
|
213 |
-
'terms' => $
|
214 |
)
|
215 |
);
|
216 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
218 |
|
219 |
$query_arg = array(
|
@@ -228,7 +214,8 @@ function auxin_recent_portfolio( $args= array() ) {
|
|
228 |
'include_posts__in' => $include, // include posts in this list
|
229 |
'posts__not_in' => $exclude, // exclude posts in this list
|
230 |
'posts__in' => $only_posts__in, // only posts in this list
|
231 |
-
'exclude_without_media' => $exclude_without_media
|
|
|
232 |
);
|
233 |
|
234 |
// pass the args through the auxin query parser
|
5 |
|
6 |
$defaults = array (
|
7 |
'title' => '', // header title
|
8 |
+
'cat' => '',
|
9 |
'num' => '8', // max generated entry
|
10 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
11 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
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(
|
214 |
'include_posts__in' => $include, // include posts in this list
|
215 |
'posts__not_in' => $exclude, // exclude posts in this list
|
216 |
'posts__in' => $only_posts__in, // only posts in this list
|
217 |
+
'exclude_without_media' => $exclude_without_media,
|
218 |
+
'paged' => $paged
|
219 |
);
|
220 |
|
221 |
// pass the args through the auxin query parser
|
public/templates/single-portfolio.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
global $post;
|
13 |
$is_pass_protected = post_password_required();
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
global $post;
|
13 |
$is_pass_protected = post_password_required();
|
public/templates/taxonomy-portfolio-cat.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
-
* @copyright (c) 2010-
|
12 |
*/
|
13 |
get_header();?>
|
14 |
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
+
* @copyright (c) 2010-2019
|
12 |
*/
|
13 |
get_header();?>
|
14 |
|
public/templates/taxonomy-portfolio-filter.php
CHANGED
@@ -8,6 +8,6 @@
|
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
-
* @copyright (c) 2010-
|
12 |
*/
|
13 |
include 'taxonomy-portfolio-cat.php';
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
+
* @copyright (c) 2010-2019
|
12 |
*/
|
13 |
include 'taxonomy-portfolio-cat.php';
|
public/templates/taxonomy-portfolio-tag.php
CHANGED
@@ -8,6 +8,6 @@
|
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
-
* @copyright (c) 2010-
|
12 |
*/
|
13 |
include 'taxonomy-portfolio-cat.php';
|
8 |
* @license LICENSE.txt
|
9 |
* @author
|
10 |
* @link http://averta.net/phlox/
|
11 |
+
* @copyright (c) 2010-2019
|
12 |
*/
|
13 |
include 'taxonomy-portfolio-cat.php';
|
public/templates/theme-parts/entry/portfolio-column.php
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
<?php } ?>
|
54 |
<?php
|
55 |
if( $display_like && function_exists('wp_ulike') ){
|
56 |
-
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
|
57 |
}
|
58 |
?>
|
59 |
<?php if( $show_info ) { ?>
|
53 |
<?php } ?>
|
54 |
<?php
|
55 |
if( $display_like && function_exists('wp_ulike') ){
|
56 |
+
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike aux-wpulike-portfolio-widget' ) );
|
57 |
}
|
58 |
?>
|
59 |
<?php if( $show_info ) { ?>
|
public/templates/theme-parts/entry/portfolio-land.php
CHANGED
@@ -99,7 +99,7 @@
|
|
99 |
if( function_exists('wp_ulike') && auxin_get_option( 'show_portfolio_archive_like_button' ) ) { ?>
|
100 |
<div class="comments-iconic">
|
101 |
<?php
|
102 |
-
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
|
103 |
?>
|
104 |
</div>
|
105 |
<?php } ?>
|
99 |
if( function_exists('wp_ulike') && auxin_get_option( 'show_portfolio_archive_like_button' ) ) { ?>
|
100 |
<div class="comments-iconic">
|
101 |
<?php
|
102 |
+
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike aux-wpulike-portfolio-widget' ) );
|
103 |
?>
|
104 |
</div>
|
105 |
<?php } ?>
|
public/templates/theme-parts/entry/portfolio.php
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
<?php
|
34 |
if( $display_like && function_exists('wp_ulike') ){
|
35 |
echo '<div class="comments-iconic">';
|
36 |
-
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike' ) );
|
37 |
echo '</div>';
|
38 |
}
|
39 |
?>
|
33 |
<?php
|
34 |
if( $display_like && function_exists('wp_ulike') ){
|
35 |
echo '<div class="comments-iconic">';
|
36 |
+
wp_ulike( 'get', array( 'style' => 'wpulike-heart', 'button_type' => 'image', 'wrapper_class' => 'aux-wpulike aux-wpulike-portfolio-widget' ) );
|
37 |
echo '</div>';
|
38 |
}
|
39 |
?>
|
public/templates/theme-parts/tax-portfolio.php
CHANGED
@@ -15,13 +15,11 @@ $per_page = get_option( 'posts_per_page' );
|
|
15 |
|
16 |
// if template type is masonry
|
17 |
if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
18 |
-
global $query_string;
|
19 |
|
20 |
-
$
|
21 |
-
|
22 |
-
$args = array(
|
23 |
'posts_per_page' => -1,
|
24 |
-
'paged' =>
|
25 |
'order_by' => 'menu_order date',
|
26 |
'order' => 'desc',
|
27 |
'display_like' => auxin_get_option( 'show_portfolio_taxonomy_like_button' ),
|
@@ -32,9 +30,9 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
32 |
'show_filters' => false,
|
33 |
'show_title' => true,
|
34 |
'show_info' => true,
|
35 |
-
'filter_by' => $
|
36 |
-
'term' =>
|
37 |
-
'cat' =>
|
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' ),
|
15 |
|
16 |
// if template type is masonry
|
17 |
if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
|
18 |
|
19 |
+
$cat = get_queried_object();
|
20 |
+
$args = array(
|
|
|
21 |
'posts_per_page' => -1,
|
22 |
+
'paged' => $paged,
|
23 |
'order_by' => 'menu_order date',
|
24 |
'order' => 'desc',
|
25 |
'display_like' => auxin_get_option( 'show_portfolio_taxonomy_like_button' ),
|
30 |
'show_filters' => false,
|
31 |
'show_title' => true,
|
32 |
'show_info' => true,
|
33 |
+
'filter_by' => $cat->taxonomy,
|
34 |
+
'term' => '',
|
35 |
+
'cat' => $cat->term_id,
|
36 |
'image_aspect_ratio' => auxin_get_option( 'portfolio_taxonomy_image_aspect_ratio'),
|
37 |
'space' => auxin_get_option( 'portfolio_taxonomy_grid_space') ,
|
38 |
'desktop_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number' ),
|
uninstall.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
-
* @copyright (c) 2010-
|
11 |
*/
|
12 |
|
13 |
// If uninstall not called from WordPress, then exit
|
7 |
* @license LICENSE.txt
|
8 |
* @author
|
9 |
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2019
|
11 |
*/
|
12 |
|
13 |
// If uninstall not called from WordPress, then exit
|