Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.14 to 1.5.0
- README.txt +6 -3
- auxin-portfolio.php +3 -3
- includes/define.php +1 -1
- includes/elements/recent-portfolios-tile-carousel.php +5 -5
- includes/elements/recent-portfolios.php +70 -12
- includes/general-functions.php +9 -9
- includes/general-hooks.php +13 -13
- public/includes/templates-post.php +2 -2
- public/templates/theme-parts/entry/portfolio-land.php +1 -1
- public/templates/theme-parts/entry/single-portfolio.php +22 -23
- public/templates/theme-parts/single-portfolio.php +1 -1
README.txt
CHANGED
@@ -4,10 +4,10 @@ Donate link: http://averta.net/
|
|
4 |
License: GPLv3
|
5 |
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.
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 4.9.6
|
10 |
-
Stable tag: 1.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -120,6 +120,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
123 |
= Version 1.4.14 / (24.04.2018) =
|
124 |
- [Improvement]: Improvement in load more functionality.
|
125 |
|
@@ -189,5 +192,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
189 |
|
190 |
== Upgrade Notice ==
|
191 |
|
192 |
-
= 1.
|
193 |
- [Improvement]: Bug fix and prformance Improvement.
|
4 |
License: GPLv3
|
5 |
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.4
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 4.9.6
|
10 |
+
Stable tag: 1.5.0
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= Version 1.5.0 / (15.05.2018) =
|
124 |
+
- [Improvement]: Bug fix and under the hood improvements.
|
125 |
+
|
126 |
= Version 1.4.14 / (24.04.2018) =
|
127 |
- [Improvement]: Improvement in load more functionality.
|
128 |
|
192 |
|
193 |
== Upgrade Notice ==
|
194 |
|
195 |
+
= 1.5.0 =
|
196 |
- [Improvement]: Bug fix and prformance Improvement.
|
auxin-portfolio.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
-
* Version: 1.
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
@@ -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.
|
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.5.0
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
61 |
array(
|
62 |
'name' => __('Phlox Pro', 'auxin-portfolio'), // The theme name.
|
63 |
'id' => 'phlox-pro', // The theme id name.
|
64 |
+
'version' => '4.4.0', // 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.1.0', // 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.
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
15 |
|
16 |
|
17 |
|
18 |
+
define( 'AUXPFO_VERSION' , '1.5.0' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/recent-portfolios-tile-carousel.php
CHANGED
@@ -465,16 +465,16 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
465 |
if( gettype( $cat ) === "string" ) {
|
466 |
if( empty( $cat ) || $cat == " " ) {
|
467 |
$tax_args = array();
|
468 |
-
} else {
|
469 |
$tax_args = array(
|
470 |
array(
|
471 |
'taxonomy' => 'portfolio-cat',
|
472 |
'field' => 'term_id',
|
473 |
'terms' => explode( ",", $cat)
|
474 |
)
|
475 |
-
);
|
476 |
}
|
477 |
-
}
|
478 |
|
479 |
global $wp_query;
|
480 |
|
@@ -488,7 +488,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
488 |
'offset' => $offset,
|
489 |
'tax_query' => $tax_args,
|
490 |
'post_status' => 'publish',
|
491 |
-
'posts_per_page' => $num * $page,
|
492 |
'ignore_sticky_posts' => 1,
|
493 |
'include_posts__in' => $include, // include posts in this liat
|
494 |
'posts__not_in' => $exclude, // exclude posts in this list
|
@@ -658,7 +658,7 @@ function auxin_widget_recent_portfolios_tiles_carousel_callback( $atts, $shortco
|
|
658 |
echo '</div>';
|
659 |
if( $wp_query->found_posts > $loadmore_per_page ) {
|
660 |
echo auxin_get_load_more_controller( $loadmore_type );
|
661 |
-
}
|
662 |
|
663 |
} else {
|
664 |
// Get post counter in the query
|
465 |
if( gettype( $cat ) === "string" ) {
|
466 |
if( empty( $cat ) || $cat == " " ) {
|
467 |
$tax_args = array();
|
468 |
+
} else {
|
469 |
$tax_args = array(
|
470 |
array(
|
471 |
'taxonomy' => 'portfolio-cat',
|
472 |
'field' => 'term_id',
|
473 |
'terms' => explode( ",", $cat)
|
474 |
)
|
475 |
+
);
|
476 |
}
|
477 |
+
}
|
478 |
|
479 |
global $wp_query;
|
480 |
|
488 |
'offset' => $offset,
|
489 |
'tax_query' => $tax_args,
|
490 |
'post_status' => 'publish',
|
491 |
+
'posts_per_page' => $num ? $num * $page : -1,
|
492 |
'ignore_sticky_posts' => 1,
|
493 |
'include_posts__in' => $include, // include posts in this liat
|
494 |
'posts__not_in' => $exclude, // exclude posts in this list
|
658 |
echo '</div>';
|
659 |
if( $wp_query->found_posts > $loadmore_per_page ) {
|
660 |
echo auxin_get_load_more_controller( $loadmore_type );
|
661 |
+
}
|
662 |
|
663 |
} else {
|
664 |
// Get post counter in the query
|
includes/elements/recent-portfolios.php
CHANGED
@@ -229,6 +229,63 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
229 |
'group' => '',
|
230 |
'edit_field_class' => ''
|
231 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
array(
|
233 |
'heading' => __('Image aspect ratio', 'auxin-portfolio'),
|
234 |
'description' => '',
|
@@ -553,7 +610,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' ),
|
@@ -644,7 +701,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
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' => '',
|
@@ -666,7 +723,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
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' ),
|
@@ -807,6 +864,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
807 |
'hide_transition_duration' => '600',
|
808 |
'hide_between_delay' => '30',
|
809 |
'item_style' => 'classic',
|
|
|
810 |
'tiles_item_style' => 'overlay',
|
811 |
'entry_background_color' => '',
|
812 |
'entry_border_color' => '',
|
@@ -844,17 +902,17 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
844 |
if( gettype( $cat ) === "string" ) {
|
845 |
if( empty( $cat ) || $cat == " " ) {
|
846 |
$tax_args = array();
|
847 |
-
} else {
|
848 |
$tax_args = array(
|
849 |
array(
|
850 |
'taxonomy' => 'portfolio-cat',
|
851 |
'field' => 'term_id',
|
852 |
'terms' => explode( ",", $cat)
|
853 |
)
|
854 |
-
);
|
855 |
}
|
856 |
}
|
857 |
-
|
858 |
|
859 |
global $wp_query;
|
860 |
|
@@ -868,7 +926,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
868 |
'paged' => $paged,
|
869 |
'tax_query' => $tax_args,
|
870 |
'post_status' => 'publish',
|
871 |
-
'posts_per_page' => $num,
|
872 |
'ignore_sticky_posts' => 1,
|
873 |
|
874 |
'include_posts__in' => $include, // include posts in this list
|
@@ -897,7 +955,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
897 |
$phone_break_point = 767;
|
898 |
$crop = true;
|
899 |
$isotop_layout = 'fitRows';
|
900 |
-
$is_tiles = 'tiles' == $layout;
|
901 |
|
902 |
// widget header ------------------------------
|
903 |
echo $result['widget_header'];
|
@@ -1051,7 +1109,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1051 |
while ( $wp_query->have_posts() ) {
|
1052 |
|
1053 |
// break the loop if it is reached to the limit
|
1054 |
-
if ( $num
|
1055 |
$post_counter ++;
|
1056 |
} else {
|
1057 |
break;
|
@@ -1062,7 +1120,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1062 |
$item_classes = '';
|
1063 |
|
1064 |
if ( $is_tiles ) {
|
1065 |
-
$item_pattern_info = auxin_get_tile_pattern(
|
1066 |
$post_vars = auxpfo_get_portfolio_config(
|
1067 |
$post,
|
1068 |
array(
|
@@ -1128,7 +1186,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
1128 |
|
1129 |
if( ! empty( $loadmore_type ) ) {
|
1130 |
$item_classes .= ' aux-ajax-item';
|
1131 |
-
}
|
1132 |
|
1133 |
// Lightbox attributes
|
1134 |
if ( $show_lightbox ) {
|
@@ -1158,7 +1216,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
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
|
229 |
'group' => '',
|
230 |
'edit_field_class' => ''
|
231 |
),
|
232 |
+
|
233 |
+
array(
|
234 |
+
'heading' => __( 'Post Tile styles','auxin-portfolio' ),
|
235 |
+
'description' => '',
|
236 |
+
'param_name' => 'tile_style_pattern',
|
237 |
+
'type' => 'aux_visual_select',
|
238 |
+
'def_value' => 'default',
|
239 |
+
'holder' => '',
|
240 |
+
'class' => 'tile_style_pattern',
|
241 |
+
'admin_label' => false,
|
242 |
+
'dependency' => array(
|
243 |
+
'element' => 'layout',
|
244 |
+
'value' => array( 'tiles' )
|
245 |
+
),
|
246 |
+
'weight' => '',
|
247 |
+
'group' => '',
|
248 |
+
'edit_field_class' => '',
|
249 |
+
'choices' => array(
|
250 |
+
'default' => array(
|
251 |
+
'label' => __( 'Default', 'auxin-portfolio' ),
|
252 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-5.svg'
|
253 |
+
),
|
254 |
+
'pattern-1' => array(
|
255 |
+
'label' => __( 'Pattern 1', 'auxin-portfolio' ),
|
256 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-3.svg'
|
257 |
+
),
|
258 |
+
'pattern-2' => array(
|
259 |
+
'label' => __( 'Pattern 2', 'auxin-portfolio' ),
|
260 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-6.svg'
|
261 |
+
),
|
262 |
+
'pattern-3' => array(
|
263 |
+
'label' => __( 'Pattern 3', 'auxin-portfolio' ),
|
264 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-7.svg'
|
265 |
+
),
|
266 |
+
'pattern-4' => array(
|
267 |
+
'label' => __( 'Pattern 4', 'auxin-portfolio' ),
|
268 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-8.svg'
|
269 |
+
),
|
270 |
+
'pattern-5' => array(
|
271 |
+
'label' => __( 'Pattern 5', 'auxin-portfolio' ),
|
272 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-4.svg'
|
273 |
+
),
|
274 |
+
'pattern-6' => array(
|
275 |
+
'label' => __('Pattern 6', 'auxin-portfolio' ),
|
276 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-1.svg'
|
277 |
+
),
|
278 |
+
'pattern-7' => array(
|
279 |
+
'label' => __('Pattern 7', 'auxin-portfolio' ),
|
280 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-2.svg'
|
281 |
+
),
|
282 |
+
'pattern-8' => array(
|
283 |
+
'label' => __('Pattern 8', 'auxin-portfolio' ),
|
284 |
+
'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-2.svg'
|
285 |
+
),
|
286 |
+
)
|
287 |
+
),
|
288 |
+
|
289 |
array(
|
290 |
'heading' => __('Image aspect ratio', 'auxin-portfolio'),
|
291 |
'description' => '',
|
610 |
'weight' => '',
|
611 |
'group' => '',
|
612 |
'edit_field_class' => ''
|
613 |
+
),
|
614 |
array(
|
615 |
'heading' => __('Deeplink', 'auxin-portfolio' ),
|
616 |
'description' => __('Enables the deeplink feature, it updates URL based on page and filter status.', 'auxin-portfolio' ),
|
701 |
'image' => AUXIN_URL . 'images/visual-select/load-more-next-prev.svg'
|
702 |
)
|
703 |
)
|
704 |
+
),
|
705 |
array(
|
706 |
'heading' => __('Load More Label', 'auxin-portfolio'),
|
707 |
'description' => '',
|
723 |
'weight' => '',
|
724 |
'group' => 'Layout',
|
725 |
'edit_field_class' => ''
|
726 |
+
),
|
727 |
array(
|
728 |
'heading' => __('Space', 'auxin-portfolio' ),
|
729 |
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio' ),
|
864 |
'hide_transition_duration' => '600',
|
865 |
'hide_between_delay' => '30',
|
866 |
'item_style' => 'classic',
|
867 |
+
'tile_style_pattern' => 'default',
|
868 |
'tiles_item_style' => 'overlay',
|
869 |
'entry_background_color' => '',
|
870 |
'entry_border_color' => '',
|
902 |
if( gettype( $cat ) === "string" ) {
|
903 |
if( empty( $cat ) || $cat == " " ) {
|
904 |
$tax_args = array();
|
905 |
+
} else {
|
906 |
$tax_args = array(
|
907 |
array(
|
908 |
'taxonomy' => 'portfolio-cat',
|
909 |
'field' => 'term_id',
|
910 |
'terms' => explode( ",", $cat)
|
911 |
)
|
912 |
+
);
|
913 |
}
|
914 |
}
|
915 |
+
|
916 |
|
917 |
global $wp_query;
|
918 |
|
926 |
'paged' => $paged,
|
927 |
'tax_query' => $tax_args,
|
928 |
'post_status' => 'publish',
|
929 |
+
'posts_per_page' => $num ? $num : -1,
|
930 |
'ignore_sticky_posts' => 1,
|
931 |
|
932 |
'include_posts__in' => $include, // include posts in this list
|
955 |
$phone_break_point = 767;
|
956 |
$crop = true;
|
957 |
$isotop_layout = 'fitRows';
|
958 |
+
$is_tiles = 'tiles' == $layout;
|
959 |
|
960 |
// widget header ------------------------------
|
961 |
echo $result['widget_header'];
|
1109 |
while ( $wp_query->have_posts() ) {
|
1110 |
|
1111 |
// break the loop if it is reached to the limit
|
1112 |
+
if ( ! $num || $post_counter < $num ) {
|
1113 |
$post_counter ++;
|
1114 |
} else {
|
1115 |
break;
|
1120 |
$item_classes = '';
|
1121 |
|
1122 |
if ( $is_tiles ) {
|
1123 |
+
$item_pattern_info = auxin_get_tile_pattern( $tile_style_pattern, $post_counter - 1, $column_media_width );
|
1124 |
$post_vars = auxpfo_get_portfolio_config(
|
1125 |
$post,
|
1126 |
array(
|
1186 |
|
1187 |
if( ! empty( $loadmore_type ) ) {
|
1188 |
$item_classes .= ' aux-ajax-item';
|
1189 |
+
}
|
1190 |
|
1191 |
// Lightbox attributes
|
1192 |
if ( $show_lightbox ) {
|
1216 |
} else {
|
1217 |
// Get post counter in the query
|
1218 |
echo '<span class="aux-post-count hidden">'.$wp_query->post_count.'</span>';
|
1219 |
+
}
|
1220 |
|
1221 |
if ( $is_boxed ) {
|
1222 |
// Set background color style
|
includes/general-functions.php
CHANGED
@@ -85,18 +85,18 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
|
|
85 |
|
86 |
|
87 |
// get the post media layout
|
88 |
-
if( 'default' == $media_layout = auxin_get_post_meta( $post
|
89 |
$media_layout = auxin_get_option( 'portfolio_single_media_layout' );
|
90 |
}
|
91 |
|
92 |
// get side position
|
93 |
-
if( 'default' == $side_pos = auxin_get_post_meta( $post
|
94 |
// $side_pos = is_rtl() ? 'left' : 'right';
|
95 |
$side_pos = auxin_get_option( 'portfolio_single_side_pos', 'right' );
|
96 |
}
|
97 |
|
98 |
// whether to show ro hide the portfolio metadata info
|
99 |
-
if( 'default' == $has_side_meta = auxin_get_post_meta( $post
|
100 |
$has_side_meta = auxin_get_option( 'portfolio_single_display_side_info_meta', '1' );
|
101 |
}
|
102 |
$args['has_side_meta'] = auxin_is_true( $has_side_meta );
|
@@ -114,24 +114,24 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
|
|
114 |
$side_pos = $string_dash_pos ? substr( $side_pos, 0, $string_dash_pos ) : $side_pos;
|
115 |
|
116 |
// get display_cat
|
117 |
-
if( 'default' == $display_cat = auxin_get_post_meta( $post
|
118 |
$display_cat = auxin_get_option( 'portfolio_single_display_category', true );
|
119 |
}
|
120 |
$args['display_cat'] = auxin_is_true( $display_cat );
|
121 |
|
122 |
// get display_tag
|
123 |
-
if( 'default' == $display_tag = auxin_get_post_meta( $post
|
124 |
$display_tag = auxin_get_option( 'portfolio_single_display_tag', true );
|
125 |
}
|
126 |
$args['display_tag'] = auxin_is_true( $display_tag );
|
127 |
|
128 |
-
if( 'default' == $_alignment = auxin_get_post_meta( $post
|
129 |
$_alignment = auxin_get_option( 'portfolios_overview_info_alignment', true );
|
130 |
}
|
131 |
$args['post_class'] .= 'center' == $_alignment ? ' aux-text-align-' . $_alignment : '';
|
132 |
|
133 |
if ( 'bottom' != $side_pos ) {
|
134 |
-
if( 'default' == $sticky_sidebar = auxin_get_post_meta( $post
|
135 |
$sticky_sidebar = auxin_get_option( 'portfolio_single_sticky_sidebar', false );
|
136 |
}
|
137 |
// sticky sidebar
|
@@ -205,7 +205,7 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
|
|
205 |
'</a>'.
|
206 |
'</div>';
|
207 |
} else {
|
208 |
-
$args['has_attach'] = ! auxin_get_post_meta( $post
|
209 |
|
210 |
if( $args['has_attach'] ){
|
211 |
$args['the_media'] = get_the_post_thumbnail( $post->ID, 'large' );
|
@@ -214,7 +214,7 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
|
|
214 |
}
|
215 |
|
216 |
// Don't display post title if title bar is enable to prevent duplicated title in single page
|
217 |
-
if( 'archive' !== $request_from && auxin_get_post_meta( $post
|
218 |
$args['show_title'] = false;
|
219 |
}
|
220 |
|
85 |
|
86 |
|
87 |
// get the post media layout
|
88 |
+
if( 'default' == $media_layout = auxin_get_post_meta( $post, '_media_layout', 'default' ) ){
|
89 |
$media_layout = auxin_get_option( 'portfolio_single_media_layout' );
|
90 |
}
|
91 |
|
92 |
// get side position
|
93 |
+
if( 'default' == $side_pos = auxin_get_post_meta( $post, '_side_info_pos', 'default' ) ){
|
94 |
// $side_pos = is_rtl() ? 'left' : 'right';
|
95 |
$side_pos = auxin_get_option( 'portfolio_single_side_pos', 'right' );
|
96 |
}
|
97 |
|
98 |
// whether to show ro hide the portfolio metadata info
|
99 |
+
if( 'default' == $has_side_meta = auxin_get_post_meta( $post, '_show_side_info_meta', 'default' ) ){
|
100 |
$has_side_meta = auxin_get_option( 'portfolio_single_display_side_info_meta', '1' );
|
101 |
}
|
102 |
$args['has_side_meta'] = auxin_is_true( $has_side_meta );
|
114 |
$side_pos = $string_dash_pos ? substr( $side_pos, 0, $string_dash_pos ) : $side_pos;
|
115 |
|
116 |
// get display_cat
|
117 |
+
if( 'default' == $display_cat = auxin_get_post_meta( $post, '_side_info_dicplay_cat', 'default' ) ){
|
118 |
$display_cat = auxin_get_option( 'portfolio_single_display_category', true );
|
119 |
}
|
120 |
$args['display_cat'] = auxin_is_true( $display_cat );
|
121 |
|
122 |
// get display_tag
|
123 |
+
if( 'default' == $display_tag = auxin_get_post_meta( $post, '_side_info_dicplay_tag', 'default' ) ){
|
124 |
$display_tag = auxin_get_option( 'portfolio_single_display_tag', true );
|
125 |
}
|
126 |
$args['display_tag'] = auxin_is_true( $display_tag );
|
127 |
|
128 |
+
if( 'default' == $_alignment = auxin_get_post_meta( $post, '_overview_info_alignment', 'default' ) ){
|
129 |
$_alignment = auxin_get_option( 'portfolios_overview_info_alignment', true );
|
130 |
}
|
131 |
$args['post_class'] .= 'center' == $_alignment ? ' aux-text-align-' . $_alignment : '';
|
132 |
|
133 |
if ( 'bottom' != $side_pos ) {
|
134 |
+
if( 'default' == $sticky_sidebar = auxin_get_post_meta( $post, '_sticky_sidebar', 'default' ) ){
|
135 |
$sticky_sidebar = auxin_get_option( 'portfolio_single_sticky_sidebar', false );
|
136 |
}
|
137 |
// sticky sidebar
|
205 |
'</a>'.
|
206 |
'</div>';
|
207 |
} else {
|
208 |
+
$args['has_attach'] = ! auxin_get_post_meta( $post, '_no_feature_image_in_single', 0 );
|
209 |
|
210 |
if( $args['has_attach'] ){
|
211 |
$args['the_media'] = get_the_post_thumbnail( $post->ID, 'large' );
|
214 |
}
|
215 |
|
216 |
// Don't display post title if title bar is enable to prevent duplicated title in single page
|
217 |
+
if( 'archive' !== $request_from && auxin_get_post_meta( $post, 'aux_title_bar_show', 0 ) ) {
|
218 |
$args['show_title'] = false;
|
219 |
}
|
220 |
|
includes/general-hooks.php
CHANGED
@@ -3071,7 +3071,7 @@ add_action( 'auxin_single_portfolio_actions', 'auxpfo_add_single_portfolio_actio
|
|
3071 |
* @return string
|
3072 |
*/
|
3073 |
function auxpfo_add_single_portfolio_overview( $overview ){
|
3074 |
-
echo
|
3075 |
}
|
3076 |
add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_overview', 10, 2 );
|
3077 |
|
@@ -3085,34 +3085,34 @@ add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_over
|
|
3085 |
function auxpfo_single_portfolio_related_items( $post ){
|
3086 |
|
3087 |
// get display_related option
|
3088 |
-
if( 'default' == $display_related = auxin_get_post_meta( $post
|
3089 |
$display_related = auxin_get_option( 'show_portfolio_related_posts', true );
|
3090 |
}
|
3091 |
|
3092 |
if( auxin_is_true( $display_related ) || is_customize_preview() ){
|
3093 |
|
3094 |
// get title_label option
|
3095 |
-
if( 'default' == $related_title_label = auxin_get_post_meta( $post
|
3096 |
$related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) );
|
3097 |
}
|
3098 |
|
3099 |
// get desktop_cnum option
|
3100 |
-
if( 'default' == $desktop_cnum = auxin_get_post_meta( $post
|
3101 |
$desktop_cnum = auxin_get_option( 'portfolio_related_posts_column_number', true );
|
3102 |
}
|
3103 |
|
3104 |
// get preview_mode option
|
3105 |
-
if( 'default' == $preview_mode = auxin_get_post_meta( $post
|
3106 |
$preview_mode = auxin_get_option( 'portfolio_related_posts_preview_mode', true );
|
3107 |
}
|
3108 |
|
3109 |
// get alignment option
|
3110 |
-
if( 'default' == $do_align_center = auxin_get_post_meta( $post
|
3111 |
$do_align_center = auxin_get_option( 'portfolio_related_posts_align_center', true );
|
3112 |
}
|
3113 |
|
3114 |
// get display_categories option
|
3115 |
-
if( 'default' == $display_categories = auxin_get_post_meta( $post
|
3116 |
$display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
|
3117 |
}
|
3118 |
$display_categories = auxin_is_true( $display_categories )? true: false;
|
@@ -3142,23 +3142,23 @@ function auxpfo_single_portfolio_related_items( $post ){
|
|
3142 |
*/
|
3143 |
function auxpfo_single_portfolio_show_all_portfolios( $post ){
|
3144 |
|
3145 |
-
$btn_display = auxin_get_post_meta( $post
|
3146 |
$btn_display = 'default' === $btn_display ? auxin_get_option( "portfolio_single_all_related_items_btn_display", "1" ) : $btn_display ;
|
3147 |
|
3148 |
-
$btn_url_type = auxin_get_post_meta( $post
|
3149 |
$btn_url_type = 'default' === $btn_url_type ? auxin_get_option( "portfolio_single_all_related_items_url_type", 'hide' ) : $btn_url_type ;
|
3150 |
|
3151 |
|
3152 |
if( "custom" === $btn_url_type ){
|
3153 |
|
3154 |
-
$portfolio_link = auxin_get_post_meta( $post
|
3155 |
$portfolio_link = empty( $portfolio_link ) ? auxin_get_option( "portfolio_single_all_related_items_btn_url", "" ) : $portfolio_link ;
|
3156 |
|
3157 |
} else {
|
3158 |
$portfolio_link = get_post_type_archive_link( "portfolio" );
|
3159 |
}
|
3160 |
|
3161 |
-
$portfolio_label = auxin_get_post_meta( $post
|
3162 |
$portfolio_label = empty( $portfolio_label ) ? auxin_get_option( "portfolio_single_all_related_items_btn_label", "" ) : $portfolio_label ;
|
3163 |
|
3164 |
if( ! empty( $portfolio_label ) && auxin_is_true( $btn_display ) ){
|
@@ -3186,9 +3186,9 @@ function auxpfo_single_portfolio_show_all_portfolios( $post ){
|
|
3186 |
|
3187 |
global $post;
|
3188 |
|
3189 |
-
$sticky_sidebar = auxin_get_post_meta( $post
|
3190 |
$sticky_sidebar = 'default' === $sticky_sidebar ? auxin_get_option( 'portfolio_single_sticky_sidebar', false ) : $sticky_sidebar;
|
3191 |
-
$info_layout_bg = auxin_get_post_meta( $post
|
3192 |
|
3193 |
if ( auxin_is_true( $sticky_sidebar ) || ! empty( $info_layout_bg ) ) {
|
3194 |
add_action( 'auxin_portfolio_single_after_article_primary', 'auxpfo_single_portfolio_related_items' );
|
3071 |
* @return string
|
3072 |
*/
|
3073 |
function auxpfo_add_single_portfolio_overview( $overview ){
|
3074 |
+
echo do_shortcode( $overview );
|
3075 |
}
|
3076 |
add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_overview', 10, 2 );
|
3077 |
|
3085 |
function auxpfo_single_portfolio_related_items( $post ){
|
3086 |
|
3087 |
// get display_related option
|
3088 |
+
if( 'default' == $display_related = auxin_get_post_meta( $post, '_display_related', 'default' ) ) {
|
3089 |
$display_related = auxin_get_option( 'show_portfolio_related_posts', true );
|
3090 |
}
|
3091 |
|
3092 |
if( auxin_is_true( $display_related ) || is_customize_preview() ){
|
3093 |
|
3094 |
// get title_label option
|
3095 |
+
if( 'default' == $related_title_label = auxin_get_post_meta( $post, '_related_posts_label', 'default' ) ) {
|
3096 |
$related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) );
|
3097 |
}
|
3098 |
|
3099 |
// get desktop_cnum option
|
3100 |
+
if( 'default' == $desktop_cnum = auxin_get_post_meta( $post, '_related_posts_column_number', 'default' ) ) {
|
3101 |
$desktop_cnum = auxin_get_option( 'portfolio_related_posts_column_number', true );
|
3102 |
}
|
3103 |
|
3104 |
// get preview_mode option
|
3105 |
+
if( 'default' == $preview_mode = auxin_get_post_meta( $post, '_related_posts_preview_mode', 'default' ) ) {
|
3106 |
$preview_mode = auxin_get_option( 'portfolio_related_posts_preview_mode', true );
|
3107 |
}
|
3108 |
|
3109 |
// get alignment option
|
3110 |
+
if( 'default' == $do_align_center = auxin_get_post_meta( $post, '_related_posts_align_center', 'default' ) ) {
|
3111 |
$do_align_center = auxin_get_option( 'portfolio_related_posts_align_center', true );
|
3112 |
}
|
3113 |
|
3114 |
// get display_categories option
|
3115 |
+
if( 'default' == $display_categories = auxin_get_post_meta( $post, '_related_posts_display_taxonomies', 'default' ) ) {
|
3116 |
$display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
|
3117 |
}
|
3118 |
$display_categories = auxin_is_true( $display_categories )? true: false;
|
3142 |
*/
|
3143 |
function auxpfo_single_portfolio_show_all_portfolios( $post ){
|
3144 |
|
3145 |
+
$btn_display = auxin_get_post_meta( $post, '_related_posts_all_items_btn_display', 'default' ) ;
|
3146 |
$btn_display = 'default' === $btn_display ? auxin_get_option( "portfolio_single_all_related_items_btn_display", "1" ) : $btn_display ;
|
3147 |
|
3148 |
+
$btn_url_type = auxin_get_post_meta( $post, '_related_posts_all_items_url_type', 'default' ) ;
|
3149 |
$btn_url_type = 'default' === $btn_url_type ? auxin_get_option( "portfolio_single_all_related_items_url_type", 'hide' ) : $btn_url_type ;
|
3150 |
|
3151 |
|
3152 |
if( "custom" === $btn_url_type ){
|
3153 |
|
3154 |
+
$portfolio_link = auxin_get_post_meta( $post, '_related_posts_all_items_url_type_custom', '' ) ;
|
3155 |
$portfolio_link = empty( $portfolio_link ) ? auxin_get_option( "portfolio_single_all_related_items_btn_url", "" ) : $portfolio_link ;
|
3156 |
|
3157 |
} else {
|
3158 |
$portfolio_link = get_post_type_archive_link( "portfolio" );
|
3159 |
}
|
3160 |
|
3161 |
+
$portfolio_label = auxin_get_post_meta( $post, '_related_posts_all_items_btn_label', '' ) ;
|
3162 |
$portfolio_label = empty( $portfolio_label ) ? auxin_get_option( "portfolio_single_all_related_items_btn_label", "" ) : $portfolio_label ;
|
3163 |
|
3164 |
if( ! empty( $portfolio_label ) && auxin_is_true( $btn_display ) ){
|
3186 |
|
3187 |
global $post;
|
3188 |
|
3189 |
+
$sticky_sidebar = auxin_get_post_meta( $post, '_sticky_sidebar', 'default' );
|
3190 |
$sticky_sidebar = 'default' === $sticky_sidebar ? auxin_get_option( 'portfolio_single_sticky_sidebar', false ) : $sticky_sidebar;
|
3191 |
+
$info_layout_bg = auxin_get_post_meta( $post, '_side_info_color' );
|
3192 |
|
3193 |
if ( auxin_is_true( $sticky_sidebar ) || ! empty( $info_layout_bg ) ) {
|
3194 |
add_action( 'auxin_portfolio_single_after_article_primary', 'auxpfo_single_portfolio_related_items' );
|
public/includes/templates-post.php
CHANGED
@@ -63,14 +63,14 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
63 |
);
|
64 |
|
65 |
// get snap option
|
66 |
-
if( 'default' == $snap_related_item = auxin_get_post_meta( $post
|
67 |
$snap_related_item = auxin_get_option( 'portfolio_related_posts_snap_items', false );
|
68 |
}
|
69 |
$defaults['carousel_space'] = $snap_related_item = auxin_is_true( $snap_related_item )? 0: 30;
|
70 |
|
71 |
// whether the wapper is full width or not
|
72 |
// get full width option
|
73 |
-
if( 'default' == $full_width = auxin_get_post_meta( $post
|
74 |
$full_width = auxin_get_option( 'portfolio_related_posts_full_width', false );
|
75 |
}
|
76 |
|
63 |
);
|
64 |
|
65 |
// get snap option
|
66 |
+
if( 'default' == $snap_related_item = auxin_get_post_meta( $post, '_related_posts_snap_items', 'default' ) ) {
|
67 |
$snap_related_item = auxin_get_option( 'portfolio_related_posts_snap_items', false );
|
68 |
}
|
69 |
$defaults['carousel_space'] = $snap_related_item = auxin_is_true( $snap_related_item )? 0: 30;
|
70 |
|
71 |
// whether the wapper is full width or not
|
72 |
// get full width option
|
73 |
+
if( 'default' == $full_width = auxin_get_post_meta( $post, '_related_posts_full_width', 'default' ) ) {
|
74 |
$full_width = auxin_get_option( 'portfolio_related_posts_full_width', false );
|
75 |
}
|
76 |
|
public/templates/theme-parts/entry/portfolio-land.php
CHANGED
@@ -63,7 +63,7 @@
|
|
63 |
// $content_listing_length = is_category() || is_tag() ? auxin_get_option( 'post_taxonomy_archive_on_listing_length', 255 ) : auxin_get_option( 'excerpt_len', 255 );
|
64 |
|
65 |
// get overview context
|
66 |
-
$_overview = auxin_get_post_meta( $post
|
67 |
|
68 |
if( has_excerpt() ) {
|
69 |
the_excerpt();
|
63 |
// $content_listing_length = is_category() || is_tag() ? auxin_get_option( 'post_taxonomy_archive_on_listing_length', 255 ) : auxin_get_option( 'excerpt_len', 255 );
|
64 |
|
65 |
// get overview context
|
66 |
+
$_overview = auxin_get_post_meta( $post, '_overview' );
|
67 |
|
68 |
if( has_excerpt() ) {
|
69 |
the_excerpt();
|
public/templates/theme-parts/entry/single-portfolio.php
CHANGED
@@ -23,9 +23,9 @@
|
|
23 |
|
24 |
if( $show_side ) {
|
25 |
|
26 |
-
$info_layout_bg = auxin_get_post_meta( $post
|
27 |
-
$info_layout_font_color = auxin_get_post_meta( $post
|
28 |
-
$info_pos = auxin_get_post_meta( $post
|
29 |
|
30 |
if ( ! empty( $info_layout_bg ) ){
|
31 |
$layout_bg = ' background-color: ' . $info_layout_bg . ';';
|
@@ -59,7 +59,7 @@
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
-
$lunch_btn_url = auxin_get_post_meta( $post
|
63 |
if( !empty( $lunch_btn_url ) ) {
|
64 |
$display_lunch = true;
|
65 |
} else { $display_lunch = false; }
|
@@ -85,28 +85,27 @@
|
|
85 |
<?php } else { ?>
|
86 |
<div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
|
87 |
<?php }
|
88 |
-
if( $_overview_title = auxin_get_post_meta( $post
|
89 |
echo '<div class="entry-side-title"><h1>'. do_shortcode( $_overview_title ). '</h1></div>';
|
90 |
}
|
91 |
?>
|
92 |
-
<div class="entry-overview-container">
|
93 |
<?php
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
}
|
102 |
-
if( $show_actions ) {
|
103 |
-
echo '<div class="entry-actions">';
|
104 |
-
do_action('auxin_single_portfolio_actions', $show_like_btn, $show_share_btn );
|
105 |
-
echo '</div>';
|
106 |
-
}
|
107 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
?>
|
109 |
-
</div>
|
110 |
<?php
|
111 |
if( $is_side_meta_set ){ // start of displaying condition
|
112 |
echo '<div class="entry-meta-data-container">';
|
@@ -129,7 +128,7 @@
|
|
129 |
}
|
130 |
|
131 |
foreach ( $metafields as $metadata_info ) {
|
132 |
-
if( ! empty( $metadata_info['id'] ) && $meta_value = auxin_get_post_meta( $post
|
133 |
echo "<dt>{$metadata_info['value']}</dt>";
|
134 |
echo "<dd>{$meta_value}</dd>";
|
135 |
}
|
@@ -163,14 +162,14 @@
|
|
163 |
wp_link_pages( array( 'before' => '<div class="page-links"><span>' . __( 'Pages:', 'auxin-portfolio') .'</span>', 'after' => '</div>' ) );
|
164 |
|
165 |
// get next/prev portfolio buttons
|
166 |
-
if( 'default' == $display_next_pre = auxin_get_post_meta( $post
|
167 |
$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
|
168 |
}
|
169 |
|
170 |
$next_prev_navigation = '';
|
171 |
|
172 |
if( auxin_is_true( $display_next_pre ) ) {
|
173 |
-
if( 'default' == $next_prev_skin = auxin_get_post_meta( $post
|
174 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
175 |
}
|
176 |
|
23 |
|
24 |
if( $show_side ) {
|
25 |
|
26 |
+
$info_layout_bg = auxin_get_post_meta( $post, '_side_info_color' );
|
27 |
+
$info_layout_font_color = auxin_get_post_meta( $post, '_side_info_font_color' );
|
28 |
+
$info_pos = auxin_get_post_meta( $post, '_side_info_pos');
|
29 |
|
30 |
if ( ! empty( $info_layout_bg ) ){
|
31 |
$layout_bg = ' background-color: ' . $info_layout_bg . ';';
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
$lunch_btn_url = auxin_get_post_meta( $post, '_lunch_button_url', '' );
|
63 |
if( !empty( $lunch_btn_url ) ) {
|
64 |
$display_lunch = true;
|
65 |
} else { $display_lunch = false; }
|
85 |
<?php } else { ?>
|
86 |
<div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
|
87 |
<?php }
|
88 |
+
if( $_overview_title = auxin_get_post_meta( $post, '_overview_title', '' ) ){
|
89 |
echo '<div class="entry-side-title"><h1>'. do_shortcode( $_overview_title ). '</h1></div>';
|
90 |
}
|
91 |
?>
|
|
|
92 |
<?php
|
93 |
+
$_overview = auxin_get_post_meta( $post, '_overview', '' );
|
94 |
+
if( $_overview || $show_actions ) {
|
95 |
+
echo '<div class="entry-overview-container">';
|
96 |
+
if( $_overview ){
|
97 |
+
echo '<div class="entry-side-overview">';
|
98 |
+
do_action('auxin_single_portfolio_overview', $_overview, $show_like_btn, $show_share_btn );
|
99 |
+
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
+
if( $show_actions ) {
|
102 |
+
echo '<div class="entry-actions">';
|
103 |
+
do_action('auxin_single_portfolio_actions', $show_like_btn, $show_share_btn );
|
104 |
+
echo '</div>';
|
105 |
+
}
|
106 |
+
echo '</div>';
|
107 |
+
}
|
108 |
?>
|
|
|
109 |
<?php
|
110 |
if( $is_side_meta_set ){ // start of displaying condition
|
111 |
echo '<div class="entry-meta-data-container">';
|
128 |
}
|
129 |
|
130 |
foreach ( $metafields as $metadata_info ) {
|
131 |
+
if( ! empty( $metadata_info['id'] ) && $meta_value = auxin_get_post_meta( $post, '_auxin_meta_' . $metadata_info['id'] ) ){
|
132 |
echo "<dt>{$metadata_info['value']}</dt>";
|
133 |
echo "<dd>{$meta_value}</dd>";
|
134 |
}
|
162 |
wp_link_pages( array( 'before' => '<div class="page-links"><span>' . __( 'Pages:', 'auxin-portfolio') .'</span>', 'after' => '</div>' ) );
|
163 |
|
164 |
// get next/prev portfolio buttons
|
165 |
+
if( 'default' == $display_next_pre = auxin_get_post_meta( $post, '_show_next_prev_nav', 'default' ) ){
|
166 |
$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
|
167 |
}
|
168 |
|
169 |
$next_prev_navigation = '';
|
170 |
|
171 |
if( auxin_is_true( $display_next_pre ) ) {
|
172 |
+
if( 'default' == $next_prev_skin = auxin_get_post_meta( $post, '_next_prev_nav_skin', 'default' ) ){
|
173 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
174 |
}
|
175 |
|
public/templates/theme-parts/single-portfolio.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
while ( have_posts() ) : the_post();
|
4 |
|
5 |
// get the post media layout
|
6 |
-
if( 'default' == $media_layout = auxin_get_post_meta( $post
|
7 |
$media_layout = auxin_get_option( 'portfolio_single_media_layout' );
|
8 |
}
|
9 |
|
3 |
while ( have_posts() ) : the_post();
|
4 |
|
5 |
// get the post media layout
|
6 |
+
if( 'default' == $media_layout = auxin_get_post_meta( $post, '_media_layout', 'default' ) ){
|
7 |
$media_layout = auxin_get_option( 'portfolio_single_media_layout' );
|
8 |
}
|
9 |
|