Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.8.6 |
Comparing to | |
See all releases |
Code changes from version 1.8.5 to 1.8.6
- README.txt +6 -3
- auxin-portfolio.php +2 -2
- includes/classes/class-auxpfo-post-type-portfolio.php +8 -4
- includes/define.php +1 -1
- includes/elements/elementor/class-auxpfo-elementor-elements.php +24 -0
- includes/elements/elementor/recent-portfolios-grid-carousel.php +1 -1
- includes/elements/elementor/recent-portfolios-grid.php +1 -1
- includes/elements/elementor/recent-portfolios-masonry.php +2 -2
- includes/elements/recent-portfolios.php +1 -1
- includes/general-hooks.php +2 -2
- public/assets/js/portfolio.js +1 -1
- public/templates/theme-parts/entry/single-portfolio.php +2 -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.
|
10 |
-
Stable tag: 1.8.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -136,7 +136,10 @@ Bugs can be reported in our [support forums](http://support.averta.net/en/item/p
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
-
= Version 1.8.
|
|
|
|
|
|
|
140 |
- [Fix]: Minor bugs fixed.
|
141 |
|
142 |
= Version 1.7.11 / (14.3.2019) =
|
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.3.3
|
10 |
+
Stable tag: 1.8.6
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= Version 1.8.6 / (10.02.2020) =
|
140 |
+
- [Fix]: Adding Gutenburg support for portfolio single pages.
|
141 |
+
|
142 |
+
= Version 1.8.0 / (18.09.2019) =
|
143 |
- [Fix]: Minor bugs fixed.
|
144 |
|
145 |
= Version 1.7.11 / (14.3.2019) =
|
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.
|
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.3.
|
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.6
|
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.3.3
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
includes/classes/class-auxpfo-post-type-portfolio.php
CHANGED
@@ -84,7 +84,8 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
84 |
'show_in_nav_menus' => true,
|
85 |
'menu_icon' => 'dashicons-art',
|
86 |
'supports' => array( 'title','editor','thumbnail','excerpt','page-attributes', 'revisions' ),
|
87 |
-
'has_archive' => $archive_slug
|
|
|
88 |
);
|
89 |
|
90 |
return register_post_type( $this->post_type, apply_filters( "auxin_register_post_type_args_{$this->post_type}", $args ) );
|
@@ -133,7 +134,8 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
133 |
'rewrite' => array(
|
134 |
'slug' => get_theme_mod( $this->prefix.'permalink_'. $this->post_type. '_' .str_replace('-', '_', $tax_cat_name ) .'_structure', $tax_cat_name ),
|
135 |
'hierarchical' => false
|
136 |
-
)
|
|
|
137 |
) )
|
138 |
);
|
139 |
|
@@ -181,7 +183,8 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
181 |
'rewrite' => array(
|
182 |
'slug' => get_theme_mod( $this->prefix.'permalink_'. $this->post_type. '_' .str_replace('-', '_', $tax_tag_name ).'_structure', $tax_tag_name ),
|
183 |
'hierarchical' => false
|
184 |
-
)
|
|
|
185 |
) )
|
186 |
);
|
187 |
|
@@ -226,7 +229,8 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
226 |
'delete_terms' => "delete_{$this->post_type}_terms",
|
227 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
228 |
),
|
229 |
-
'rewrite' => false
|
|
|
230 |
) )
|
231 |
);
|
232 |
|
84 |
'show_in_nav_menus' => true,
|
85 |
'menu_icon' => 'dashicons-art',
|
86 |
'supports' => array( 'title','editor','thumbnail','excerpt','page-attributes', 'revisions' ),
|
87 |
+
'has_archive' => $archive_slug,
|
88 |
+
'show_in_rest' => true
|
89 |
);
|
90 |
|
91 |
return register_post_type( $this->post_type, apply_filters( "auxin_register_post_type_args_{$this->post_type}", $args ) );
|
134 |
'rewrite' => array(
|
135 |
'slug' => get_theme_mod( $this->prefix.'permalink_'. $this->post_type. '_' .str_replace('-', '_', $tax_cat_name ) .'_structure', $tax_cat_name ),
|
136 |
'hierarchical' => false
|
137 |
+
),
|
138 |
+
'show_in_rest' => true
|
139 |
) )
|
140 |
);
|
141 |
|
183 |
'rewrite' => array(
|
184 |
'slug' => get_theme_mod( $this->prefix.'permalink_'. $this->post_type. '_' .str_replace('-', '_', $tax_tag_name ).'_structure', $tax_tag_name ),
|
185 |
'hierarchical' => false
|
186 |
+
),
|
187 |
+
'show_in_rest' => true
|
188 |
) )
|
189 |
);
|
190 |
|
229 |
'delete_terms' => "delete_{$this->post_type}_terms",
|
230 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
231 |
),
|
232 |
+
'rewrite' => false,
|
233 |
+
'show_in_rest' => true
|
234 |
) )
|
235 |
);
|
236 |
|
includes/define.php
CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
15 |
|
16 |
|
17 |
|
18 |
-
define( 'AUXPFO_VERSION' , '1.8.
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
15 |
|
16 |
|
17 |
|
18 |
+
define( 'AUXPFO_VERSION' , '1.8.6' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/elementor/class-auxpfo-elementor-elements.php
CHANGED
@@ -135,6 +135,9 @@ final class Elements {
|
|
135 |
// Register controls, widgets, and categories
|
136 |
add_action( 'auxin/core_elements/elementor/widgets_list', array( $this, 'register_widgets' ) );
|
137 |
|
|
|
|
|
|
|
138 |
// Register Widget Styles
|
139 |
// add_action( 'elementor/frontend/after_enqueue_styles' , array( $this, 'widget_styles' ) );
|
140 |
|
@@ -180,6 +183,27 @@ final class Elements {
|
|
180 |
return $widgets;
|
181 |
}
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
/**
|
184 |
* Enqueue styles.
|
185 |
*
|
135 |
// Register controls, widgets, and categories
|
136 |
add_action( 'auxin/core_elements/elementor/widgets_list', array( $this, 'register_widgets' ) );
|
137 |
|
138 |
+
// Register Elementor for portfolio post type
|
139 |
+
add_action( 'auxin_plugin_updated', array( $this, 'aux_add_portfolio_support' ) );
|
140 |
+
|
141 |
// Register Widget Styles
|
142 |
// add_action( 'elementor/frontend/after_enqueue_styles' , array( $this, 'widget_styles' ) );
|
143 |
|
183 |
return $widgets;
|
184 |
}
|
185 |
|
186 |
+
/**
|
187 |
+
* Register Post type
|
188 |
+
*
|
189 |
+
* Register Elementor for portfolio post type
|
190 |
+
*
|
191 |
+
* @access public
|
192 |
+
*/
|
193 |
+
public function aux_add_portfolio_support() {
|
194 |
+
$post_types = get_option( 'elementor_cpt_support' );
|
195 |
+
|
196 |
+
if( ! $post_types ) {
|
197 |
+
$post_types = [ 'page', 'post', 'portfolio' ];
|
198 |
+
update_option( 'elementor_cpt_support', $post_types );
|
199 |
+
} else if( ! in_array( 'portfolio', $post_types ) ) {
|
200 |
+
$post_types[] = 'portfolio'; //append to array
|
201 |
+
update_option( 'elementor_cpt_support', $post_types );
|
202 |
+
}
|
203 |
+
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
/**
|
208 |
* Enqueue styles.
|
209 |
*
|
includes/elements/elementor/recent-portfolios-grid-carousel.php
CHANGED
@@ -582,7 +582,7 @@ class Recent_Portfolios_Grid_Carousel extends Widget_Base {
|
|
582 |
'space',
|
583 |
array(
|
584 |
'label' => __('Space', 'auxin-portfolio' ),
|
585 |
-
'description' => __('Specifies space between items
|
586 |
'label_block' => true,
|
587 |
'type' => Controls_Manager::NUMBER,
|
588 |
'default' => '30',
|
582 |
'space',
|
583 |
array(
|
584 |
'label' => __('Space', 'auxin-portfolio' ),
|
585 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio' ),
|
586 |
'label_block' => true,
|
587 |
'type' => Controls_Manager::NUMBER,
|
588 |
'default' => '30',
|
includes/elements/elementor/recent-portfolios-grid.php
CHANGED
@@ -702,7 +702,7 @@ class Recent_Portfolios_Grid extends Widget_Base {
|
|
702 |
'space',
|
703 |
array(
|
704 |
'label' => __('Space', 'auxin-portfolio' ),
|
705 |
-
'description' => __('Specifies space between items
|
706 |
'label_block' => true,
|
707 |
'type' => Controls_Manager::NUMBER,
|
708 |
'default' => '30',
|
702 |
'space',
|
703 |
array(
|
704 |
'label' => __('Space', 'auxin-portfolio' ),
|
705 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio' ),
|
706 |
'label_block' => true,
|
707 |
'type' => Controls_Manager::NUMBER,
|
708 |
'default' => '30',
|
includes/elements/elementor/recent-portfolios-masonry.php
CHANGED
@@ -227,7 +227,7 @@ class Recent_Portfolios_Masonry extends Widget_Base {
|
|
227 |
'default' => 'no'
|
228 |
)
|
229 |
);
|
230 |
-
|
231 |
$this->end_controls_section();
|
232 |
|
233 |
/*-------------------------------------------------------------------*/
|
@@ -649,7 +649,7 @@ class Recent_Portfolios_Masonry extends Widget_Base {
|
|
649 |
'space',
|
650 |
array(
|
651 |
'label' => __('Space', 'auxin-portfolio' ),
|
652 |
-
'description' => __('Specifies space between items
|
653 |
'label_block' => true,
|
654 |
'type' => Controls_Manager::NUMBER,
|
655 |
'default' => '30',
|
227 |
'default' => 'no'
|
228 |
)
|
229 |
);
|
230 |
+
|
231 |
$this->end_controls_section();
|
232 |
|
233 |
/*-------------------------------------------------------------------*/
|
649 |
'space',
|
650 |
array(
|
651 |
'label' => __('Space', 'auxin-portfolio' ),
|
652 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio' ),
|
653 |
'label_block' => true,
|
654 |
'type' => Controls_Manager::NUMBER,
|
655 |
'default' => '30',
|
includes/elements/recent-portfolios.php
CHANGED
@@ -659,7 +659,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
659 |
),
|
660 |
array(
|
661 |
'heading' => __('Space', 'auxin-portfolio' ),
|
662 |
-
'description' => __('Specifies space between items
|
663 |
'param_name' => 'space',
|
664 |
'type' => 'textfield',
|
665 |
'value' => '30',
|
659 |
),
|
660 |
array(
|
661 |
'heading' => __('Space', 'auxin-portfolio' ),
|
662 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio' ),
|
663 |
'param_name' => 'space',
|
664 |
'type' => 'textfield',
|
665 |
'value' => '30',
|
includes/general-hooks.php
CHANGED
@@ -2000,7 +2000,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
2000 |
|
2001 |
$options[] = array(
|
2002 |
'title' => __('Space', 'auxin-portfolio'),
|
2003 |
-
'description' => __('Specifies space between items
|
2004 |
'id' => 'portfolio_archive_grid_space',
|
2005 |
'section' => 'portfolio-section-archive',
|
2006 |
'dependency' => array(
|
@@ -2697,7 +2697,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
2697 |
|
2698 |
$options[] = array(
|
2699 |
'title' => __('Space', 'auxin-portfolio'),
|
2700 |
-
'description' => __('Specifies space between items
|
2701 |
'id' => 'portfolio_taxonomy_grid_space',
|
2702 |
'section' => 'portfolio-section-taxonomy',
|
2703 |
'dependency' => array(
|
2000 |
|
2001 |
$options[] = array(
|
2002 |
'title' => __('Space', 'auxin-portfolio'),
|
2003 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio'),
|
2004 |
'id' => 'portfolio_archive_grid_space',
|
2005 |
'section' => 'portfolio-section-archive',
|
2006 |
'dependency' => array(
|
2697 |
|
2698 |
$options[] = array(
|
2699 |
'title' => __('Space', 'auxin-portfolio'),
|
2700 |
+
'description' => __('Specifies horizontal space between items (pixel).', 'auxin-portfolio'),
|
2701 |
'id' => 'portfolio_taxonomy_grid_space',
|
2702 |
'section' => 'portfolio-section-taxonomy',
|
2703 |
'dependency' => array(
|
public/assets/js/portfolio.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Auxin portfolio - v1.8.5 (2020-
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
1 |
+
/*! Auxin portfolio - v1.8.5 (2020-02-10)
|
2 |
* All required plugins
|
3 |
* http://averta.net/phlox/
|
4 |
*/
|
public/templates/theme-parts/entry/single-portfolio.php
CHANGED
@@ -111,7 +111,7 @@
|
|
111 |
echo '<div class="entry-meta-data"><dl>';
|
112 |
|
113 |
if( $display_cat ){
|
114 |
-
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Categories
|
115 |
foreach( $cat_terms as $term ){
|
116 |
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.esc_attr__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
117 |
}
|
@@ -119,7 +119,7 @@
|
|
119 |
}
|
120 |
|
121 |
if( $display_tag ) {
|
122 |
-
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Tags
|
123 |
foreach( $tag_terms as $term ){
|
124 |
echo '<a href="'. get_term_link( $term->slug, $tax_name_tag ) .'" title="'. esc_attr__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
125 |
}
|
111 |
echo '<div class="entry-meta-data"><dl>';
|
112 |
|
113 |
if( $display_cat ){
|
114 |
+
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Categories', 'auxin-portfolio' ) );
|
115 |
foreach( $cat_terms as $term ){
|
116 |
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.esc_attr__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
117 |
}
|
119 |
}
|
120 |
|
121 |
if( $display_tag ) {
|
122 |
+
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Tags', 'auxin-portfolio' ) );
|
123 |
foreach( $tag_terms as $term ){
|
124 |
echo '<a href="'. get_term_link( $term->slug, $tax_name_tag ) .'" title="'. esc_attr__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
125 |
}
|