Premium Portfolio Features for Phlox theme - Version 1.1.0

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Premium Portfolio Features for Phlox theme
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.1 to 1.1.0

README.txt CHANGED
@@ -6,8 +6,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: ajaxload, page-builder, 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.8.2
10
- Stable tag: 1.0.1
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -121,7 +121,16 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
121
 
122
  == Changelog ==
123
 
124
- = Version 1.0.1 / (19.11.2017) =
 
 
 
 
 
 
 
 
 
125
  - [Improvement]: New options and templates for portfolio single page added
126
  - [Improvement]: Applying some changes based on latest changes in auxin framework
127
 
@@ -139,5 +148,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
139
 
140
  == Upgrade Notice ==
141
 
142
- = 1.0.1 =
143
- - [Improvement]: New options and templates for portfolio single page added
6
  Tags: ajaxload, page-builder, 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.8.3
10
+ Stable tag: 1.1.0
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
121
 
122
  == Changelog ==
123
 
124
+ = Version 1.1.0 / (23.10.2017) =
125
+ - [New]: New layouts added to portfolio single pages.
126
+ - [New]: New option for adding overview title added to portfolio pages.
127
+ - [New]: New option for changing overview alignment added to portfolio pages.
128
+ - [Improvement]: Improvement in responsivess of single portfolio page.
129
+ - [Improvement]: Missing styles added to portfolio pages.
130
+ - [Fix]: An issue with displaying portdolio metadatas in customizer fixed.
131
+ - [Fix]: Issue with next and previous navigation in single portdolio page fixed.
132
+
133
+ = Version 1.0.1 / (19.10.2017) =
134
  - [Improvement]: New options and templates for portfolio single page added
135
  - [Improvement]: Applying some changes based on latest changes in auxin framework
136
 
148
 
149
  == Upgrade Notice ==
150
 
151
+ = 1.1.0 =
152
+ - [New]: New layouts added to portfolio single pages.
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php CHANGED
@@ -48,6 +48,36 @@ function auxpfo_metabox_fields_portfolio_metadata(){
48
  'default' => ''
49
  ),
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  array(
52
  'title' => __('Info Layout', 'auxin-portfolio'),
53
  'description' => __('Specifies the alignment of metadata column. (Default: "right" for LTR websites and "left" for RTL ones)', 'auxin-portfolio'),
@@ -61,24 +91,59 @@ function auxpfo_metabox_fields_portfolio_metadata(){
61
  'image' => AUXIN_URL . 'images/visual-select/default4.svg'
62
  ),
63
  'right' => array(
64
- 'label' => __('Right', 'auxin-portfolio'),
65
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
66
  ),
67
  'left' => array(
68
- 'label' => __('Left', 'auxin-portfolio'),
69
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
70
  ),
71
  'top' => array(
72
- 'label' => __('Top', 'auxin-portfolio'),
 
 
 
 
 
 
 
 
73
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
74
  ),
75
  'bottom' => array(
76
- 'label' => __('Bottom', 'auxin-portfolio'),
 
 
 
 
 
 
 
 
77
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
78
  )
79
  )
80
  ),
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  array(
83
  'title' => __('Info Box Background Color', 'auxin-portfolio'),
84
  'description' => __('Specifies the color of info box.', 'auxin-portfolio'),
@@ -196,18 +261,17 @@ function auxpfo_metabox_fields_portfolio_metadata(){
196
  'default' => 'default'
197
  ),
198
 
199
-
200
  array(
201
- 'title' => __('Sticky Side Area', 'auxin-portfolio'),
202
- 'description' => __('Enable it to stick the side area on page while scrolling.', 'auxin-portfolio'),
203
- 'id' => '_sticky_sidebar',
204
  'type' => 'select',
205
  'default' => 'default',
206
  'choices' => array(
207
  'default' => __('Theme Default', 'auxin-portfolio'),
208
- 'yes' => __('Yes', 'auxin-portfolio'),
209
- 'no' => __('No', 'auxin-portfolio'),
210
- ),
211
  ),
212
 
213
  array(
@@ -218,9 +282,16 @@ function auxpfo_metabox_fields_portfolio_metadata(){
218
  'default' => 'default',
219
  'choices' => array(
220
  'default' => __('Theme Default', 'auxin-portfolio'),
221
- 'yes' => __('Yes', 'auxin-portfolio'),
222
- 'no' => __('No', 'auxin-portfolio'),
223
  ),
 
 
 
 
 
 
 
224
  ),
225
 
226
  array(
@@ -234,6 +305,13 @@ function auxpfo_metabox_fields_portfolio_metadata(){
234
  'yes' => __('Yes', 'auxin-portfolio'),
235
  'no' => __('No' , 'auxin-portfolio'),
236
  ),
 
 
 
 
 
 
 
237
  ),
238
 
239
  array(
@@ -241,7 +319,14 @@ function auxpfo_metabox_fields_portfolio_metadata(){
241
  'description' => __('Specifies an URL for action button in order to lunch the project\'s webpage. Leave it empty if you don`t need Lunch Project Button.', 'auxin-portfolio'),
242
  'id' => '_lunch_button_url',
243
  'type' => 'text',
244
- 'default' => ''
 
 
 
 
 
 
 
245
  )
246
 
247
  );
@@ -256,7 +341,14 @@ function auxpfo_metabox_fields_portfolio_metadata(){
256
  'description' => '',
257
  'id' => '_auxin_meta_' . $metadata_info['id'],
258
  'type' => 'text',
259
- 'default' => ''
 
 
 
 
 
 
 
260
  );
261
  }
262
  }
48
  'default' => ''
49
  ),
50
 
