Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.2.0
- README.txt +10 -4
- admin/includes/admin-hooks.php +17 -1
- admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +9 -2
- auxin-portfolio.php +3 -3
- includes/define.php +1 -1
- includes/elements/recent-portfolios.php +24 -14
- includes/general-hooks.php +21 -20
- public/includes/templates-post.php +1 -1
- public/templates/theme-parts/entry/single-portfolio.php +71 -66
README.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: ajaxload, page-builder, siteorigin, auxin, phlox, averta, fullwidth, mason
|
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 4.8.4
|
10 |
-
Stable tag: 1.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -121,6 +121,12 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= Version 1.1.4 / (1.11.2017) =
|
125 |
- [New]: New options in theme options for title bar setting.
|
126 |
- [New]: New options for adding a button under related portfolio items added.
|
@@ -155,6 +161,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
155 |
|
156 |
== Upgrade Notice ==
|
157 |
|
158 |
-
= 1.
|
159 |
-
- [
|
160 |
-
- [
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 4.8.4
|
10 |
+
Stable tag: 1.2.0
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= Version 1.2.0 / (14.11.2017) =
|
125 |
+
- [Improvement]: Improvement in portfolio page layouts.
|
126 |
+
- [Improvement]: The order of breadcrumb separator items changed.
|
127 |
+
- [New]: New portfolio navigation type added.
|
128 |
+
- [Fix]: An issue with appearing border around related portfolio items section fixed.
|
129 |
+
|
130 |
= Version 1.1.4 / (1.11.2017) =
|
131 |
- [New]: New options in theme options for title bar setting.
|
132 |
- [New]: New options for adding a button under related portfolio items added.
|
161 |
|
162 |
== Upgrade Notice ==
|
163 |
|
164 |
+
= 1.2.0 =
|
165 |
+
- [Improvement]: Improvement in portfolio page layouts.
|
166 |
+
- [Improvement]: The order of breadcrumb separator items changed.
|
admin/includes/admin-hooks.php
CHANGED
@@ -1,3 +1,19 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Admin specific hooks
|
4 |
+
*/
|
5 |
|
6 |
+
/**
|
7 |
+
* Triggers an action after plugin was updated to new version.
|
8 |
+
*
|
9 |
+
* @return void
|
10 |
+
*/
|
11 |
+
function auxpfo_after_plugin_update(){
|
12 |
+
|
13 |
+
if( AUXPFO_VERSION !== get_transient( 'auxin_' . AUXPFO_SLUG . '_version' ) ){
|
14 |
+
set_transient( 'auxin_' . AUXPFO_SLUG . '_version', AUXPFO_VERSION, MONTH_IN_SECONDS );
|
15 |
+
|
16 |
+
do_action( 'auxin_plugin_updated', AUXPFO_SLUG, AUXPFO_VERSION, AUXPFO_BASE_NAME );
|
17 |
+
}
|
18 |
+
}
|
19 |
+
add_action( "admin_init", "auxpfo_after_plugin_update");
|
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php
CHANGED
@@ -154,8 +154,7 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
154 |
'id' => '_side_info_pos',
|
155 |
'value' => array( 'right', 'left' )
|
156 |
)
|
157 |
-
)
|
158 |
-
'default' => 'transparent',
|
159 |
),
|
160 |
|
161 |
array(
|
@@ -232,6 +231,14 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
232 |
'label' => __('Default', 'auxin-portfolio'),
|
233 |
'image' => AUXIN_URL . 'images/visual-select/default4.svg'
|
234 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
'minimal' => array(
|
236 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
237 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
154 |
'id' => '_side_info_pos',
|
155 |
'value' => array( 'right', 'left' )
|
156 |
)
|
157 |
+
)
|
|
|
158 |
),
|
159 |
|
160 |
array(
|
231 |
'label' => __('Default', 'auxin-portfolio'),
|
232 |
'image' => AUXIN_URL . 'images/visual-select/default4.svg'
|
233 |
),
|
234 |
+
'classic-title' => array(
|
235 |
+
'label' => __('Classic Project Navigation', 'auxin-portfolio'),
|
236 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
237 |
+
),
|
238 |
+
'classic' => array(
|
239 |
+
'label' => __('Classic Project Navigation Without Title', 'auxin-portfolio'),
|
240 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
241 |
+
),
|
242 |
'minimal' => array(
|
243 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
244 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
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
|
@@ -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' => '1.
|
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 |
)
|
@@ -60,7 +60,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
60 |
'themes' => array(
|
61 |
array(
|
62 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
63 |
-
'version' => '1.
|
64 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
65 |
'file_exists' => get_template_directory() . '/auxin/auxin-include/auxin.php' // If set, this file will be checked for availability to determine if a theme is active.
|
66 |
)
|
12 |
* Plugin Name: Phlox Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
+
* Version: 1.2.0
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
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' => '1.7.0', // 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 |
)
|
60 |
'themes' => array(
|
61 |
array(
|
62 |
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
63 |
+
'version' => '1.9.0', // E.g. 1.0.0. If set, the active theme must be this version or higher.
|
64 |
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
65 |
'file_exists' => get_template_directory() . '/auxin/auxin-include/auxin.php' // If set, this file will be checked for availability to determine if a theme is active.
|
66 |
)
|
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.2.0' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/elements/recent-portfolios.php
CHANGED
@@ -228,7 +228,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
228 |
'weight' => '',
|
229 |
'group' => '',
|
230 |
'edit_field_class' => ''
|
231 |
-
),
|
232 |
array(
|
233 |
'heading' => __('Image aspect ratio', 'auxin-portfolio'),
|
234 |
'description' => '',
|
@@ -293,7 +293,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
293 |
'weight' => '',
|
294 |
'group' => '',
|
295 |
'edit_field_class' => ''
|
296 |
-
),
|
297 |
array(
|
298 |
'heading' => __('Entry Box Border Color', 'auxin-portfolio'),
|
299 |
'description' => '',
|
@@ -311,7 +311,7 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
311 |
'weight' => '',
|
312 |
'group' => '',
|
313 |
'edit_field_class' => ''
|
314 |
-
),
|
315 |
array(
|
316 |
'heading' => __('Portfolio tiles hover type','auxin-portfolio' ),
|
317 |
'description' => '',
|
@@ -842,6 +842,9 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
842 |
$items_classes .= ' aux-lightbox-gallery';
|
843 |
}
|
844 |
|
|
|
|
|
|
|
845 |
$isoxin_attrs = 'data-lazyload="true" data-space="'.$space.'" data-pagination="'. ( $paginate ? 'true' : 'false' ) . '" data-deeplink="'. ( $deeplink ? 'true' : 'false' ) . '"';
|
846 |
$isoxin_attrs .= 'data-slug="' . $deeplink_slug . '" data-perpage="' . $perpage . '" data-layout="' . $isotop_layout . '"';
|
847 |
|
@@ -967,6 +970,11 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
967 |
}
|
968 |
}
|
969 |
|
|
|
|
|
|
|
|
|
|
|
970 |
// Lightbox attributes
|
971 |
if ( $show_lightbox ) {
|
972 |
$attach_id = get_post_thumbnail_id($post->ID);
|
@@ -987,19 +995,21 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
987 |
</div>
|
988 |
<?php
|
989 |
|
990 |
-
if
|
991 |
// Set background color style
|
992 |
-
$entry_background_color = $entry_background_color ? "background-color: $entry_background_color;"
|
993 |
// Set border color style
|
994 |
-
$entry_border_color = $entry_border_color ? "border:
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
|
|
|
|
1003 |
}
|
1004 |
|
1005 |
} // End if have_posts
|
228 |
'weight' => '',
|
229 |
'group' => '',
|
230 |
'edit_field_class' => ''
|
231 |
+
),
|
232 |
array(
|
233 |
'heading' => __('Image aspect ratio', 'auxin-portfolio'),
|
234 |
'description' => '',
|
293 |
'weight' => '',
|
294 |
'group' => '',
|
295 |
'edit_field_class' => ''
|
296 |
+
),
|
297 |
array(
|
298 |
'heading' => __('Entry Box Border Color', 'auxin-portfolio'),
|
299 |
'description' => '',
|
311 |
'weight' => '',
|
312 |
'group' => '',
|
313 |
'edit_field_class' => ''
|
314 |
+
),
|
315 |
array(
|
316 |
'heading' => __('Portfolio tiles hover type','auxin-portfolio' ),
|
317 |
'description' => '',
|
842 |
$items_classes .= ' aux-lightbox-gallery';
|
843 |
}
|
844 |
|
845 |
+
// apply boxed style to items
|
846 |
+
$is_boxed = in_array( $item_style, array( 'classic', 'classic-lightbox', 'classic-lightbox-boxed' ) ) && ( $entry_background_color || $entry_border_color );
|
847 |
+
|
848 |
$isoxin_attrs = 'data-lazyload="true" data-space="'.$space.'" data-pagination="'. ( $paginate ? 'true' : 'false' ) . '" data-deeplink="'. ( $deeplink ? 'true' : 'false' ) . '"';
|
849 |
$isoxin_attrs .= 'data-slug="' . $deeplink_slug . '" data-perpage="' . $perpage . '" data-layout="' . $isotop_layout . '"';
|
850 |
|
970 |
}
|
971 |
}
|
972 |
|
973 |
+
// boxed appearance
|
974 |
+
if ( $is_boxed ) {
|
975 |
+
$item_classes .= ' aux-entry-boxed';
|
976 |
+
}
|
977 |
+
|
978 |
// Lightbox attributes
|
979 |
if ( $show_lightbox ) {
|
980 |
$attach_id = get_post_thumbnail_id($post->ID);
|
995 |
</div>
|
996 |
<?php
|
997 |
|
998 |
+
if ( $is_boxed ) {
|
999 |
// Set background color style
|
1000 |
+
$entry_background_color = $entry_background_color ? "background-color: $entry_background_color;" : '';
|
1001 |
// Set border color style
|
1002 |
+
$entry_border_color = $entry_border_color ? "border-color: $entry_border_color;" : '';
|
1003 |
+
|
1004 |
+
if ( !empty( $entry_background_color ) || !empty( $entry_border_color ) ) {
|
1005 |
+
echo sprintf(
|
1006 |
+
'<style>
|
1007 |
+
.page .aux-widget-recent-portfolios .entry-main { %s %s }
|
1008 |
+
</style>',
|
1009 |
+
$entry_background_color,
|
1010 |
+
$entry_border_color
|
1011 |
+
);
|
1012 |
+
}
|
1013 |
}
|
1014 |
|
1015 |
} // End if have_posts
|
includes/general-hooks.php
CHANGED
@@ -203,6 +203,14 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
203 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
204 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
205 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
'thumb-arrow' => array(
|
207 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
208 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-2.svg'
|
@@ -222,14 +230,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
222 |
'thumb-arrow-sticky' => array(
|
223 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
224 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
225 |
-
),
|
226 |
-
'classic-title' => array(
|
227 |
-
'label' => __('Classic Project Navigation', 'auxin-portfolio'),
|
228 |
-
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
229 |
-
),
|
230 |
-
'classic' => array(
|
231 |
-
'label' => __('Classic Project Navigation Without Title', 'auxin-portfolio'),
|
232 |
-
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
233 |
)
|
234 |
),
|
235 |
'type' => 'radio-image',
|
@@ -720,7 +720,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
720 |
'section' => 'portfolio-section-single-titlebar',
|
721 |
'transport' => 'refresh',
|
722 |
'type' => 'radio-image',
|
723 |
-
'default' => '
|
724 |
'dependency' => array(
|
725 |
array(
|
726 |
'id' => 'portfolio_title_bar_show',
|
@@ -739,14 +739,14 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
739 |
)
|
740 |
),
|
741 |
'choices' => array(
|
742 |
-
'slash' => array(
|
743 |
-
'label' => __( 'Slash', 'auxin-portfolio' ),
|
744 |
-
'css_class' => 'axiAdminIcon-breadcrumb-divider1',
|
745 |
-
),
|
746 |
'gt' => array(
|
747 |
'label' => esc_html__( 'Greater Than (>)', 'auxin-portfolio' ),
|
748 |
'css_class' => 'axiAdminIcon-breadcrumb-divider2'
|
749 |
),
|
|
|
|
|
|
|
|
|
750 |
'arrow' => array(
|
751 |
'label' => __( 'Arrow', 'auxin-portfolio' ),
|
752 |
'css_class' => 'axiAdminIcon-breadcrumb-divider3'
|
@@ -2064,13 +2064,14 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
2064 |
'operator'=> '=='
|
2065 |
)
|
2066 |
),
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
}
|
2073 |
-
|
|
|
2074 |
'default' => ''
|
2075 |
);
|
2076 |
|
203 |
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
204 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-1.svg'
|
205 |
),
|
206 |
+
'classic-title' => array(
|
207 |
+
'label' => __('Classic Project Navigation', 'auxin-portfolio'),
|
208 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
209 |
+
),
|
210 |
+
'classic' => array(
|
211 |
+
'label' => __('Classic Project Navigation Without Title', 'auxin-portfolio'),
|
212 |
+
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
213 |
+
),
|
214 |
'thumb-arrow' => array(
|
215 |
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
216 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-2.svg'
|
230 |
'thumb-arrow-sticky' => array(
|
231 |
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
232 |
'image' => AUXIN_URL . 'images/visual-select/post-navigation-6.svg'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
)
|
234 |
),
|
235 |
'type' => 'radio-image',
|
720 |
'section' => 'portfolio-section-single-titlebar',
|
721 |
'transport' => 'refresh',
|
722 |
'type' => 'radio-image',
|
723 |
+
'default' => 'gt',
|
724 |
'dependency' => array(
|
725 |
array(
|
726 |
'id' => 'portfolio_title_bar_show',
|
739 |
)
|
740 |
),
|
741 |
'choices' => array(
|
|
|
|
|
|
|
|
|
742 |
'gt' => array(
|
743 |
'label' => esc_html__( 'Greater Than (>)', 'auxin-portfolio' ),
|
744 |
'css_class' => 'axiAdminIcon-breadcrumb-divider2'
|
745 |
),
|
746 |
+
'slash' => array(
|
747 |
+
'label' => __( 'Slash', 'auxin-portfolio' ),
|
748 |
+
'css_class' => 'axiAdminIcon-breadcrumb-divider1',
|
749 |
+
),
|
750 |
'arrow' => array(
|
751 |
'label' => __( 'Arrow', 'auxin-portfolio' ),
|
752 |
'css_class' => 'axiAdminIcon-breadcrumb-divider3'
|
2064 |
'operator'=> '=='
|
2065 |
)
|
2066 |
),
|
2067 |
+
// not compatible with new styles
|
2068 |
+
// 'style_callback' => function( $value = null ){
|
2069 |
+
// if( ! $value ){
|
2070 |
+
// $value = esc_attr( auxin_get_option( 'portfolio_classic_entry_box_background_color' ) );
|
2071 |
+
// }
|
2072 |
+
// return empty( $value ) ? '' : ".aux-archive.aux-tax .aux-item-classic .entry-main { background-color:$value; padding:25px 30px 5px } .aux-archive .aux-item-classic .entry-media { margin-bottom: 0 }";
|
2073 |
+
// },
|
2074 |
+
// 'transport' => 'postMessage',
|
2075 |
'default' => ''
|
2076 |
);
|
2077 |
|
public/includes/templates-post.php
CHANGED
@@ -29,7 +29,7 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
29 |
'display_categories' => auxin_get_option('portfolio_related_posts_display_taxonomies', true ),
|
30 |
'max_taxonomy_num' => 3,
|
31 |
'wp_query_args' => array(),
|
32 |
-
'content_layout' => '
|
33 |
'post_info_position' => 'after-title',
|
34 |
'image_aspect_ratio' => 0.75,
|
35 |
'preview_mode' => auxin_get_option( 'portfolio_related_posts_preview_mode', 'grid' ),
|
29 |
'display_categories' => auxin_get_option('portfolio_related_posts_display_taxonomies', true ),
|
30 |
'max_taxonomy_num' => 3,
|
31 |
'wp_query_args' => array(),
|
32 |
+
'content_layout' => 'default', // entry-boxed
|
33 |
'post_info_position' => 'after-title',
|
34 |
'image_aspect_ratio' => 0.75,
|
35 |
'preview_mode' => auxin_get_option( 'portfolio_related_posts_preview_mode', 'grid' ),
|
public/templates/theme-parts/entry/single-portfolio.php
CHANGED
@@ -20,10 +20,8 @@
|
|
20 |
if( 'top' !== $side_pos ){
|
21 |
echo $entry_main;
|
22 |
}
|
23 |
-
?>
|
24 |
-
<!-- end of entry main -->
|
25 |
|
26 |
-
|
27 |
|
28 |
$info_layout_bg = auxin_get_post_meta( $post->ID, '_side_info_color' );
|
29 |
$info_layout_font_color = auxin_get_post_meta( $post->ID, '_side_info_font_color' );
|
@@ -41,11 +39,49 @@
|
|
41 |
$header_styles = isset ( $layout_bg ) ? 'style="'. esc_attr( $layout_bg ) . '"' : '' ;
|
42 |
$header_styles = in_array( $info_pos, array('right', 'left') ) ? '' : $header_styles ;
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
?>
|
48 |
-
<div class="entry-side aux-sticky-position <?php echo esc_attr( $header_class );?>"
|
49 |
<?php } else { ?>
|
50 |
<div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
|
51 |
<?php }
|
@@ -54,7 +90,7 @@
|
|
54 |
}
|
55 |
?>
|
56 |
<div class="entry-overview-container">
|
57 |
-
|
58 |
$_overview = auxin_get_post_meta( $post->ID, '_overview', '' );
|
59 |
|
60 |
if( $_overview || $show_actions ) {
|
@@ -72,77 +108,46 @@
|
|
72 |
?>
|
73 |
</div>
|
74 |
<?php
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
82 |
}
|
|
|
83 |
}
|
84 |
|
85 |
if( $display_tag ) {
|
86 |
-
|
87 |
-
$
|
88 |
-
|
89 |
-
if( empty( $tag_terms ) ) {
|
90 |
-
$display_tag = false;
|
91 |
}
|
|
|
92 |
}
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
// print the portfolio metadata
|
100 |
-
$metafields = json_decode( auxin_get_option( 'portfolio_metadata_list_1' ), true );
|
101 |
-
|
102 |
-
if (is_array( $metafields ) && !array_filter($metafields) ) {
|
103 |
-
$display_metafields = true;
|
104 |
-
} else { $display_metafields = false; }
|
105 |
-
|
106 |
-
if( $has_side_meta && ( $display_metafields || $display_cat || $display_tag || $display_lunch ) ){ // start of displaying condition
|
107 |
-
echo '<div class="entry-meta-data-container">';
|
108 |
-
echo '<div class="entry-meta-data"><dl>';
|
109 |
-
|
110 |
-
if( $display_cat ){
|
111 |
-
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Categories:', 'auxin-portfolio' ) );
|
112 |
-
foreach( $cat_terms as $term ){
|
113 |
-
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>';
|
114 |
-
}
|
115 |
-
echo '</span></dd>';
|
116 |
-
}
|
117 |
-
|
118 |
-
if( $display_tag ) {
|
119 |
-
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Tags:', 'auxin-portfolio' ) );
|
120 |
-
foreach( $tag_terms as $term ){
|
121 |
-
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>';
|
122 |
-
}
|
123 |
-
echo '</span></dd>';
|
124 |
-
}
|
125 |
-
|
126 |
-
foreach ( $metafields as $metadata_info ) {
|
127 |
-
if( ! empty( $metadata_info['id'] ) && $meta_value = auxin_get_post_meta( $post->ID, '_auxin_meta_' . $metadata_info['id'] ) ){
|
128 |
-
echo "<dt>{$metadata_info['value']}</dt>";
|
129 |
-
echo "<dd>{$meta_value}</dd>";
|
130 |
-
}
|
131 |
}
|
|
|
132 |
|
133 |
-
|
134 |
|
135 |
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
}
|
142 |
-
|
143 |
-
echo '</div></div>';
|
144 |
}
|
145 |
|
|
|
|
|
|
|
146 |
echo "</div>";
|
147 |
}
|
148 |
|
20 |
if( 'top' !== $side_pos ){
|
21 |
echo $entry_main;
|
22 |
}
|
|
|
|
|
23 |
|
24 |
+
if( $show_side ) {
|
25 |
|
26 |
$info_layout_bg = auxin_get_post_meta( $post->ID, '_side_info_color' );
|
27 |
$info_layout_font_color = auxin_get_post_meta( $post->ID, '_side_info_font_color' );
|
39 |
$header_styles = isset ( $layout_bg ) ? 'style="'. esc_attr( $layout_bg ) . '"' : '' ;
|
40 |
$header_styles = in_array( $info_pos, array('right', 'left') ) ? '' : $header_styles ;
|
41 |
|
42 |
+
// Meta data options -----------------------------
|
43 |
+
|
44 |
+
if( $display_cat ) {
|
45 |
+
// get portfolio categories
|
46 |
+
$tax_name = 'portfolio-cat';
|
47 |
+
$cat_terms = wp_get_post_terms( $post->ID, $tax_name );
|
48 |
+
if( empty( $cat_terms ) ) {
|
49 |
+
$display_cat = false;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
if( $display_tag ) {
|
54 |
+
// get portfolio tags
|
55 |
+
$tax_name_tag = 'portfolio-tag';
|
56 |
+
$tag_terms = wp_get_post_terms( $post->ID, $tax_name_tag );
|
57 |
+
if( empty( $tag_terms ) ) {
|
58 |
+
$display_tag = false;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
$lunch_btn_url = auxin_get_post_meta( $post->ID, '_lunch_button_url', '' );
|
63 |
+
if( !empty( $lunch_btn_url ) ) {
|
64 |
+
$display_lunch = true;
|
65 |
+
} else { $display_lunch = false; }
|
66 |
+
|
67 |
+
// print the portfolio metadata
|
68 |
+
$metafields = json_decode( auxin_get_option( 'portfolio_metadata_list_1' ), true );
|
69 |
+
|
70 |
+
if (is_array( $metafields ) && !array_filter($metafields) ) {
|
71 |
+
$display_metafields = true;
|
72 |
+
} else { $display_metafields = false; }
|
73 |
+
|
74 |
+
$is_side_meta_set = $has_side_meta && ( $display_metafields || $display_cat || $display_tag || $display_lunch );
|
75 |
+
|
76 |
+
// End meta data options -----------------------------
|
77 |
+
|
78 |
+
$header_class .= $is_side_meta_set ? ' aux-has-meta-data' : '';
|
79 |
+
|
80 |
+
if( $sticky_sidebar ) {
|
81 |
+
// 45 is the space between site header and the side area
|
82 |
+
$sticky_header_height = ( auxin_get_option('site_header_top_sticky') ? auxin_get_option('site_header_container_scaled_height') : 0 ) + 45 ;
|
83 |
?>
|
84 |
+
<div class="entry-side aux-sticky-position <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> data-use-transform="true" data-sticky-margin="<?php echo $sticky_header_height; ?>" data-boundaries="true">
|
85 |
<?php } else { ?>
|
86 |
<div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
|
87 |
<?php }
|
90 |
}
|
91 |
?>
|
92 |
<div class="entry-overview-container">
|
93 |
+
<?php
|
94 |
$_overview = auxin_get_post_meta( $post->ID, '_overview', '' );
|
95 |
|
96 |
if( $_overview || $show_actions ) {
|
108 |
?>
|
109 |
</div>
|
110 |
<?php
|
111 |
+
if( $is_side_meta_set ){ // start of displaying condition
|
112 |
+
echo '<div class="entry-meta-data-container">';
|
113 |
+
echo '<div class="entry-meta-data"><dl>';
|
114 |
+
|
115 |
+
if( $display_cat ){
|
116 |
+
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Categories:', 'auxin-portfolio' ) );
|
117 |
+
foreach( $cat_terms as $term ){
|
118 |
+
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>';
|
119 |
}
|
120 |
+
echo '</span></dd>';
|
121 |
}
|
122 |
|
123 |
if( $display_tag ) {
|
124 |
+
printf( '<dt>%s</dt><dd><span class="entry-tax">', __( 'Tags:', 'auxin-portfolio' ) );
|
125 |
+
foreach( $tag_terms as $term ){
|
126 |
+
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>';
|
|
|
|
|
127 |
}
|
128 |
+
echo '</span></dd>';
|
129 |
}
|
130 |
|
131 |
+
foreach ( $metafields as $metadata_info ) {
|
132 |
+
if( ! empty( $metadata_info['id'] ) && $meta_value = auxin_get_post_meta( $post->ID, '_auxin_meta_' . $metadata_info['id'] ) ){
|
133 |
+
echo "<dt>{$metadata_info['value']}</dt>";
|
134 |
+
echo "<dd>{$meta_value}</dd>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
+
}
|
137 |
|
138 |
+
echo '</dl>';
|
139 |
|
140 |
|
141 |
+
if( $display_lunch ) { ?>
|
142 |
+
<a href="<?php echo $lunch_btn_url; ?>" class="aux-button aux-cta-button aux-black aux-medium aux-curve">
|
143 |
+
<span class="aux-overlay"></span>
|
144 |
+
<span class="aux-text"><?php echo auxin_get_option( 'portfolio_metadata_launch_label' ); ?></span>
|
145 |
+
</a><?php
|
|
|
|
|
|
|
146 |
}
|
147 |
|
148 |
+
echo '</div></div>';
|
149 |
+
}
|
150 |
+
|
151 |
echo "</div>";
|
152 |
}
|
153 |
|