Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.4
- README.txt +12 -4
- auxin-portfolio.php +4 -4
- includes/define.php +1 -1
- includes/general-hooks.php +1055 -106
- public/templates/theme-parts/entry/single-portfolio.php +2 -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.
|
10 |
-
Stable tag: 1.1.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -121,6 +121,13 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
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.
|
@@ -148,5 +155,6 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
148 |
|
149 |
== Upgrade Notice ==
|
150 |
|
151 |
-
= 1.1.
|
152 |
-
- [New]: New
|
|
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.4
|
10 |
+
Stable tag: 1.1.4
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
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.
|
127 |
+
- [Fix]: A bug with undefined variable in single portfolio page fixed.
|
128 |
+
- [Fix]: Sidebar options removed from portfolio single pages.
|
129 |
+
- [Fix]: The portfolio hover option issue in customizer fixed.
|
130 |
+
|
131 |
= Version 1.1.0 / (23.10.2017) =
|
132 |
- [New]: New layouts added to portfolio single pages.
|
133 |
- [New]: New option for adding overview title added to portfolio pages.
|
155 |
|
156 |
== Upgrade Notice ==
|
157 |
|
158 |
+
= 1.1.4 =
|
159 |
+
- [New]: New options in theme options for title bar setting.
|
160 |
+
- [New]: New options for adding a button under related portfolio items added.
|
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.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.
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
@@ -51,7 +51,7 @@ if( is_admin() || false === get_transient( 'auxpfo_plugin_requirements_check' )
|
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
-
'version' => '1.6.
|
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.8.
|
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.1.4
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* License: GPL2
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
20 |
* Text Domain: auxin-portfolio
|
21 |
* Domain Path: /languages
|
22 |
+
* Tested up to: 4.8.4
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
51 |
'name' => __('Phlox Core Elements', 'auxin-portfolio'), // The plugin name.
|
52 |
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
53 |
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
54 |
+
'version' => '1.6.4', // 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.8.4', // 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.1.
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
15 |
|
16 |
|
17 |
|
18 |
+
define( 'AUXPFO_VERSION' , '1.1.4' );
|
19 |
|
20 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
21 |
|
includes/general-hooks.php
CHANGED
@@ -106,15 +106,15 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
106 |
'default' => 'default',
|
107 |
'choices' => array(
|
108 |
'default' => array(
|
109 |
-
'label' => __('Default',
|
110 |
'css_class' => 'axiAdminIcon-default',
|
111 |
),
|
112 |
'left' => array(
|
113 |
-
'label' => __('Left',
|
114 |
'css_class' => 'axiAdminIcon-text-align-left'
|
115 |
),
|
116 |
'center' => array(
|
117 |
-
'label' => __('Center',
|
118 |
'css_class' => 'axiAdminIcon-text-align-center'
|
119 |
)
|
120 |
),
|
@@ -172,38 +172,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
172 |
);
|
173 |
|
174 |
|
175 |
-
$options[] = array(
|
176 |
-
'title' => __('Single portfolio Sidebar Style', 'auxin-portfolio'),
|
177 |
-
'description' => 'Specifies style of sidebar on single portfolio.',
|
178 |
-
'id' => 'portfolio_single_sidebar_decoration',
|
179 |
-
'section' => 'portfolio-section-single',
|
180 |
-
'dependency' => array(
|
181 |
-
array(
|
182 |
-
'id' => 'portfolio_single_sidebar_position',
|
183 |
-
'value' => 'no-sidebar',
|
184 |
-
'operator'=> '!='
|
185 |
-
)
|
186 |
-
),
|
187 |
-
'transport' => 'postMessage',
|
188 |
-
'post_js' => '$(".single-portfolio main.aux-single").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
189 |
-
'choices' => array(
|
190 |
-
'simple' => array(
|
191 |
-
'label' => __( 'Simple' , 'auxin-portfolio'),
|
192 |
-
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-1.svg'
|
193 |
-
),
|
194 |
-
'border' => array(
|
195 |
-
'label' => __( 'Bordered Sidebar' , 'auxin-portfolio'),
|
196 |
-
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-2.svg'
|
197 |
-
),
|
198 |
-
'overlap' => array(
|
199 |
-
'label' => __( 'Overlap Background' , 'auxin-portfolio'),
|
200 |
-
'image' => AUXIN_URL . 'images/visual-select/sidebar-style-3.svg'
|
201 |
-
)
|
202 |
-
),
|
203 |
-
'type' => 'radio-image',
|
204 |
-
'default' => 'border'
|
205 |
-
);
|
206 |
-
|
207 |
|
208 |
$options[] = array(
|
209 |
'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
|
@@ -268,6 +236,911 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
268 |
'default' => 'minimal'
|
269 |
);
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
// Sub section - related portfolios section -------------------------------
|
272 |
|
273 |
$sections[] = array(
|
@@ -422,6 +1295,55 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
422 |
);
|
423 |
|
424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
/*$options[] = array( 'title' => __('View All button link', 'auxin-portfolio'),
|
426 |
'description' => __('Specifies a link for "view all" button to portfolio listing page (the button that comes at the end of latest from portfolio element ) ', 'auxin-portfolio'),
|
427 |
'id' => 'portfolio_view_all_btn_link',
|
@@ -509,15 +1431,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
509 |
)
|
510 |
),
|
511 |
'type' => 'radio-image',
|
512 |
-
'choices' => array(
|
513 |
-
'classic' => __('Classic', 'auxin-portfolio' ),
|
514 |
-
'classic-lightbox' => __('Classic with lightbox style 1', 'auxin-portfolio' ),
|
515 |
-
'classic-lightbox-boxed' => __('Classic with lightbox style 2', 'auxin-portfolio' ),
|
516 |
-
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
517 |
-
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
518 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
519 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
520 |
-
),
|
521 |
'choices' => array(
|
522 |
// default template
|
523 |
'classic' => array(
|
@@ -565,12 +1478,24 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
565 |
'operator'=> '=='
|
566 |
)
|
567 |
),
|
568 |
-
'type' => '
|
569 |
-
'choices'
|
570 |
-
'overlay'
|
571 |
-
|
572 |
-
|
573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
),
|
575 |
'transport' => 'refresh',
|
576 |
'default' => 'overlay',
|
@@ -829,7 +1754,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
829 |
'post_js' => '$(".blog .aux-archive, main.aux-home").alterClass( "*-sidebar", to );',
|
830 |
'type' => 'radio-image',
|
831 |
'transport' => 'refresh',
|
832 |
-
'default' => 'no-
|
833 |
);
|
834 |
|
835 |
$options[] = array(
|
@@ -950,15 +1875,37 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
950 |
'operator'=> '=='
|
951 |
)
|
952 |
),
|
953 |
-
'type' => '
|
954 |
'choices' => array(
|
955 |
-
|
956 |
-
'classic
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
'
|
961 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
962 |
),
|
963 |
'transport' => 'refresh',
|
964 |
'default' => 'classic',
|
@@ -976,12 +1923,24 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
976 |
'operator'=> '=='
|
977 |
)
|
978 |
),
|
979 |
-
'type' => '
|
980 |
-
'choices'
|
981 |
-
'overlay'
|
982 |
-
|
983 |
-
|
984 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
985 |
),
|
986 |
'transport' => 'refresh',
|
987 |
'default' => 'overlay',
|
@@ -1237,7 +2196,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
1237 |
)
|
1238 |
),
|
1239 |
'type' => 'radio-image',
|
1240 |
-
'default' => 'right-
|
1241 |
);
|
1242 |
|
1243 |
$options[] = array(
|
@@ -1271,45 +2230,6 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
1271 |
'default' => 'border'
|
1272 |
);
|
1273 |
|
1274 |
-
$options[] = array(
|
1275 |
-
'title' => __('Taxonomy content length', 'auxin-portfolio'),
|
1276 |
-
'description' => sprintf(__('Whether to display%1$ssummary%2$sor%1$sfull%2$scontent for each portfolio on category & tag page.', 'auxin-portfolio'), '<code>', '</code>'),
|
1277 |
-
'id' => 'portfolio_taxonomy_archive_content_on_listing',
|
1278 |
-
'section' => 'portfolio-section-taxonomy',
|
1279 |
-
'dependency' => array(),
|
1280 |
-
'transport' => 'refresh',
|
1281 |
-
'choices' => array(
|
1282 |
-
'full' => array(
|
1283 |
-
'label' =>__('Full text', 'auxin-portfolio'),
|
1284 |
-
'css_class' => 'axiAdminIcon-blog-content-length-2'
|
1285 |
-
),
|
1286 |
-
'excerpt' => array(
|
1287 |
-
'label' => __('Summary' , 'auxin-portfolio'),
|
1288 |
-
'css_class' => 'axiAdminIcon-blog-content-length-1'
|
1289 |
-
)
|
1290 |
-
),
|
1291 |
-
'default' => 'full',
|
1292 |
-
'type' => 'radio-image'
|
1293 |
-
);
|
1294 |
-
|
1295 |
-
// @TODO: Right now we don't use this options but we should do
|
1296 |
-
$options[] = array(
|
1297 |
-
'title' => __('Summery length', 'auxin-portfolio'),
|
1298 |
-
'description' => __('Specifies summary character length on category & tag page.', 'auxin-portfolio'),
|
1299 |
-
'id' => 'portfolio_taxonomy_archive_on_listing_length',
|
1300 |
-
'section' => 'portfolio-section-taxonomy',
|
1301 |
-
'dependency' => array(
|
1302 |
-
array(
|
1303 |
-
'id' => 'post_taxonomy_archive_content_on_listing',
|
1304 |
-
'value' => array('excerpt'),
|
1305 |
-
'operator'=> ''
|
1306 |
-
)
|
1307 |
-
),
|
1308 |
-
'transport' => 'refresh',
|
1309 |
-
'default' => '255',
|
1310 |
-
'type' => 'text'
|
1311 |
-
);
|
1312 |
-
|
1313 |
// -------------------------------------------------------------------------
|
1314 |
|
1315 |
$sections[] = array(
|
@@ -1525,7 +2445,8 @@ function auxpfo_single_portfolio_related_items( $post ){
|
|
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 |
}
|
@@ -1534,6 +2455,34 @@ function auxpfo_single_portfolio_related_items( $post ){
|
|
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 |
*
|
106 |
'default' => 'default',
|
107 |
'choices' => array(
|
108 |
'default' => array(
|
109 |
+
'label' => __('Default', 'auxin-portfolio'),
|
110 |
'css_class' => 'axiAdminIcon-default',
|
111 |
),
|
112 |
'left' => array(
|
113 |
+
'label' => __('Left', 'auxin-portfolio'),
|
114 |
'css_class' => 'axiAdminIcon-text-align-left'
|
115 |
),
|
116 |
'center' => array(
|
117 |
+
'label' => __('Center', 'auxin-portfolio'),
|
118 |
'css_class' => 'axiAdminIcon-text-align-center'
|
119 |
)
|
120 |
),
|
172 |
);
|
173 |
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
$options[] = array(
|
177 |
'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
|
236 |
'default' => 'minimal'
|
237 |
);
|
238 |
|
239 |
+
|
240 |
+
// Sub section - Portfolio Single Page -------------------------------
|
241 |
+
|
242 |
+
$sections[] = array(
|
243 |
+
'id' => 'portfolio-section-single-titlebar',
|
244 |
+
'parent' => 'portfolio-section', // section parent's id
|
245 |
+
'title' => __( 'Portfolio Title', 'auxin-portfolio' ),
|
246 |
+
'description' => __( 'Preview a portfolio page', 'auxin-portfolio' ),
|
247 |
+
'preview_link' => auxin_get_last_post_permalink( array( 'post_type' => 'portfolio' ) )
|
248 |
+
);
|
249 |
+
|
250 |
+
$options[] = array(
|
251 |
+
'title' => __( 'Display Title Bar Section', 'auxin-portfolio' ),
|
252 |
+
'description' => __( 'Enable it to show the title section.', 'auxin-portfolio' ),
|
253 |
+
'id' => 'portfolio_title_bar_show',
|
254 |
+
'section' => 'portfolio-section-single-titlebar',
|
255 |
+
'transport' => 'refresh',
|
256 |
+
'type' => 'switch',
|
257 |
+
'default' => '0'
|
258 |
+
);
|
259 |
+
|
260 |
+
$options[] = array(
|
261 |
+
'title' => __( 'Layout presets', 'auxin-portfolio' ),
|
262 |
+
'description' => '',
|
263 |
+
'id' => 'portfolio_title_bar_preset',
|
264 |
+
'section' => 'portfolio-section-single-titlebar',
|
265 |
+
'transport' => 'refresh',
|
266 |
+
'type' => 'radio-image',
|
267 |
+
'default' => 'normal_title_1',
|
268 |
+
'dependency' => array(
|
269 |
+
array(
|
270 |
+
'id' => 'portfolio_title_bar_show',
|
271 |
+
'value' => '1',
|
272 |
+
'operator'=> '=='
|
273 |
+
)
|
274 |
+
),
|
275 |
+
'choices' => array(
|
276 |
+
'normal_title_1' => array(
|
277 |
+
'label' => __( 'Default', 'auxin-portfolio' ),
|
278 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-4.svg',
|
279 |
+
'presets' => array(
|
280 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
281 |
+
'portfolio_title_bar_content_section_height' => 'auto',
|
282 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
283 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
284 |
+
'portfolio_title_bar_meta_enabled' => 0,
|
285 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
286 |
+
'portfolio_title_bar_bread_bordered' => 0,
|
287 |
+
'portfolio_title_bar_bread_sep_style' => 'arrow',
|
288 |
+
'portfolio_title_bar_text_align' => 'left',
|
289 |
+
'portfolio_title_bar_vertical_align' => 'top',
|
290 |
+
'portfolio_title_bar_scroll_arrow' => 'none',
|
291 |
+
'portfolio_title_bar_color_style' => 'dark',
|
292 |
+
'portfolio_title_bar_overlay_color' => ''
|
293 |
+
)
|
294 |
+
),
|
295 |
+
'normal_bg_light_1' => array(
|
296 |
+
'label' => __( 'Title bar with light overlay which is aligned center', 'auxin-portfolio' ),
|
297 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-1.svg',
|
298 |
+
'presets' => array(
|
299 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
300 |
+
'portfolio_title_bar_content_section_height' => 'auto',
|
301 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
302 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
303 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
304 |
+
'portfolio_title_bar_bread_bordered' => 0,
|
305 |
+
'portfolio_title_bar_bread_sep_style' => 'arrow',
|
306 |
+
'portfolio_title_bar_text_align' => 'center',
|
307 |
+
'portfolio_title_bar_vertical_align' => 'top',
|
308 |
+
'portfolio_title_bar_scroll_arrow' => 'none',
|
309 |
+
'portfolio_title_bar_color_style' => 'dark',
|
310 |
+
'portfolio_title_bar_overlay_color' => ''
|
311 |
+
)
|
312 |
+
),
|
313 |
+
'full_bg_light_1' => array(
|
314 |
+
'label' => __( 'Fullscreen title bar with light overlay on background', 'auxin-portfolio' ),
|
315 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-2.svg',
|
316 |
+
'presets' => array(
|
317 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
318 |
+
'portfolio_title_bar_content_section_height' => 'full',
|
319 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
320 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
321 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
322 |
+
'portfolio_title_bar_bread_bordered' => 1,
|
323 |
+
'portfolio_title_bar_bread_sep_style' => 'slash',
|
324 |
+
'portfolio_title_bar_text_align' => 'center',
|
325 |
+
'portfolio_title_bar_vertical_align' => 'middle',
|
326 |
+
'portfolio_title_bar_scroll_arrow' => 'round',
|
327 |
+
'portfolio_title_bar_color_style' => 'dark',
|
328 |
+
'portfolio_title_bar_overlay_color' => 'rgba(255,255,255,0.50)'
|
329 |
+
)
|
330 |
+
),
|
331 |
+
'full_bg_dark_1' => array(
|
332 |
+
'label' => __( 'Fullscreen title bar with dark overlay on background', 'auxin-portfolio' ),
|
333 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-3.svg',
|
334 |
+
'presets' => array(
|
335 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
336 |
+
'portfolio_title_bar_content_section_height' => 'full',
|
337 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
338 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
339 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
340 |
+
'portfolio_title_bar_bread_bordered' => 0,
|
341 |
+
'portfolio_title_bar_bread_sep_style' => 'slash',
|
342 |
+
'portfolio_title_bar_text_align' => 'center',
|
343 |
+
'portfolio_title_bar_vertical_align' => 'middle',
|
344 |
+
'portfolio_title_bar_scroll_arrow' => 'round',
|
345 |
+
'portfolio_title_bar_color_style' => 'light',
|
346 |
+
'portfolio_title_bar_overlay_color' => 'rgba(0,0,0,0.6)'
|
347 |
+
)
|
348 |
+
),
|
349 |
+
'full_bg_dark_2' => array(
|
350 |
+
'label' => __( 'Fullscreen title bar with border around the title', 'auxin-portfolio' ),
|
351 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-6.svg',
|
352 |
+
'presets' => array(
|
353 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
354 |
+
'portfolio_title_bar_content_section_height' => 'full',
|
355 |
+
'portfolio_title_bar_heading_bordered' => 1,
|
356 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
357 |
+
'portfolio_title_bar_bread_enabled' => 0,
|
358 |
+
'portfolio_title_bar_bread_bordered' => 1,
|
359 |
+
'portfolio_title_bar_bread_sep_style' => 'slash',
|
360 |
+
'portfolio_title_bar_text_align' => 'center',
|
361 |
+
'portfolio_title_bar_vertical_align' => 'middle',
|
362 |
+
'portfolio_title_bar_scroll_arrow' => 'round',
|
363 |
+
'portfolio_title_bar_color_style' => 'dark',
|
364 |
+
'portfolio_title_bar_overlay_color' => 'rgba(250,250,250,0.3)'
|
365 |
+
)
|
366 |
+
),
|
367 |
+
'full_bg_dark_3' => array(
|
368 |
+
'label' => __( 'Fullscreen title bar with dark box around the title', 'auxin-portfolio' ),
|
369 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-7.svg',
|
370 |
+
'presets' => array(
|
371 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
372 |
+
'portfolio_title_bar_content_section_height' => 'full',
|
373 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
374 |
+
'portfolio_title_bar_heading_boxed' => 1,
|
375 |
+
'portfolio_title_bar_bread_enabled' => 0,
|
376 |
+
'portfolio_title_bar_bread_bordered' => 0,
|
377 |
+
'portfolio_title_bar_bread_sep_style' => 'slash',
|
378 |
+
'portfolio_title_bar_text_align' => 'center',
|
379 |
+
'portfolio_title_bar_vertical_align' => 'middle',
|
380 |
+
'portfolio_title_bar_scroll_arrow' => 'round',
|
381 |
+
'portfolio_title_bar_color_style' => 'light',
|
382 |
+
'portfolio_title_bar_overlay_color' => 'rgba(0,0,0,0.5)'
|
383 |
+
)
|
384 |
+
),
|
385 |
+
'normal_bg_dark_1' => array(
|
386 |
+
'label' => __( 'Title aligned left with dark overlay on background', 'auxin-portfolio' ),
|
387 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-5.svg',
|
388 |
+
'presets' => array(
|
389 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
390 |
+
'portfolio_title_bar_content_section_height' => 'auto',
|
391 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
392 |
+
'portfolio_title_bar_heading_boxed' => 0,
|
393 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
394 |
+
'portfolio_title_bar_bread_bordered' => 0,
|
395 |
+
'portfolio_title_bar_bread_sep_style' => 'gt',
|
396 |
+
'portfolio_title_bar_text_align' => 'left',
|
397 |
+
'portfolio_title_bar_vertical_align' => 'bottom',
|
398 |
+
'portfolio_title_bar_scroll_arrow' => 'none',
|
399 |
+
'portfolio_title_bar_color_style' => 'light',
|
400 |
+
'portfolio_title_bar_overlay_color' => 'rgba(0,0,0,0.3)'
|
401 |
+
)
|
402 |
+
),
|
403 |
+
'full_bg_dark_4' => array(
|
404 |
+
'label' => __( 'Tile overlaps the title area section and is aligned center', 'auxin-portfolio' ),
|
405 |
+
'image' => AUXIN_URL . 'images/visual-select/titlebar-style-8.svg',
|
406 |
+
'presets' => array(
|
407 |
+
'portfolio_title_bar_content_width_type' => 'boxed',
|
408 |
+
'portfolio_title_bar_content_section_height' => 'auto',
|
409 |
+
'portfolio_title_bar_heading_bordered' => 0,
|
410 |
+
'portfolio_title_bar_heading_boxed' => 1,
|
411 |
+
'portfolio_title_bar_bread_enabled' => 1,
|
412 |
+
'portfolio_title_bar_bread_bordered' => 1,
|
413 |
+
'portfolio_title_bar_bread_sep_style' => 'gt',
|
414 |
+
'portfolio_title_bar_text_align' => 'center',
|
415 |
+
'portfolio_title_bar_vertical_align' => 'bottom-overlap',
|
416 |
+
'portfolio_title_bar_scroll_arrow' => 'none',
|
417 |
+
'portfolio_title_bar_color_style' => 'light',
|
418 |
+
'portfolio_title_bar_overlay_color' => 'rgba(0,0,0,0.5)'
|
419 |
+
)
|
420 |
+
)
|
421 |
+
)
|
422 |
+
);
|
423 |
+
|
424 |
+
$options[] = array(
|
425 |
+
'title' => __( 'Enable advanced setting', 'auxin-portfolio' ),
|
426 |
+
'description' => __( 'Enable it to customize preset layouts.', 'auxin-portfolio' ),
|
427 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
428 |
+
'section' => 'portfolio-section-single-titlebar',
|
429 |
+
'transport' => 'refresh',
|
430 |
+
'type' => 'switch',
|
431 |
+
'default' => '0',
|
432 |
+
'dependency' => array(
|
433 |
+
array(
|
434 |
+
'id' => 'portfolio_title_bar_show',
|
435 |
+
'value' => '1',
|
436 |
+
'operator'=> '=='
|
437 |
+
)
|
438 |
+
),
|
439 |
+
);
|
440 |
+
|
441 |
+
$options[] = array(
|
442 |
+
'title' => __( 'Content Width', 'auxin-portfolio' ),
|
443 |
+
'description' => '',
|
444 |
+
'id' => 'portfolio_title_bar_content_width_type',
|
445 |
+
'section' => 'portfolio-section-single-titlebar',
|
446 |
+
'transport' => 'refresh',
|
447 |
+
'type' => 'radio-image',
|
448 |
+
'default' => 'boxed',
|
449 |
+
'dependency' => array(
|
450 |
+
array(
|
451 |
+
'id' => 'portfolio_title_bar_show',
|
452 |
+
'value' => '1',
|
453 |
+
'operator'=> '=='
|
454 |
+
),
|
455 |
+
array(
|
456 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
457 |
+
'value' => '1',
|
458 |
+
'operator'=> '=='
|
459 |
+
)
|
460 |
+
),
|
461 |
+
'choices' => array(
|
462 |
+
'boxed' => array(
|
463 |
+
'label' => __( 'Boxed', 'auxin-portfolio' ),
|
464 |
+
'css_class' => 'axiAdminIcon-content-boxed',
|
465 |
+
),
|
466 |
+
'semi-full' => array(
|
467 |
+
'label' => __( 'Full Width Content with Space on Sides', 'auxin-portfolio' ),
|
468 |
+
'css_class' => 'axiAdminIcon-content-full-with-spaces'
|
469 |
+
),
|
470 |
+
'full' => array(
|
471 |
+
'label' => __( 'Full Width Content', 'auxin-portfolio' ),
|
472 |
+
'css_class' => 'axiAdminIcon-content-full'
|
473 |
+
)
|
474 |
+
)
|
475 |
+
);
|
476 |
+
|
477 |
+
$options[] = array(
|
478 |
+
'title' => __( 'Title Section Height', 'auxin-portfolio' ),
|
479 |
+
'description' => '',
|
480 |
+
'id' => 'portfolio_title_bar_content_section_height',
|
481 |
+
'section' => 'portfolio-section-single-titlebar',
|
482 |
+
'transport' => 'refresh',
|
483 |
+
'type' => 'select',
|
484 |
+
'default' => 'auto',
|
485 |
+
'dependency' => array(
|
486 |
+
array(
|
487 |
+
'id' => 'portfolio_title_bar_show',
|
488 |
+
'value' => '1',
|
489 |
+
'operator'=> '=='
|
490 |
+
),
|
491 |
+
array(
|
492 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
493 |
+
'value' => '1',
|
494 |
+
'operator'=> '=='
|
495 |
+
)
|
496 |
+
),
|
497 |
+
'choices' => array(
|
498 |
+
'auto' => __( 'Auto Height', 'auxin-portfolio' ),
|
499 |
+
'full' => __( 'Full Height', 'auxin-portfolio' )
|
500 |
+
)
|
501 |
+
);
|
502 |
+
|
503 |
+
$options[] = array(
|
504 |
+
'title' => __( 'Vertical Position', 'auxin-portfolio' ),
|
505 |
+
'description' => __( 'Specifies vertical alignment of title and subtitle.', 'auxin-portfolio' ) . "<br/>".
|
506 |
+
__( 'Note: Parallax feature in not available for "Bottom Overlap" vertical mode.', 'auxin-portfolio' ),
|
507 |
+
'id' => 'portfolio_title_bar_vertical_align',
|
508 |
+
'section' => 'portfolio-section-single-titlebar',
|
509 |
+
'transport' => 'refresh',
|
510 |
+
'type' => 'select',
|
511 |
+
'default' => '',
|
512 |
+
'dependency' => array(
|
513 |
+
array(
|
514 |
+
'id' => 'portfolio_title_bar_show',
|
515 |
+
'value' => '1',
|
516 |
+
'operator'=> '=='
|
517 |
+
),
|
518 |
+
array(
|
519 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
520 |
+
'value' => '1',
|
521 |
+
'operator'=> '=='
|
522 |
+
)
|
523 |
+
),
|
524 |
+
'choices' => array(
|
525 |
+
'top' => __( 'Top' , 'auxin-portfolio' ),
|
526 |
+
'middle' => __( 'Middle' , 'auxin-portfolio' ),
|
527 |
+
'bottom' => __( 'Bottom' , 'auxin-portfolio' ),
|
528 |
+
'bottom-overlap' => __( 'Bottom Overlap', 'auxin-portfolio' )
|
529 |
+
)
|
530 |
+
);
|
531 |
+
|
532 |
+
$options[] = array(
|
533 |
+
'title' => __( 'Scroll Down Arrow', 'auxin-portfolio' ),
|
534 |
+
'description' => __( 'This option only applies if section height is "Full Height".', 'auxin-portfolio' ),
|
535 |
+
'id' => 'portfolio_title_bar_scroll_arrow',
|
536 |
+
'section' => 'portfolio-section-single-titlebar',
|
537 |
+
'transport' => 'refresh',
|
538 |
+
'type' => 'radio-image',
|
539 |
+
'default' => '',
|
540 |
+
'dependency' => array(
|
541 |
+
array(
|
542 |
+
'id' => 'portfolio_title_bar_show',
|
543 |
+
'value' => '1',
|
544 |
+
'operator'=> '=='
|
545 |
+
),
|
546 |
+
array(
|
547 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
548 |
+
'value' => '1',
|
549 |
+
'operator'=> '=='
|
550 |
+
),
|
551 |
+
array(
|
552 |
+
'id' => 'portfolio_title_bar_content_section_height',
|
553 |
+
'value' => 'full',
|
554 |
+
'operator'=> '=='
|
555 |
+
),
|
556 |
+
array(
|
557 |
+
'id' => 'portfolio_title_bar_vertical_align',
|
558 |
+
'value' => array('top', 'middle', 'bottom'),
|
559 |
+
'operator'=> '=='
|
560 |
+
)
|
561 |
+
),
|
562 |
+
'choices' => array(
|
563 |
+
'none' => array(
|
564 |
+
'label' => __( 'None', 'auxin-portfolio' ),
|
565 |
+
'css_class' => 'axiAdminIcon-none'
|
566 |
+
),
|
567 |
+
'round' => array(
|
568 |
+
'label' => __( 'Round', 'auxin-portfolio' ),
|
569 |
+
'css_class' => 'axiAdminIcon-scroll-down-arrow-outline'
|
570 |
+
)
|
571 |
+
)
|
572 |
+
);
|
573 |
+
|
574 |
+
$options[] = array(
|
575 |
+
'title' => __( 'Border for Heading', 'auxin-portfolio' ),
|
576 |
+
'description' => __( 'Enable it to display a border around the title and subtitle area.', 'auxin-portfolio' ),
|
577 |
+
'id' => 'portfolio_title_bar_heading_bordered',
|
578 |
+
'section' => 'portfolio-section-single-titlebar',
|
579 |
+
'transport' => 'refresh',
|
580 |
+
'type' => 'switch',
|
581 |
+
'default' => '0',
|
582 |
+
'dependency' => array(
|
583 |
+
array(
|
584 |
+
'id' => 'portfolio_title_bar_show',
|
585 |
+
'value' => '1',
|
586 |
+
'operator'=> '=='
|
587 |
+
),
|
588 |
+
array(
|
589 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
590 |
+
'value' => '1',
|
591 |
+
'operator'=> '=='
|
592 |
+
)
|
593 |
+
),
|
594 |
+
);
|
595 |
+
|
596 |
+
$options[] = array(
|
597 |
+
'title' => __( 'Boxed Title', 'auxin-portfolio' ),
|
598 |
+
'description' => __( 'Enable it to wrap the title and subtitle in a box with background color.', 'auxin-portfolio' ),
|
599 |
+
'id' => 'portfolio_title_bar_heading_boxed',
|
600 |
+
'section' => 'portfolio-section-single-titlebar',
|
601 |
+
'transport' => 'refresh',
|
602 |
+
'type' => 'switch',
|
603 |
+
'default' => '0',
|
604 |
+
'dependency' => array(
|
605 |
+
array(
|
606 |
+
'id' => 'portfolio_title_bar_show',
|
607 |
+
'value' => '1',
|
608 |
+
'operator'=> '=='
|
609 |
+
),
|
610 |
+
array(
|
611 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
612 |
+
'value' => '1',
|
613 |
+
'operator'=> '=='
|
614 |
+
)
|
615 |
+
),
|
616 |
+
);
|
617 |
+
|
618 |
+
$options[] = array(
|
619 |
+
'title' => __( 'Title Box Custom Color', 'auxin-portfolio' ),
|
620 |
+
'description' => __( 'Specifies a custom background color for the box around the title and subtitle.', 'auxin-portfolio' ),
|
621 |
+
'id' => 'portfolio_title_bar_heading_bg_color',
|
622 |
+
'section' => 'portfolio-section-single-titlebar',
|
623 |
+
'transport' => 'refresh',
|
624 |
+
'type' => 'color',
|
625 |
+
'default' => '',
|
626 |
+
'dependency' => array(
|
627 |
+
array(
|
628 |
+
'id' => 'portfolio_title_bar_show',
|
629 |
+
'value' => '1',
|
630 |
+
'operator'=> '=='
|
631 |
+
),
|
632 |
+
array(
|
633 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
634 |
+
'value' => '1',
|
635 |
+
'operator'=> '=='
|
636 |
+
),
|
637 |
+
array(
|
638 |
+
'id' => 'portfolio_title_bar_heading_boxed',
|
639 |
+
'value' => '1',
|
640 |
+
'operator'=> '=='
|
641 |
+
)
|
642 |
+
)
|
643 |
+
);
|
644 |
+
|
645 |
+
$options[] = array(
|
646 |
+
'title' => __( 'Display Post Meta', 'auxin-portfolio' ),
|
647 |
+
'description' => __( 'Enable it to display post meta information on title section.', 'auxin-portfolio' ),
|
648 |
+
'id' => 'portfolio_title_bar_meta_enabled',
|
649 |
+
'section' => 'portfolio-section-single-titlebar',
|
650 |
+
'transport' => 'refresh',
|
651 |
+
'type' => 'switch',
|
652 |
+
'default' => '0',
|
653 |
+
'dependency' => array(
|
654 |
+
array(
|
655 |
+
'id' => 'portfolio_title_bar_show',
|
656 |
+
'value' => '1',
|
657 |
+
'operator'=> '=='
|
658 |
+
),
|
659 |
+
array(
|
660 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
661 |
+
'value' => '1',
|
662 |
+
'operator'=> '=='
|
663 |
+
)
|
664 |
+
),
|
665 |
+
);
|
666 |
+
|
667 |
+
$options[] = array(
|
668 |
+
'title' => __( 'Display Breadcrumb', 'auxin-portfolio' ),
|
669 |
+
'description' => __( 'Enable it to display breadcrumb on title section.', 'auxin-portfolio' ),
|
670 |
+
'id' => 'portfolio_title_bar_bread_enabled',
|
671 |
+
'section' => 'portfolio-section-single-titlebar',
|
672 |
+
'transport' => 'refresh',
|
673 |
+
'type' => 'switch',
|
674 |
+
'default' => '1',
|
675 |
+
'dependency' => array(
|
676 |
+
array(
|
677 |
+
'id' => 'portfolio_title_bar_show',
|
678 |
+
'value' => '1',
|
679 |
+
'operator'=> '=='
|
680 |
+
),
|
681 |
+
array(
|
682 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
683 |
+
'value' => '1',
|
684 |
+
'operator'=> '=='
|
685 |
+
)
|
686 |
+
),
|
687 |
+
);
|
688 |
+
|
689 |
+
$options[] = array(
|
690 |
+
'title' => __( 'Border for Breadcrumb', 'auxin-portfolio' ),
|
691 |
+
'description' => __( 'Enable it to display border around breadcrumb.', 'auxin-portfolio' ),
|
692 |
+
'id' => 'portfolio_title_bar_bread_bordered',
|
693 |
+
'section' => 'portfolio-section-single-titlebar',
|
694 |
+
'transport' => 'refresh',
|
695 |
+
'type' => 'switch',
|
696 |
+
'default' => '0',
|
697 |
+
'dependency' => array(
|
698 |
+
array(
|
699 |
+
'id' => 'portfolio_title_bar_show',
|
700 |
+
'value' => '1',
|
701 |
+
'operator'=> '=='
|
702 |
+
),
|
703 |
+
array(
|
704 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
705 |
+
'value' => '1',
|
706 |
+
'operator'=> '=='
|
707 |
+
),
|
708 |
+
array(
|
709 |
+
'id' => 'portfolio_title_bar_bread_enabled',
|
710 |
+
'value' => '1',
|
711 |
+
'operator'=> '=='
|
712 |
+
)
|
713 |
+
),
|
714 |
+
);
|
715 |
+
|
716 |
+
$options[] = array(
|
717 |
+
'title' => __( 'Breadcrumb Separator', 'auxin-portfolio' ),
|
718 |
+
'description' => __( 'Enable it to display separator between breadcrumb parts.', 'auxin-portfolio' ),
|
719 |
+
'id' => 'portfolio_title_bar_bread_sep_style',
|
720 |
+
'section' => 'portfolio-section-single-titlebar',
|
721 |
+
'transport' => 'refresh',
|
722 |
+
'type' => 'radio-image',
|
723 |
+
'default' => 'arrow',
|
724 |
+
'dependency' => array(
|
725 |
+
array(
|
726 |
+
'id' => 'portfolio_title_bar_show',
|
727 |
+
'value' => '1',
|
728 |
+
'operator'=> '=='
|
729 |
+
),
|
730 |
+
array(
|
731 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
732 |
+
'value' => '1',
|
733 |
+
'operator'=> '=='
|
734 |
+
),
|
735 |
+
array(
|
736 |
+
'id' => 'portfolio_title_bar_bread_enabled',
|
737 |
+
'value' => '1',
|
738 |
+
'operator'=> '=='
|
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'
|
753 |
+
)
|
754 |
+
)
|
755 |
+
);
|
756 |
+
|
757 |
+
$options[] = array(
|
758 |
+
'title' => __( 'Text Align', 'auxin-portfolio' ),
|
759 |
+
'description' => '',
|
760 |
+
'id' => 'portfolio_title_bar_text_align',
|
761 |
+
'section' => 'portfolio-section-single-titlebar',
|
762 |
+
'transport' => 'refresh',
|
763 |
+
'type' => 'radio-image',
|
764 |
+
'default' => 'left',
|
765 |
+
'dependency' => array(
|
766 |
+
array(
|
767 |
+
'id' => 'portfolio_title_bar_show',
|
768 |
+
'value' => '1',
|
769 |
+
'operator'=> '=='
|
770 |
+
),
|
771 |
+
array(
|
772 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
773 |
+
'value' => '1',
|
774 |
+
'operator'=> '=='
|
775 |
+
)
|
776 |
+
),
|
777 |
+
'choices' => array(
|
778 |
+
'left' => array(
|
779 |
+
'label' => __( 'Left', 'auxin-portfolio' ),
|
780 |
+
'css_class' => 'axiAdminIcon-text-align-left',
|
781 |
+
),
|
782 |
+
'center' => array(
|
783 |
+
'label' => __( 'Center', 'auxin-portfolio' ),
|
784 |
+
'css_class' => 'axiAdminIcon-text-align-center'
|
785 |
+
),
|
786 |
+
'right' => array(
|
787 |
+
'label' => __( 'Right', 'auxin-portfolio' ),
|
788 |
+
'css_class' => 'axiAdminIcon-text-align-right'
|
789 |
+
)
|
790 |
+
)
|
791 |
+
);
|
792 |
+
|
793 |
+
$options[] = array(
|
794 |
+
'title' => __( 'Overlay Color', 'auxin-portfolio' ),
|
795 |
+
'description' => __( 'The color that overlay on the background. Please note that color should have transparency.','auxin-portfolio' ),
|
796 |
+
'id' => 'portfolio_title_bar_overlay_color',
|
797 |
+
'section' => 'portfolio-section-single-titlebar',
|
798 |
+
'transport' => 'refresh',
|
799 |
+
'type' => 'color',
|
800 |
+
'default' => '',
|
801 |
+
'dependency' => array(
|
802 |
+
array(
|
803 |
+
'id' => 'portfolio_title_bar_show',
|
804 |
+
'value' => '1',
|
805 |
+
'operator'=> '=='
|
806 |
+
),
|
807 |
+
array(
|
808 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
809 |
+
'value' => '1',
|
810 |
+
'operator'=> '=='
|
811 |
+
)
|
812 |
+
)
|
813 |
+
);
|
814 |
+
|
815 |
+
$options[] = array(
|
816 |
+
'title' => __( 'Overlay Pattern', 'auxin-portfolio' ),
|
817 |
+
'description' => '',
|
818 |
+
'id' => 'portfolio_title_bar_overlay_pattern',
|
819 |
+
'section' => 'portfolio-section-single-titlebar',
|
820 |
+
'transport' => 'refresh',
|
821 |
+
'type' => 'radio-image',
|
822 |
+
'default' => 'none',
|
823 |
+
'dependency' => array(
|
824 |
+
array(
|
825 |
+
'id' => 'portfolio_title_bar_show',
|
826 |
+
'value' => '1',
|
827 |
+
'operator'=> '=='
|
828 |
+
),
|
829 |
+
array(
|
830 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
831 |
+
'value' => '1',
|
832 |
+
'operator'=> '=='
|
833 |
+
)
|
834 |
+
),
|
835 |
+
'choices' => array(
|
836 |
+
'none' => array(
|
837 |
+
'label' => __( 'None', 'auxin-portfolio' ),
|
838 |
+
'css_class' => 'axiAdminIcon-none'
|
839 |
+
),
|
840 |
+
'hash' => array(
|
841 |
+
'label' => __( 'Hash', 'auxin-portfolio' ),
|
842 |
+
'css_class' => 'axiAdminIcon-pattern',
|
843 |
+
)
|
844 |
+
)
|
845 |
+
);
|
846 |
+
|
847 |
+
$options[] = array(
|
848 |
+
'title' => __( 'Overlay Pattern Opacity', 'auxin-portfolio' ),
|
849 |
+
'description' => '',
|
850 |
+
'id' => 'portfolio_title_bar_overlay_pattern_opacity',
|
851 |
+
'section' => 'portfolio-section-single-titlebar',
|
852 |
+
'transport' => 'postMessage',
|
853 |
+
'type' => 'text',
|
854 |
+
'default' => '0.5',
|
855 |
+
'dependency' => array(
|
856 |
+
array(
|
857 |
+
'id' => 'portfolio_title_bar_show',
|
858 |
+
'value' => '1',
|
859 |
+
'operator'=> '=='
|
860 |
+
),
|
861 |
+
array(
|
862 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
863 |
+
'value' => '1',
|
864 |
+
'operator'=> '=='
|
865 |
+
),
|
866 |
+
array(
|
867 |
+
'id' => 'portfolio_title_bar_overlay_pattern',
|
868 |
+
'value' => array('hash'),
|
869 |
+
'operator'=> '=='
|
870 |
+
)
|
871 |
+
),
|
872 |
+
'style_callback' => function( $value = null ){
|
873 |
+
if( ! $value ){
|
874 |
+
$value = esc_attr( auxin_get_option( 'portfolio_title_bar_overlay_pattern_opacity' ) );
|
875 |
+
}
|
876 |
+
if( ! is_numeric( $value ) || (float) $value > 1 ){
|
877 |
+
$value = 1;
|
878 |
+
}
|
879 |
+
return $value ? ".single-portfolio .aux-overlay-bg-hash::before { opacity:$value; }" : '';
|
880 |
+
}
|
881 |
+
);
|
882 |
+
|
883 |
+
$options[] = array(
|
884 |
+
'title' => __( 'Color Mode', 'auxin-portfolio' ),
|
885 |
+
'description' => '',
|
886 |
+
'id' => 'portfolio_title_bar_color_style',
|
887 |
+
'section' => 'portfolio-section-single-titlebar',
|
888 |
+
'transport' => 'refresh',
|
889 |
+
'type' => 'select',
|
890 |
+
'default' => 'dark',
|
891 |
+
'dependency' => array(
|
892 |
+
array(
|
893 |
+
'id' => 'portfolio_title_bar_show',
|
894 |
+
'value' => '1',
|
895 |
+
'operator'=> '=='
|
896 |
+
),
|
897 |
+
array(
|
898 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
899 |
+
'value' => '1',
|
900 |
+
'operator'=> '=='
|
901 |
+
)
|
902 |
+
),
|
903 |
+
'choices' => array(
|
904 |
+
'dark' => __( 'Dark', 'auxin-portfolio' ),
|
905 |
+
'light' => __( 'Light', 'auxin-portfolio' )
|
906 |
+
)
|
907 |
+
);
|
908 |
+
|
909 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
910 |
+
|
911 |
+
$options[] = array(
|
912 |
+
'title' => __( 'Enable Title Background', 'auxin-portfolio' ),
|
913 |
+
'description' => __( 'Enable it to display custom background for title section.', 'auxin-portfolio' ),
|
914 |
+
'id' => 'portfolio_title_bar_bg_show',
|
915 |
+
'section' => 'portfolio-section-single-titlebar',
|
916 |
+
'transport' => 'refresh',
|
917 |
+
'type' => 'switch',
|
918 |
+
'default' => '0',
|
919 |
+
'dependency' => array(
|
920 |
+
array(
|
921 |
+
'id' => 'portfolio_title_bar_show',
|
922 |
+
'value' => '1',
|
923 |
+
'operator'=> '=='
|
924 |
+
),
|
925 |
+
array(
|
926 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
927 |
+
'value' => '1',
|
928 |
+
'operator'=> '=='
|
929 |
+
)
|
930 |
+
)
|
931 |
+
);
|
932 |
+
|
933 |
+
$options[] = array(
|
934 |
+
'title' => __( 'Enable Parallax Effect', 'auxin-portfolio' ),
|
935 |
+
'description' => __( 'Enable it to have parallax background effect on this section.', 'auxin-portfolio' )."<br />".
|
936 |
+
__( 'Note: Parallax feature in not available for "Bottom Overlap" mode for "Vertical Position" option.', 'auxin-portfolio' ),
|
937 |
+
'id' => 'portfolio_title_bar_bg_parallax',
|
938 |
+
'section' => 'portfolio-section-single-titlebar',
|
939 |
+
'transport' => 'refresh',
|
940 |
+
'type' => 'switch',
|
941 |
+
'default' => '0',
|
942 |
+
'dependency' => array(
|
943 |
+
array(
|
944 |
+
'id' => 'portfolio_title_bar_show',
|
945 |
+
'value' => '1',
|
946 |
+
'operator'=> '=='
|
947 |
+
),
|
948 |
+
array(
|
949 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
950 |
+
'value' => '1',
|
951 |
+
'operator'=> '=='
|
952 |
+
),
|
953 |
+
array(
|
954 |
+
'id' => 'portfolio_title_bar_bg_show',
|
955 |
+
'value' => '1',
|
956 |
+
'operator'=> '=='
|
957 |
+
)
|
958 |
+
)
|
959 |
+
);
|
960 |
+
|
961 |
+
$options[] = array(
|
962 |
+
'title' => __( 'Background Color', 'auxin-portfolio' ),
|
963 |
+
'description' => __( 'Specifies a background color for title bar.', 'auxin-portfolio' ),
|
964 |
+
'id' => 'portfolio_title_bar_bg_color',
|
965 |
+
'section' => 'portfolio-section-single-titlebar',
|
966 |
+
'transport' => 'refresh',
|
967 |
+
'type' => 'color',
|
968 |
+
'default' => '',
|
969 |
+
'dependency' => array(
|
970 |
+
array(
|
971 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
972 |
+
'value' => '1',
|
973 |
+
'operator'=> '=='
|
974 |
+
),
|
975 |
+
array(
|
976 |
+
'id' => 'portfolio_title_bar_show',
|
977 |
+
'value' => '1',
|
978 |
+
'operator'=> '=='
|
979 |
+
),
|
980 |
+
array(
|
981 |
+
'id' => 'portfolio_title_bar_bg_show',
|
982 |
+
'value' => '1',
|
983 |
+
'operator'=> '=='
|
984 |
+
)
|
985 |
+
),
|
986 |
+
|
987 |
+
);
|
988 |
+
|
989 |
+
$options[] = array(
|
990 |
+
'title' => __( 'Background Size', 'auxin-portfolio' ),
|
991 |
+
'description' => __( 'Specifies the background size.', 'auxin-portfolio' ),
|
992 |
+
'id' => 'portfolio_title_bar_bg_size',
|
993 |
+
'section' => 'portfolio-section-single-titlebar',
|
994 |
+
'transport' => 'refresh',
|
995 |
+
'type' => 'radio-image',
|
996 |
+
'default' => '',
|
997 |
+
'dependency' => array(
|
998 |
+
array(
|
999 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
1000 |
+
'value' => '1',
|
1001 |
+
'operator'=> '=='
|
1002 |
+
),
|
1003 |
+
array(
|
1004 |
+
'id' => 'portfolio_title_bar_show',
|
1005 |
+
'value' => '1',
|
1006 |
+
'operator'=> '=='
|
1007 |
+
),
|
1008 |
+
array(
|
1009 |
+
'id' => 'portfolio_title_bar_bg_show',
|
1010 |
+
'value' => '1',
|
1011 |
+
'operator'=> '=='
|
1012 |
+
)
|
1013 |
+
),
|
1014 |
+
'choices' => array(
|
1015 |
+
'auto' => array(
|
1016 |
+
'label' => __( 'Auto', 'auxin-portfolio' ),
|
1017 |
+
'css_class' => 'axiAdminIcon-bg-size-1',
|
1018 |
+
),
|
1019 |
+
'contain' => array(
|
1020 |
+
'label' => __( 'Contain', 'auxin-portfolio' ),
|
1021 |
+
'css_class' => 'axiAdminIcon-bg-size-2',
|
1022 |
+
),
|
1023 |
+
'cover' => array(
|
1024 |
+
'label' => __( 'Cover', 'auxin-portfolio' ),
|
1025 |
+
'css_class' => 'axiAdminIcon-bg-size-3',
|
1026 |
+
)
|
1027 |
+
),
|
1028 |
+
|
1029 |
+
);
|
1030 |
+
|
1031 |
+
$options[] = array(
|
1032 |
+
'title' => __( 'Background Image', 'auxin-portfolio' ),
|
1033 |
+
'description' => __( 'Specifies a background image for title bar.', 'auxin-portfolio' ),
|
1034 |
+
'id' => 'portfolio_title_bar_bg_image',
|
1035 |
+
'section' => 'portfolio-section-single-titlebar',
|
1036 |
+
'transport' => 'refresh',
|
1037 |
+
'type' => 'image',
|
1038 |
+
'default' => '',
|
1039 |
+
'dependency' => array(
|
1040 |
+
array(
|
1041 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
1042 |
+
'value' => '1',
|
1043 |
+
'operator'=> '=='
|
1044 |
+
),
|
1045 |
+
array(
|
1046 |
+
'id' => 'portfolio_title_bar_show',
|
1047 |
+
'value' => '1',
|
1048 |
+
'operator'=> '=='
|
1049 |
+
),
|
1050 |
+
array(
|
1051 |
+
'id' => 'portfolio_title_bar_bg_show',
|
1052 |
+
'value' => '1',
|
1053 |
+
'operator'=> '=='
|
1054 |
+
)
|
1055 |
+
),
|
1056 |
+
|
1057 |
+
);
|
1058 |
+
|
1059 |
+
$options[] = array(
|
1060 |
+
'title' => __( 'Background Video MP4', 'auxin-portfolio' ),
|
1061 |
+
'description' => __( 'You can upload custom video for title background</br>Note: if you set custom image, default image backgrounds will be ignored.', 'auxin-portfolio' ),
|
1062 |
+
'id' => 'portfolio_title_bar_bg_video_mp4',
|
1063 |
+
'section' => 'portfolio-section-single-titlebar',
|
1064 |
+
'transport' => 'refresh',
|
1065 |
+
'type' => 'video',
|
1066 |
+
'default' => '',
|
1067 |
+
'dependency' => array(
|
1068 |
+
array(
|
1069 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
1070 |
+
'value' => '1',
|
1071 |
+
'operator'=> '=='
|
1072 |
+
),
|
1073 |
+
array(
|
1074 |
+
'id' => 'portfolio_title_bar_show',
|
1075 |
+
'value' => '1',
|
1076 |
+
'operator'=> '=='
|
1077 |
+
),
|
1078 |
+
array(
|
1079 |
+
'id' => 'portfolio_title_bar_bg_show',
|
1080 |
+
'value' => '1',
|
1081 |
+
'operator'=> '=='
|
1082 |
+
)
|
1083 |
+
)
|
1084 |
+
|
1085 |
+
);
|
1086 |
+
|
1087 |
+
$options[] = array(
|
1088 |
+
'title' => __( 'Background Video Ogg', 'auxin-portfolio' ),
|
1089 |
+
'description' => __( 'You can upload custom video for title background</br>Note: if you set custom image, default image backgrounds will be ignored.', 'auxin-portfolio' ),
|
1090 |
+
'id' => 'portfolio_title_bar_bg_video_ogg',
|
1091 |
+
'section' => 'portfolio-section-single-titlebar',
|
1092 |
+
'transport' => 'refresh',
|
1093 |
+
'type' => 'video',
|
1094 |
+
'default' => '',
|
1095 |
+
'dependency' => array(
|
1096 |
+
array(
|
1097 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
1098 |
+
'value' => '1',
|
1099 |
+
'operator'=> '=='
|
1100 |
+
),
|
1101 |
+
array(
|
1102 |
+
'id' => 'portfolio_title_bar_show',
|
1103 |
+
'value' => '1',
|
1104 |
+
'operator'=> '=='
|
1105 |
+
),
|
1106 |
+
array(
|
1107 |
+
'id' => 'portfolio_title_bar_bg_show',
|
1108 |
+
'value' => '1',
|
1109 |
+
'operator'=> '=='
|
1110 |
+
)
|
1111 |
+
),
|
1112 |
+
|
1113 |
+
);
|
1114 |
+
|
1115 |
+
$options[] = array(
|
1116 |
+
'title' => __( 'Background Video WebM', 'auxin-portfolio' ),
|
1117 |
+
'description' => __( 'You can upload custom video for title background</br>Note: if you set custom image, default image backgrounds will be ignored.', 'auxin-portfolio' ),
|
1118 |
+
'id' => 'portfolio_title_bar_bg_video_webm',
|
1119 |
+
'section' => 'portfolio-section-single-titlebar',
|
1120 |
+
'transport' => 'refresh',
|
1121 |
+
'type' => 'video',
|
1122 |
+
'default' => '',
|
1123 |
+
'dependency' => array(
|
1124 |
+
array(
|
1125 |
+
'id' => 'portfolio_title_bar_enable_customize',
|
1126 |
+
'value' => '1',
|
1127 |
+
'operator'=> '=='
|
1128 |
+
),
|
1129 |
+
array(
|
1130 |
+
'id' => 'portfolio_title_bar_show',
|
1131 |
+
'value' => '1',
|
1132 |
+
'operator'=> '=='
|
1133 |
+
),
|
1134 |
+
array(
|
1135 |
+
'id' => 'portfolio_title_bar_bg_show',
|
1136 |
+
'value' => '1',
|
1137 |
+
'operator'=> '=='
|
1138 |
+
)
|
1139 |
+
),
|
1140 |
+
|
1141 |
+
);
|
1142 |
+
|
1143 |
+
|
1144 |
// Sub section - related portfolios section -------------------------------
|
1145 |
|
1146 |
$sections[] = array(
|
1295 |
);
|
1296 |
|
1297 |
|
1298 |
+
$options[] = array(
|
1299 |
+
'title' => __('Link the Button Under Related Items To', 'auxin-portfolio'),
|
1300 |
+
'description' => __('Whether to display a button bellow related items section in order to direct visitors to portfolio archive page or not. You can link the button to the portfolio archive page or a custom page, or hide the button.', 'auxin-portfolio'),
|
1301 |
+
'id' => 'portfolio_single_all_related_items_url_type',
|
1302 |
+
'section' => 'portfolio-section-single-related',
|
1303 |
+
'transport' => 'refresh',
|
1304 |
+
'choices' => array(
|
1305 |
+
'archive' => __( 'Archive page', 'auxin-portfolio' ),
|
1306 |
+
'custom' => __( 'Custom URL', 'auxin-portfolio' ),
|
1307 |
+
'none' => __( 'Hide it', 'auxin-portfolio' )
|
1308 |
+
),
|
1309 |
+
'type' => 'select',
|
1310 |
+
'default' => 'archive'
|
1311 |
+
);
|
1312 |
+
|
1313 |
+
$options[] = array(
|
1314 |
+
'title' => __('Custom Link for Related Items Button', 'auxin-portfolio'),
|
1315 |
+
'description' => __('A custom link for the button under related items section.', 'auxin-portfolio'),
|
1316 |
+
'id' => 'portfolio_single_all_related_items_btn_url',
|
1317 |
+
'section' => 'portfolio-section-single-related',
|
1318 |
+
'dependency' => array(
|
1319 |
+
array(
|
1320 |
+
'id' => 'portfolio_single_all_related_items_url_type',
|
1321 |
+
'value' => array('custom'),
|
1322 |
+
'operator' => ''
|
1323 |
+
)
|
1324 |
+
),
|
1325 |
+
'transport' => 'refresh',
|
1326 |
+
'type' => 'text',
|
1327 |
+
'default' => ''
|
1328 |
+
);
|
1329 |
+
|
1330 |
+
$options[] = array(
|
1331 |
+
'title' => __('Custom label for Related Items Button', 'auxin-portfolio'),
|
1332 |
+
'description' => __('A custom label for the button under related items section.', 'auxin-portfolio'),
|
1333 |
+
'id' => 'portfolio_single_all_related_items_btn_label',
|
1334 |
+
'section' => 'portfolio-section-single-related',
|
1335 |
+
'dependency' => array(
|
1336 |
+
array(
|
1337 |
+
'id' => 'portfolio_single_all_related_items_url_type',
|
1338 |
+
'value' => array('custom', 'archive'),
|
1339 |
+
'operator' => ''
|
1340 |
+
)
|
1341 |
+
),
|
1342 |
+
'transport' => 'refresh',
|
1343 |
+
'type' => 'text',
|
1344 |
+
'default' => __( "Browse All Projects", 'auxin-portfolio' )
|
1345 |
+
);
|
1346 |
+
|
1347 |
/*$options[] = array( 'title' => __('View All button link', 'auxin-portfolio'),
|
1348 |
'description' => __('Specifies a link for "view all" button to portfolio listing page (the button that comes at the end of latest from portfolio element ) ', 'auxin-portfolio'),
|
1349 |
'id' => 'portfolio_view_all_btn_link',
|
1431 |
)
|
1432 |
),
|
1433 |
'type' => 'radio-image',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1434 |
'choices' => array(
|
1435 |
// default template
|
1436 |
'classic' => array(
|
1478 |
'operator'=> '=='
|
1479 |
)
|
1480 |
),
|
1481 |
+
'type' => 'radio-image',
|
1482 |
+
'choices' => array(
|
1483 |
+
'overlay' => array(
|
1484 |
+
'label' => __('Overlay title style 1', 'auxin-portfolio'),
|
1485 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle1.webm webm'
|
1486 |
+
),
|
1487 |
+
'overlay-boxed' => array(
|
1488 |
+
'label' => __('Overlay title style 2', 'auxin-portfolio'),
|
1489 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle2.webm webm'
|
1490 |
+
),
|
1491 |
+
'overlay-lightbox' => array(
|
1492 |
+
'label' => __('Overlay title with lightbox style 1', 'auxin-portfolio'),
|
1493 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox1.webm webm'
|
1494 |
+
),
|
1495 |
+
'overlay-lightbox-boxed' => array(
|
1496 |
+
'label' => __('Overlay title with lightbox style 2', 'auxin-portfolio'),
|
1497 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox2.webm webm'
|
1498 |
+
)
|
1499 |
),
|
1500 |
'transport' => 'refresh',
|
1501 |
'default' => 'overlay',
|
1754 |
'post_js' => '$(".blog .aux-archive, main.aux-home").alterClass( "*-sidebar", to );',
|
1755 |
'type' => 'radio-image',
|
1756 |
'transport' => 'refresh',
|
1757 |
+
'default' => 'no-sidebar'
|
1758 |
);
|
1759 |
|
1760 |
$options[] = array(
|
1875 |
'operator'=> '=='
|
1876 |
)
|
1877 |
),
|
1878 |
+
'type' => 'radio-image',
|
1879 |
'choices' => array(
|
1880 |
+
// default template
|
1881 |
+
'classic' => array(
|
1882 |
+
'label' => __('Classic' , 'auxin-portfolio'),
|
1883 |
+
'image' => AUXPFO_ADMIN_URL . '/assets/images/ClassicLightbox.png'
|
1884 |
+
),
|
1885 |
+
'classic-lightbox' => array(
|
1886 |
+
'label' => __('Classic with lightbox style 1' , 'auxin-portfolio'),
|
1887 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/ClassicLightbox1.webm webm'
|
1888 |
+
),
|
1889 |
+
'classic-lightbox-boxed' => array(
|
1890 |
+
'label' => __('Classic with lightbox style 2' , 'auxin-portfolio'),
|
1891 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/ClassicLightbox2.webm webm'
|
1892 |
+
),
|
1893 |
+
'overlay' => array(
|
1894 |
+
'label' => __('Overlay title style 1', 'auxin-portfolio'),
|
1895 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle1.webm webm'
|
1896 |
+
),
|
1897 |
+
'overlay-boxed' => array(
|
1898 |
+
'label' => __('Overlay title style 2', 'auxin-portfolio'),
|
1899 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle2.webm webm'
|
1900 |
+
),
|
1901 |
+
'overlay-lightbox' => array(
|
1902 |
+
'label' => __('Overlay title with lightbox style 1', 'auxin-portfolio'),
|
1903 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox1.webm webm'
|
1904 |
+
),
|
1905 |
+
'overlay-lightbox-boxed' => array(
|
1906 |
+
'label' => __('Overlay title with lightbox style 2', 'auxin-portfolio'),
|
1907 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox2.webm webm'
|
1908 |
+
)
|
1909 |
),
|
1910 |
'transport' => 'refresh',
|
1911 |
'default' => 'classic',
|
1923 |
'operator'=> '=='
|
1924 |
)
|
1925 |
),
|
1926 |
+
'type' => 'radio-image',
|
1927 |
+
'choices' => array(
|
1928 |
+
'overlay' => array(
|
1929 |
+
'label' => __('Overlay title style 1', 'auxin-portfolio'),
|
1930 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle1.webm webm'
|
1931 |
+
),
|
1932 |
+
'overlay-boxed' => array(
|
1933 |
+
'label' => __('Overlay title style 2', 'auxin-portfolio'),
|
1934 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitle2.webm webm'
|
1935 |
+
),
|
1936 |
+
'overlay-lightbox' => array(
|
1937 |
+
'label' => __('Overlay title with lightbox style 1', 'auxin-portfolio'),
|
1938 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox1.webm webm'
|
1939 |
+
),
|
1940 |
+
'overlay-lightbox-boxed' => array(
|
1941 |
+
'label' => __('Overlay title with lightbox style 2', 'auxin-portfolio'),
|
1942 |
+
'video_src' => AUXPFO_ADMIN_URL . '/assets/images/preview/OverlayTitleLightbox2.webm webm'
|
1943 |
+
)
|
1944 |
),
|
1945 |
'transport' => 'refresh',
|
1946 |
'default' => 'overlay',
|
2196 |
)
|
2197 |
),
|
2198 |
'type' => 'radio-image',
|
2199 |
+
'default' => 'right-sidebar'
|
2200 |
);
|
2201 |
|
2202 |
$options[] = array(
|
2230 |
'default' => 'border'
|
2231 |
);
|
2232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2233 |
// -------------------------------------------------------------------------
|
2234 |
|
2235 |
$sections[] = array(
|
2445 |
'desktop_cnum' => $desktop_cnum,
|
2446 |
'preview_mode' => $preview_mode,
|
2447 |
'extra_classes' => auxin_is_true( $do_align_center ) ? 'aux-text-align-center': '',
|
2448 |
+
'display_categories' => $display_categories,
|
2449 |
+
'container_start_tag' => '<div class="aux-container aux-related-container aux-fold">',
|
2450 |
);
|
2451 |
echo auxpfo_get_portfolio_related_posts( $defaults );
|
2452 |
}
|
2455 |
add_action( 'auxin_portfolio_single_after_content_primary', 'auxpfo_single_portfolio_related_items' );
|
2456 |
|
2457 |
|
2458 |
+
/**
|
2459 |
+
* Adds a button under related items which links to more related items
|
2460 |
+
*
|
2461 |
+
* @param object $post The post object
|
2462 |
+
* @return void
|
2463 |
+
*/
|
2464 |
+
function auxpfo_single_portfolio_show_all_portfolios( $post ){
|
2465 |
+
if( "custom" === auxin_get_option( "portfolio_single_all_related_items_url_type", "archive" ) ){
|
2466 |
+
$portfolio_link = auxin_get_option( "portfolio_single_all_related_items_btn_url", "" );
|
2467 |
+
} else {
|
2468 |
+
$portfolio_link = get_post_type_archive_link( "portfolio" );
|
2469 |
+
}
|
2470 |
+
$portfolio_label = auxin_get_option( "portfolio_single_all_related_items_btn_label", "" );
|
2471 |
+
|
2472 |
+
if( $portfolio_link && $portfolio_label ){
|
2473 |
+
?>
|
2474 |
+
<div class="aux-container aux-related-container-more aux-fold">
|
2475 |
+
<a href="<?php echo esc_url( $portfolio_link ); ?>" class="aux-button aux-cta-button aux-shamrock aux-exlarge aux-curve aux-related-btn-more" target="_blank">
|
2476 |
+
<span class="aux-overlay"></span>
|
2477 |
+
<span class="aux-text"><?php echo esc_attr( $portfolio_label ); ?></span>
|
2478 |
+
</a>
|
2479 |
+
</div>
|
2480 |
+
<?php
|
2481 |
+
}
|
2482 |
+
}
|
2483 |
+
add_action( 'auxin_portfolio_single_after_content_primary', 'auxpfo_single_portfolio_show_all_portfolios' );
|
2484 |
+
|
2485 |
+
|
2486 |
/**
|
2487 |
* Changes the default portfolio layout to "no-sidebar"
|
2488 |
*
|
public/templates/theme-parts/entry/single-portfolio.php
CHANGED
@@ -162,6 +162,8 @@
|
|
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 );
|
162 |
$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
|
163 |
}
|
164 |
|
165 |
+
$next_prev_navigation = '';
|
166 |
+
|
167 |
if( auxin_is_true( $display_next_pre ) ) {
|
168 |
if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
|
169 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|