51
+ array(
52
+ 'title' => __('Overview Title', 'auxin-portfolio'),
53
+ 'description' => __('Specifies an optional title for project overview.', 'auxin-portfolio'),
54
+ 'id' => '_overview_title',
55
+ 'type' => 'text',
56
+ 'default' => ''
57
+ ),
58
+
59
+ array(
60
+ 'title' => __('Overview Alignment', THEME_DOMAIN),
61
+ 'description' => __('Specifies alignment for the project overview and corresponding information.', THEME_DOMAIN),
62
+ 'id' => '_overview_info_alignment',
63
+ 'type' => 'radio-image',
64
+ 'default' => 'default',
65
+ 'choices' => array(
66
+ 'default' => array(
67
+ 'label' => __('Default', THEME_DOMAIN),
68
+ 'css_class' => 'axiAdminIcon-default',
69
+ ),
70
+ 'left' => array(
71
+ 'label' => __('Left', THEME_DOMAIN),
72
+ 'css_class' => 'axiAdminIcon-text-align-left'
73
+ ),
74
+ 'center' => array(
75
+ 'label' => __('Center', THEME_DOMAIN),
76
+ 'css_class' => 'axiAdminIcon-text-align-center'
77
+ )
78
+ )
79
+ ),
80
+
81
  array(
82
  'title' => __('Info Layout', 'auxin-portfolio'),
83
  'description' => __('Specifies the alignment of metadata column. (Default: "right" for LTR websites and "left" for RTL ones)', 'auxin-portfolio'),
91
  'image' => AUXIN_URL . 'images/visual-select/default4.svg'
92
  ),
93
  'right' => array(
94
+ 'label' => __('Info on Right', 'auxin-portfolio'),
95
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
96
  ),
97
  'left' => array(
98
+ 'label' => __('Info on Left', 'auxin-portfolio'),
99
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
100
  ),
101
  'top' => array(
102
+ 'label' => __('Info on Top', 'auxin-portfolio'),
103
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
104
+ ),
105
+ 'top-reverse' => array(
106
+ 'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
107
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
108
+ ),
109
+ 'top-down' => array(
110
+ 'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
111
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
112
  ),
113
  'bottom' => array(
114
+ 'label' => __('Info on Bottom', 'auxin-portfolio'),
115
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
116
+ ),
117
+ 'bottom-reverse' => array(
118
+ 'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
119
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
120
+ ),
121
+ 'bottom-down' => array(
122
+ 'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
123
  'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
124
  )
125
  )
126
  ),
127
 
128
+ array(
129
+ 'title' => __('Sticky Side Area', 'auxin-portfolio'),
130
+ 'description' => __('Enable it to stick the side area on page while scrolling.', 'auxin-portfolio'),
131
+ 'id' => '_sticky_sidebar',
132
+ 'type' => 'select',
133
+ 'default' => 'default',
134
+ 'choices' => array(
135
+ 'default' => __('Theme Default', 'auxin-portfolio'),
136
+ 'yes' => __('Yes', 'auxin-portfolio'),
137
+ 'no' => __('No', 'auxin-portfolio'),
138
+ ),
139
+ 'dependency' => array(
140
+ array(
141
+ 'id' => '_side_info_pos',
142
+ 'value' => array( 'right', 'left' )
143
+ )
144
+ ),
145
+ ),
146
+
147
  array(
148
  'title' => __('Info Box Background Color', 'auxin-portfolio'),
149
  'description' => __('Specifies the color of info box.', 'auxin-portfolio'),
261
  'default' => 'default'
262
  ),
263
 
 
264
  array(
265
+ 'title' => __('Display Portfolio Meta Info', 'auxin-portfolio'),
266
+ 'description' => __('Enable this option to display extra inormation about this portfolio.', 'auxin-portfolio'),
267
+ 'id' => '_show_side_info_meta',
268
  'type' => 'select',
269
  'default' => 'default',
270
  'choices' => array(
271
  'default' => __('Theme Default', 'auxin-portfolio'),
272
+ 'yes' => __('Yes', 'auxin-portfolio'),
273
+ 'no' => __('No', 'auxin-portfolio'),
274
+ )
275
  ),
276
 
277
  array(
282
  'default' => 'default',
283
  'choices' => array(
284
  'default' => __('Theme Default', 'auxin-portfolio'),
285
+ 'yes' => __('Yes', 'auxin-portfolio'),
286
+ 'no' => __('No', 'auxin-portfolio'),
287
  ),
288
+ 'dependency' => array(
289
+ array(
290
+ 'id' => '_show_side_info_meta',
291
+ 'value' => array('yes', 'default'),
292
+ 'operator'=> '=='
293
+ )
294
+ )
295
  ),
296
 
297
  array(
305
  'yes' => __('Yes', 'auxin-portfolio'),
306
  'no' => __('No' , 'auxin-portfolio'),
307
  ),
308
+ 'dependency' => array(
309
+ array(
310
+ 'id' => '_show_side_info_meta',
311
+ 'value' => array('yes', 'default'),
312
+ 'operator'=> '=='
313
+ )
314
+ )
315
  ),
316
 
317
  array(
319
  'description' => __('Specifies an URL for action button in order to lunch the project\'s webpage. Leave it empty if you don`t need Lunch Project Button.', 'auxin-portfolio'),
320
  'id' => '_lunch_button_url',
321
  'type' => 'text',
322
+ 'default' => '',
323
+ 'dependency' => array(
324
+ array(
325
+ 'id' => '_show_side_info_meta',
326
+ 'value' => array('yes', 'default'),
327
+ 'operator'=> '=='
328
+ )
329
+ )
330
  )
331
 
332
  );
341
  'description' => '',
342
  'id' => '_auxin_meta_' . $metadata_info['id'],
343
  'type' => 'text',
344
+ 'default' => '',
345
+ 'dependency' => array(
346
+ array(
347
+ 'id' => '_show_side_info_meta',
348
+ 'value' => array('yes', 'default'),
349
+ 'operator'=> '=='
350
+ )
351
+ )
352
  );
353
  }
354
  }
