Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.4.13 |
Comparing to | |
See all releases |
Code changes from version 1.4.9 to 1.4.13
- README.txt +8 -6
- admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +5 -5
- auxin-portfolio.php +5 -5
- includes/define.php +1 -1
- includes/elements/recent-portfolios-tile-carousel.php +16 -1
- includes/elements/recent-portfolios.php +104 -40
- includes/general-hooks.php +69 -6
- public/includes/templates-post.php +1 -1
README.txt
CHANGED
@@ -6,8 +6,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: page-builder, elementor, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.6
|
9 |
-
Tested up to: 4.9.
|
10 |
-
Stable tag: 1.4.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -108,7 +108,7 @@ If you get stuck you can follow these [steps to get support](http://docs.averta.
|
|
108 |
|
109 |
|
110 |
= Will Auxin Portfolio work with my theme? =
|
111 |
-
No,
|
112 |
|
113 |
= Where can I report bugs? =
|
114 |
Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-portfolio).
|
@@ -121,6 +121,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
124 |
= Version 1.4.9 / (13.03.2018) =
|
125 |
- [New]: New option to change the breadcrumb label for a portfolio site
|
126 |
- [Improvement]: Improvement for sticky portfolio metadata in portfolio single page.
|
@@ -184,6 +187,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
184 |
|
185 |
== Upgrade Notice ==
|
186 |
|
187 |
-
= 1.4.
|
188 |
-
- [
|
189 |
-
- [Improvement]: Improvement for sticky portfolio metadata in portfolio single page.
|
6 |
Tags: page-builder, elementor, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.6
|
9 |
+
Tested up to: 4.9.6
|
10 |
+
Stable tag: 1.4.13
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
108 |
|
109 |
|
110 |
= Will Auxin Portfolio work with my theme? =
|
111 |
+
No, this plugin only works on [Phlox Theme](http://averta.net/phlox/)
|
112 |
|
113 |
= Where can I report bugs? =
|
114 |
Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-portfolio).
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= Version 1.4.13 / (16.04.2018) =
|
125 |
+
- [Improvement]: Bug fix and prformance Improvement.
|
126 |
+
|
127 |
= Version 1.4.9 / (13.03.2018) =
|
128 |
- [New]: New option to change the breadcrumb label for a portfolio site
|
129 |
- [Improvement]: Improvement for sticky portfolio metadata in portfolio single page.
|
187 |
|
188 |
== Upgrade Notice ==
|
189 |
|
190 |
+
= 1.4.13 =
|
191 |
+
- [Improvement]: Bug fix and prformance Improvement.
|
|
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php
CHANGED
@@ -100,15 +100,15 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
100 |
),
|
101 |
'top' => array(
|
102 |
'label' => __('Info on Top', 'auxin-portfolio'),
|
103 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
104 |
),
|
105 |
'top-reverse' => array(
|
106 |
'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
|
107 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
108 |
),
|
109 |
'top-down' => array(
|
110 |
'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
|
111 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
112 |
),
|
113 |
'bottom' => array(
|
114 |
'label' => __('Info on Bottom', 'auxin-portfolio'),
|
@@ -116,11 +116,11 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
116 |
),
|
117 |
'bottom-reverse' => array(
|
118 |
'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
|
119 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
120 |
),
|
121 |
'bottom-down' => array(
|
122 |
'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
|
123 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
124 |
)
|
125 |
)
|
126 |
),
|
100 |
),
|
101 |
'top' => array(
|
102 |
'label' => __('Info on Top', 'auxin-portfolio'),
|
103 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top.svg'
|
104 |
),
|
105 |
'top-reverse' => array(
|
106 |
'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
|
107 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top-direction-reverse.svg'
|
108 |
),
|
109 |
'top-down' => array(
|
110 |
'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
|
111 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top-metadata-on-blow.svg'
|
112 |
),
|
113 |
'bottom' => array(
|
114 |
'label' => __('Info on Bottom', 'auxin-portfolio'),
|
116 |
),
|
117 |
'bottom-reverse' => array(
|
118 |
'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
|
119 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide2.svg'
|
120 |
),
|
121 |
'bottom-down' => array(
|
122 |
'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
|
123 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-bottom-metadata-blow.svg'
|
124 |
)
|
125 |
)
|
126 |
),
|
auxin-portfolio.php
CHANGED
@@ -12,14 +12,14 @@
|
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
-
* Version: 1.4.
|
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: 4.9.
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
@@ -51,7 +51,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
-
'version' => '2.
|
55 |
'dependency' => true, // If true, and the plugin is activated, the plugin will be loaded before as a dependeny.
|
56 |
'is_callable' => 'AUXELS' // If set, this callable will be be checked for availability to determine if a plugin is active.
|
57 |
)
|
@@ -61,7 +61,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
61 |
array(
|
62 |
'name' => __('Phlox Pro', 'auxin-portfolio'), // The theme name.
|
63 |
'id' => 'phlox-pro', // The theme id name.
|
64 |
-
'version' => '4.3.
|
65 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
66 |
'file_required' => get_template_directory() . '/auxin-content/init/const.php'
|
67 |
),
|
@@ -69,7 +69,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
69 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
70 |
'id' => 'phlox', // The theme id name.
|
71 |
'update_link' => 'themes.php?theme=phlox',
|
72 |
-
'version' => '2.0.
|
73 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
74 |
'file_required' => get_template_directory() . '/auxin-content/init/const.php'
|
75 |
)
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
+
* Version: 1.4.13
|
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: 4.9.6
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
+
'version' => '2.1.3', // E.g. 1.0.0. If set, the active plugin must be this version or higher.
|
55 |
'dependency' => true, // If true, and the plugin is activated, the plugin will be loaded before as a dependeny.
|
56 |
'is_callable' => 'AUXELS' // If set, this callable will be be checked for availability to determine if a plugin is active.
|
57 |
)
|
61 |
array(
|
62 |
'name' => __('Phlox Pro', 'auxin-portfolio'), // The theme name.
|
63 |
'id' => 'phlox-pro', // The theme id name.
|
64 |
+
'version' => '4.3.14', // E.g. 1.0.0. If set, the active theme must be this version or higher.
|
65 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
66 |
'file_required' => get_template_directory() . '/auxin-content/init/const.php'
|
67 |
),
|
69 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
70 |
'id' => 'phlox', // The theme id name.
|
71 |
'update_link' => 'themes.php?theme=phlox',
|
72 |
+
'version' => '2.0.14', // E.g. 1.0.0. If set, the active theme must be this version or higher.
|
73 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
74 |
'file_required' => get_template_directory() . '/auxin-content/init/const.php'
|
75 |
)
|
includes/define.php
CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
15 |
|
16 |
|
17 |
|
18 |
-
define( 'AUXPFO_VERSION' , '1.4.
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
15 |
|
16 |
|
17 |
|
18 |
+
define( 'AUXPFO_VERSION' , '1.4.13' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/recent-portfolios-tile-carousel.php
CHANGED
@@ -442,6 +442,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
442 |
'display_title' => true,
|
443 |
'show_info' => true,
|
444 |
'extra_classes' => '',
|
|
|
445 |
'extra_column_classes' => '',
|
446 |
'custom_el_id' => '',
|
447 |
'template_part_file' => 'theme-parts/entry/post-tile',
|
@@ -463,6 +464,20 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
463 |
|
464 |
ob_start();
|
465 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
global $wp_query;
|
467 |
|
468 |
if( ! $use_wp_query ){
|
@@ -473,7 +488,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
473 |
'orderby' => $order_by,
|
474 |
'order' => $order,
|
475 |
'offset' => $offset,
|
476 |
-
'
|
477 |
'post_status' => 'publish',
|
478 |
'posts_per_page' => $num * $page,
|
479 |
'ignore_sticky_posts' => 1,
|
442 |
'display_title' => true,
|
443 |
'show_info' => true,
|
444 |
'extra_classes' => '',
|
445 |
+
'tax_args' => '',
|
446 |
'extra_column_classes' => '',
|
447 |
'custom_el_id' => '',
|
448 |
'template_part_file' => 'theme-parts/entry/post-tile',
|
464 |
|
465 |
ob_start();
|
466 |
|
467 |
+
if( gettype( $cat ) === "string" ) {
|
468 |
+
if( empty( $cat ) || $cat == " " ) {
|
469 |
+
$tax_args = array();
|
470 |
+
} else {
|
471 |
+
$tax_args = array(
|
472 |
+
array(
|
473 |
+
'taxonomy' => 'portfolio-cat',
|
474 |
+
'field' => 'term_id',
|
475 |
+
'terms' => explode( ",", $cat)
|
476 |
+
)
|
477 |
+
);
|
478 |
+
}
|
479 |
+
}
|
480 |
+
|
481 |
global $wp_query;
|
482 |
|
483 |
if( ! $use_wp_query ){
|
488 |
'orderby' => $order_by,
|
489 |
'order' => $order,
|
490 |
'offset' => $offset,
|
491 |
+
'tax_query' => $tax_args,
|
492 |
'post_status' => 'publish',
|
493 |
'posts_per_page' => $num * $page,
|
494 |
'ignore_sticky_posts' => 1,
|
includes/elements/recent-portfolios.php
CHANGED
@@ -553,7 +553,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
553 |
'weight' => '',
|
554 |
'group' => '',
|
555 |
'edit_field_class' => ''
|
556 |
-
),
|
557 |
array(
|
558 |
'heading' => __('Deeplink', 'auxin-portfolio' ),
|
559 |
'description' => __('Enables the deeplink feature, it updates URL based on page and filter status.', 'auxin-portfolio' ),
|
@@ -611,6 +611,62 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
611 |
'group' => '',
|
612 |
'edit_field_class' => ''
|
613 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
array(
|
615 |
'heading' => __('Space', 'auxin-portfolio' ),
|
616 |
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio' ),
|
@@ -769,10 +825,16 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
769 |
'tax_args' => '',
|
770 |
'tag' => '',
|
771 |
'extra_classes' => '',
|
|
|
772 |
'custom_el_id' => '',
|
|
|
773 |
'reset_query' => true,
|
774 |
'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
|
775 |
'wp_query_args' => array(), // additional wp_query args
|
|
|
|
|
|
|
|
|
776 |
'base_class' => 'aux-widget-recent-portfolios'
|
777 |
);
|
778 |
|
@@ -781,24 +843,20 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
781 |
|
782 |
ob_start();
|
783 |
|
784 |
-
|
785 |
if( gettype( $cat ) === "string" ) {
|
786 |
if( empty( $cat ) || $cat == " " ) {
|
787 |
-
|
788 |
-
} else {
|
789 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
790 |
}
|
791 |
}
|
792 |
-
|
793 |
-
if(!empty($tax_args)) {
|
794 |
-
$tax_args = array(
|
795 |
-
array(
|
796 |
-
'taxonomy' => 'portfolio-cat',
|
797 |
-
'field' => 'term_id',
|
798 |
-
'terms' => $cat
|
799 |
-
)
|
800 |
-
);
|
801 |
-
}
|
802 |
|
803 |
global $wp_query;
|
804 |
|
@@ -812,7 +870,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
812 |
'paged' => $paged,
|
813 |
'tax_query' => $tax_args,
|
814 |
'post_status' => 'publish',
|
815 |
-
'posts_per_page' => $
|
816 |
'ignore_sticky_posts' => 1,
|
817 |
|
818 |
'include_posts__in' => $include, // include posts in this list
|
@@ -833,15 +891,15 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
833 |
$wp_query = new WP_Query( auxin_parse_query_args( $args ) );
|
834 |
}
|
835 |
|
836 |
-
$post_counter
|
837 |
-
$items_classes
|
838 |
-
$isoxin_attrs
|
839 |
-
$item_classes
|
840 |
-
$isotope_id
|
841 |
-
$phone_break_point
|
842 |
-
$crop
|
843 |
-
$isotop_layout
|
844 |
-
$is_tiles
|
845 |
|
846 |
// widget header ------------------------------
|
847 |
echo $result['widget_header'];
|
@@ -904,14 +962,14 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
904 |
|
905 |
// generate columns class
|
906 |
if ( $is_tiles ) {
|
907 |
-
$items_classes = 'aux-tiles-layout aux-isotope-animated aux-portfolio-columns';
|
908 |
$column_media_width = auxin_get_content_column_width( 4, $space );
|
909 |
} else {
|
910 |
$tablet_cnum = ('inherit' == $tablet_cnum ) ? $desktop_cnum : $tablet_cnum ;
|
911 |
// $tablet_cnum = 'inherit' != $tablet_cnum ? $tablet_cnum : $desktop_cnum;
|
912 |
// $phone_cnum = 'inherit' != $phone_cnum ? $phone_cnum : $tablet_cnum;
|
913 |
|
914 |
-
$items_classes = 'aux-isotope-layout aux-layout-grid aux-isotope-animated aux-no-gutter aux-portfolio-columns aux-row';
|
915 |
$items_classes .= ' aux-de-col' . $desktop_cnum;
|
916 |
$items_classes .= ' aux-tb-col' . $tablet_cnum;
|
917 |
$items_classes .= ' aux-mb-col' . $phone_cnum;
|
@@ -937,7 +995,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
937 |
if( $have_posts ){
|
938 |
|
939 |
// show filters
|
940 |
-
if ( $show_filters ) {
|
941 |
|
942 |
$terms = get_terms(
|
943 |
array(
|
@@ -987,16 +1045,9 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
987 |
}
|
988 |
|
989 |
}
|
|
|
|
|
990 |
?>
|
991 |
-
<div id="<?php echo esc_attr( $isotope_id ); ?>" class="<?php echo esc_attr( $items_classes ); ?>" <?php echo $isoxin_attrs ?>>
|
992 |
-
<div class="aux-items-loading">
|
993 |
-
<div class="aux-loading-loop">
|
994 |
-
<svg class="aux-circle" width="100%" height="100%" viewBox="0 0 42 42">
|
995 |
-
<circle class="aux-stroke-bg" r="20" cx="21" cy="21" fill="none"></circle>
|
996 |
-
<circle class="aux-progress" r="20" cx="21" cy="21" fill="none" transform="rotate(-90 21 21)"></circle>
|
997 |
-
</svg>
|
998 |
-
</div>
|
999 |
-
</div>
|
1000 |
|
1001 |
<?php
|
1002 |
while ( $wp_query->have_posts() ) {
|
@@ -1077,6 +1128,10 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1077 |
$item_classes .= ' aux-entry-boxed';
|
1078 |
}
|
1079 |
|
|
|
|
|
|
|
|
|
1080 |
// Lightbox attributes
|
1081 |
if ( $show_lightbox ) {
|
1082 |
$attach_id = get_post_thumbnail_id($post->ID);
|
@@ -1093,9 +1148,17 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1093 |
include auxin_get_template_file( 'theme-parts/entry/portfolio', $tamplate_file, AUXPFO()->template_path() );
|
1094 |
?></div><?php
|
1095 |
}
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1099 |
|
1100 |
if ( $is_boxed ) {
|
1101 |
// Set background color style
|
@@ -1116,6 +1179,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1116 |
|
1117 |
} // End if have_posts
|
1118 |
|
|
|
1119 |
if( $reset_query ){
|
1120 |
wp_reset_query();
|
1121 |
}
|
553 |
'weight' => '',
|
554 |
'group' => '',
|
555 |
'edit_field_class' => ''
|
556 |
+
),
|
557 |
array(
|
558 |
'heading' => __('Deeplink', 'auxin-portfolio' ),
|
559 |
'description' => __('Enables the deeplink feature, it updates URL based on page and filter status.', 'auxin-portfolio' ),
|
611 |
'group' => '',
|
612 |
'edit_field_class' => ''
|
613 |
),
|
614 |
+
array(
|
615 |
+
'heading' => __('Load More Type','auxin-portfolio' ),
|
616 |
+
'description' => '',
|
617 |
+
'param_name' => 'loadmore_type',
|
618 |
+
'type' => 'aux_visual_select',
|
619 |
+
'value' => '',
|
620 |
+
'class' => 'loadmore_type',
|
621 |
+
'admin_label' => false,
|
622 |
+
'dependency' => array(
|
623 |
+
'element' => 'paginate',
|
624 |
+
'value' => array( '0' )
|
625 |
+
),
|
626 |
+
'weight' => '',
|
627 |
+
'group' => '' ,
|
628 |
+
'edit_field_class' => '',
|
629 |
+
'choices' => array(
|
630 |
+
'' => array(
|
631 |
+
'label' => __('None', 'auxin-portfolio' ),
|
632 |
+
'image' => AUXIN_URL . 'images/visual-select/load-more-none.svg'
|
633 |
+
),
|
634 |
+
'scroll' => array(
|
635 |
+
'label' => __('Infinite Scroll', 'auxin-portfolio' ),
|
636 |
+
'image' => AUXIN_URL . 'images/visual-select/load-more-infinite.svg'
|
637 |
+
),
|
638 |
+
'next' => array(
|
639 |
+
'label' => __('Next Button', 'auxin-portfolio' ),
|
640 |
+
'image' => AUXIN_URL . 'images/visual-select/load-more-button.svg'
|
641 |
+
),
|
642 |
+
'next-prev' => array(
|
643 |
+
'label' => __('Next Prev', 'auxin-portfolio' ),
|
644 |
+
'image' => AUXIN_URL . 'images/visual-select/load-more-next-prev.svg'
|
645 |
+
)
|
646 |
+
)
|
647 |
+
),
|
648 |
+
array(
|
649 |
+
'heading' => __('Load More Label', 'auxin-portfolio'),
|
650 |
+
'description' => '',
|
651 |
+
'param_name' => 'loadmore_label',
|
652 |
+
'type' => 'dropdown',
|
653 |
+
'def_value' => 'text',
|
654 |
+
'holder' => '',
|
655 |
+
'class' => 'loadmore_label',
|
656 |
+
'value' => array(
|
657 |
+
'text' => __('Text', 'auxin-portfolio'),
|
658 |
+
'arrow' => __('Arrow', 'auxin-portfolio'),
|
659 |
+
'text-arrow' => __('Text & Arrow', 'auxin-portfolio')
|
660 |
+
),
|
661 |
+
'admin_label' => false,
|
662 |
+
'dependency' => array(
|
663 |
+
'element' => 'paginate',
|
664 |
+
'value' => array( '0' )
|
665 |
+
),
|
666 |
+
'weight' => '',
|
667 |
+
'group' => 'Layout',
|
668 |
+
'edit_field_class' => ''
|
669 |
+
),
|
670 |
array(
|
671 |
'heading' => __('Space', 'auxin-portfolio' ),
|
672 |
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio' ),
|
825 |
'tax_args' => '',
|
826 |
'tag' => '',
|
827 |
'extra_classes' => '',
|
828 |
+
'extra_column_classes' => '',
|
829 |
'custom_el_id' => '',
|
830 |
+
'universal_id' => '',
|
831 |
'reset_query' => true,
|
832 |
'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
|
833 |
'wp_query_args' => array(), // additional wp_query args
|
834 |
+
'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
|
835 |
+
'loadmore_label' => 'text',
|
836 |
+
'loadmore_per_page' => '',
|
837 |
+
'base' => 'aux_recent_portfolios_grid',
|
838 |
'base_class' => 'aux-widget-recent-portfolios'
|
839 |
);
|
840 |
|
843 |
|
844 |
ob_start();
|
845 |
|
|
|
846 |
if( gettype( $cat ) === "string" ) {
|
847 |
if( empty( $cat ) || $cat == " " ) {
|
848 |
+
$tax_args = array();
|
849 |
+
} else {
|
850 |
+
$tax_args = array(
|
851 |
+
array(
|
852 |
+
'taxonomy' => 'portfolio-cat',
|
853 |
+
'field' => 'term_id',
|
854 |
+
'terms' => explode( ",", $cat)
|
855 |
+
)
|
856 |
+
);
|
857 |
}
|
858 |
}
|
859 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
860 |
|
861 |
global $wp_query;
|
862 |
|
870 |
'paged' => $paged,
|
871 |
'tax_query' => $tax_args,
|
872 |
'post_status' => 'publish',
|
873 |
+
'posts_per_page' => $num,
|
874 |
'ignore_sticky_posts' => 1,
|
875 |
|
876 |
'include_posts__in' => $include, // include posts in this list
|
891 |
$wp_query = new WP_Query( auxin_parse_query_args( $args ) );
|
892 |
}
|
893 |
|
894 |
+
$post_counter = 0;
|
895 |
+
$items_classes = '';
|
896 |
+
$isoxin_attrs = '';
|
897 |
+
$item_classes = '';
|
898 |
+
$isotope_id = uniqid();
|
899 |
+
$phone_break_point = 767;
|
900 |
+
$crop = true;
|
901 |
+
$isotop_layout = 'fitRows';
|
902 |
+
$is_tiles = 'tiles' == $layout;
|
903 |
|
904 |
// widget header ------------------------------
|
905 |
echo $result['widget_header'];
|
962 |
|
963 |
// generate columns class
|
964 |
if ( $is_tiles ) {
|
965 |
+
$items_classes = 'aux-tiles-layout aux-ajax-view aux-isotope-animated aux-portfolio-columns';
|
966 |
$column_media_width = auxin_get_content_column_width( 4, $space );
|
967 |
} else {
|
968 |
$tablet_cnum = ('inherit' == $tablet_cnum ) ? $desktop_cnum : $tablet_cnum ;
|
969 |
// $tablet_cnum = 'inherit' != $tablet_cnum ? $tablet_cnum : $desktop_cnum;
|
970 |
// $phone_cnum = 'inherit' != $phone_cnum ? $phone_cnum : $tablet_cnum;
|
971 |
|
972 |
+
$items_classes = 'aux-isotope-layout aux-ajax-view aux-layout-grid aux-isotope-animated aux-no-gutter aux-portfolio-columns aux-row';
|
973 |
$items_classes .= ' aux-de-col' . $desktop_cnum;
|
974 |
$items_classes .= ' aux-tb-col' . $tablet_cnum;
|
975 |
$items_classes .= ' aux-mb-col' . $phone_cnum;
|
995 |
if( $have_posts ){
|
996 |
|
997 |
// show filters
|
998 |
+
if ( $show_filters && ! $skip_wrappers ) {
|
999 |
|
1000 |
$terms = get_terms(
|
1001 |
array(
|
1045 |
}
|
1046 |
|
1047 |
}
|
1048 |
+
|
1049 |
+
echo ! $skip_wrappers ? sprintf( '<div id="%s" data-element-id="%s" class="%s" %s> %s', esc_attr( $isotope_id ), esc_attr( $universal_id ), esc_attr( $items_classes ), $isoxin_attrs, '<div class="aux-items-loading"><div class="aux-loading-loop"><svg class="aux-circle" width="100%" height="100%" viewBox="0 0 42 42"><circle class="aux-stroke-bg" r="20" cx="21" cy="21" fill="none"></circle><circle class="aux-progress" r="20" cx="21" cy="21" fill="none" transform="rotate(-90 21 21)"></circle></svg></div></div>' ) : '';
|
1050 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
|
1052 |
<?php
|
1053 |
while ( $wp_query->have_posts() ) {
|
1128 |
$item_classes .= ' aux-entry-boxed';
|
1129 |
}
|
1130 |
|
1131 |
+
if( ! empty( $loadmore_type ) ) {
|
1132 |
+
$item_classes .= ' aux-ajax-item';
|
1133 |
+
}
|
1134 |
+
|
1135 |
// Lightbox attributes
|
1136 |
if ( $show_lightbox ) {
|
1137 |
$attach_id = get_post_thumbnail_id($post->ID);
|
1148 |
include auxin_get_template_file( 'theme-parts/entry/portfolio', $tamplate_file, AUXPFO()->template_path() );
|
1149 |
?></div><?php
|
1150 |
}
|
1151 |
+
|
1152 |
+
if( ! $skip_wrappers ) {
|
1153 |
+
// End tag for aux-ajax-view wrapper
|
1154 |
+
echo '</div>';
|
1155 |
+
// Execute load more functionality
|
1156 |
+
echo auxin_get_load_more_controller( $loadmore_type, $loadmore_label );
|
1157 |
+
|
1158 |
+
} else {
|
1159 |
+
// Get post counter in the query
|
1160 |
+
echo '<span class="aux-post-count hidden">'.$wp_query->post_count.'</span>';
|
1161 |
+
}
|
1162 |
|
1163 |
if ( $is_boxed ) {
|
1164 |
// Set background color style
|
1179 |
|
1180 |
} // End if have_posts
|
1181 |
|
1182 |
+
|
1183 |
if( $reset_query ){
|
1184 |
wp_reset_query();
|
1185 |
}
|
includes/general-hooks.php
CHANGED
@@ -69,15 +69,15 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
69 |
),
|
70 |
'top' => array(
|
71 |
'label' => __('Info on Top', 'auxin-portfolio'),
|
72 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
73 |
),
|
74 |
'top-reverse' => array(
|
75 |
'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
|
76 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
77 |
),
|
78 |
'top-down' => array(
|
79 |
'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
|
80 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
81 |
),
|
82 |
'bottom' => array(
|
83 |
'label' => __('Info on Bottom', 'auxin-portfolio'),
|
@@ -85,11 +85,11 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
85 |
),
|
86 |
'bottom-reverse' => array(
|
87 |
'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
|
88 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
89 |
),
|
90 |
'bottom-down' => array(
|
91 |
'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
|
92 |
-
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-
|
93 |
)
|
94 |
),
|
95 |
'default' => 'right',
|
@@ -104,6 +104,26 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
104 |
)
|
105 |
);
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
$options[] = array(
|
108 |
'title' => __('Overview Alignment', 'auxin-portfolio'),
|
109 |
'description' => __('Specifies alignment for the project overview and corresponding information.', 'auxin-portfolio'),
|
@@ -1561,6 +1581,29 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
1561 |
'type' => 'text'
|
1562 |
);
|
1563 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1564 |
$options[] = array(
|
1565 |
'title' => __('Related Items Type', 'auxin-portfolio'),
|
1566 |
'description' => __('Specifies the appearance type for related portfolio element.', 'auxin-portfolio'),
|
@@ -2016,6 +2059,26 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
2016 |
'default' => '4',
|
2017 |
);
|
2018 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019 |
$options[] = array(
|
2020 |
'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
|
2021 |
'description' => '',
|
@@ -3008,7 +3071,7 @@ add_action( 'auxin_single_portfolio_actions', 'auxpfo_add_single_portfolio_actio
|
|
3008 |
* @return string
|
3009 |
*/
|
3010 |
function auxpfo_add_single_portfolio_overview( $overview ){
|
3011 |
-
echo $overview;
|
3012 |
}
|
3013 |
add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_overview', 10, 2 );
|
3014 |
|
69 |
),
|
70 |
'top' => array(
|
71 |
'label' => __('Info on Top', 'auxin-portfolio'),
|
72 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top.svg'
|
73 |
),
|
74 |
'top-reverse' => array(
|
75 |
'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
|
76 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top-direction-reverse.svg'
|
77 |
),
|
78 |
'top-down' => array(
|
79 |
'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
|
80 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-top-metadata-on-blow.svg'
|
81 |
),
|
82 |
'bottom' => array(
|
83 |
'label' => __('Info on Bottom', 'auxin-portfolio'),
|
85 |
),
|
86 |
'bottom-reverse' => array(
|
87 |
'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
|
88 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide2.svg'
|
89 |
),
|
90 |
'bottom-down' => array(
|
91 |
'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
|
92 |
+
'image' => AUXIN_URL . 'images/visual-select/portfolio-single-info-on-bottom-metadata-blow.svg'
|
93 |
)
|
94 |
),
|
95 |
'default' => 'right',
|
104 |
)
|
105 |
);
|
106 |
|
107 |
+
$options[] = array(
|
108 |
+
'title' => __( 'Custom Max Width', THEME_DOMAIN ),
|
109 |
+
'description' => __( 'Specifies the maximum width of website.', THEME_DOMAIN ),
|
110 |
+
'id' => 'portfolio_max_width_layout',
|
111 |
+
'section' => 'portfolio-section-single',
|
112 |
+
'type' => 'select',
|
113 |
+
'transport' => 'postMessage',
|
114 |
+
'dependency' => array(),
|
115 |
+
'choices' => array(
|
116 |
+
'' => __( 'Default Site Max Width', THEME_DOMAIN ),
|
117 |
+
'nd' => __( '1000 Pixels', THEME_DOMAIN ),
|
118 |
+
'hd' => __( '1200 Pixels', THEME_DOMAIN ),
|
119 |
+
'xhd' => __( '1400 Pixels', THEME_DOMAIN ),
|
120 |
+
's-fhd' => __( '1600 Pixels', THEME_DOMAIN ),
|
121 |
+
'fhd' => __( '1900 Pixels', THEME_DOMAIN )
|
122 |
+
),
|
123 |
+
'post_js' => '$( "body.single-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
|
124 |
+
'default' => ''
|
125 |
+
);
|
126 |
+
|
127 |
$options[] = array(
|
128 |
'title' => __('Overview Alignment', 'auxin-portfolio'),
|
129 |
'description' => __('Specifies alignment for the project overview and corresponding information.', 'auxin-portfolio'),
|
1581 |
'type' => 'text'
|
1582 |
);
|
1583 |
|
1584 |
+
$options[] = array(
|
1585 |
+
'title' => __( 'Image aspect ratio', THEME_DOMAIN ),
|
1586 |
+
'description' => '',
|
1587 |
+
'id' => 'portfolio_related_image_aspect_ratio',
|
1588 |
+
'section' => 'portfolio-section-single-related',
|
1589 |
+
'dependency' => array(
|
1590 |
+
array(
|
1591 |
+
'id' => 'show_portfolio_related_posts',
|
1592 |
+
'value' => array('1'),
|
1593 |
+
'operator'=> ''
|
1594 |
+
)
|
1595 |
+
),
|
1596 |
+
'type' => 'select',
|
1597 |
+
'choices' => array(
|
1598 |
+
'0.75' => __( 'Horizontal 4:3' , THEME_DOMAIN ),
|
1599 |
+
'0.56' => __( 'Horizontal 16:9', THEME_DOMAIN ),
|
1600 |
+
'1.00' => __( 'Square 1:1' , THEME_DOMAIN ),
|
1601 |
+
'1.33' => __( 'Vertical 3:4' , THEME_DOMAIN )
|
1602 |
+
),
|
1603 |
+
'transport' => 'refresh',
|
1604 |
+
'default' => '0.56',
|
1605 |
+
);
|
1606 |
+
|
1607 |
$options[] = array(
|
1608 |
'title' => __('Related Items Type', 'auxin-portfolio'),
|
1609 |
'description' => __('Specifies the appearance type for related portfolio element.', 'auxin-portfolio'),
|
2059 |
'default' => '4',
|
2060 |
);
|
2061 |
|
2062 |
+
$options[] = array(
|
2063 |
+
'title' => __( 'Custom Max Width', THEME_DOMAIN ),
|
2064 |
+
'description' => __( 'Specifies the maximum width of website.', THEME_DOMAIN ),
|
2065 |
+
'id' => 'portfolio_archive_max_width_layout',
|
2066 |
+
'section' => 'portfolio-section-archive',
|
2067 |
+
'type' => 'select',
|
2068 |
+
'transport' => 'postMessage',
|
2069 |
+
'dependency' => array(),
|
2070 |
+
'choices' => array(
|
2071 |
+
'' => __( 'Default Site Max Width', THEME_DOMAIN ),
|
2072 |
+
'nd' => __( '1000 Pixels', THEME_DOMAIN ),
|
2073 |
+
'hd' => __( '1200 Pixels', THEME_DOMAIN ),
|
2074 |
+
'xhd' => __( '1400 Pixels', THEME_DOMAIN ),
|
2075 |
+
's-fhd' => __( '1600 Pixels', THEME_DOMAIN ),
|
2076 |
+
'fhd' => __( '1900 Pixels', THEME_DOMAIN )
|
2077 |
+
),
|
2078 |
+
'post_js' => '$( "body.post-type-archive-portfolio" ).removeClass( "aux-nd aux-hd aux-xhd aux-s-fhd aux-fhd" ).addClass( "aux-" + to ); $(window).trigger("resize");',
|
2079 |
+
'default' => ''
|
2080 |
+
);
|
2081 |
+
|
2082 |
$options[] = array(
|
2083 |
'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
|
2084 |
'description' => '',
|
3071 |
* @return string
|
3072 |
*/
|
3073 |
function auxpfo_add_single_portfolio_overview( $overview ){
|
3074 |
+
echo apply_filters( 'the_content', $overview );
|
3075 |
}
|
3076 |
add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_overview', 10, 2 );
|
3077 |
|
public/includes/templates-post.php
CHANGED
@@ -33,7 +33,7 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
33 |
'wp_query_args' => array(),
|
34 |
'content_layout' => 'default', // entry-boxed
|
35 |
'post_info_position' => 'after-title',
|
36 |
-
'image_aspect_ratio' => 0.
|
37 |
'preview_mode' => auxin_get_option( 'portfolio_related_posts_preview_mode', 'grid' ),
|
38 |
'grid_table_hover' => 'bgimage-bgcolor',
|
39 |
'ignore_media' => false, // whether to ignore media for this
|
33 |
'wp_query_args' => array(),
|
34 |
'content_layout' => 'default', // entry-boxed
|
35 |
'post_info_position' => 'after-title',
|
36 |
+
'image_aspect_ratio' => auxin_get_option('portfolio_related_image_aspect_ratio', 0.56 ),
|
37 |
'preview_mode' => auxin_get_option( 'portfolio_related_posts_preview_mode', 'grid' ),
|
38 |
'grid_table_hover' => 'bgimage-bgcolor',
|
39 |
'ignore_media' => false, // whether to ignore media for this
|