admin/includes/metaboxes/metabox-fields-portfolio.php CHANGED
@@ -64,4 +64,15 @@ function auxin_push_metabox_models_portfolio( $models ){
64
  add_filter( 'auxin_admin_metabox_models_portfolio', 'auxin_push_metabox_models_portfolio' );
65
 
66
 
 
 
 
 
 
 
 
 
 
 
 
67
 
64
  add_filter( 'auxin_admin_metabox_models_portfolio', 'auxin_push_metabox_models_portfolio' );
65
 
66
 
67
+ /**
68
+ * Removes sidebar layout options from portfolio metabox fields
69
+ *
70
+ * @param array $models The list of metabox models
71
+ *
72
+ * @return array The list of filtered metabox models
73
+ */
74
+ function auxin_remove_sidebar_metabox_models( $models ){
75
+ return auxin_remove_from_metabox_hub( $models, array( "field_ids" => array( "page_layout", "page_sidebar_style" ) ) );
76
+ }
77
+ add_filter( 'auxin_admin_metabox_models_portfolio', 'auxin_remove_sidebar_metabox_models', 27, 1 );
78
 
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.0.1
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.8.1
23
  */
24
 
25
  // If this file is called directly, abort.
12
  * Plugin Name: Phlox Portfolio
13
  * Plugin URI: http://averta.net/phlox/
14
  * Description: Showcase your projects beautifully in Phlox theme
15
+ * Version: 1.1.0
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.8.3
23
  */
24
 
25
  // If this file is called directly, abort.
includes/define.php CHANGED
@@ -15,7 +15,7 @@ if( ! defined( 'THEME_NAME' ) ){
15
 
16
 
17
 
18
- define( 'AUXPFO_VERSION' , '1.0.1' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
15
 
16
 
17
 
18
+ define( 'AUXPFO_VERSION' , '1.1.0' );
19
 
20
  define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
21
 
includes/general-functions.php CHANGED
@@ -71,6 +71,7 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
71
  'the_media' => '',
72
  'the_attach' => '',
73
  'has_attach' => false,
 
74
  'post_class' => '',
75
  'media_parent_class'=> '',
76
  'media_class' => '',
@@ -94,29 +95,57 @@ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
94
  $side_pos = auxin_get_option( 'portfolio_single_side_pos', 'right' );
95
  }
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  // get display_cat
98
  if( 'default' == $display_cat = auxin_get_post_meta( $post->ID, '_side_info_dicplay_cat', 'default' ) ){
99
  $display_cat = auxin_get_option( 'portfolio_single_display_category', true );
100
  }
101
- $args['display_cat'] = ( $display_cat == "yes" || $display_cat === true )? true: false;
102
 
103
  // get display_tag
104
  if( 'default' == $display_tag = auxin_get_post_meta( $post->ID, '_side_info_dicplay_tag', 'default' ) ){
105
  $display_tag = auxin_get_option( 'portfolio_single_display_tag', true );
106
  }
107
- $args['display_tag'] = ($display_tag == "yes" || $display_tag === true )? true: false;
 
 
 
 
 
108
 
109
  if ( 'bottom' != $side_pos ) {
110
  if( 'default' == $sticky_sidebar = auxin_get_post_meta( $post->ID, '_sticky_sidebar', 'default' ) ){
111
- $sticky_sidebar = auxin_get_option( 'portfolio_single_stcky_sidebar', false );
112
  }
113
  // sticky sidebar
114
  $args['sticky_sidebar'] = auxin_is_true( $sticky_sidebar );
 
115
  }
 
116
  // specify the side position
117
- $args['post_class'] .= 'aux-side-' . $side_pos;
118
  $args['side_pos'] = $side_pos;
119
 
 
 
 
 
120
  switch ( $media_layout ) {
121
  case 'classic':
122
  $args['media_parent_class'] = 'aux-stack';
71
  'the_media' => '',
72
  'the_attach' => '',
73
  'has_attach' => false,
74
+ 'has_side_meta' => true,
75
  'post_class' => '',
76
  'media_parent_class'=> '',
77
  'media_class' => '',
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->ID, '_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 );
103
+
104
+ $string_dash_pos = strpos( $side_pos, '-' );
105
+
106
+ if( $args['has_side_meta'] ){
107
+ // possible values 'reverse' (flip the side info), 'down' (metadata under overview) and 'normal' (default direction)
108
+ $side_meta_status = false !== $string_dash_pos ? substr( $side_pos, $string_dash_pos + 1 ) : 'normal';
109
+ } else {
110
+ $side_meta_status = 'hide';
111
+ }
112
+
113
+ // remove extra suffix
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->ID, '_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->ID, '_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->ID, '_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->ID, '_sticky_sidebar', 'default' ) ){
135
+ $sticky_sidebar = auxin_get_option( 'portfolio_single_sticky_sidebar', false );
136
  }
137
  // sticky sidebar
138
  $args['sticky_sidebar'] = auxin_is_true( $sticky_sidebar );
139
+ $args['post_class'] .= $args['sticky_sidebar'] ? ' aux-sticky-side' : '';
140
  }
141
+
142
  // specify the side position
 
143
  $args['side_pos'] = $side_pos;
144
 
145
+ // side position and metadata direction
146
+ $args['post_class'] .= ' aux-side-' . $side_pos;
147
+ $args['post_class'] .= ' aux-side-meta-' . $side_meta_status;
148
+
149
  switch ( $media_layout ) {
150
  case 'classic':
151
  $args['media_parent_class'] = 'aux-stack';
includes/general-hooks.php CHANGED
@@ -58,28 +58,106 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
58
  'section' => 'portfolio-section-single',
59
  'dependency' => array(),
60
  'choices' => array(
61
- 'right' => array(
62
- 'label' => __('Right', 'auxin-portfolio'),
63
- 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
64
  ),
65
- 'left' => array(
66
- 'label' => __('Left', 'auxin-portfolio'),
67
- 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
68
  ),
69
- 'bottom' => array(
70
- 'label' => __('Bottom', 'auxin-portfolio'),
71
- 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  )
73
  ),
74
  'default' => 'right',
75
  'type' => 'radio-image',
76
- 'post_js' => '$(".single-portfolio main.aux-single .aux-primary .type-portfolio").alterClass( "aux-side-*", "aux-side-" + to );',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  );
78
 
79
  $options[] = array(
80
  'title' => __('Sticky Side Area', 'auxin-portfolio'),
81
  'description' => __( 'Enable it to stick the side area on page while scrolling..'),
82
- 'id' => 'portfolio_single_stcky_sidebar',
83
  'section' => 'portfolio-section-single',
84
  'dependency' => array(
85
  array(
@@ -93,46 +171,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
93
  'type' => 'switch'
94
  );
95
 
96
- $options[] = array(
97
- 'title' => __('Single portfolio Sidebar Position', 'auxin-portfolio'),
98
- 'description' => __('Specifies position of sidebar on single portfolio.', 'auxin-portfolio'),
99
- 'id' => 'portfolio_single_sidebar_position',
100
- 'section' => 'portfolio-section-single',
101
- 'dependency' => array(),
102
- 'post_js' => '$(".single-portfolio main.aux-single").alterClass( "*-sidebar", to );',
103
- 'choices' => array(
104
- 'no-sidebar' => array(
105
- 'label' => __('No Sidebar', 'auxin-portfolio'),
106
- 'css_class' => 'axiAdminIcon-sidebar-none'
107
- ),
108
- 'right-sidebar' => array(
109
- 'label' => __('Right Sidebar', 'auxin-portfolio'),
110
- 'css_class' => 'axiAdminIcon-sidebar-right'
111
- ),
112
- 'left-sidebar' => array(
113
- 'label' => __('Left Sidebar' , 'auxin-portfolio'),
114
- 'css_class' => 'axiAdminIcon-sidebar-left'
115
- ),
116
- 'left2-sidebar' => array(
117
- 'label' => __('Left Left Sidebar' , 'auxin-portfolio'),
118
- 'css_class' => 'axiAdminIcon-sidebar-left-left'
119
- ),
120
- 'right2-sidebar' => array(
121
- 'label' => __('Right Right Sidebar' , 'auxin-portfolio'),
122
- 'css_class' => 'axiAdminIcon-sidebar-right-right'
123
- ),
124
- 'left-right-sidebar' => array(
125
- 'label' => __('Left Right Sidebar' , 'auxin-portfolio'),
126
- 'css_class' => 'axiAdminIcon-sidebar-left-right'
127
- ),
128
- 'right-left-sidebar' => array(
129
- 'label' => __('Right Left Sidebar' , 'auxin-portfolio'),
130
- 'css_class' => 'axiAdminIcon-sidebar-left-right'
131
- )
132
- ),
133
- 'default' => 'right-sidebar',
134
- 'type' => 'radio-image'
135
- );
136
 
137
  $options[] = array(
138
  'title' => __('Single portfolio Sidebar Style', 'auxin-portfolio'),
@@ -166,28 +204,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
166
  'default' => 'border'
167
  );
168
 
169
- // @TODO: we should add this in future
170
- // $options[] = array(
171
- // 'title' => __('Content Style', 'auxin-portfolio'),
172
- // 'description' => __('You can reduce the width of text lines and increase the readability of context in single portfolio of portfolio (does not affect the width of media).', 'auxin-portfolio'),
173
- // 'id' => 'portfolio_single_content_style',
174
- // 'section' => 'portfolio-section-single',
175
- // 'dependency' => array(),
176
- // 'choices' => array(
177
- // 'simple' => array(
178
- // 'label' => __( 'Default' , 'auxin-portfolio'),
179
- // 'image' => AUXIN_URL . 'images/visual-select/content-normal.svg'
180
- // ),
181
- // 'narrow' => array(
182
- // 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
183
- // 'image' => AUXIN_URL . 'images/visual-select/content-less.svg'
184
- // )
185
- // ),
186
- // 'transport' => 'postMessage',
187
- // 'post_js' => '$(".single-portfolio .aux-primary .hentry").toggleClass( "aux-narrow-context", "narrow" == to );',
188
- // 'default' => 'simple',
189
- // 'type' => 'radio-image'
190
- // );
191
 
192
  $options[] = array(
193
  'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
@@ -252,29 +268,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
252
  'default' => 'minimal'
253
  );
254
 
255
- $options[] = array(
256
- 'title' => __('Display Single Portfolio Categories', 'auxin-portfolio'),
257
- 'description' => __( 'Enable it to display category section in single portfolio.'),
258
- 'id' => 'portfolio_single_display_category',
259
- 'section' => 'portfolio-section-single',
260
- 'dependency' => '',
261
- 'transport' => 'refresh',
262
- 'default' => '0',
263
- 'type' => 'switch'
264
- );
265
-
266
- $options[] = array(
267
- 'title' => __('Display Single Portfolio Tags', 'auxin-portfolio'),
268
- 'description' => __( 'Enable it to display Tag section in single portfolio.'),
269
- 'id' => 'portfolio_single_display_tag',
270
- 'section' => 'portfolio-section-single',
271
- 'dependency' => '',
272
- 'transport' => 'refresh',
273
- 'default' => '0',
274
- 'type' => 'switch'
275
- );
276
-
277
-
278
  // Sub section - related portfolios section -------------------------------
279
 
280
  $sections[] = array(
@@ -1086,13 +1079,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
1086
  'value' => array('tiles-1'),
1087
  'operator'=> '!='
1088
  ),
1089
- // @TODO: relation on this dependency is not working
1090
- // array(
1091
- // 'id' => 'portfolio_taxonomy_grid_item_type',
1092
- // 'value' => array('classic', 'classic-lightbox', 'classic-lightbox-boxed'),
1093
- // 'operator'=> '=='
1094
- // ),
1095
- // 'relation'=> 'and'
1096
 
1097
  ),
1098
  'transport' => 'refresh',
@@ -1452,9 +1438,13 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php' ) ) {
1452
 
1453
  }
1454
 
 
1455
 
1456
-
1457
-
 
 
 
1458
  function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
1459
 
1460
  if( function_exists( 'wp_ulike' ) && $show_like_btn ){
@@ -1472,7 +1462,87 @@ function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
1472
  }
1473
 
1474
  }
 
1475
 
1476
- add_action( 'auxin_portfolio_single_portfolio_actions', 'auxpfo_add_single_portfolio_actions', 10, 2 );
1477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1478
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  'section' => 'portfolio-section-single',
59
  'dependency' => array(),
60
  'choices' => array(
61
+ 'right' => array(
62
+ 'label' => __('Info on Right', 'auxin-portfolio'),
63
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic.svg'
64
  ),
65
+ 'left' => array(
66
+ 'label' => __('Info on Left', 'auxin-portfolio'),
67
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
68
  ),
69
+ 'top' => array(
70
+ 'label' => __('Info on Top', 'auxin-portfolio'),
71
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
72
+ ),
73
+ 'top-reverse' => array(
74
+ 'label' => __('Info on Top - Direction reverse', 'auxin-portfolio'),
75
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
76
+ ),
77
+ 'top-down' => array(
78
+ 'label' => __('Info on Top - Metadata Below', 'auxin-portfolio'),
79
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
80
+ ),
81
+ 'bottom' => array(
82
+ 'label' => __('Info on Bottom', 'auxin-portfolio'),
83
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
84
+ ),
85
+ 'bottom-reverse' => array(
86
+ 'label' => __('Info on Bottom - Direction reverse', 'auxin-portfolio'),
87
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
88
+ ),
89
+ 'bottom-down' => array(
90
+ 'label' => __('Info on Bottom - Metadata Below', 'auxin-portfolio'),
91
+ 'image' => AUXIN_URL . 'images/visual-select/portfolio-single-wide.svg'
92
  )
93
  ),
94
  'default' => 'right',
95
  'type' => 'radio-image',
96
+ 'transport' => 'refresh'
97
+ );
98
+
99
+ $options[] = array(
100
+ 'title' => __('Overview Alignment', 'auxin-portfolio'),
101
+ 'description' => __('Specifies alignment for the project overview and corresponding information.', 'auxin-portfolio'),
102
+ 'id' => 'portfolios_overview_info_alignment',
103
+ 'section' => 'portfolio-section-single',
104
+ 'dependency' => array(),
105
+ 'type' => 'radio-image',
106
+ 'default' => 'default',
107
+ 'choices' => array(
108
+ 'default' => array(
109
+ 'label' => __('Default', THEME_DOMAIN),
110
+ 'css_class' => 'axiAdminIcon-default',
111
+ ),
112
+ 'left' => array(
113
+ 'label' => __('Left', THEME_DOMAIN),
114
+ 'css_class' => 'axiAdminIcon-text-align-left'
115
+ ),
116
+ 'center' => array(
117
+ 'label' => __('Center', THEME_DOMAIN),
118
+ 'css_class' => 'axiAdminIcon-text-align-center'
119
+ )
120
+ ),
121
+ 'post_js' => '$(".single-portfolio main.aux-single .aux-primary .type-portfolio").alterClass( "aux-text-align-*", "aux-text-align-" + to );',
122
+ );
123
+
124
+ $options[] = array(
125
+ 'title' => __('Display Portfolio Meta Info', 'auxin-portfolio'),
126
+ 'description' => __('Enable this option to display extra inormation on portfolio single page.', 'auxin-portfolio'),
127
+ 'id' => 'portfolio_single_display_side_info_meta',
128
+ 'section' => 'portfolio-section-single',
129
+ 'dependency' => '',
130
+ 'transport' => 'refresh',
131
+ 'default' => '1',
132
+ 'type' => 'switch'
133
+ );
134
+
135
+ $options[] = array(
136
+ 'title' => __('Display Single Portfolio Categories', 'auxin-portfolio'),
137
+ 'description' => __( 'Enable it to display category section in single portfolio.'),
138
+ 'id' => 'portfolio_single_display_category',
139
+ 'section' => 'portfolio-section-single',
140
+ 'dependency' => '',
141
+ 'transport' => 'refresh',
142
+ 'default' => '0',
143
+ 'type' => 'switch'
144
+ );
145
+
146
+ $options[] = array(
147
+ 'title' => __('Display Single Portfolio Tags', 'auxin-portfolio'),
148
+ 'description' => __( 'Enable it to display Tag section in single portfolio.'),
149
+ 'id' => 'portfolio_single_display_tag',
150
+ 'section' => 'portfolio-section-single',
151
+ 'dependency' => '',
152
+ 'transport' => 'refresh',
153
+ 'default' => '0',
154
+ 'type' => 'switch'
155
  );
156
 
157
  $options[] = array(
158
  'title' => __('Sticky Side Area', 'auxin-portfolio'),
159
  'description' => __( 'Enable it to stick the side area on page while scrolling..'),
160
+ 'id' => 'portfolio_single_sticky_sidebar',
161
  'section' => 'portfolio-section-single',
162
  'dependency' => array(
163
  array(
171
  'type' => 'switch'
172
  );
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
  $options[] = array(
176
  'title' => __('Single portfolio Sidebar Style', 'auxin-portfolio'),
204
  'default' => 'border'
205
  );
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
  $options[] = array(
209
  'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
268
  'default' => 'minimal'
269
  );
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  // Sub section - related portfolios section -------------------------------
272
 
273
  $sections[] = array(
1079
  'value' => array('tiles-1'),
1080
  'operator'=> '!='
1081
  ),
 
 
 
 
 
 
 
1082
 
1083
  ),
1084
  'transport' => 'refresh',
1438
 
1439
  }
1440
 
1441
+ // Portfolio single ------------------------------------------------------------
1442
 
1443
+ /**
1444
+ * Adding share and like buttons to single portfolio actions section
1445
+ *
1446
+ * @return string
1447
+ */
1448
  function auxpfo_add_single_portfolio_actions( $show_like_btn, $show_share_btn ){
1449
 
1450
  if( function_exists( 'wp_ulike' ) && $show_like_btn ){
1462
  }
1463
 
1464
  }
1465
+ add_action( 'auxin_single_portfolio_actions', 'auxpfo_add_single_portfolio_actions', 10, 2 );
1466
 
 
1467
 
1468
+ /**
1469
+ * Making the portfolio overview filterable
1470
+ *
1471
+ * @param string $overview The portfolio overview
1472
+ * @return string
1473
+ */
1474
+ function auxpfo_add_single_portfolio_overview( $overview ){
1475
+ echo $overview;
1476
+ }
1477
+ add_action( 'auxin_single_portfolio_overview', 'auxpfo_add_single_portfolio_overview', 10, 2 );
1478
+
1479
+
1480
+
1481
+ /**
1482
+ * Add related portfolio items to portfolio single page
1483
+ *
1484
+ * @return string
1485
+ */
1486
+ function auxpfo_single_portfolio_related_items( $post ){
1487
+
1488
+ // get display_related option
1489
+ if( 'default' == $display_related = auxin_get_post_meta( $post->ID, '_display_related', 'default' ) ) {
1490
+ $display_related = auxin_get_option( 'show_portfolio_related_posts', true );
1491
+ }
1492
 
1493
+ if( auxin_is_true( $display_related ) || is_customize_preview() ){
1494
+
1495
+ // get title_label option
1496
+ if( 'default' == $related_title_label = auxin_get_post_meta( $post->ID, '_related_posts_label', 'default' ) ) {
1497
+ $related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) );
1498
+ }
1499
+
1500
+ // get desktop_cnum option
1501
+ if( 'default' == $desktop_cnum = auxin_get_post_meta( $post->ID, '_related_posts_column_number', 'default' ) ) {
1502
+ $desktop_cnum = auxin_get_option( 'portfolio_related_posts_column_number', true );
1503
+ }
1504
+
1505
+ // get preview_mode option
1506
+ if( 'default' == $preview_mode = auxin_get_post_meta( $post->ID, '_related_posts_preview_mode', 'default' ) ) {
1507
+ $preview_mode = auxin_get_option( 'portfolio_related_posts_preview_mode', true );
1508
+ }
1509
+
1510
+ // get alignment option
1511
+ if( 'default' == $do_align_center = auxin_get_post_meta( $post->ID, '_related_posts_align_center', 'default' ) ) {
1512
+ $do_align_center = auxin_get_option( 'portfolio_related_posts_align_center', true );
1513
+ }
1514
+
1515
+ // get display_categories option
1516
+ if( 'default' == $display_categories = auxin_get_post_meta( $post->ID, '_related_posts_display_taxonomies', 'default' ) ) {
1517
+ $display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
1518
+ }
1519
+ $display_categories = auxin_is_true( $display_categories )? true: false;
1520
+
1521
+
1522
+ // set arguments
1523
+ $defaults = array(
1524
+ 'title' => $related_title_label,
1525
+ 'desktop_cnum' => $desktop_cnum,
1526
+ 'preview_mode' => $preview_mode,
1527
+ 'extra_classes' => auxin_is_true( $do_align_center ) ? 'aux-text-align-center': '',
1528
+ 'display_categories' => $display_categories
1529
+ );
1530
+ echo auxpfo_get_portfolio_related_posts( $defaults );
1531
+ }
1532
+
1533
+ }
1534
+ add_action( 'auxin_portfolio_single_after_content_primary', 'auxpfo_single_portfolio_related_items' );
1535
+
1536
+
1537
+ /**
1538
+ * Changes the default portfolio layout to "no-sidebar"
1539
+ *
1540
+ * @return string Portfolio single page layout
1541
+ */
1542
+ function auxpfo_single_portfolio_no_sidebar( $layout, $post ){
1543
+ if( "portfolio" == get_post_type( $post ) ){
1544
+ return "no-sidebar";
1545
+ }
1546
+ return $layout;
1547
+ }
1548
+ add_filter( "auxin_get_page_sidebar_pos", "auxpfo_single_portfolio_no_sidebar", 10, 2 );
public/templates/single-portfolio.php CHANGED
@@ -9,6 +9,7 @@
9
  * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
 
12
  $is_pass_protected = post_password_required();
13
 
14
  get_header(); ?>
@@ -20,61 +21,28 @@ get_header(); ?>
20
 
21
  <div id="primary" class="aux-primary" >
22
  <div class="content" role="main" >
 
 
23
 
24
- <?php if ( have_posts() && ! $is_pass_protected ) : ?>
25
-
26
- <?php auxpfo_get_template_part( 'theme-parts/single', get_post_type() ); ?>
27
-
28
- <?php comments_template( '/comments.php', true ); ?>
29
 
30
- <?php elseif( $is_pass_protected ) : ?>
31
 
32
- <?php echo get_the_password_form(); ?>
33
 
34
- <?php else : ?>
35
 
36
- <?php auxpfo_get_template_part( 'theme-parts/content', 'none' ); ?>
37
 
38
- <?php endif; ?>
39
 
 
 
40
  </div><!-- end content -->
41
-
42
- <?php
43
- // get next/prev portfolio button
44
- if( 'default' == $display_next_pre = auxin_get_post_meta( $post->ID, '_show_next_prev_nav', 'default' ) ){
45
- $display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
46
- }
47
-
48
- $display_next_pre = auxin_is_true( $display_next_pre ) ;
49
-
50
- if( $display_next_pre ) {
51
- if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
52
- $next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
53
- }
54
- $args = array(
55
- 'prev_text' => __( 'Previous Portfolio', 'auxin-portfolio' ),
56
- 'next_text' => __( 'Next Portfolio' , 'auxin-portfolio' ),
57
- 'taxonomy' => 'portfolio-cat',
58
- 'skin' => $next_prev_skin // minimal, thumb-no-arrow, thumb-arrow, boxed-image
59
- );
60
-
61
- if ( 'classic' == $next_prev_skin ) {
62
-
63
- $args['prev_text'] = __( 'Prev', 'auxin-portfolio' ) ;
64
- $args['next_text'] = __( 'Next ', 'auxin-portfolio' ) ;
65
-
66
- } elseif ( 'classic-title' == $next_prev_skin ){
67
-
68
- $args['prev_text'] = __( 'Previous Project', 'auxin-portfolio' ) ;
69
- $args['next_text'] = __( 'Next Project', 'auxin-portfolio' ) ;
70
-
71
- }
72
-
73
- auxin_single_page_navigation( $args );
74
-
75
- }
76
- ?>
77
-
78
  </div><!-- end primary -->
79
 
80
 
@@ -83,55 +51,8 @@ get_header(); ?>
83
 
84
  </div><!-- end container -->
85
 
86
- <?php
87
- // get display_related option
88
- if( 'default' == $display_related = auxin_get_post_meta( $post->ID, '_display_related', 'default' ) ) {
89
- $display_related = auxin_get_option( 'show_portfolio_related_posts', true );
90
- }
91
-
92
- $display_related = auxin_is_true( $display_related ) ;
93
-
94
- if( $display_related ) {
95
-
96
- // get title_label option
97
- if( 'default' == $related_title_label = auxin_get_post_meta( $post->ID, '_related_posts_label', 'default' ) ) {
98
- $related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) );
99
- }
100
-
101
- // get desktop_cnum option
102
- if( 'default' == $desktop_cnum = auxin_get_post_meta( $post->ID, '_related_posts_column_number', 'default' ) ) {
103
- $desktop_cnum = auxin_get_option( 'portfolio_related_posts_column_number', true );
104
- }
105
-
106
- // get preview_mode option
107
- if( 'default' == $preview_mode = auxin_get_post_meta( $post->ID, '_related_posts_preview_mode', 'default' ) ) {
108
- $preview_mode = auxin_get_option( 'portfolio_related_posts_preview_mode', true );
109
- }
110
-
111
- // get alignment option
112
- if( 'default' == $extra_classes = auxin_get_post_meta( $post->ID, '_related_posts_align_center', 'default' ) ) {
113
- $extra_classes = auxin_get_option( 'portfolio_related_posts_align_center', true );
114
- }
115
- $extra_classes = ( $extra_classes == "yes" || $extra_classes === true )? true: false;
116
-
117
- // get display_categories option
118
- if( 'default' == $display_categories = auxin_get_post_meta( $post->ID, '_related_posts_display_taxonomies', 'default' ) ) {
119
- $display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
120
- }
121
- $display_categories = auxin_is_true( $display_categories )? true: false;
122
-
123
-
124
- // set arguments
125
- $defaults = array(
126
- 'title' => $related_title_label,
127
- 'desktop_cnum' => $desktop_cnum,
128
- 'preview_mode' => $preview_mode,
129
- 'extra_classes' => ( $extra_classes ) ? 'aux-text-align-center': '',
130
- 'display_categories' => $display_categories
131
- );
132
- echo auxpfo_get_portfolio_related_posts( $defaults );
133
- }
134
- ?>
135
  </div><!-- end wrapper -->
136
  </main><!-- end main -->
137
 
9
  * @link http://averta.net/phlox/
10
  * @copyright (c) 2010-2017
11
  */
12
+ global $post;
13
  $is_pass_protected = post_password_required();
14
 
15
  get_header(); ?>
21
 
22
  <div id="primary" class="aux-primary" >
23
  <div class="content" role="main" >
24
+ <?php
25
+ if ( have_posts() && ! $is_pass_protected ) :
26
 
27
+ auxpfo_get_template_part( 'theme-parts/single', get_post_type() );
 
 
 
 
28
 
29
+ comments_template( '/comments.php', true );
30
 
31
+ elseif( $is_pass_protected ) :
32
 
33
+ echo get_the_password_form();
34
 
35
+ else:
36
 
37
+ auxpfo_get_template_part( 'theme-parts/content', 'none' );
38
 
39
+ endif;
40
+ ?>
41
  </div><!-- end content -->
42
+ <?php
43
+ global $post_next_prev_navigation;
44
+ echo empty( $post_next_prev_navigation ) ? '' : $post_next_prev_navigation;
45
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  </div><!-- end primary -->
47
 
48
 
51
 
52
  </div><!-- end container -->
53
 
54
+ <?php do_action( 'auxin_portfolio_single_after_content_primary', $post ); ?>
55
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  </div><!-- end wrapper -->
57
  </main><!-- end main -->
58
 
public/templates/theme-parts/entry/single-portfolio.php CHANGED
@@ -27,18 +27,19 @@
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' );
 
30
 
31
- if ( !empty( $info_layout_bg ) ){
32
-
33
  $layout_bg = ' background-color: ' . $info_layout_bg . ';';
34
  $layout_mg = ' aux-layout-margin' ;
35
  echo '<div class="layout-bg" style=" ' . esc_attr ( $layout_bg ) . ' "></div>';
36
-
37
  }
38
 
39
  $info_layout_font_color = 'light' == $info_layout_font_color ? ' aux-text-color-light' : 'aux-text-color-dark' ;
40
  $header_class = isset ( $layout_mg ) ? esc_attr ( $info_layout_font_color ) . esc_attr ( $layout_mg ) : esc_attr ( $info_layout_font_color );
 
41
  $header_styles = isset ( $layout_bg ) ? 'style="'. esc_attr( $layout_bg ) . '"' : '' ;
 
42
 
43
  if( $sticky_sidebar ) {
44
  // 45 is the space between site header and the side area
@@ -47,19 +48,24 @@
47
  <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">
48
  <?php } else { ?>
49
  <div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
50
- <?php } ?>
 
 
 
 
51
  <div class="entry-overview-container">
52
  <?php
53
- $_overview = auxin_get_post_meta( $post->ID, '_overview', '' );
54
 
55
  if( $_overview || $show_actions ) {
56
  if( $_overview ){
57
-
58
- echo '<div class="entry-side-overview">'. do_shortcode( $_overview ). '</div>';
 
59
  }
60
  if( $show_actions ) {
61
  echo '<div class="entry-actions">';
62
- do_action('auxin_portfolio_single_portfolio_actions', $show_like_btn, $show_share_btn );
63
  echo '</div>';
64
  }
65
  }
@@ -97,29 +103,22 @@
97
  $display_metafields = true;
98
  } else { $display_metafields = false; }
99
 
100
- if( $display_metafields || $display_cat || $display_tag || $display_lunch ){ // start of displaying condition
101
  echo '<div class="entry-meta-data-container">';
102
  echo '<div class="entry-meta-data"><dl>';
103
- if( $display_cat ){
104
- if ( count($cat_terms) == 1 ) {
105
- echo "<dt>Category</dt>";
106
- } else { echo "<dt>Categories</dt>"; }
107
 
108
- echo '<dd><span class="entry-tax">';
 
109
  foreach( $cat_terms as $term ){
110
- echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
111
  }
112
  echo '</span></dd>';
113
  }
114
 
115
  if( $display_tag ) {
116
- if ( count($tag_terms) == 1 ) {
117
- echo "<dt>Tag</dt>";
118
- } else { echo "<dt>Tags</dt>"; }
119
-
120
- echo '<dd><span class="entry-tax">';
121
  foreach( $tag_terms as $term ){
122
- echo '<a href="'. get_term_link( $term->slug, $tax_name_tag ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
123
  }
124
  echo '</span></dd>';
125
  }
@@ -131,22 +130,21 @@
131
  }
132
  }
133
 
134
- echo '</dl></div>';
135
 
136
 
137
- if( $display_lunch ) {
138
- ?>
139
- <a href="<?php echo $lunch_btn_url; ?>" class="aux-button aux-cta-button aux-black aux-medium aux-curve">
140
- <span class="aux-overlay"></span>
141
- <span class="aux-text"><?php echo auxin_get_option( 'portfolio_metadata_launch_label' ); ?></span>
142
- </a>
143
- <?php }
144
- } // End of displaying condition
145
- ?>
146
 
147
- </div>
148
- <!-- end - Portfolio info -->
149
- <?php }
 
 
150
 
151
  // print media on bottom if side position is top
152
  if( 'top' == $side_pos ){
@@ -159,44 +157,40 @@
159
  // create pagination for page content
160
  wp_link_pages( array( 'before' => '<div class="page-links"><span>' . __( 'Pages:', 'auxin-portfolio') .'</span>', 'after' => '</div>' ) );
161
 
162
- ?>
163
- <?php
164
- // get next/prev portfolio button
165
  if( 'default' == $display_next_pre = auxin_get_post_meta( $post->ID, '_show_next_prev_nav', 'default' ) ){
166
  $display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
167
  }
168
 
169
- $display_next_pre = auxin_is_true( $display_next_pre ) ;
170
-
171
- if( $display_next_pre && ( !empty( $info_layout_bg ) ) ) {
172
-
173
  if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
174
  $next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
175
  }
176
-
177
  $args = array(
178
  'prev_text' => __( 'Previous Portfolio', 'auxin-portfolio' ),
179
  'next_text' => __( 'Next Portfolio' , 'auxin-portfolio' ),
180
  'taxonomy' => 'portfolio-cat',
181
- 'skin' => $next_prev_skin // minimal, thumb-no-arrow, thumb-arrow, boxed-image
 
182
  );
183
 
184
  if ( 'classic' == $next_prev_skin ) {
185
-
186
  $args['prev_text'] = __( 'Prev', 'auxin-portfolio' ) ;
187
  $args['next_text'] = __( 'Next ', 'auxin-portfolio' ) ;
188
-
189
  } elseif ( 'classic-title' == $next_prev_skin ){
190
-
191
  $args['prev_text'] = __( 'Previous Project', 'auxin-portfolio' ) ;
192
  $args['next_text'] = __( 'Next Project', 'auxin-portfolio' ) ;
193
-
194
  }
195
 
196
- auxin_single_page_navigation( $args );
197
-
198
  }
199
 
 
 
 
 
 
 
200
  ?>
201
 
202
  </article> <!-- end article -->
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' );
30
+ $info_pos = auxin_get_post_meta( $post->ID, '_side_info_pos');
31
 
32
+ if ( ! empty( $info_layout_bg ) ){
 
33
  $layout_bg = ' background-color: ' . $info_layout_bg . ';';
34
  $layout_mg = ' aux-layout-margin' ;
35
  echo '<div class="layout-bg" style=" ' . esc_attr ( $layout_bg ) . ' "></div>';
 
36
  }
37
 
38
  $info_layout_font_color = 'light' == $info_layout_font_color ? ' aux-text-color-light' : 'aux-text-color-dark' ;
39
  $header_class = isset ( $layout_mg ) ? esc_attr ( $info_layout_font_color ) . esc_attr ( $layout_mg ) : esc_attr ( $info_layout_font_color );
40
+
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
  if( $sticky_sidebar ) {
45
  // 45 is the space between site header and the side area
48
  <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">
49
  <?php } else { ?>
50
  <div class="entry-side <?php echo esc_attr( $header_class );?>" <?php echo $header_styles ;?> >
51
+ <?php }
52
+ if( $_overview_title = auxin_get_post_meta( $post->ID, '_overview_title', '' ) ){
53
+ echo '<div class="entry-side-title"><h1>'. do_shortcode( $_overview_title ). '</h1></div>';
54
+ }
55
+ ?>
56
  <div class="entry-overview-container">
57
  <?php
58
+ $_overview = auxin_get_post_meta( $post->ID, '_overview', '' );
59
 
60
  if( $_overview || $show_actions ) {
61
  if( $_overview ){
62
+ echo '<div class="entry-side-overview">';
63
+ do_action('auxin_single_portfolio_overview', $_overview, $show_like_btn, $show_share_btn );
64
+ echo '</div>';
65
  }
66
  if( $show_actions ) {
67
  echo '<div class="entry-actions">';
68
+ do_action('auxin_single_portfolio_actions', $show_like_btn, $show_share_btn );
69
  echo '</div>';
70
  }
71
  }
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
  }
130
  }
131
  }
132
 
133
+ echo '</dl>';
134
 
135
 
136
+ if( $display_lunch ) { ?>
137
+ <a href="<?php echo $lunch_btn_url; ?>" class="aux-button aux-cta-button aux-black aux-medium aux-curve">
138
+ <span class="aux-overlay"></span>
139
+ <span class="aux-text"><?php echo auxin_get_option( 'portfolio_metadata_launch_label' ); ?></span>
140
+ </a><?php
141
+ }
 
 
 
142
 
143
+ echo '</div></div>';
144
+ }
145
+
146
+ echo "</div>";
147
+ }
148
 
149
  // print media on bottom if side position is top
150
  if( 'top' == $side_pos ){
157
  // create pagination for page content
158
  wp_link_pages( array( 'before' => '<div class="page-links"><span>' . __( 'Pages:', 'auxin-portfolio') .'</span>', 'after' => '</div>' ) );
159
 
160
+ // get next/prev portfolio buttons
 
 
161
  if( 'default' == $display_next_pre = auxin_get_post_meta( $post->ID, '_show_next_prev_nav', 'default' ) ){
162
  $display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
163
  }
164
 
165
+ if( auxin_is_true( $display_next_pre ) ) {
 
 
 
166
  if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
167
  $next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
168
  }
 
169
  $args = array(
170
  'prev_text' => __( 'Previous Portfolio', 'auxin-portfolio' ),
171
  'next_text' => __( 'Next Portfolio' , 'auxin-portfolio' ),
172
  'taxonomy' => 'portfolio-cat',
173
+ 'skin' => $next_prev_skin, // minimal, thumb-no-arrow, thumb-arrow, boxed-image
174
+ 'echo' => false
175
  );
176
 
177
  if ( 'classic' == $next_prev_skin ) {
 
178
  $args['prev_text'] = __( 'Prev', 'auxin-portfolio' ) ;
179
  $args['next_text'] = __( 'Next ', 'auxin-portfolio' ) ;
 
180
  } elseif ( 'classic-title' == $next_prev_skin ){
 
181
  $args['prev_text'] = __( 'Previous Project', 'auxin-portfolio' ) ;
182
  $args['next_text'] = __( 'Next Project', 'auxin-portfolio' ) ;
 
183
  }
184
 
185
+ $next_prev_navigation = auxin_single_page_navigation( $args );
 
186
  }
187
 
188
+ if( $sticky_sidebar ) {
189
+ echo $next_prev_navigation;
190
+ } else {
191
+ global $post_next_prev_navigation;
192
+ $post_next_prev_navigation = $next_prev_navigation;
193
+ }
194
  ?>
195
 
196
  </article> <!-- end article -->