Version Description
Download this release
Release Info
Developer | averta |
Plugin | Premium Portfolio Features for Phlox theme |
Version | 0.8.3 |
Comparing to | |
See all releases |
Code changes from version 0.8.0 to 0.8.3
- README.txt +7 -3
- admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +48 -48
- admin/includes/metaboxes/metabox-fields-portfolio-related.php +29 -29
- auxin-portfolio.php +53 -32
- includes/classes/class-auxin-plugin-requirements.php +297 -0
- includes/classes/class-auxin-post-type-base.php +120 -0
- includes/classes/class-auxpfo-post-type-portfolio.php +52 -51
- includes/define.php +3 -1
- includes/elements/recent-portfolios.php +220 -227
- includes/general-functions.php +1 -23
- includes/general-hooks.php +179 -179
- public/class-auxpfo.php +3 -3
- public/includes/templates-post.php +2 -3
- public/templates/single-portfolio.php +3 -3
- public/templates/theme-parts/entry/portfolio-column-overlay.php +1 -1
- public/templates/theme-parts/entry/portfolio-column.php +3 -3
- public/templates/theme-parts/entry/portfolio-land.php +3 -3
- public/templates/theme-parts/entry/portfolio.php +2 -2
- public/templates/theme-parts/entry/single-portfolio.php +4 -4
- public/templates/theme-parts/loop-portfolio.php +1 -1
- public/templates/theme-parts/single-portfolio.php +0 -10
- public/templates/theme-parts/tax-portfolio.php +2 -2
README.txt
CHANGED
@@ -6,7 +6,7 @@ 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 at least: 4.3
|
8 |
Tested up to: 4.7.2
|
9 |
-
Stable tag: 0.8.
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl.html
|
12 |
|
@@ -120,6 +120,10 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
123 |
= Version 0.8.0 / (28.2.2017) =
|
124 |
- Initial release
|
125 |
|
@@ -127,5 +131,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-por
|
|
127 |
|
128 |
== Upgrade Notice ==
|
129 |
|
130 |
-
= 0.8.
|
131 |
-
-
|
6 |
Tags: ajaxload, page-builder, siteorigin, auxin, phlox, averta, fullwidth, masonry, timeline, portfolio, projects, showcase, minimal, wix, flat
|
7 |
Requires at least: 4.3
|
8 |
Tested up to: 4.7.2
|
9 |
+
Stable tag: 0.8.3
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl.html
|
12 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= Version 0.8.3 / (01.05.2017) =
|
124 |
+
- New portfolio layouts added
|
125 |
+
- Dependency for auxin-elements plugin added
|
126 |
+
|
127 |
= Version 0.8.0 / (28.2.2017) =
|
128 |
- Initial release
|
129 |
|
131 |
|
132 |
== Upgrade Notice ==
|
133 |
|
134 |
+
= 0.8.3 =
|
135 |
+
- New portfolio layouts added
|
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php
CHANGED
@@ -14,61 +14,61 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
14 |
|
15 |
$model = new Auxin_Metabox_Model();
|
16 |
$model->id = 'portfolio-metadata';
|
17 |
-
$model->title = __('Portfolio Information', '');
|
18 |
$model->css_class = 'aux-portfolio-metadata-tab';
|
19 |
$model->fields = array(
|
20 |
|
21 |
// array(
|
22 |
-
// 'title' => __('Featured Image', '' ),
|
23 |
// 'description' => __('Specifies the main cover image for this portfolio.'),
|
24 |
// 'id' => '_thumbnail_id',
|
25 |
// 'type' => 'image',
|
26 |
// 'default' => ''
|
27 |
// ),
|
28 |
array(
|
29 |
-
'title' => __('Featured Image (Secondary)', '' ),
|
30 |
'description' => __('Specifies the secondary cover image for this portfolio.'),
|
31 |
'id' => '_thumbnail_id2',
|
32 |
'type' => 'image',
|
33 |
'default' => ''
|
34 |
),
|
35 |
array(
|
36 |
-
'title' => __('Hide featured image.', ''),
|
37 |
-
'description' => __('Enable this option to remove the featured image from single page of this portfolio. Useful when you intent to display images that vary from the featured image.', ''),
|
38 |
'id' => '_no_feature_image_in_single',
|
39 |
'type' => 'switch',
|
40 |
'default' => '0'
|
41 |
),
|
42 |
|
43 |
array(
|
44 |
-
'title' => __('Overview', ''),
|
45 |
-
'description' => __('Specifies a short description about the project.', ''),
|
46 |
'id' => '_overview',
|
47 |
'type' => 'editor',
|
48 |
'default' => ''
|
49 |
),
|
50 |
|
51 |
array(
|
52 |
-
'title' => __('Info Layout', ''),
|
53 |
-
'description' => __('Specifies the alignment of metadata column. (Default: "right" for LTR websites and "left" for RTL ones)', ''),
|
54 |
'id' => '_side_info_pos',
|
55 |
'type' => 'radio-image',
|
56 |
'default' => 'default',
|
57 |
'choices' => array(
|
58 |
'default' => array(
|
59 |
-
'label' => __('Default', ''),
|
60 |
'image' => AUX_URL . 'images/visual-select/default4.svg'
|
61 |
),
|
62 |
'right' => array(
|
63 |
-
'label' => __('Right', ''),
|
64 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic.svg'
|
65 |
),
|
66 |
'left' => array(
|
67 |
-
'label' => __('Left', ''),
|
68 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
69 |
),
|
70 |
'bottom' => array(
|
71 |
-
'label' => __('Bottom', ''),
|
72 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-wide.svg'
|
73 |
)
|
74 |
),
|
@@ -76,22 +76,22 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
76 |
|
77 |
// @TODO: we should add this in future
|
78 |
// array(
|
79 |
-
// 'title' => __('Content Style', ''),
|
80 |
-
// '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).', ''),
|
81 |
// 'id' => 'portfolio_single_content_style',
|
82 |
// 'section' => 'portfolio-setting-section-single',
|
83 |
// 'dependency' => array(),
|
84 |
// 'choices' => array(
|
85 |
// 'default' => array(
|
86 |
-
// 'label' => __('Default', ''),
|
87 |
// 'image' => AUX_URL . 'images/visual-select/default4.svg'
|
88 |
// ),
|
89 |
// 'simple' => array(
|
90 |
-
// 'label' => __( 'Normal' , ''),
|
91 |
// 'image' => AUX_URL . 'images/visual-select/content-normal.svg'
|
92 |
// ),
|
93 |
// 'narrow' => array(
|
94 |
-
// 'label' => __( 'Narrow Content' , ''),
|
95 |
// 'image' => AUX_URL . 'images/visual-select/content-less.svg'
|
96 |
// )
|
97 |
// ),
|
@@ -102,22 +102,22 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
102 |
// ),
|
103 |
|
104 |
array(
|
105 |
-
'title' => __( 'Display Next & Previous portfolios', '' ),
|
106 |
'description' => __( 'Enable it to display links to next and previous portfolios on single portfolio page.' ),
|
107 |
'id' => '_show_next_prev_nav',
|
108 |
'dependency' => '',
|
109 |
'type' => 'select',
|
110 |
'default' => 'default',
|
111 |
'choices' => array(
|
112 |
-
'default' => __('Theme Default', ''),
|
113 |
-
'yes' => __('Yes', ''),
|
114 |
-
'no' => __('No', ''),
|
115 |
)
|
116 |
),
|
117 |
|
118 |
array(
|
119 |
-
'title' => __('Skin for Next & Previous Links', ''),
|
120 |
-
'description' => __('Specifies the skin for next and previous navigation block.', ''),
|
121 |
'id' => '_next_prev_nav_skin',
|
122 |
'dependency' => array(
|
123 |
array(
|
@@ -128,31 +128,31 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
128 |
),
|
129 |
'choices' => array(
|
130 |
'default' => array(
|
131 |
-
'label' => __('Default', ''),
|
132 |
'image' => AUX_URL . 'images/visual-select/default4.svg'
|
133 |
),
|
134 |
'minimal' => array(
|
135 |
-
'label' => __('Minimal (default)', ''),
|
136 |
'image' => AUX_URL . 'images/visual-select/post-navigation-1.svg'
|
137 |
),
|
138 |
'thumb-arrow' => array(
|
139 |
-
'label' => __('Thumbnail with Arrow', ''),
|
140 |
'image' => AUX_URL . 'images/visual-select/post-navigation-2.svg'
|
141 |
),
|
142 |
'thumb-no-arrow' => array(
|
143 |
-
'label' => __('Thumbnail without Arrow', ''),
|
144 |
'image' => AUX_URL . 'images/visual-select/post-navigation-3.svg'
|
145 |
),
|
146 |
'boxed-image' => array(
|
147 |
-
'label' => __('Navigation with Light Background', ''),
|
148 |
'image' => AUX_URL . 'images/visual-select/post-navigation-4.svg'
|
149 |
),
|
150 |
'boxed-image-dark' => array(
|
151 |
-
'label' => __('Navigation with Dark Background', ''),
|
152 |
'image' => AUX_URL . 'images/visual-select/post-navigation-5.svg'
|
153 |
),
|
154 |
'thumb-arrow-sticky' => array(
|
155 |
-
'label' => __('Sticky Thumbnail with Arrow', ''),
|
156 |
'image' => AUX_URL . 'images/visual-select/post-navigation-6.svg'
|
157 |
)
|
158 |
),
|
@@ -162,47 +162,47 @@ function auxpfo_metabox_fields_portfolio_metadata(){
|
|
162 |
|
163 |
|
164 |
array(
|
165 |
-
'title' => __('Sticky Side Area', ''),
|
166 |
-
'description' => __('Enable it to stick the side area on page while scrolling.', ''),
|
167 |
'id' => '_sticky_sidebar',
|
168 |
'type' => 'select',
|
169 |
'default' => 'default',
|
170 |
'choices' => array(
|
171 |
-
'default' => __('Theme Default', ''),
|
172 |
-
'yes' => __('Yes', ''),
|
173 |
-
'no' => __('No', ''),
|
174 |
),
|
175 |
),
|
176 |
|
177 |
array(
|
178 |
-
'title' => __('Display Single Portfolio Categories', ''),
|
179 |
-
'description' => __('Specifies whether to display catetory section or not.', ''),
|
180 |
'id' => '_side_info_dicplay_cat',
|
181 |
'type' => 'select',
|
182 |
'default' => 'default',
|
183 |
'choices' => array(
|
184 |
-
'default' => __('Theme Default', ''),
|
185 |
-
'yes' => __('Yes', ''),
|
186 |
-
'no' => __('No', ''),
|
187 |
),
|
188 |
),
|
189 |
|
190 |
array(
|
191 |
-
'title' => __('Display Single Portfolio Tags', ''),
|
192 |
-
'description' => __('Specifies whether to display tag section or not.', ''),
|
193 |
'id' => '_side_info_dicplay_tag',
|
194 |
'type' => 'select',
|
195 |
'default' => 'default',
|
196 |
'choices' => array(
|
197 |
-
'default' => __('Theme Default', ''),
|
198 |
-
'yes' => __('Yes', ''),
|
199 |
-
'no' => __('No', ''),
|
200 |
),
|
201 |
),
|
202 |
|
203 |
array(
|
204 |
-
'title' => __('Lunch Project Button', ''),
|
205 |
-
'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.', ''),
|
206 |
'id' => '_lunch_button_url',
|
207 |
'type' => 'text',
|
208 |
'default' => ''
|
14 |
|
15 |
$model = new Auxin_Metabox_Model();
|
16 |
$model->id = 'portfolio-metadata';
|
17 |
+
$model->title = __('Portfolio Information', 'auxin-portfolio');
|
18 |
$model->css_class = 'aux-portfolio-metadata-tab';
|
19 |
$model->fields = array(
|
20 |
|
21 |
// array(
|
22 |
+
// 'title' => __('Featured Image', 'auxin-portfolio' ),
|
23 |
// 'description' => __('Specifies the main cover image for this portfolio.'),
|
24 |
// 'id' => '_thumbnail_id',
|
25 |
// 'type' => 'image',
|
26 |
// 'default' => ''
|
27 |
// ),
|
28 |
array(
|
29 |
+
'title' => __('Featured Image (Secondary)', 'auxin-portfolio' ),
|
30 |
'description' => __('Specifies the secondary cover image for this portfolio.'),
|
31 |
'id' => '_thumbnail_id2',
|
32 |
'type' => 'image',
|
33 |
'default' => ''
|
34 |
),
|
35 |
array(
|
36 |
+
'title' => __('Hide featured image.', 'auxin-portfolio'),
|
37 |
+
'description' => __('Enable this option to remove the featured image from single page of this portfolio. Useful when you intent to display images that vary from the featured image.', 'auxin-portfolio'),
|
38 |
'id' => '_no_feature_image_in_single',
|
39 |
'type' => 'switch',
|
40 |
'default' => '0'
|
41 |
),
|
42 |
|
43 |
array(
|
44 |
+
'title' => __('Overview', 'auxin-portfolio'),
|
45 |
+
'description' => __('Specifies a short description about the project.', 'auxin-portfolio'),
|
46 |
'id' => '_overview',
|
47 |
'type' => 'editor',
|
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'),
|
54 |
'id' => '_side_info_pos',
|
55 |
'type' => 'radio-image',
|
56 |
'default' => 'default',
|
57 |
'choices' => array(
|
58 |
'default' => array(
|
59 |
+
'label' => __('Default', 'auxin-portfolio'),
|
60 |
'image' => AUX_URL . 'images/visual-select/default4.svg'
|
61 |
),
|
62 |
'right' => array(
|
63 |
+
'label' => __('Right', 'auxin-portfolio'),
|
64 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic.svg'
|
65 |
),
|
66 |
'left' => array(
|
67 |
+
'label' => __('Left', 'auxin-portfolio'),
|
68 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
69 |
),
|
70 |
'bottom' => array(
|
71 |
+
'label' => __('Bottom', 'auxin-portfolio'),
|
72 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-wide.svg'
|
73 |
)
|
74 |
),
|
76 |
|
77 |
// @TODO: we should add this in future
|
78 |
// array(
|
79 |
+
// 'title' => __('Content Style', 'auxin-portfolio'),
|
80 |
+
// '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'),
|
81 |
// 'id' => 'portfolio_single_content_style',
|
82 |
// 'section' => 'portfolio-setting-section-single',
|
83 |
// 'dependency' => array(),
|
84 |
// 'choices' => array(
|
85 |
// 'default' => array(
|
86 |
+
// 'label' => __('Default', 'auxin-portfolio'),
|
87 |
// 'image' => AUX_URL . 'images/visual-select/default4.svg'
|
88 |
// ),
|
89 |
// 'simple' => array(
|
90 |
+
// 'label' => __( 'Normal' , 'auxin-portfolio'),
|
91 |
// 'image' => AUX_URL . 'images/visual-select/content-normal.svg'
|
92 |
// ),
|
93 |
// 'narrow' => array(
|
94 |
+
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
95 |
// 'image' => AUX_URL . 'images/visual-select/content-less.svg'
|
96 |
// )
|
97 |
// ),
|
102 |
// ),
|
103 |
|
104 |
array(
|
105 |
+
'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
|
106 |
'description' => __( 'Enable it to display links to next and previous portfolios on single portfolio page.' ),
|
107 |
'id' => '_show_next_prev_nav',
|
108 |
'dependency' => '',
|
109 |
'type' => 'select',
|
110 |
'default' => 'default',
|
111 |
'choices' => array(
|
112 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
113 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
114 |
+
'no' => __('No', 'auxin-portfolio'),
|
115 |
)
|
116 |
),
|
117 |
|
118 |
array(
|
119 |
+
'title' => __('Skin for Next & Previous Links', 'auxin-portfolio'),
|
120 |
+
'description' => __('Specifies the skin for next and previous navigation block.', 'auxin-portfolio'),
|
121 |
'id' => '_next_prev_nav_skin',
|
122 |
'dependency' => array(
|
123 |
array(
|
128 |
),
|
129 |
'choices' => array(
|
130 |
'default' => array(
|
131 |
+
'label' => __('Default', 'auxin-portfolio'),
|
132 |
'image' => AUX_URL . 'images/visual-select/default4.svg'
|
133 |
),
|
134 |
'minimal' => array(
|
135 |
+
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
136 |
'image' => AUX_URL . 'images/visual-select/post-navigation-1.svg'
|
137 |
),
|
138 |
'thumb-arrow' => array(
|
139 |
+
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
140 |
'image' => AUX_URL . 'images/visual-select/post-navigation-2.svg'
|
141 |
),
|
142 |
'thumb-no-arrow' => array(
|
143 |
+
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
144 |
'image' => AUX_URL . 'images/visual-select/post-navigation-3.svg'
|
145 |
),
|
146 |
'boxed-image' => array(
|
147 |
+
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
148 |
'image' => AUX_URL . 'images/visual-select/post-navigation-4.svg'
|
149 |
),
|
150 |
'boxed-image-dark' => array(
|
151 |
+
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
152 |
'image' => AUX_URL . 'images/visual-select/post-navigation-5.svg'
|
153 |
),
|
154 |
'thumb-arrow-sticky' => array(
|
155 |
+
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
156 |
'image' => AUX_URL . 'images/visual-select/post-navigation-6.svg'
|
157 |
)
|
158 |
),
|
162 |
|
163 |
|
164 |
array(
|
165 |
+
'title' => __('Sticky Side Area', 'auxin-portfolio'),
|
166 |
+
'description' => __('Enable it to stick the side area on page while scrolling.', 'auxin-portfolio'),
|
167 |
'id' => '_sticky_sidebar',
|
168 |
'type' => 'select',
|
169 |
'default' => 'default',
|
170 |
'choices' => array(
|
171 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
172 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
173 |
+
'no' => __('No', 'auxin-portfolio'),
|
174 |
),
|
175 |
),
|
176 |
|
177 |
array(
|
178 |
+
'title' => __('Display Single Portfolio Categories', 'auxin-portfolio'),
|
179 |
+
'description' => __('Specifies whether to display catetory section or not.', 'auxin-portfolio'),
|
180 |
'id' => '_side_info_dicplay_cat',
|
181 |
'type' => 'select',
|
182 |
'default' => 'default',
|
183 |
'choices' => array(
|
184 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
185 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
186 |
+
'no' => __('No', 'auxin-portfolio'),
|
187 |
),
|
188 |
),
|
189 |
|
190 |
array(
|
191 |
+
'title' => __('Display Single Portfolio Tags', 'auxin-portfolio'),
|
192 |
+
'description' => __('Specifies whether to display tag section or not.', 'auxin-portfolio'),
|
193 |
'id' => '_side_info_dicplay_tag',
|
194 |
'type' => 'select',
|
195 |
'default' => 'default',
|
196 |
'choices' => array(
|
197 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
198 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
199 |
+
'no' => __('No', 'auxin-portfolio'),
|
200 |
),
|
201 |
),
|
202 |
|
203 |
array(
|
204 |
+
'title' => __('Lunch Project Button', 'auxin-portfolio'),
|
205 |
+
'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'),
|
206 |
'id' => '_lunch_button_url',
|
207 |
'type' => 'text',
|
208 |
'default' => ''
|
admin/includes/metaboxes/metabox-fields-portfolio-related.php
CHANGED
@@ -14,27 +14,27 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
14 |
|
15 |
$model = new Auxin_Metabox_Model();
|
16 |
$model->id = 'portfolio-metadata';
|
17 |
-
$model->title = __('Related Portfolio', '');
|
18 |
$model->css_class = 'aux-portfolio-metadata-tab';
|
19 |
$model->fields = array(
|
20 |
|
21 |
array(
|
22 |
-
'title' => __('Display Related Portfolios', ''),
|
23 |
'description' => __( 'Enable it to display related porfolios section on single portfolio page.'),
|
24 |
'id' => '_display_related',
|
25 |
'dependency' => '',
|
26 |
'type' => 'select',
|
27 |
'default' => 'default',
|
28 |
'choices' => array(
|
29 |
-
'default' => __('Theme Default', ''),
|
30 |
-
'yes' => __('Yes', ''),
|
31 |
-
'no' => __('No', ''),
|
32 |
)
|
33 |
),
|
34 |
|
35 |
array(
|
36 |
-
'title' => __('Label of Related Section', ''),
|
37 |
-
'description' => __('Specifies the label of related items section.', ''),
|
38 |
'id' => '_related_posts_label',
|
39 |
'dependency' => array(
|
40 |
array(
|
@@ -48,7 +48,7 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
48 |
),
|
49 |
|
50 |
array(
|
51 |
-
'title' => __('Related Items Type', ''),
|
52 |
'description' => __( 'Specifies the appearance type for related portfolio element.'),
|
53 |
'id' => '_related_posts_preview_mode',
|
54 |
'dependency' => array(
|
@@ -61,14 +61,14 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
61 |
'type' => 'select',
|
62 |
'default' => 'default',
|
63 |
'choices' => array(
|
64 |
-
'default' => __('Theme Default', ''),
|
65 |
-
'grid' => __('Grid', ''),
|
66 |
-
'carousel' => __('Carousel', ''),
|
67 |
)
|
68 |
),
|
69 |
|
70 |
array(
|
71 |
-
'title' => __('Number of Columns', ''),
|
72 |
'description' => '',
|
73 |
'id' => '_related_posts_column_number',
|
74 |
'dependency' => array(
|
@@ -81,7 +81,7 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
81 |
'type' => 'select',
|
82 |
'default' => 'default',
|
83 |
'choices' => array(
|
84 |
-
'default' => __('Theme Default', ''),
|
85 |
'1' => '1',
|
86 |
'2' => '2',
|
87 |
'3' => '3'
|
@@ -89,7 +89,7 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
89 |
),
|
90 |
|
91 |
array(
|
92 |
-
'title' => __('Align Center', ''),
|
93 |
'description' => __( 'Enable it to make related portfolios section text center.'),
|
94 |
'id' => '_related_posts_align_center',
|
95 |
'dependency' => array(
|
@@ -102,14 +102,14 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
102 |
'type' => 'select',
|
103 |
'default' => 'default',
|
104 |
'choices' => array(
|
105 |
-
'default' => __('Theme Default', ''),
|
106 |
-
'yes' => __('Yes', ''),
|
107 |
-
'no' => __('No', ''),
|
108 |
)
|
109 |
),
|
110 |
|
111 |
array(
|
112 |
-
'title' => __('Full Width Related Section', ''),
|
113 |
'description' => __( 'Enable it to make related portfolios section full width.' ),
|
114 |
'id' => '_related_posts_full_width',
|
115 |
'dependency' => array(
|
@@ -122,14 +122,14 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
122 |
'type' => 'select',
|
123 |
'default' => 'default',
|
124 |
'choices' => array(
|
125 |
-
'default' => __('Theme Default', ''),
|
126 |
-
'yes' => __('Yes', ''),
|
127 |
-
'no' => __('No', ''),
|
128 |
)
|
129 |
),
|
130 |
|
131 |
array(
|
132 |
-
'title' => __('Snap Related Items', ''),
|
133 |
'description' => __( 'Enable it to remove space between related portfolio items.' ),
|
134 |
'id' => '_related_posts_snap_items',
|
135 |
'dependency' => array(
|
@@ -142,14 +142,14 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
142 |
'type' => 'select',
|
143 |
'default' => 'default',
|
144 |
'choices' => array(
|
145 |
-
'default' => __('Theme Default', ''),
|
146 |
-
'yes' => __('Yes', ''),
|
147 |
-
'no' => __('No', ''),
|
148 |
)
|
149 |
),
|
150 |
|
151 |
array(
|
152 |
-
'title' => __('Display Portfolio Categories', ''),
|
153 |
'description' => __( 'Enable it to display the categories of each portfolio item in related portfolios section.'),
|
154 |
'id' => '_related_posts_display_taxonomies',
|
155 |
'dependency' => array(
|
@@ -162,9 +162,9 @@ function auxpfo_metabox_fields_portfolio_related_metadata(){
|
|
162 |
'type' => 'select',
|
163 |
'default' => 'default',
|
164 |
'choices' => array(
|
165 |
-
'default' => __('Theme Default', ''),
|
166 |
-
'yes' => __('Yes', ''),
|
167 |
-
'no' => __('No', ''),
|
168 |
)
|
169 |
)
|
170 |
|
14 |
|
15 |
$model = new Auxin_Metabox_Model();
|
16 |
$model->id = 'portfolio-metadata';
|
17 |
+
$model->title = __('Related Portfolio', 'auxin-portfolio');
|
18 |
$model->css_class = 'aux-portfolio-metadata-tab';
|
19 |
$model->fields = array(
|
20 |
|
21 |
array(
|
22 |
+
'title' => __('Display Related Portfolios', 'auxin-portfolio'),
|
23 |
'description' => __( 'Enable it to display related porfolios section on single portfolio page.'),
|
24 |
'id' => '_display_related',
|
25 |
'dependency' => '',
|
26 |
'type' => 'select',
|
27 |
'default' => 'default',
|
28 |
'choices' => array(
|
29 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
30 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
31 |
+
'no' => __('No', 'auxin-portfolio'),
|
32 |
)
|
33 |
),
|
34 |
|
35 |
array(
|
36 |
+
'title' => __('Label of Related Section', 'auxin-portfolio'),
|
37 |
+
'description' => __('Specifies the label of related items section.', 'auxin-portfolio'),
|
38 |
'id' => '_related_posts_label',
|
39 |
'dependency' => array(
|
40 |
array(
|
48 |
),
|
49 |
|
50 |
array(
|
51 |
+
'title' => __('Related Items Type', 'auxin-portfolio'),
|
52 |
'description' => __( 'Specifies the appearance type for related portfolio element.'),
|
53 |
'id' => '_related_posts_preview_mode',
|
54 |
'dependency' => array(
|
61 |
'type' => 'select',
|
62 |
'default' => 'default',
|
63 |
'choices' => array(
|
64 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
65 |
+
'grid' => __('Grid', 'auxin-portfolio'),
|
66 |
+
'carousel' => __('Carousel', 'auxin-portfolio'),
|
67 |
)
|
68 |
),
|
69 |
|
70 |
array(
|
71 |
+
'title' => __('Number of Columns', 'auxin-portfolio'),
|
72 |
'description' => '',
|
73 |
'id' => '_related_posts_column_number',
|
74 |
'dependency' => array(
|
81 |
'type' => 'select',
|
82 |
'default' => 'default',
|
83 |
'choices' => array(
|
84 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
85 |
'1' => '1',
|
86 |
'2' => '2',
|
87 |
'3' => '3'
|
89 |
),
|
90 |
|
91 |
array(
|
92 |
+
'title' => __('Align Center', 'auxin-portfolio'),
|
93 |
'description' => __( 'Enable it to make related portfolios section text center.'),
|
94 |
'id' => '_related_posts_align_center',
|
95 |
'dependency' => array(
|
102 |
'type' => 'select',
|
103 |
'default' => 'default',
|
104 |
'choices' => array(
|
105 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
106 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
107 |
+
'no' => __('No', 'auxin-portfolio'),
|
108 |
)
|
109 |
),
|
110 |
|
111 |
array(
|
112 |
+
'title' => __('Full Width Related Section', 'auxin-portfolio'),
|
113 |
'description' => __( 'Enable it to make related portfolios section full width.' ),
|
114 |
'id' => '_related_posts_full_width',
|
115 |
'dependency' => array(
|
122 |
'type' => 'select',
|
123 |
'default' => 'default',
|
124 |
'choices' => array(
|
125 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
126 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
127 |
+
'no' => __('No', 'auxin-portfolio'),
|
128 |
)
|
129 |
),
|
130 |
|
131 |
array(
|
132 |
+
'title' => __('Snap Related Items', 'auxin-portfolio'),
|
133 |
'description' => __( 'Enable it to remove space between related portfolio items.' ),
|
134 |
'id' => '_related_posts_snap_items',
|
135 |
'dependency' => array(
|
142 |
'type' => 'select',
|
143 |
'default' => 'default',
|
144 |
'choices' => array(
|
145 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
146 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
147 |
+
'no' => __('No', 'auxin-portfolio'),
|
148 |
)
|
149 |
),
|
150 |
|
151 |
array(
|
152 |
+
'title' => __('Display Portfolio Categories', 'auxin-portfolio'),
|
153 |
'description' => __( 'Enable it to display the categories of each portfolio item in related portfolios section.'),
|
154 |
'id' => '_related_posts_display_taxonomies',
|
155 |
'dependency' => array(
|
162 |
'type' => 'select',
|
163 |
'default' => 'default',
|
164 |
'choices' => array(
|
165 |
+
'default' => __('Theme Default', 'auxin-portfolio'),
|
166 |
+
'yes' => __('Yes', 'auxin-portfolio'),
|
167 |
+
'no' => __('No', 'auxin-portfolio'),
|
168 |
)
|
169 |
)
|
170 |
|
auxin-portfolio.php
CHANGED
@@ -12,13 +12,13 @@
|
|
12 |
* Plugin Name: Auxin Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
-
* Version: 0.8.
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-portfolio
|
19 |
* License URI: LICENSE.txt
|
20 |
* Domain Path: /languages
|
21 |
-
* Tested up to: 4.7.
|
22 |
*/
|
23 |
|
24 |
// If this file is called directly, abort.
|
@@ -31,50 +31,71 @@ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
|
|
31 |
return;
|
32 |
}
|
33 |
|
34 |
-
|
|
|
|
|
35 |
|
|
|
|
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
if ( ! file_exists( get_template_directory() . '/auxin/auxin-include/auxin.php' ) ){
|
40 |
-
return;
|
41 |
}
|
42 |
-
}
|
43 |
|
|
|
|
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
|
|
|
|
|
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
66 |
}
|
67 |
}
|
68 |
-
add_action( 'admin_notices', 'auxpfo_auxin_theme_requirement_notice' );
|
69 |
-
|
70 |
|
71 |
-
|
|
|
|
|
72 |
|
73 |
-
require_once( plugin_dir_path( __FILE__ ) . 'includes/define.php'
|
74 |
require_once( plugin_dir_path( __FILE__ ) . 'public/class-auxpfo.php' );
|
75 |
|
76 |
// Register hooks that are fired when the plugin is activated or deactivated.
|
77 |
register_activation_hook ( __FILE__, array( 'AUXPFO', 'activate' ) );
|
78 |
register_deactivation_hook( __FILE__, array( 'AUXPFO', 'deactivate' ) );
|
79 |
|
80 |
-
|
12 |
* Plugin Name: Auxin Portfolio
|
13 |
* Plugin URI: http://averta.net/phlox/
|
14 |
* Description: Showcase your projects beautifully in Phlox theme
|
15 |
+
* Version: 0.8.3
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-portfolio
|
19 |
* License URI: LICENSE.txt
|
20 |
* Domain Path: /languages
|
21 |
+
* Tested up to: 4.7.3
|
22 |
*/
|
23 |
|
24 |
// If this file is called directly, abort.
|
31 |
return;
|
32 |
}
|
33 |
|
34 |
+
/**
|
35 |
+
* Check plugin requirements
|
36 |
+
* ===========================================================================*/
|
37 |
|
38 |
+
// Don't check the requirements if it's frontend or AUXIN_DUBUG set to false
|
39 |
+
if( is_admin() && ! ( defined( 'AUXIN_DUBUG' ) && ! AUXIN_DUBUG ) ){
|
40 |
|
41 |
+
if( ! class_exists( 'Auxin_Plugin_Requirements' ) ){
|
42 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/classes/class-auxin-plugin-requirements.php' );
|
|
|
|
|
43 |
}
|
|
|
44 |
|
45 |
+
$plugin_requirements = new Auxin_Plugin_Requirements();
|
46 |
+
$plugin_requirements->requirements = array(
|
47 |
|
48 |
+
'plugins' => array(
|
49 |
+
array(
|
50 |
+
'name' => __('Auxin Elements', 'auxin-portfolio'), // The plugin name.
|
51 |
+
'basename' => 'auxin-elements/auxin-elements.php', // The plugin basename (typically the folder name and main php file)
|
52 |
+
'required' => true, // If true, the user will be notified with a notice to install the plugin.
|
53 |
+
'version' => '1.3.6', // E.g. 1.0.0. If set, the active plugin must be this version or higher.
|
54 |
+
'dependency' => true, // If true, and the plugin is activated, the plugin will be loaded before as a dependeny.
|
55 |
+
'is_callable' => '' // If set, this callable will be be checked for availability to determine if a plugin is active.
|
56 |
+
)
|
57 |
+
),
|
58 |
+
|
59 |
+
'themes' => array(
|
60 |
+
array(
|
61 |
+
'name' => __('Phlox', 'auxin-portfolio'), // The theme name.
|
62 |
+
'version' => '1.6.6', // E.g. 1.0.0. If set, the active theme must be this version or higher.
|
63 |
+
'is_callable' => '', // If set, this callable will be be checked for availability to determine if a theme is active.
|
64 |
+
'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.
|
65 |
+
)
|
66 |
+
),
|
67 |
|
68 |
+
'php' => array(
|
69 |
+
'version' => '5.3.0' // The minimum PHP version for this plugin, otherwise, throw a notice
|
70 |
+
),
|
71 |
|
72 |
+
'config' => array(
|
73 |
+
'plugin_name' => __('Auxin Portfolio', 'auxin-portfolio'), // Current plugin name.
|
74 |
+
'plugin_basename' => plugin_basename( __FILE__ ),
|
75 |
+
'plugin_dir_path' => plugin_dir_path( __FILE__ ),
|
76 |
+
'debug' => false
|
77 |
+
)
|
78 |
+
|
79 |
+
);
|
80 |
+
|
81 |
+
// Check the requirements
|
82 |
+
$validation = $plugin_requirements->validate();
|
83 |
+
|
84 |
+
// If the requirements were not met, dont initialize the plugin
|
85 |
+
if( true !== $validation ){
|
86 |
+
return;
|
87 |
}
|
88 |
}
|
|
|
|
|
89 |
|
90 |
+
/**
|
91 |
+
* Initialize the plugin
|
92 |
+
* ===========================================================================*/
|
93 |
|
94 |
+
require_once( plugin_dir_path( __FILE__ ) . 'includes/define.php' );
|
95 |
require_once( plugin_dir_path( __FILE__ ) . 'public/class-auxpfo.php' );
|
96 |
|
97 |
// Register hooks that are fired when the plugin is activated or deactivated.
|
98 |
register_activation_hook ( __FILE__, array( 'AUXPFO', 'activate' ) );
|
99 |
register_deactivation_hook( __FILE__, array( 'AUXPFO', 'deactivate' ) );
|
100 |
|
101 |
+
/*============================================================================*/
|
includes/classes/class-auxin-plugin-requirements.php
ADDED
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if( ! class_exists( 'Auxin_Plugin_Requirements' ) ){
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Checks the requirements for a plugin
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
class Auxin_Plugin_Requirements {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* An array containing the list of requirements
|
13 |
+
*
|
14 |
+
* @var array
|
15 |
+
*/
|
16 |
+
public $requirements = array();
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Whether the requirements are available or not
|
20 |
+
*
|
21 |
+
* @var boolean
|
22 |
+
*/
|
23 |
+
private $requirements_passed = true;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Collects error notices
|
27 |
+
*
|
28 |
+
* @var array
|
29 |
+
*/
|
30 |
+
public $admin_notices = array();
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
function __construct(){
|
35 |
+
add_action( 'admin_notices' , array( $this, 'admin_notices' ) );
|
36 |
+
add_action( 'activated_plugin' , array( $this, 'update_plugins_dependencies' ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Make sure the client has required PHP version, otherwise, throw a notice
|
41 |
+
*
|
42 |
+
* @return void
|
43 |
+
*/
|
44 |
+
public function admin_notices(){
|
45 |
+
if( $notices = implode( '</li><li>', $this->admin_notices ) ) {
|
46 |
+
echo '<div class="error aux-admin-error"><p>';
|
47 |
+
printf(
|
48 |
+
__( '%s plugin has been disabled automatically due to following reason:', 'auxin-elements' ),
|
49 |
+
'<strong>'. $this->requirements['config']['plugin_name'] . '</strong>'
|
50 |
+
);
|
51 |
+
echo '<ul><li>'. $notices . '</li></ul></p></div>';
|
52 |
+
}
|
53 |
+
|
54 |
+
if( $this->requirements['config']['debug'] ){
|
55 |
+
$active_plugins = get_option( 'active_plugins' );
|
56 |
+
echo "<pre>"; print_r( $active_plugins ); echo "</pre>";
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Wrapper around the core WP get_plugins function, making sure it's actually available.
|
62 |
+
*
|
63 |
+
* @return array Array of installed plugins with plugin information.
|
64 |
+
*/
|
65 |
+
public function get_plugins() {
|
66 |
+
if ( ! function_exists( 'get_plugins' ) ) {
|
67 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
68 |
+
}
|
69 |
+
|
70 |
+
return get_plugins();
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Check whether a plugin is active.
|
75 |
+
*
|
76 |
+
* @param string $plugin Base plugin path from plugins directory.
|
77 |
+
*
|
78 |
+
* @return bool True, if in the active plugins list. False, not in the list.
|
79 |
+
*/
|
80 |
+
function is_plugin_active( $plugin ) {
|
81 |
+
|
82 |
+
if ( ! function_exists( 'is_plugin_active' ) ) {
|
83 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
84 |
+
}
|
85 |
+
return is_plugin_active( $plugin );
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Load the dependency plugins before the current plugin
|
91 |
+
*
|
92 |
+
* @return void
|
93 |
+
*/
|
94 |
+
function update_plugins_dependencies(){
|
95 |
+
|
96 |
+
if( empty( $this->requirements['plugins'] ) ){
|
97 |
+
return;
|
98 |
+
}
|
99 |
+
|
100 |
+
if( $plugin_requirements = $this->requirements['plugins'] ){
|
101 |
+
|
102 |
+
// Walk through the plugins
|
103 |
+
foreach ( $plugin_requirements as $plugin_requirement ) {
|
104 |
+
|
105 |
+
// Make sure if the plugin is expected to be loaded prior to our main plugin
|
106 |
+
if( ! empty( $plugin_requirement['dependency'] ) && true == $plugin_requirement['dependency'] && $this->is_plugin_active( $plugin_requirement['basename'] ) ){
|
107 |
+
// Get all activated plugins
|
108 |
+
$active_plugins = get_option( 'active_plugins' );
|
109 |
+
|
110 |
+
// Get the load orders
|
111 |
+
$this_plugin_load_order = array_search( $this->requirements['config']['plugin_basename'], $active_plugins );
|
112 |
+
$dependency_plugin_load_order = array_search( $plugin_requirement['basename'], $active_plugins );
|
113 |
+
|
114 |
+
// Replace the orders and update the order list
|
115 |
+
if( $dependency_plugin_load_order > $this_plugin_load_order ){
|
116 |
+
$sliced_basename = array_splice( $active_plugins, $this_plugin_load_order , 1 );
|
117 |
+
array_splice( $active_plugins, $dependency_plugin_load_order , 0, $sliced_basename );
|
118 |
+
update_option( 'active_plugins', $active_plugins );
|
119 |
+
}
|
120 |
+
|
121 |
+
}
|
122 |
+
|
123 |
+
}
|
124 |
+
|
125 |
+
}
|
126 |
+
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Check plugin requirements
|
131 |
+
*
|
132 |
+
* @return void
|
133 |
+
*/
|
134 |
+
function check_plugins_requirement(){
|
135 |
+
|
136 |
+
if( empty( $this->requirements['plugins'] ) ){
|
137 |
+
return;
|
138 |
+
}
|
139 |
+
|
140 |
+
if( $plugin_requirements = $this->requirements['plugins'] ){
|
141 |
+
if ( ! wp_installing() || 'wp-activate.php' === $pagenow ) {
|
142 |
+
|
143 |
+
// Walk through the plugins
|
144 |
+
foreach ( $plugin_requirements as $plugin_requirement ) {
|
145 |
+
|
146 |
+
// check if the plugin is active
|
147 |
+
$is_plugin_active = $this->is_plugin_active( $plugin_requirement['basename'] );
|
148 |
+
|
149 |
+
// if activating the plugin is required
|
150 |
+
if(
|
151 |
+
( ! empty( $plugin_requirement['required'] ) && true == $plugin_requirement['required'] && ! $is_plugin_active ) ||
|
152 |
+
( ! empty( $plugin_requirement['is_callable'] ) && ! function_exists( $plugin_requirement['is_callable'] ) )
|
153 |
+
){
|
154 |
+
|
155 |
+
$this->admin_notices[] = sprintf(
|
156 |
+
__( '%s plugin is required in order to use this plugin. Please install and activate the plugin.', 'auxin-elements' ),
|
157 |
+
'<strong>'. $plugin_requirement['name'] . '</strong>'
|
158 |
+
);
|
159 |
+
|
160 |
+
$this->requirements_passed = false;
|
161 |
+
|
162 |
+
// if minimum plugin version was specified
|
163 |
+
} elseif( ! empty( $plugin_requirement['version'] ) && $is_plugin_active ){
|
164 |
+
|
165 |
+
$all_plugins = $this->get_plugins();
|
166 |
+
|
167 |
+
if( empty( $all_plugins[ $plugin_requirement['basename'] ]['Version'] ) ){
|
168 |
+
continue;
|
169 |
+
}
|
170 |
+
|
171 |
+
$current_plugin_version = $all_plugins[ $plugin_requirement['basename'] ]['Version'];
|
172 |
+
|
173 |
+
if ( version_compare( $current_plugin_version, $plugin_requirement['version'], '<' ) ) {
|
174 |
+
|
175 |
+
$this->admin_notices[] = sprintf(
|
176 |
+
__( 'The plugin requires %s plugin version %s or higher (current version is %s). Please update it to the latest version.', 'auxin-elements' ),
|
177 |
+
'<strong>'. $plugin_requirement['name'] . '</strong>',
|
178 |
+
'<strong>'. $plugin_requirement['version'] . '</strong>',
|
179 |
+
'<strong>'. $current_plugin_version . '</strong>'
|
180 |
+
);
|
181 |
+
|
182 |
+
$this->requirements_passed = false;
|
183 |
+
}
|
184 |
+
|
185 |
+
}
|
186 |
+
|
187 |
+
}
|
188 |
+
|
189 |
+
}
|
190 |
+
|
191 |
+
}
|
192 |
+
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Check them requirements
|
197 |
+
*
|
198 |
+
* @return void
|
199 |
+
*/
|
200 |
+
function check_theme_requirement(){
|
201 |
+
|
202 |
+
if( empty( $this->requirements['themes'] ) ){
|
203 |
+
return;
|
204 |
+
}
|
205 |
+
|
206 |
+
if( $theme_requirements = $this->requirements['themes'] ){
|
207 |
+
|
208 |
+
// Walk through the themes
|
209 |
+
foreach ( $theme_requirements as $theme_requirement ) {
|
210 |
+
|
211 |
+
if (
|
212 |
+
( ! empty( $theme_requirement['file_exists'] ) && ! file_exists( $theme_requirement['file_exists'] ) ) ||
|
213 |
+
( ! empty( $theme_requirement['is_callable'] ) && ! function_exists( $theme_requirement['is_callable'] ) )
|
214 |
+
){
|
215 |
+
|
216 |
+
$this->admin_notices[] = sprintf(
|
217 |
+
__( '%s theme is required in order to use this plugin. Please install and activate the theme.', 'auxin-elements' ),
|
218 |
+
'<strong>'. $theme_requirement['name'] . '</strong>'
|
219 |
+
);
|
220 |
+
|
221 |
+
$this->requirements_passed = false;
|
222 |
+
return;
|
223 |
+
|
224 |
+
} elseif ( $theme_requirement['version'] ){
|
225 |
+
|
226 |
+
$theme_data = wp_get_theme();
|
227 |
+
$theme_data = $theme_data->parent() ? $theme_data->parent() : $theme_data;
|
228 |
+
|
229 |
+
if ( version_compare( $theme_data->Version, $theme_requirement['version'], '<' ) ) {
|
230 |
+
|
231 |
+
$this->admin_notices[] = sprintf(
|
232 |
+
__( 'The plugin requires %s theme version %s or higher in order to function property. Your current theme version is %s, please update it to the latest version.', 'auxin-elements' ),
|
233 |
+
'<strong>'. $theme_requirement['name'] . '</strong>',
|
234 |
+
'<strong>'. $theme_requirement['version'] . '</strong>',
|
235 |
+
'<strong>'. $theme_data->Version . '</strong>'
|
236 |
+
);
|
237 |
+
|
238 |
+
$this->requirements_passed = false;
|
239 |
+
return;
|
240 |
+
}
|
241 |
+
|
242 |
+
}
|
243 |
+
|
244 |
+
}
|
245 |
+
|
246 |
+
}
|
247 |
+
|
248 |
+
}
|
249 |
+
|
250 |
+
/**
|
251 |
+
* Check PHP requirements
|
252 |
+
*
|
253 |
+
* @return void
|
254 |
+
*/
|
255 |
+
function check_php_requirement(){
|
256 |
+
|
257 |
+
if( empty( $this->requirements['php']['version'] ) ){
|
258 |
+
return;
|
259 |
+
}
|
260 |
+
|
261 |
+
if ( version_compare( PHP_VERSION, $this->requirements['php']['version'], '<' ) ) {
|
262 |
+
|
263 |
+
$this->admin_notices[] = sprintf(
|
264 |
+
__( 'PHP version %s or above is required for this plugin while your the current PHP version is %s.', 'auxin-elements' ),
|
265 |
+
'<strong>'. $this->requirements['php']['version'] . '</strong>',
|
266 |
+
'<strong>'. PHP_VERSION . '</strong>'
|
267 |
+
);
|
268 |
+
|
269 |
+
$this->requirements_passed = false;
|
270 |
+
return;
|
271 |
+
}
|
272 |
+
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Checks all requirements
|
277 |
+
*
|
278 |
+
* @return string|boolean True if all requirements are passed, false or error message on failure
|
279 |
+
*/
|
280 |
+
public function validate(){
|
281 |
+
|
282 |
+
$this->check_php_requirement();
|
283 |
+
|
284 |
+
if( true !== $this->requirements_passed ){ return $this->requirements_passed; }
|
285 |
+
|
286 |
+
$this->check_theme_requirement();
|
287 |
+
|
288 |
+
if( true !== $this->requirements_passed ){ return $this->requirements_passed; }
|
289 |
+
|
290 |
+
$this->check_plugins_requirement();
|
291 |
+
|
292 |
+
return $this->requirements_passed;
|
293 |
+
}
|
294 |
+
|
295 |
+
}
|
296 |
+
|
297 |
+
}
|
includes/classes/class-auxin-post-type-base.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Add new post type and corresponding taxonomies
|
4 |
+
*
|
5 |
+
*
|
6 |
+
* @package Auxin
|
7 |
+
* @license LICENSE.txt
|
8 |
+
* @author
|
9 |
+
* @link http://averta.net/phlox/
|
10 |
+
* @copyright (c) 2010-2017
|
11 |
+
*/
|
12 |
+
|
13 |
+
// no direct access allowed
|
14 |
+
if ( ! defined('ABSPATH') ) exit;
|
15 |
+
|
16 |
+
|
17 |
+
if( ! class_exists( 'Auxin_Post_Type_Base' ) ){
|
18 |
+
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Register custom post type and taxonomies
|
22 |
+
*
|
23 |
+
*/
|
24 |
+
class Auxin_Post_Type_Base {
|
25 |
+
|
26 |
+
/**
|
27 |
+
* The custom post type name
|
28 |
+
*
|
29 |
+
* @var string
|
30 |
+
*/
|
31 |
+
protected $post_type = '';
|
32 |
+
|
33 |
+
/**
|
34 |
+
* The instance of WP_Post_Type class
|
35 |
+
*
|
36 |
+
* @var WP_Post_Type
|
37 |
+
*/
|
38 |
+
private $wp_post_type;
|
39 |
+
|
40 |
+
|
41 |
+
function __construct( $post_type = '' ) {
|
42 |
+
|
43 |
+
if( ! empty( $post_type ) ){
|
44 |
+
$this->post_type = $post_type;
|
45 |
+
}
|
46 |
+
if( ! $this->post_type ){
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
// Register the post type and get corresponding WP_Post_Type instance
|
51 |
+
$this->wp_post_type = $this->register_post_type();
|
52 |
+
|
53 |
+
// Add taxonomies
|
54 |
+
add_action( 'init', array( $this, 'register_taxonomies' ), 0 );
|
55 |
+
|
56 |
+
// Filter the list of columns to print on the manage posts screen
|
57 |
+
add_filter( "manage_edit-{$this->post_type}_columns", array( $this, 'manage_edit_columns' ) );
|
58 |
+
|
59 |
+
// Filter the list of columns shown when listing posts of the post type
|
60 |
+
add_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_posttype_custom_columns' ) );
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Retrieves/Returns the instance of WP_Post_Type class instead of current class
|
66 |
+
*
|
67 |
+
* @return void
|
68 |
+
*/
|
69 |
+
public function __toString(){
|
70 |
+
return $this->wp_post_type;
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Register post type
|
76 |
+
*
|
77 |
+
* @return void
|
78 |
+
*/
|
79 |
+
public function register_post_type() { }
|
80 |
+
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Register taxonomies
|
84 |
+
*
|
85 |
+
* @return void
|
86 |
+
*/
|
87 |
+
public function register_taxonomies() { }
|
88 |
+
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Customizing post type list Columns
|
92 |
+
*
|
93 |
+
* @param array $column An array of column name => label
|
94 |
+
* @return array List of columns shown when listing posts of the post type
|
95 |
+
*/
|
96 |
+
public function manage_edit_columns( $columns ){ }
|
97 |
+
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Applied to the list of columns to print on the manage posts screen for current post type
|
101 |
+
*
|
102 |
+
* @param array $column An array of column name => label
|
103 |
+
* @return array List of columns shown when listing posts of the post type
|
104 |
+
*/
|
105 |
+
function manage_posttype_custom_columns( $column ){ }
|
106 |
+
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Remove featured image box
|
110 |
+
*
|
111 |
+
* @return void
|
112 |
+
*/
|
113 |
+
public function remove_thumbnail_box(){
|
114 |
+
remove_meta_box( 'postimagediv', $this->post_type, 'side' );
|
115 |
+
}
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
+
}
|
includes/classes/class-auxpfo-post-type-portfolio.php
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
if ( ! defined('ABSPATH') ) exit;
|
15 |
|
16 |
|
|
|
17 |
|
18 |
|
19 |
/**
|
@@ -50,24 +51,24 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
50 |
|
51 |
|
52 |
$labels = array(
|
53 |
-
'name' => _x( 'Portfolios' , '' ),
|
54 |
-
'singular_name' => __( 'Portfolio' , '' ),
|
55 |
-
'menu_name' => _x( 'Portfolios' , 'Admin menu name', '' ),
|
56 |
-
'add_new' => __( 'Add New' , '' ),
|
57 |
-
'all_items' => __( 'All Portfolios' , '' ),
|
58 |
-
'add_new_item' => __( 'Add New Portfolio' , '' ),
|
59 |
-
'edit_item' => __( 'Edit Portfolio' , '' ),
|
60 |
-
'new_item' => __( 'New Portfolio' , '' ),
|
61 |
-
'view_item' => __( 'View Portfolio' , '' ),
|
62 |
-
'search_items' => __( 'Search Portfolios' , '' ),
|
63 |
-
'parent' => __( 'Parent Portfolio' , '' ),
|
64 |
-
'not_found' => __( 'No Portfolios found' , '' ),
|
65 |
-
'not_found_in_trash' => __( 'No Portfolios found in Trash', '' )
|
66 |
);
|
67 |
|
68 |
$args = array(
|
69 |
'labels' => $labels,
|
70 |
-
'description' => __( 'Here you can add new portfolio to your website.', '' ),
|
71 |
'public' => true,
|
72 |
'publicly_queryable' => true,
|
73 |
'exclude_from_search' => false,
|
@@ -101,17 +102,17 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
101 |
|
102 |
// labels for Category of this post type
|
103 |
$cat_labels = array(
|
104 |
-
'name' => __( 'Portfolio Categories' , '' ),
|
105 |
-
'singular_name' => __( 'Portfolio Category' , '' ),
|
106 |
-
'all_items' => __( 'All Portfolio Categories' , '' ),
|
107 |
-
'parent_item' => __( 'Parent Portfolio Category' , '' ),
|
108 |
-
'parent_item_colon' => __( 'Parent Portfolio Category:', '' ),
|
109 |
-
'edit_item' => __( 'Edit Portfolio Category' , '' ),
|
110 |
-
'update_item' => __( 'Update Portfolio Category' , '' ),
|
111 |
-
'add_new_item' => __( 'Add New Portfolio Category', '' ),
|
112 |
-
'new_item_name' => __( 'New Portfolio Category' , '' ),
|
113 |
-
'search_items' => __( 'Search in Portfolio Categories', '' ),
|
114 |
-
'menu_name' => _x( 'Categories', 'portfolio-cat admin menu name', '' )
|
115 |
);
|
116 |
|
117 |
$tax_cat_name = 'portfolio-cat';
|
@@ -120,7 +121,7 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
120 |
apply_filters( "auxin_taxonomy_post_types_for_{$tax_cat_name}" , array( $this->post_type ) ),
|
121 |
apply_filters( "auxin_taxonomy_args_{$tax_cat_name}" , array(
|
122 |
'hierarchical' => true,
|
123 |
-
'label' => __( 'Portfolio Categories', '' ),
|
124 |
'labels' => $cat_labels,
|
125 |
'show_ui' => true,
|
126 |
'update_count_callback' => '_update_post_term_count',
|
@@ -132,7 +133,7 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
132 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
133 |
),
|
134 |
'rewrite' => array(
|
135 |
-
'slug' => _x( 'portfolio-cat', 'taxonomy slug', '' ),
|
136 |
'hierarchical' => false
|
137 |
)
|
138 |
) )
|
@@ -144,22 +145,22 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
144 |
|
145 |
// labels for Tag/Filter of this post type
|
146 |
$tag_labels = array(
|
147 |
-
'name' => __( 'Portfolio Tags / Filters' , '' ),
|
148 |
-
'singular_name' => __( 'Portfolio Tag/Filter' , '' ),
|
149 |
-
'search_items' => __( 'Search in Portfolio Tags/filters' , '' ),
|
150 |
-
'popular_items' => __( 'Popular Tags/filters' , '' ),
|
151 |
-
'all_items' => __( 'All Portfolio Tags/filters' , '' ),
|
152 |
-
'parent_item' => __( 'Parent Portfolio Tag' , '' ),
|
153 |
-
'parent_item_colon' => __( 'Parent Portfolio Tag:' , '' ),
|
154 |
-
'edit_item' => __( 'Edit Portfolio Tag/Filter' , '' ),
|
155 |
-
'update_item' => __( 'Update Portfolio Tag/Filter' , '' ),
|
156 |
-
'add_new_item' => __( 'Add new Portfolio Tag/Filter' , '' ),
|
157 |
-
'new_item_name' => __( 'New Portfolio Tag/Filter' , '' ),
|
158 |
-
|
159 |
-
'separate_items_with_commas' => __( 'Separate tags with commas' , '' ),
|
160 |
-
'add_or_remove_items' => __( 'Add or remove Tag/Filter' , '' ),
|
161 |
-
'choose_from_most_used' => __( 'Choose from the most used tags' , '' ),
|
162 |
-
'menu_name' => _x( 'Tags ( Filters )', 'portfolio-tag admin menu name' , '' )
|
163 |
);
|
164 |
|
165 |
$tax_tag_name = 'portfolio-tag';
|
@@ -168,7 +169,7 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
168 |
apply_filters( "auxin_taxonomy_post_types_for_{$tax_tag_name}" , array( $this->post_type ) ),
|
169 |
apply_filters( "auxin_taxonomy_args_{$tax_tag_name}" , array(
|
170 |
'hierarchical' => false,
|
171 |
-
'label' => __( 'Portfolio Tags/Filters', '' ),
|
172 |
'labels' => $tag_labels,
|
173 |
'show_ui' => true,
|
174 |
'update_count_callback' => '_update_post_term_count',
|
@@ -180,7 +181,7 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
180 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
181 |
),
|
182 |
'rewrite' => array(
|
183 |
-
'slug' => _x( 'portfolio-tag', 'taxonomy slug', '' ),
|
184 |
'hierarchical' => false
|
185 |
)
|
186 |
) )
|
@@ -200,11 +201,11 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
200 |
|
201 |
$new_columns = array(
|
202 |
"cb" => "<input type=\"checkbox\" />",
|
203 |
-
"portfolio_image" => _x( 'Image' , 'Image column at portfolio edit columns', '' ),
|
204 |
-
"title" => _x( 'Title' , 'Title column at portfolio edit columns', '' ),
|
205 |
-
"cat" => _x( 'Category / Type' , 'Type column at portfolio edit columns', '' ),
|
206 |
-
"tag" => _x( 'Tag / Filter' , 'Tag/Filter column at portfolio edit columns', '' ),
|
207 |
-
"release_date" => _x( 'Release Date' , 'Date column at portfolio edit columns', '' )
|
208 |
);
|
209 |
|
210 |
return array_merge( $new_columns, $columns );
|
@@ -245,7 +246,7 @@ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
|
|
245 |
*/
|
246 |
function featured_image_instruction( $content ) {
|
247 |
if( $this->post_type == get_post_type() ){
|
248 |
-
return $content .= sprintf('<p>%s</p>', __( 'This is an image that is chosen as the representative/cover image for your project.', '' ) );
|
249 |
}
|
250 |
return $content;
|
251 |
}
|
14 |
if ( ! defined('ABSPATH') ) exit;
|
15 |
|
16 |
|
17 |
+
include AUXPFO_INC_DIR . '/classes/class-auxin-post-type-base.php';
|
18 |
|
19 |
|
20 |
/**
|
51 |
|
52 |
|
53 |
$labels = array(
|
54 |
+
'name' => _x( 'Portfolios' , 'auxin-portfolio' ),
|
55 |
+
'singular_name' => __( 'Portfolio' , 'auxin-portfolio' ),
|
56 |
+
'menu_name' => _x( 'Portfolios' , 'Admin menu name', 'auxin-portfolio' ),
|
57 |
+
'add_new' => __( 'Add New' , 'auxin-portfolio' ),
|
58 |
+
'all_items' => __( 'All Portfolios' , 'auxin-portfolio' ),
|
59 |
+
'add_new_item' => __( 'Add New Portfolio' , 'auxin-portfolio' ),
|
60 |
+
'edit_item' => __( 'Edit Portfolio' , 'auxin-portfolio' ),
|
61 |
+
'new_item' => __( 'New Portfolio' , 'auxin-portfolio' ),
|
62 |
+
'view_item' => __( 'View Portfolio' , 'auxin-portfolio' ),
|
63 |
+
'search_items' => __( 'Search Portfolios' , 'auxin-portfolio' ),
|
64 |
+
'parent' => __( 'Parent Portfolio' , 'auxin-portfolio' ),
|
65 |
+
'not_found' => __( 'No Portfolios found' , 'auxin-portfolio' ),
|
66 |
+
'not_found_in_trash' => __( 'No Portfolios found in Trash', 'auxin-portfolio' )
|
67 |
);
|
68 |
|
69 |
$args = array(
|
70 |
'labels' => $labels,
|
71 |
+
'description' => __( 'Here you can add new portfolio to your website.', 'auxin-portfolio' ),
|
72 |
'public' => true,
|
73 |
'publicly_queryable' => true,
|
74 |
'exclude_from_search' => false,
|
102 |
|
103 |
// labels for Category of this post type
|
104 |
$cat_labels = array(
|
105 |
+
'name' => __( 'Portfolio Categories' , 'auxin-portfolio' ),
|
106 |
+
'singular_name' => __( 'Portfolio Category' , 'auxin-portfolio' ),
|
107 |
+
'all_items' => __( 'All Portfolio Categories' , 'auxin-portfolio' ),
|
108 |
+
'parent_item' => __( 'Parent Portfolio Category' , 'auxin-portfolio' ),
|
109 |
+
'parent_item_colon' => __( 'Parent Portfolio Category:', 'auxin-portfolio' ),
|
110 |
+
'edit_item' => __( 'Edit Portfolio Category' , 'auxin-portfolio' ),
|
111 |
+
'update_item' => __( 'Update Portfolio Category' , 'auxin-portfolio' ),
|
112 |
+
'add_new_item' => __( 'Add New Portfolio Category', 'auxin-portfolio' ),
|
113 |
+
'new_item_name' => __( 'New Portfolio Category' , 'auxin-portfolio' ),
|
114 |
+
'search_items' => __( 'Search in Portfolio Categories', 'auxin-portfolio' ),
|
115 |
+
'menu_name' => _x( 'Categories', 'portfolio-cat admin menu name', 'auxin-portfolio' )
|
116 |
);
|
117 |
|
118 |
$tax_cat_name = 'portfolio-cat';
|
121 |
apply_filters( "auxin_taxonomy_post_types_for_{$tax_cat_name}" , array( $this->post_type ) ),
|
122 |
apply_filters( "auxin_taxonomy_args_{$tax_cat_name}" , array(
|
123 |
'hierarchical' => true,
|
124 |
+
'label' => __( 'Portfolio Categories', 'auxin-portfolio' ),
|
125 |
'labels' => $cat_labels,
|
126 |
'show_ui' => true,
|
127 |
'update_count_callback' => '_update_post_term_count',
|
133 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
134 |
),
|
135 |
'rewrite' => array(
|
136 |
+
'slug' => _x( 'portfolio-cat', 'taxonomy slug', 'auxin-portfolio' ),
|
137 |
'hierarchical' => false
|
138 |
)
|
139 |
) )
|
145 |
|
146 |
// labels for Tag/Filter of this post type
|
147 |
$tag_labels = array(
|
148 |
+
'name' => __( 'Portfolio Tags / Filters' , 'auxin-portfolio' ),
|
149 |
+
'singular_name' => __( 'Portfolio Tag/Filter' , 'auxin-portfolio' ),
|
150 |
+
'search_items' => __( 'Search in Portfolio Tags/filters' , 'auxin-portfolio' ),
|
151 |
+
'popular_items' => __( 'Popular Tags/filters' , 'auxin-portfolio' ),
|
152 |
+
'all_items' => __( 'All Portfolio Tags/filters' , 'auxin-portfolio' ),
|
153 |
+
'parent_item' => __( 'Parent Portfolio Tag' , 'auxin-portfolio' ),
|
154 |
+
'parent_item_colon' => __( 'Parent Portfolio Tag:' , 'auxin-portfolio' ),
|
155 |
+
'edit_item' => __( 'Edit Portfolio Tag/Filter' , 'auxin-portfolio' ),
|
156 |
+
'update_item' => __( 'Update Portfolio Tag/Filter' , 'auxin-portfolio' ),
|
157 |
+
'add_new_item' => __( 'Add new Portfolio Tag/Filter' , 'auxin-portfolio' ),
|
158 |
+
'new_item_name' => __( 'New Portfolio Tag/Filter' , 'auxin-portfolio' ),
|
159 |
+
|
160 |
+
'separate_items_with_commas' => __( 'Separate tags with commas' , 'auxin-portfolio' ),
|
161 |
+
'add_or_remove_items' => __( 'Add or remove Tag/Filter' , 'auxin-portfolio' ),
|
162 |
+
'choose_from_most_used' => __( 'Choose from the most used tags' , 'auxin-portfolio' ),
|
163 |
+
'menu_name' => _x( 'Tags ( Filters )', 'portfolio-tag admin menu name' , 'auxin-portfolio' )
|
164 |
);
|
165 |
|
166 |
$tax_tag_name = 'portfolio-tag';
|
169 |
apply_filters( "auxin_taxonomy_post_types_for_{$tax_tag_name}" , array( $this->post_type ) ),
|
170 |
apply_filters( "auxin_taxonomy_args_{$tax_tag_name}" , array(
|
171 |
'hierarchical' => false,
|
172 |
+
'label' => __( 'Portfolio Tags/Filters', 'auxin-portfolio' ),
|
173 |
'labels' => $tag_labels,
|
174 |
'show_ui' => true,
|
175 |
'update_count_callback' => '_update_post_term_count',
|
181 |
'assign_terms' => "assign_{$this->post_type}_terms",
|
182 |
),
|
183 |
'rewrite' => array(
|
184 |
+
'slug' => _x( 'portfolio-tag', 'taxonomy slug', 'auxin-portfolio' ),
|
185 |
'hierarchical' => false
|
186 |
)
|
187 |
) )
|
201 |
|
202 |
$new_columns = array(
|
203 |
"cb" => "<input type=\"checkbox\" />",
|
204 |
+
"portfolio_image" => _x( 'Image' , 'Image column at portfolio edit columns', 'auxin-portfolio' ),
|
205 |
+
"title" => _x( 'Title' , 'Title column at portfolio edit columns', 'auxin-portfolio' ),
|
206 |
+
"cat" => _x( 'Category / Type' , 'Type column at portfolio edit columns', 'auxin-portfolio' ),
|
207 |
+
"tag" => _x( 'Tag / Filter' , 'Tag/Filter column at portfolio edit columns', 'auxin-portfolio' ),
|
208 |
+
"release_date" => _x( 'Release Date' , 'Date column at portfolio edit columns', 'auxin-portfolio' )
|
209 |
);
|
210 |
|
211 |
return array_merge( $new_columns, $columns );
|
246 |
*/
|
247 |
function featured_image_instruction( $content ) {
|
248 |
if( $this->post_type == get_post_type() ){
|
249 |
+
return $content .= sprintf('<p>%s</p>', __( 'This is an image that is chosen as the representative/cover image for your project.', 'auxin-portfolio' ) );
|
250 |
}
|
251 |
return $content;
|
252 |
}
|
includes/define.php
CHANGED
@@ -5,6 +5,8 @@ if ( ! defined('ABSPATH') ) {
|
|
5 |
die();
|
6 |
}
|
7 |
|
|
|
|
|
8 |
// theme name
|
9 |
if( ! defined( 'THEME_NAME' ) ){
|
10 |
$theme_data = wp_get_theme();
|
@@ -12,7 +14,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
12 |
}
|
13 |
|
14 |
|
15 |
-
define( 'AUXPFO_VERSION' , '0.8.
|
16 |
|
17 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
18 |
|
5 |
die();
|
6 |
}
|
7 |
|
8 |
+
//die( "MJ" );
|
9 |
+
|
10 |
// theme name
|
11 |
if( ! defined( 'THEME_NAME' ) ){
|
12 |
$theme_data = wp_get_theme();
|
14 |
}
|
15 |
|
16 |
|
17 |
+
define( 'AUXPFO_VERSION' , '0.8.3' );
|
18 |
|
19 |
define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
|
20 |
|
includes/elements/recent-portfolios.php
CHANGED
@@ -17,16 +17,18 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
17 |
'hide_empty' => true
|
18 |
));
|
19 |
|
20 |
-
$categories_list = array( '' => __('All Categories', '' ) ) ;
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
|
25 |
$master_array['aux_recent_portfolios_grid'] = array(
|
26 |
-
'name' => __('[Phlox] Recent Portfolio on Grid, Tile and Masonry', '' ),
|
27 |
'auxin_output_callback' => 'auxin_widget_recent_portfolios_grid_callback',
|
28 |
'base' => 'aux_recent_portfolios_grid',
|
29 |
-
'description' => __('It adds recent portfolio items in gird, tile or masonry style.', '' ),
|
30 |
'class' => 'aux-widget-recent-portfolios',
|
31 |
'show_settings_on_create' => true,
|
32 |
'weight' => 1,
|
@@ -50,157 +52,167 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
50 |
'as_child' => '',
|
51 |
'params' => array(
|
52 |
array(
|
53 |
-
'heading' => __('Title','' ),
|
54 |
-
'description' => __('Recent items title, leave it empty if you don`t need title.', ''),
|
55 |
'param_name' => 'title',
|
56 |
'type' => 'textfield',
|
57 |
-
'std' => '',
|
58 |
'value' => '',
|
59 |
'holder' => 'textfield',
|
60 |
'class' => 'title',
|
61 |
-
'admin_label' =>
|
62 |
'dependency' => '',
|
63 |
'weight' => '',
|
64 |
'group' => '' ,
|
65 |
'edit_field_class' => ''
|
66 |
),
|
67 |
array(
|
68 |
-
'heading' => __('Categories', ''),
|
69 |
-
'description' => __('Specifies a category that you want to show portfolio items from it.', '' ),
|
70 |
'param_name' => 'cat',
|
71 |
-
'type' => '
|
72 |
'def_value' => '',
|
73 |
-
'holder' => '
|
74 |
'class' => 'cat',
|
75 |
'value' => $categories_list,
|
76 |
-
'admin_label' =>
|
77 |
'dependency' => '',
|
78 |
'weight' => '',
|
79 |
-
'group' => ''
|
80 |
'edit_field_class' => ''
|
81 |
),
|
82 |
array(
|
83 |
-
'heading' => __('Number of items to show', ''),
|
84 |
-
'description' => __('Leave it empty to show all items', ''),
|
85 |
'param_name' => 'num',
|
86 |
'type' => 'textfield',
|
87 |
-
'
|
88 |
-
'holder' => '
|
89 |
'class' => 'num',
|
90 |
-
'admin_label' =>
|
91 |
'dependency' => '',
|
92 |
'weight' => '',
|
93 |
-
'group' => ''
|
94 |
'edit_field_class' => ''
|
95 |
),
|
96 |
-
|
97 |
array(
|
98 |
-
'heading' => __('
|
99 |
-
'description' =>
|
100 |
-
'param_name' => '
|
101 |
-
'type' => '
|
102 |
-
'value' => '',
|
103 |
-
'holder' => 'textfield',
|
104 |
'class' => '',
|
105 |
-
'admin_label' =>
|
106 |
'dependency' => '',
|
107 |
'weight' => '',
|
108 |
-
'group' => ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
'edit_field_class' => ''
|
110 |
),
|
111 |
array(
|
112 |
-
'heading' => __('
|
113 |
-
'description' =>
|
114 |
-
'param_name' => '
|
115 |
-
'type' => '
|
116 |
-
'
|
117 |
-
'holder' => '
|
118 |
-
'class' => '',
|
119 |
-
'
|
|
|
|
|
|
|
|
|
120 |
'dependency' => '',
|
121 |
'weight' => '',
|
122 |
-
'group' => ''
|
123 |
'edit_field_class' => ''
|
124 |
),
|
125 |
array(
|
126 |
-
'heading' => __('
|
127 |
-
'description' => __('If you intend to
|
128 |
-
'param_name' => '
|
129 |
'type' => 'textfield',
|
130 |
'value' => '',
|
131 |
-
'holder' => '
|
132 |
'class' => '',
|
133 |
-
'admin_label' =>
|
134 |
'dependency' => '',
|
135 |
'weight' => '',
|
136 |
-
'group' => ''
|
137 |
'edit_field_class' => ''
|
138 |
),
|
139 |
array(
|
140 |
-
'heading'
|
141 |
-
'description'
|
142 |
-
'param_name'
|
143 |
-
'type'
|
144 |
-
'
|
145 |
-
'holder'
|
146 |
-
'class'
|
147 |
-
'
|
148 |
-
'date' => __('Date', AUXELS_DOMAIN),
|
149 |
-
'menu_order date' => __('Menu Order', AUXELS_DOMAIN),
|
150 |
-
'title' => __('Title', AUXELS_DOMAIN),
|
151 |
-
'ID' => __('ID', AUXELS_DOMAIN),
|
152 |
-
'rand' => __('Random', AUXELS_DOMAIN),
|
153 |
-
'comment_count' => __('Comments', AUXELS_DOMAIN),
|
154 |
-
'modified' => __('Date Modified', AUXELS_DOMAIN),
|
155 |
-
'author' => __('Author', AUXELS_DOMAIN),
|
156 |
-
'post__in' => __('Inserted Post IDs', AUXELS_DOMAIN)
|
157 |
-
),
|
158 |
-
'admin_label' => true,
|
159 |
'dependency' => '',
|
160 |
'weight' => '',
|
161 |
-
'group' => ''
|
162 |
'edit_field_class' => ''
|
163 |
),
|
164 |
-
|
165 |
array(
|
166 |
-
'heading' => __('
|
167 |
-
'description' => '',
|
168 |
-
'param_name' => '
|
169 |
-
'type' => '
|
170 |
-
'
|
171 |
-
'holder' => '
|
172 |
-
'class' => '
|
173 |
-
'
|
174 |
-
'DESC' => __('Descending', ''),
|
175 |
-
'ASC' => __('Ascending', ''),
|
176 |
-
),
|
177 |
-
'admin_label' => true,
|
178 |
'dependency' => '',
|
179 |
'weight' => '',
|
180 |
-
'group' => ''
|
181 |
'edit_field_class' => ''
|
182 |
),
|
183 |
array(
|
184 |
-
'heading' => __('Start offset','' ),
|
185 |
-
'description' => __('Number of post to displace or pass over.', '' ),
|
186 |
'param_name' => 'offset',
|
187 |
'type' => 'textfield',
|
188 |
'value' => '',
|
189 |
'holder' => 'textfield',
|
190 |
'class' => '',
|
191 |
-
'admin_label' =>
|
192 |
'dependency' => '',
|
193 |
'weight' => '',
|
194 |
-
'group' => ''
|
195 |
'edit_field_class' => ''
|
196 |
),
|
197 |
array(
|
198 |
-
'heading' => __('Layout', ''),
|
199 |
-
'description' => __('Different layout types of appearing items.', ''),
|
200 |
'param_name' => 'layout',
|
201 |
'type' => 'aux_visual_select',
|
202 |
'def_value' => 'grid',
|
203 |
-
'holder' => '
|
204 |
'class' => 'num',
|
205 |
'value' => array(
|
206 |
'grid' => 'Grid',
|
@@ -209,40 +221,39 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
209 |
),
|
210 |
'choices' => array (
|
211 |
'grid' => array(
|
212 |
-
'label' => __('Grid', ''),
|
213 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
214 |
),
|
215 |
'masonry' => array(
|
216 |
-
'label' => __('Masonry', ''),
|
217 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
218 |
),
|
219 |
'tiles' => array(
|
220 |
-
'label' => __('Tiles', ''),
|
221 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
222 |
)
|
223 |
),
|
224 |
-
|
225 |
'admin_label' => true,
|
226 |
'dependency' => '',
|
227 |
'weight' => '',
|
228 |
-
'group' => ''
|
229 |
'edit_field_class' => ''
|
230 |
),
|
231 |
array(
|
232 |
-
'heading' => __('Image aspect ratio', ''),
|
233 |
'description' => '',
|
234 |
'param_name' => 'image_aspect_ratio',
|
235 |
'type' => 'dropdown',
|
236 |
'def_value' => '0.75',
|
237 |
-
'holder' => '
|
238 |
'class' => 'order',
|
239 |
'value' => array (
|
240 |
-
'0.75' => __('Horizontal 4:3' , ''),
|
241 |
-
'0.56' => __('Horizontal 16:9', ''),
|
242 |
-
'1.00' => __('Square 1:1' , ''),
|
243 |
-
'1.33' => __('Vertical 3:4' , '')
|
244 |
),
|
245 |
-
'admin_label' =>
|
246 |
'dependency' => array(
|
247 |
'element' => 'layout',
|
248 |
'value' => array( 'grid' )
|
@@ -252,26 +263,12 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
252 |
'edit_field_class' => ''
|
253 |
),
|
254 |
array(
|
255 |
-
'heading' => __('
|
256 |
-
'description' => '',
|
257 |
-
'param_name' => 'exclude_without_media',
|
258 |
-
'type' => 'aux_switch',
|
259 |
-
'value' => '1',
|
260 |
-
'class' => '',
|
261 |
-
'admin_label' => true,
|
262 |
-
'dependency' => '',
|
263 |
-
'weight' => '',
|
264 |
-
'group' => '' ,
|
265 |
-
'edit_field_class' => ''
|
266 |
-
),
|
267 |
-
|
268 |
-
array(
|
269 |
-
'heading' => __('Portfolio hover type','' ),
|
270 |
'description' => '',
|
271 |
'param_name' => 'item_style',
|
272 |
'type' => 'dropdown',
|
273 |
'def_value' => 'classic',
|
274 |
-
'holder' => '
|
275 |
'admin_label' => false,
|
276 |
'dependency' => array(
|
277 |
'element' => 'layout',
|
@@ -280,22 +277,22 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
280 |
'weight' => '',
|
281 |
'edit_field_class' => '',
|
282 |
'value' => array(
|
283 |
-
'classic' => __('Classic', '' ),
|
284 |
-
'classic-lightbox' => __('Classic with lightbox style 1', '' ),
|
285 |
-
'classic-lightbox-boxed' => __('Classic with lightbox style 2', '' ),
|
286 |
-
'overlay' => __('Overlay title style 1', '' ),
|
287 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
288 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
289 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
290 |
)
|
291 |
),
|
292 |
array(
|
293 |
-
'heading' => __('Portfolio
|
294 |
'description' => '',
|
295 |
'param_name' => 'tiles_item_style',
|
296 |
'type' => 'dropdown',
|
297 |
'def_value' => 'overlay',
|
298 |
-
'holder' => '
|
299 |
'admin_label' => false,
|
300 |
'dependency' => array(
|
301 |
'element' => 'layout',
|
@@ -304,85 +301,85 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
304 |
'weight' => '',
|
305 |
'edit_field_class' => '',
|
306 |
'value' => array(
|
307 |
-
'overlay' => __('Overlay title style 1', '' ),
|
308 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
309 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
310 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
311 |
)
|
312 |
),
|
313 |
array(
|
314 |
-
'heading' => __('Insert portfolio title','' ),
|
315 |
'description' => '',
|
316 |
'param_name' => 'show_title',
|
317 |
'type' => 'aux_switch',
|
318 |
'value' => '1',
|
319 |
'class' => '',
|
320 |
-
'admin_label' =>
|
321 |
'dependency' => '',
|
322 |
'weight' => '',
|
323 |
-
'group' => ''
|
324 |
'edit_field_class' => ''
|
325 |
),
|
326 |
array(
|
327 |
-
'heading' => __('Insert portfolio meta','' ),
|
328 |
'description' => '',
|
329 |
'param_name' => 'show_info',
|
330 |
'type' => 'aux_switch',
|
331 |
'value' => '1',
|
332 |
'class' => '',
|
333 |
-
'admin_label' =>
|
334 |
'weight' => '',
|
335 |
-
'group' => ''
|
336 |
'edit_field_class' => ''
|
337 |
),
|
338 |
array(
|
339 |
-
'heading' => __('Show filters','' ),
|
340 |
'description' => '',
|
341 |
'param_name' => 'show_filters',
|
342 |
'type' => 'aux_switch',
|
343 |
'value' => '1',
|
344 |
'class' => '',
|
345 |
-
'admin_label' =>
|
346 |
'weight' => '',
|
347 |
-
'group' => ''
|
348 |
'edit_field_class' => ''
|
349 |
),
|
350 |
array(
|
351 |
-
'heading' => __('Filter by', ''),
|
352 |
-
'description' => __('Filter by categories or tags', '' ),
|
353 |
'param_name' => 'filter_by',
|
354 |
'type' => 'dropdown',
|
355 |
'def_value' => 'portfolio-cat',
|
356 |
'holder' => 'dropdown',
|
357 |
'value' =>array (
|
358 |
-
'portfolio-cat' => __('Categories', ''),
|
359 |
-
'portfolio-tag' => __('Tags', '')
|
360 |
),
|
361 |
'dependency' => array(
|
362 |
'element' => 'show_filters',
|
363 |
'value' => '1'
|
364 |
),
|
365 |
'weight' => '',
|
366 |
-
'group' => ''
|
367 |
'edit_field_class' => ''
|
368 |
),
|
369 |
array(
|
370 |
-
'heading' => __('Filter Control Alignment', ''),
|
371 |
'param_name' => 'filter_align',
|
372 |
'type' => 'aux_visual_select',
|
373 |
'def_value' => 'aux-center',
|
374 |
-
'holder' => '
|
375 |
'choices' => array(
|
376 |
'aux-left' => array(
|
377 |
-
'label' => __('Left' , ''),
|
378 |
'image' => AUX_URL . 'images/visual-select/filter-left.svg'
|
379 |
),
|
380 |
'aux-center' => array(
|
381 |
-
'label' => __('Center' , ''),
|
382 |
'image' => AUX_URL . 'images/visual-select/filter-mid.svg'
|
383 |
),
|
384 |
'aux-right' => array(
|
385 |
-
'label' => __('Right' , ''),
|
386 |
'image' => AUX_URL . 'images/visual-select/filter-right.svg'
|
387 |
)
|
388 |
),
|
@@ -391,74 +388,71 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
391 |
'value' => '1'
|
392 |
),
|
393 |
'weight' => '',
|
394 |
-
'group' => ''
|
395 |
'edit_field_class' => ''
|
396 |
),
|
397 |
array(
|
398 |
-
'heading' => __('Filter button style', ''),
|
399 |
-
'description' => __('Style of filter buttons.', '' ),
|
400 |
'param_name' => 'filter_style',
|
401 |
'type' => 'dropdown',
|
402 |
'def_value' => 'aux-slideup',
|
403 |
-
'holder' => '
|
404 |
'dependency' => array(
|
405 |
'element' => 'show_filters',
|
406 |
'value' => '1'
|
407 |
),
|
408 |
'weight' => '',
|
409 |
-
'group' => '',
|
410 |
'edit_field_class' => '',
|
411 |
'value' => array (
|
412 |
-
'aux-slideup' => __('Slide up', ''),
|
413 |
-
'aux-fill' => __('Fill', ''),
|
414 |
-
'aux-cube' => __('Cube', ''),
|
415 |
-
'aux-underline' => __('Underline', ''),
|
416 |
-
'aux-overlay' => __('Float frame', ''),
|
417 |
-
'aux-borderd' => __('Borderd', ''),
|
418 |
-
'aux-overlay aux-underline-anim' => __('Float underline', '')
|
419 |
)
|
420 |
),
|
421 |
-
|
422 |
-
|
423 |
array(
|
424 |
-
'heading' => __('Display like button','' ),
|
425 |
-
'description' => sprintf(__('Enable it to display %s like button%s on gride template blog. Please note WP Ulike plugin needs to be activaited to use this option.', ''), '<strong>', '</strong>'),
|
426 |
'param_name' => 'display_like',
|
427 |
'type' => 'aux_switch',
|
428 |
'value' => '1',
|
429 |
-
'holder' => '
|
430 |
'class' => 'display_like',
|
431 |
-
'admin_label' =>
|
432 |
'dependency' => array(
|
433 |
'element' => 'item_style',
|
434 |
'value' => array( 'classic', 'classic-lightbox', 'classic-lightbox-boxed' )
|
435 |
),
|
436 |
'weight' => '',
|
437 |
-
'group' => ''
|
438 |
'edit_field_class' => ''
|
439 |
),
|
440 |
-
|
441 |
array(
|
442 |
-
'heading' => __('Deeplink','' ),
|
443 |
-
'description' => __('Enables the deeplink feature, it updates URL based on page and filter status.', '' ),
|
444 |
'param_name' => 'deeplink',
|
445 |
'type' => 'aux_switch',
|
446 |
'value' => '0',
|
447 |
'class' => '',
|
448 |
-
'admin_label' =>
|
449 |
'weight' => '',
|
450 |
-
'group' => ''
|
451 |
'edit_field_class' => ''
|
452 |
),
|
453 |
array(
|
454 |
-
'heading' => __('Deeplink slug', '' ),
|
455 |
-
'description' => __('Specifies the deeplink slug value in address bar.', '' ),
|
456 |
'param_name' => 'deeplink_slug',
|
457 |
'type' => 'textfield',
|
458 |
'value' => uniqid('portfolio-'),
|
459 |
-
'holder' => '
|
460 |
'class' => '',
|
461 |
-
'admin_label' =>
|
462 |
'dependency' => array(
|
463 |
'element' => 'deeplink',
|
464 |
'value' => '1'
|
@@ -468,123 +462,123 @@ function auxin_get_recent_portfolios_master_array( $master_array ) {
|
|
468 |
'edit_field_class' => ''
|
469 |
),
|
470 |
array(
|
471 |
-
'heading' => __('Paginate','' ),
|
472 |
-
'description' => __('Paginates the portfolio items', '' ),
|
473 |
'param_name' => 'paginate',
|
474 |
'type' => 'aux_switch',
|
475 |
'value' => '1',
|
476 |
'class' => '',
|
477 |
-
'admin_label' =>
|
478 |
'weight' => '',
|
479 |
-
'group' => ''
|
480 |
'edit_field_class' => ''
|
481 |
),
|
482 |
array(
|
483 |
-
'heading' => __('Items number perpage', '' ),
|
484 |
'param_name' => 'perpage',
|
485 |
'type' => 'textfield',
|
486 |
'value' => '10',
|
487 |
-
'holder' => '
|
488 |
'class' => '',
|
489 |
-
'admin_label' =>
|
490 |
'dependency' => array(
|
491 |
'element' => 'paginate',
|
492 |
'value' => '1'
|
493 |
),
|
494 |
'weight' => '',
|
495 |
-
'group' => ''
|
496 |
'edit_field_class' => ''
|
497 |
),
|
498 |
array(
|
499 |
-
'heading' => __('Space', '' ),
|
500 |
-
'description' => __('Specifies space between items in pixels.', '' ),
|
501 |
'param_name' => 'space',
|
502 |
'type' => 'textfield',
|
503 |
'value' => '30',
|
504 |
-
'holder' => '
|
505 |
'class' => '',
|
506 |
-
'admin_label' =>
|
507 |
'dependency' => array(
|
508 |
'element' => 'layout',
|
509 |
'value' => array( 'grid', 'masonry' )
|
510 |
),
|
511 |
'weight' => '',
|
512 |
-
'group' => ''
|
513 |
'edit_field_class' => ''
|
514 |
),
|
515 |
array(
|
516 |
-
'heading' => __('Number of columns', ''),
|
517 |
'description' => '',
|
518 |
'param_name' => 'desktop_cnum',
|
519 |
'type' => 'dropdown',
|
520 |
'def_value' => '4',
|
521 |
-
'holder' => '
|
522 |
'class' => 'num',
|
523 |
'value' => array(
|
524 |
'1' => '1' , '2' => '2' , '3' => '3' ,
|
525 |
'4' => '4' , '5' => '5' , '6' => '6'
|
526 |
),
|
527 |
-
'admin_label' =>
|
528 |
'dependency' => array(
|
529 |
'element' => 'layout',
|
530 |
'value' => array( 'grid', 'masonry' )
|
531 |
),
|
532 |
'weight' => '',
|
533 |
-
'group' => 'Layout'
|
534 |
'edit_field_class' => ''
|
535 |
),
|
536 |
array(
|
537 |
-
'heading' => __('Number of columns in tablet size', ''),
|
538 |
'description' => '',
|
539 |
'param_name' => 'tablet_cnum',
|
540 |
'type' => 'dropdown',
|
541 |
'def_value' => 'inherit',
|
542 |
-
'holder' => '
|
543 |
'class' => 'num',
|
544 |
'value' => array(
|
545 |
'inherit' => 'Inherited from larger',
|
546 |
'1' => '1', '2' => '2', '3' => '3',
|
547 |
'4' => '4', '5' => '5', '6' => '6'
|
548 |
),
|
549 |
-
'admin_label' =>
|
550 |
'dependency' => array(
|
551 |
'element' => 'layout',
|
552 |
'value' => array( 'grid', 'masonry' )
|
553 |
),
|
554 |
'weight' => '',
|
555 |
-
'group' => 'Layout'
|
556 |
'edit_field_class' => ''
|
557 |
),
|
558 |
array(
|
559 |
-
'heading' => __('Number of columns in phone size', ''),
|
560 |
'description' => '',
|
561 |
'param_name' => 'phone_cnum',
|
562 |
'type' => 'dropdown',
|
563 |
'def_value' => 'inherit',
|
564 |
-
'holder' => '
|
565 |
'class' => 'num',
|
566 |
'value' => array(
|
567 |
'1' => '1' , '2' => '2', '3' => '3'
|
568 |
),
|
569 |
-
'admin_label' =>
|
570 |
'dependency' => array(
|
571 |
'element' => 'layout',
|
572 |
'value' => array( 'grid', 'masonry' )
|
573 |
),
|
574 |
'weight' => '',
|
575 |
-
'group' => 'Layout'
|
576 |
'edit_field_class' => ''
|
577 |
),
|
578 |
array(
|
579 |
-
'heading' => __('Extra class name','' ),
|
580 |
-
'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', '' ),
|
581 |
'param_name' => 'extra_classes',
|
582 |
'type' => 'textfield',
|
583 |
'value' => '',
|
584 |
'def_value' => '',
|
585 |
-
'holder' => '
|
586 |
'class' => 'extra_classes',
|
587 |
-
'admin_label' =>
|
588 |
'dependency' => '',
|
589 |
'weight' => '',
|
590 |
'group' => '',
|
@@ -614,19 +608,19 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
614 |
// Defining default attributes
|
615 |
$default_atts = array(
|
616 |
'title' => '', // header title
|
617 |
-
'cat' => '',
|
618 |
-
'num' => '', // max generated entry
|
619 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
620 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
621 |
'exclude' => '', // exclude these post IDs from result. array or string comma separated
|
622 |
'posts_per_page' => -1,
|
623 |
'offset' => '',
|
624 |
'paged' => '',
|
625 |
-
'order_by' => '
|
626 |
-
'order' => '
|
627 |
'exclude_without_media' => 0,
|
628 |
-
'display_like' =>
|
629 |
-
'deeplink' =>
|
630 |
'deeplink_slug' => uniqid('portfolio-'),
|
631 |
'show_filters' => 1,
|
632 |
'filter_by' => 'portfolio-cat',
|
@@ -721,43 +715,43 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
721 |
$frame_effect_classes = 'aux-frame-darken aux-frame-zoom';
|
722 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
723 |
$show_lightbox = true;
|
724 |
-
$tamplate_file = '
|
725 |
break;
|
726 |
case 'classic-lightbox-boxed':
|
727 |
$frame_effect_classes = 'aux-frame-boxed-darken aux-frame-zoom';
|
728 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
729 |
$show_lightbox = true;
|
730 |
-
$tamplate_file = '
|
731 |
break;
|
732 |
case 'overlay':
|
733 |
$frame_effect_classes = 'aux-frame-darken aux-frame-zoom';
|
734 |
$hover_classes = 'aux-hover-active';
|
735 |
$show_lightbox = false;
|
736 |
-
$tamplate_file = '
|
737 |
break;
|
738 |
case 'overlay-boxed':
|
739 |
$frame_effect_classes = 'aux-frame-boxed-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
740 |
$hover_classes = 'aux-hover-active';
|
741 |
$show_lightbox = false;
|
742 |
-
$tamplate_file = '
|
743 |
break;
|
744 |
case 'overlay-lightbox':
|
745 |
$frame_effect_classes = 'aux-frame-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
746 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
747 |
$show_lightbox = true;
|
748 |
-
$tamplate_file = '
|
749 |
break;
|
750 |
case 'overlay-lightbox-boxed':
|
751 |
$frame_effect_classes = 'aux-frame-boxed-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
752 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
753 |
$show_lightbox = true;
|
754 |
-
$tamplate_file = '
|
755 |
break;
|
756 |
default:
|
757 |
$frame_effect_classes = '';
|
758 |
$hover_classes = '';
|
759 |
$show_lightbox = false;
|
760 |
-
$tamplate_file = 'portfolio-column
|
761 |
}
|
762 |
|
763 |
// generate columns class
|
@@ -801,7 +795,7 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
801 |
|
802 |
if ( $terms ) {
|
803 |
?><div class="aux-filters <?php echo $filter_style . ' ' . $filter_align; ?> aux-togglable aux-isotope-filters" data-isotope="<?php echo $isotope_id; ?>"><div class="aux-select-overlay"></div><ul><?php
|
804 |
-
echo '<li data-filter="all"><a href="#"><span data-select="'.__('all', '').'">'.__('all', '').'</span></a></li>';
|
805 |
foreach ( $terms as $term ) {
|
806 |
echo '<li data-filter="iso-filter-'.$term->name.'"><a href="#"><span data-select="'.$term->name.'">'.$term->name.'</span></a></li>';
|
807 |
}
|
@@ -894,26 +888,25 @@ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content
|
|
894 |
}
|
895 |
}
|
896 |
|
897 |
-
//
|
898 |
if ( $show_lightbox ) {
|
899 |
$attach_id = get_post_thumbnail_id($post->ID);
|
900 |
-
$image_primary_meta
|
901 |
$lightbox_attrs = 'data-original-width="' . $image_primary_meta['width'] . '" data-original-height="' . $image_primary_meta['height'] . '" ' .
|
902 |
'data-caption="' . auxin_attachment_caption( $attach_id ) . '"';
|
903 |
}
|
904 |
|
905 |
if ( $paginate && $post_counter > $perpage ) {
|
906 |
-
|
907 |
} else {
|
908 |
-
|
909 |
}
|
910 |
-
|
911 |
-
|
912 |
}
|
913 |
-
|
914 |
-
?>
|
915 |
</div>
|
916 |
-
|
917 |
}
|
918 |
|
919 |
if( $reset_query ){
|
17 |
'hide_empty' => true
|
18 |
));
|
19 |
|
20 |
+
$categories_list = array( ' ' => __('All Categories', 'auxin-portfolio' ) ) ;
|
21 |
+
// @TODO: this taxonomy has not registered till here so we need to fix it.
|
22 |
+
// foreach ( $categories as $key => $value ) {
|
23 |
+
// $categories_list[$value->term_id] = $value->name;
|
24 |
+
// }
|
25 |
+
|
26 |
|
27 |
$master_array['aux_recent_portfolios_grid'] = array(
|
28 |
+
'name' => __('[Phlox] Recent Portfolio on Grid, Tile and Masonry', 'auxin-portfolio' ),
|
29 |
'auxin_output_callback' => 'auxin_widget_recent_portfolios_grid_callback',
|
30 |
'base' => 'aux_recent_portfolios_grid',
|
31 |
+
'description' => __('It adds recent portfolio items in gird, tile or masonry style.', 'auxin-portfolio' ),
|
32 |
'class' => 'aux-widget-recent-portfolios',
|
33 |
'show_settings_on_create' => true,
|
34 |
'weight' => 1,
|
52 |
'as_child' => '',
|
53 |
'params' => array(
|
54 |
array(
|
55 |
+
'heading' => __('Title', 'auxin-portfolio' ),
|
56 |
+
'description' => __('Recent items title, leave it empty if you don`t need title.', 'auxin-portfolio'),
|
57 |
'param_name' => 'title',
|
58 |
'type' => 'textfield',
|
|
|
59 |
'value' => '',
|
60 |
'holder' => 'textfield',
|
61 |
'class' => 'title',
|
62 |
+
'admin_label' => false,
|
63 |
'dependency' => '',
|
64 |
'weight' => '',
|
65 |
'group' => '' ,
|
66 |
'edit_field_class' => ''
|
67 |
),
|
68 |
array(
|
69 |
+
'heading' => __('Categories', 'auxin-portfolio'),
|
70 |
+
'description' => __('Specifies a category that you want to show portfolio items from it.', 'auxin-portfolio' ),
|
71 |
'param_name' => 'cat',
|
72 |
+
'type' => 'aux_select2_multiple',
|
73 |
'def_value' => '',
|
74 |
+
'holder' => '',
|
75 |
'class' => 'cat',
|
76 |
'value' => $categories_list,
|
77 |
+
'admin_label' => false,
|
78 |
'dependency' => '',
|
79 |
'weight' => '',
|
80 |
+
'group' => 'Query',
|
81 |
'edit_field_class' => ''
|
82 |
),
|
83 |
array(
|
84 |
+
'heading' => __('Number of items to show', 'auxin-portfolio'),
|
85 |
+
'description' => __('Leave it empty to show all items', 'auxin-portfolio'),
|
86 |
'param_name' => 'num',
|
87 |
'type' => 'textfield',
|
88 |
+
'value' => '8',
|
89 |
+
'holder' => '',
|
90 |
'class' => 'num',
|
91 |
+
'admin_label' => false,
|
92 |
'dependency' => '',
|
93 |
'weight' => '',
|
94 |
+
'group' => 'Query',
|
95 |
'edit_field_class' => ''
|
96 |
),
|
|
|
97 |
array(
|
98 |
+
'heading' => __('Exclude portfolios without media','auxin-portfolio' ),
|
99 |
+
'description' => '',
|
100 |
+
'param_name' => 'exclude_without_media',
|
101 |
+
'type' => 'aux_switch',
|
102 |
+
'value' => '1',
|
|
|
103 |
'class' => '',
|
104 |
+
'admin_label' => false,
|
105 |
'dependency' => '',
|
106 |
'weight' => '',
|
107 |
+
'group' => 'Query',
|
108 |
+
'edit_field_class' => ''
|
109 |
+
),
|
110 |
+
array(
|
111 |
+
'heading' => __('Order by', 'auxin-portfolio'),
|
112 |
+
'description' => '',
|
113 |
+
'param_name' => 'order_by',
|
114 |
+
'type' => 'dropdown',
|
115 |
+
'def_value' => 'date',
|
116 |
+
'holder' => '',
|
117 |
+
'class' => 'order_by',
|
118 |
+
'value' => array (
|
119 |
+
'date' => __('Date', 'auxin-portfolio'),
|
120 |
+
'menu_order date' => __('Menu Order', 'auxin-portfolio'),
|
121 |
+
'title' => __('Title', 'auxin-portfolio'),
|
122 |
+
'ID' => __('ID', 'auxin-portfolio'),
|
123 |
+
'rand' => __('Random', 'auxin-portfolio'),
|
124 |
+
'comment_count' => __('Comments', 'auxin-portfolio'),
|
125 |
+
'modified' => __('Date Modified', 'auxin-portfolio'),
|
126 |
+
'author' => __('Author', 'auxin-portfolio'),
|
127 |
+
'post__in' => __('Inserted Post IDs', 'auxin-portfolio')
|
128 |
+
),
|
129 |
+
'admin_label' => false,
|
130 |
+
'dependency' => '',
|
131 |
+
'weight' => '',
|
132 |
+
'group' => 'Query',
|
133 |
'edit_field_class' => ''
|
134 |
),
|
135 |
array(
|
136 |
+
'heading' => __('Order', 'auxin-portfolio'),
|
137 |
+
'description' => '',
|
138 |
+
'param_name' => 'order',
|
139 |
+
'type' => 'dropdown',
|
140 |
+
'def_value' => 'DESC',
|
141 |
+
'holder' => '',
|
142 |
+
'class' => 'order',
|
143 |
+
'value' =>array (
|
144 |
+
'DESC' => __('Descending', 'auxin-portfolio'),
|
145 |
+
'ASC' => __('Ascending', 'auxin-portfolio'),
|
146 |
+
),
|
147 |
+
'admin_label' => false,
|
148 |
'dependency' => '',
|
149 |
'weight' => '',
|
150 |
+
'group' => 'Query',
|
151 |
'edit_field_class' => ''
|
152 |
),
|
153 |
array(
|
154 |
+
'heading' => __('Only portfolios','auxin-portfolio' ),
|
155 |
+
'description' => __('If you intend to display ONLY specific portfolios, you should specify them here. You have to insert the post IDs that are separated by comma (eg. 53,34,87,25).', 'auxin-portfolio' ),
|
156 |
+
'param_name' => 'only_posts__in',
|
157 |
'type' => 'textfield',
|
158 |
'value' => '',
|
159 |
+
'holder' => '',
|
160 |
'class' => '',
|
161 |
+
'admin_label' => false,
|
162 |
'dependency' => '',
|
163 |
'weight' => '',
|
164 |
+
'group' => 'Query',
|
165 |
'edit_field_class' => ''
|
166 |
),
|
167 |
array(
|
168 |
+
'heading' => __('Include portfolios','auxin-portfolio' ),
|
169 |
+
'description' => __('If you intend to include additional portfolios, you should specify them here. You have to insert the Post IDs that are separated by comma (eg. 53,34,87,25)', 'auxin-portfolio' ),
|
170 |
+
'param_name' => 'include',
|
171 |
+
'type' => 'textfield',
|
172 |
+
'value' => '',
|
173 |
+
'holder' => 'textfield',
|
174 |
+
'class' => '',
|
175 |
+
'admin_label' => false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
'dependency' => '',
|
177 |
'weight' => '',
|
178 |
+
'group' => 'Query',
|
179 |
'edit_field_class' => ''
|
180 |
),
|
|
|
181 |
array(
|
182 |
+
'heading' => __('Exclude posts','auxin-portfolio' ),
|
183 |
+
'description' => __('If you intend to exclude specific posts from result, you should specify the posts here. You have to insert the Post IDs that are separated by comma (eg. 53,34,87,25)', 'auxin-portfolio' ),
|
184 |
+
'param_name' => 'exclude',
|
185 |
+
'type' => 'textfield',
|
186 |
+
'value' => '',
|
187 |
+
'holder' => '',
|
188 |
+
'class' => '',
|
189 |
+
'admin_label' => false,
|
|
|
|
|
|
|
|
|
190 |
'dependency' => '',
|
191 |
'weight' => '',
|
192 |
+
'group' => 'Query',
|
193 |
'edit_field_class' => ''
|
194 |
),
|
195 |
array(
|
196 |
+
'heading' => __('Start offset','auxin-portfolio' ),
|
197 |
+
'description' => __('Number of post to displace or pass over.', 'auxin-portfolio' ),
|
198 |
'param_name' => 'offset',
|
199 |
'type' => 'textfield',
|
200 |
'value' => '',
|
201 |
'holder' => 'textfield',
|
202 |
'class' => '',
|
203 |
+
'admin_label' => false,
|
204 |
'dependency' => '',
|
205 |
'weight' => '',
|
206 |
+
'group' => 'Query',
|
207 |
'edit_field_class' => ''
|
208 |
),
|
209 |
array(
|
210 |
+
'heading' => __('Layout', 'auxin-portfolio'),
|
211 |
+
'description' => __('Different layout types of appearing items.', 'auxin-portfolio'),
|
212 |
'param_name' => 'layout',
|
213 |
'type' => 'aux_visual_select',
|
214 |
'def_value' => 'grid',
|
215 |
+
'holder' => '',
|
216 |
'class' => 'num',
|
217 |
'value' => array(
|
218 |
'grid' => 'Grid',
|
221 |
),
|
222 |
'choices' => array (
|
223 |
'grid' => array(
|
224 |
+
'label' => __('Grid', 'auxin-portfolio'),
|
225 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
226 |
),
|
227 |
'masonry' => array(
|
228 |
+
'label' => __('Masonry', 'auxin-portfolio'),
|
229 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
230 |
),
|
231 |
'tiles' => array(
|
232 |
+
'label' => __('Tiles', 'auxin-portfolio'),
|
233 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
234 |
)
|
235 |
),
|
|
|
236 |
'admin_label' => true,
|
237 |
'dependency' => '',
|
238 |
'weight' => '',
|
239 |
+
'group' => '',
|
240 |
'edit_field_class' => ''
|
241 |
),
|
242 |
array(
|
243 |
+
'heading' => __('Image aspect ratio', 'auxin-portfolio'),
|
244 |
'description' => '',
|
245 |
'param_name' => 'image_aspect_ratio',
|
246 |
'type' => 'dropdown',
|
247 |
'def_value' => '0.75',
|
248 |
+
'holder' => '',
|
249 |
'class' => 'order',
|
250 |
'value' => array (
|
251 |
+
'0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
|
252 |
+
'0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
|
253 |
+
'1.00' => __('Square 1:1' , 'auxin-portfolio'),
|
254 |
+
'1.33' => __('Vertical 3:4' , 'auxin-portfolio')
|
255 |
),
|
256 |
+
'admin_label' => false,
|
257 |
'dependency' => array(
|
258 |
'element' => 'layout',
|
259 |
'value' => array( 'grid' )
|
263 |
'edit_field_class' => ''
|
264 |
),
|
265 |
array(
|
266 |
+
'heading' => __('Portfolio hover type','auxin-portfolio' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
'description' => '',
|
268 |
'param_name' => 'item_style',
|
269 |
'type' => 'dropdown',
|
270 |
'def_value' => 'classic',
|
271 |
+
'holder' => '',
|
272 |
'admin_label' => false,
|
273 |
'dependency' => array(
|
274 |
'element' => 'layout',
|
277 |
'weight' => '',
|
278 |
'edit_field_class' => '',
|
279 |
'value' => array(
|
280 |
+
'classic' => __('Classic', 'auxin-portfolio' ),
|
281 |
+
'classic-lightbox' => __('Classic with lightbox style 1', 'auxin-portfolio' ),
|
282 |
+
'classic-lightbox-boxed' => __('Classic with lightbox style 2', 'auxin-portfolio' ),
|
283 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
284 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
285 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
286 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
287 |
)
|
288 |
),
|
289 |
array(
|
290 |
+
'heading' => __('Portfolio tiles hover type','auxin-portfolio' ),
|
291 |
'description' => '',
|
292 |
'param_name' => 'tiles_item_style',
|
293 |
'type' => 'dropdown',
|
294 |
'def_value' => 'overlay',
|
295 |
+
'holder' => '',
|
296 |
'admin_label' => false,
|
297 |
'dependency' => array(
|
298 |
'element' => 'layout',
|
301 |
'weight' => '',
|
302 |
'edit_field_class' => '',
|
303 |
'value' => array(
|
304 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
305 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
306 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
307 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
308 |
)
|
309 |
),
|
310 |
array(
|
311 |
+
'heading' => __('Insert portfolio title','auxin-portfolio' ),
|
312 |
'description' => '',
|
313 |
'param_name' => 'show_title',
|
314 |
'type' => 'aux_switch',
|
315 |
'value' => '1',
|
316 |
'class' => '',
|
317 |
+
'admin_label' => false,
|
318 |
'dependency' => '',
|
319 |
'weight' => '',
|
320 |
+
'group' => '',
|
321 |
'edit_field_class' => ''
|
322 |
),
|
323 |
array(
|
324 |
+
'heading' => __('Insert portfolio meta','auxin-portfolio' ),
|
325 |
'description' => '',
|
326 |
'param_name' => 'show_info',
|
327 |
'type' => 'aux_switch',
|
328 |
'value' => '1',
|
329 |
'class' => '',
|
330 |
+
'admin_label' => false,
|
331 |
'weight' => '',
|
332 |
+
'group' => '',
|
333 |
'edit_field_class' => ''
|
334 |
),
|
335 |
array(
|
336 |
+
'heading' => __('Show filters','auxin-portfolio' ),
|
337 |
'description' => '',
|
338 |
'param_name' => 'show_filters',
|
339 |
'type' => 'aux_switch',
|
340 |
'value' => '1',
|
341 |
'class' => '',
|
342 |
+
'admin_label' => false,
|
343 |
'weight' => '',
|
344 |
+
'group' => 'Filter',
|
345 |
'edit_field_class' => ''
|
346 |
),
|
347 |
array(
|
348 |
+
'heading' => __('Filter by', 'auxin-portfolio'),
|
349 |
+
'description' => __('Filter by categories or tags', 'auxin-portfolio' ),
|
350 |
'param_name' => 'filter_by',
|
351 |
'type' => 'dropdown',
|
352 |
'def_value' => 'portfolio-cat',
|
353 |
'holder' => 'dropdown',
|
354 |
'value' =>array (
|
355 |
+
'portfolio-cat' => __('Categories', 'auxin-portfolio'),
|
356 |
+
'portfolio-tag' => __('Tags', 'auxin-portfolio')
|
357 |
),
|
358 |
'dependency' => array(
|
359 |
'element' => 'show_filters',
|
360 |
'value' => '1'
|
361 |
),
|
362 |
'weight' => '',
|
363 |
+
'group' => 'Filter',
|
364 |
'edit_field_class' => ''
|
365 |
),
|
366 |
array(
|
367 |
+
'heading' => __('Filter Control Alignment', 'auxin-portfolio'),
|
368 |
'param_name' => 'filter_align',
|
369 |
'type' => 'aux_visual_select',
|
370 |
'def_value' => 'aux-center',
|
371 |
+
'holder' => '',
|
372 |
'choices' => array(
|
373 |
'aux-left' => array(
|
374 |
+
'label' => __('Left' , 'auxin-portfolio'),
|
375 |
'image' => AUX_URL . 'images/visual-select/filter-left.svg'
|
376 |
),
|
377 |
'aux-center' => array(
|
378 |
+
'label' => __('Center' , 'auxin-portfolio'),
|
379 |
'image' => AUX_URL . 'images/visual-select/filter-mid.svg'
|
380 |
),
|
381 |
'aux-right' => array(
|
382 |
+
'label' => __('Right' , 'auxin-portfolio'),
|
383 |
'image' => AUX_URL . 'images/visual-select/filter-right.svg'
|
384 |
)
|
385 |
),
|
388 |
'value' => '1'
|
389 |
),
|
390 |
'weight' => '',
|
391 |
+
'group' => 'Filter',
|
392 |
'edit_field_class' => ''
|
393 |
),
|
394 |
array(
|
395 |
+
'heading' => __('Filter button style', 'auxin-portfolio'),
|
396 |
+
'description' => __('Style of filter buttons.', 'auxin-portfolio' ),
|
397 |
'param_name' => 'filter_style',
|
398 |
'type' => 'dropdown',
|
399 |
'def_value' => 'aux-slideup',
|
400 |
+
'holder' => '',
|
401 |
'dependency' => array(
|
402 |
'element' => 'show_filters',
|
403 |
'value' => '1'
|
404 |
),
|
405 |
'weight' => '',
|
406 |
+
'group' => 'Filter',
|
407 |
'edit_field_class' => '',
|
408 |
'value' => array (
|
409 |
+
'aux-slideup' => __('Slide up', 'auxin-portfolio'),
|
410 |
+
'aux-fill' => __('Fill', 'auxin-portfolio'),
|
411 |
+
'aux-cube' => __('Cube', 'auxin-portfolio'),
|
412 |
+
'aux-underline' => __('Underline', 'auxin-portfolio'),
|
413 |
+
'aux-overlay' => __('Float frame', 'auxin-portfolio'),
|
414 |
+
'aux-borderd' => __('Borderd', 'auxin-portfolio'),
|
415 |
+
'aux-overlay aux-underline-anim' => __('Float underline', 'auxin-portfolio')
|
416 |
)
|
417 |
),
|
|
|
|
|
418 |
array(
|
419 |
+
'heading' => __('Display like button','auxin-portfolio' ),
|
420 |
+
'description' => sprintf(__('Enable it to display %s like button%s on gride template blog. Please note WP Ulike plugin needs to be activaited to use this option.', 'auxin-portfolio'), '<strong>', '</strong>'),
|
421 |
'param_name' => 'display_like',
|
422 |
'type' => 'aux_switch',
|
423 |
'value' => '1',
|
424 |
+
'holder' => '',
|
425 |
'class' => 'display_like',
|
426 |
+
'admin_label' => false,
|
427 |
'dependency' => array(
|
428 |
'element' => 'item_style',
|
429 |
'value' => array( 'classic', 'classic-lightbox', 'classic-lightbox-boxed' )
|
430 |
),
|
431 |
'weight' => '',
|
432 |
+
'group' => '',
|
433 |
'edit_field_class' => ''
|
434 |
),
|
|
|
435 |
array(
|
436 |
+
'heading' => __('Deeplink','auxin-portfolio' ),
|
437 |
+
'description' => __('Enables the deeplink feature, it updates URL based on page and filter status.', 'auxin-portfolio' ),
|
438 |
'param_name' => 'deeplink',
|
439 |
'type' => 'aux_switch',
|
440 |
'value' => '0',
|
441 |
'class' => '',
|
442 |
+
'admin_label' => false,
|
443 |
'weight' => '',
|
444 |
+
'group' => '',
|
445 |
'edit_field_class' => ''
|
446 |
),
|
447 |
array(
|
448 |
+
'heading' => __('Deeplink slug', 'auxin-portfolio' ),
|
449 |
+
'description' => __('Specifies the deeplink slug value in address bar.', 'auxin-portfolio' ),
|
450 |
'param_name' => 'deeplink_slug',
|
451 |
'type' => 'textfield',
|
452 |
'value' => uniqid('portfolio-'),
|
453 |
+
'holder' => '',
|
454 |
'class' => '',
|
455 |
+
'admin_label' => false,
|
456 |
'dependency' => array(
|
457 |
'element' => 'deeplink',
|
458 |
'value' => '1'
|
462 |
'edit_field_class' => ''
|
463 |
),
|
464 |
array(
|
465 |
+
'heading' => __('Paginate','auxin-portfolio' ),
|
466 |
+
'description' => __('Paginates the portfolio items', 'auxin-portfolio' ),
|
467 |
'param_name' => 'paginate',
|
468 |
'type' => 'aux_switch',
|
469 |
'value' => '1',
|
470 |
'class' => '',
|
471 |
+
'admin_label' => false,
|
472 |
'weight' => '',
|
473 |
+
'group' => '',
|
474 |
'edit_field_class' => ''
|
475 |
),
|
476 |
array(
|
477 |
+
'heading' => __('Items number perpage', 'auxin-portfolio' ),
|
478 |
'param_name' => 'perpage',
|
479 |
'type' => 'textfield',
|
480 |
'value' => '10',
|
481 |
+
'holder' => '',
|
482 |
'class' => '',
|
483 |
+
'admin_label' => false,
|
484 |
'dependency' => array(
|
485 |
'element' => 'paginate',
|
486 |
'value' => '1'
|
487 |
),
|
488 |
'weight' => '',
|
489 |
+
'group' => '',
|
490 |
'edit_field_class' => ''
|
491 |
),
|
492 |
array(
|
493 |
+
'heading' => __('Space', 'auxin-portfolio' ),
|
494 |
+
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio' ),
|
495 |
'param_name' => 'space',
|
496 |
'type' => 'textfield',
|
497 |
'value' => '30',
|
498 |
+
'holder' => '',
|
499 |
'class' => '',
|
500 |
+
'admin_label' => false,
|
501 |
'dependency' => array(
|
502 |
'element' => 'layout',
|
503 |
'value' => array( 'grid', 'masonry' )
|
504 |
),
|
505 |
'weight' => '',
|
506 |
+
'group' => '',
|
507 |
'edit_field_class' => ''
|
508 |
),
|
509 |
array(
|
510 |
+
'heading' => __('Number of columns', 'auxin-portfolio'),
|
511 |
'description' => '',
|
512 |
'param_name' => 'desktop_cnum',
|
513 |
'type' => 'dropdown',
|
514 |
'def_value' => '4',
|
515 |
+
'holder' => '',
|
516 |
'class' => 'num',
|
517 |
'value' => array(
|
518 |
'1' => '1' , '2' => '2' , '3' => '3' ,
|
519 |
'4' => '4' , '5' => '5' , '6' => '6'
|
520 |
),
|
521 |
+
'admin_label' => false,
|
522 |
'dependency' => array(
|
523 |
'element' => 'layout',
|
524 |
'value' => array( 'grid', 'masonry' )
|
525 |
),
|
526 |
'weight' => '',
|
527 |
+
'group' => 'Layout',
|
528 |
'edit_field_class' => ''
|
529 |
),
|
530 |
array(
|
531 |
+
'heading' => __('Number of columns in tablet size', 'auxin-portfolio'),
|
532 |
'description' => '',
|
533 |
'param_name' => 'tablet_cnum',
|
534 |
'type' => 'dropdown',
|
535 |
'def_value' => 'inherit',
|
536 |
+
'holder' => '',
|
537 |
'class' => 'num',
|
538 |
'value' => array(
|
539 |
'inherit' => 'Inherited from larger',
|
540 |
'1' => '1', '2' => '2', '3' => '3',
|
541 |
'4' => '4', '5' => '5', '6' => '6'
|
542 |
),
|
543 |
+
'admin_label' => false,
|
544 |
'dependency' => array(
|
545 |
'element' => 'layout',
|
546 |
'value' => array( 'grid', 'masonry' )
|
547 |
),
|
548 |
'weight' => '',
|
549 |
+
'group' => 'Layout',
|
550 |
'edit_field_class' => ''
|
551 |
),
|
552 |
array(
|
553 |
+
'heading' => __('Number of columns in phone size', 'auxin-portfolio'),
|
554 |
'description' => '',
|
555 |
'param_name' => 'phone_cnum',
|
556 |
'type' => 'dropdown',
|
557 |
'def_value' => 'inherit',
|
558 |
+
'holder' => '',
|
559 |
'class' => 'num',
|
560 |
'value' => array(
|
561 |
'1' => '1' , '2' => '2', '3' => '3'
|
562 |
),
|
563 |
+
'admin_label' => false,
|
564 |
'dependency' => array(
|
565 |
'element' => 'layout',
|
566 |
'value' => array( 'grid', 'masonry' )
|
567 |
),
|
568 |
'weight' => '',
|
569 |
+
'group' => 'Layout',
|
570 |
'edit_field_class' => ''
|
571 |
),
|
572 |
array(
|
573 |
+
'heading' => __('Extra class name','auxin-portfolio' ),
|
574 |
+
'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-portfolio' ),
|
575 |
'param_name' => 'extra_classes',
|
576 |
'type' => 'textfield',
|
577 |
'value' => '',
|
578 |
'def_value' => '',
|
579 |
+
'holder' => '',
|
580 |
'class' => 'extra_classes',
|
581 |
+
'admin_label' => false,
|
582 |
'dependency' => '',
|
583 |
'weight' => '',
|
584 |
'group' => '',
|
608 |
// Defining default attributes
|
609 |
$default_atts = array(
|
610 |
'title' => '', // header title
|
611 |
+
'cat' => ' ',
|
612 |
+
'num' => '8', // max generated entry
|
613 |
'only_posts__in' => '', // display only these post IDs. array or string comma separated
|
614 |
'include' => '', // include these post IDs in result too. array or string comma separated
|
615 |
'exclude' => '', // exclude these post IDs from result. array or string comma separated
|
616 |
'posts_per_page' => -1,
|
617 |
'offset' => '',
|
618 |
'paged' => '',
|
619 |
+
'order_by' => 'date',
|
620 |
+
'order' => 'DESC',
|
621 |
'exclude_without_media' => 0,
|
622 |
+
'display_like' => 1,
|
623 |
+
'deeplink' => 0,
|
624 |
'deeplink_slug' => uniqid('portfolio-'),
|
625 |
'show_filters' => 1,
|
626 |
'filter_by' => 'portfolio-cat',
|
715 |
$frame_effect_classes = 'aux-frame-darken aux-frame-zoom';
|
716 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
717 |
$show_lightbox = true;
|
718 |
+
$tamplate_file = 'column';
|
719 |
break;
|
720 |
case 'classic-lightbox-boxed':
|
721 |
$frame_effect_classes = 'aux-frame-boxed-darken aux-frame-zoom';
|
722 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
723 |
$show_lightbox = true;
|
724 |
+
$tamplate_file = 'column';
|
725 |
break;
|
726 |
case 'overlay':
|
727 |
$frame_effect_classes = 'aux-frame-darken aux-frame-zoom';
|
728 |
$hover_classes = 'aux-hover-active';
|
729 |
$show_lightbox = false;
|
730 |
+
$tamplate_file = 'column-overlay';
|
731 |
break;
|
732 |
case 'overlay-boxed':
|
733 |
$frame_effect_classes = 'aux-frame-boxed-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
734 |
$hover_classes = 'aux-hover-active';
|
735 |
$show_lightbox = false;
|
736 |
+
$tamplate_file = 'column-overlay';
|
737 |
break;
|
738 |
case 'overlay-lightbox':
|
739 |
$frame_effect_classes = 'aux-frame-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
740 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
741 |
$show_lightbox = true;
|
742 |
+
$tamplate_file = 'column-overlay';
|
743 |
break;
|
744 |
case 'overlay-lightbox-boxed':
|
745 |
$frame_effect_classes = 'aux-frame-boxed-darken' . ( $is_tiles ? '' : ' aux-frame-zoom');
|
746 |
$hover_classes = 'aux-hover-active aux-hover-twoway';
|
747 |
$show_lightbox = true;
|
748 |
+
$tamplate_file = 'column-overlay';
|
749 |
break;
|
750 |
default:
|
751 |
$frame_effect_classes = '';
|
752 |
$hover_classes = '';
|
753 |
$show_lightbox = false;
|
754 |
+
$tamplate_file = 'portfolio-column';
|
755 |
}
|
756 |
|
757 |
// generate columns class
|
795 |
|
796 |
if ( $terms ) {
|
797 |
?><div class="aux-filters <?php echo $filter_style . ' ' . $filter_align; ?> aux-togglable aux-isotope-filters" data-isotope="<?php echo $isotope_id; ?>"><div class="aux-select-overlay"></div><ul><?php
|
798 |
+
echo '<li data-filter="all"><a href="#"><span data-select="'.__('all', 'auxin-portfolio').'">'.__('all', 'auxin-portfolio').'</span></a></li>';
|
799 |
foreach ( $terms as $term ) {
|
800 |
echo '<li data-filter="iso-filter-'.$term->name.'"><a href="#"><span data-select="'.$term->name.'">'.$term->name.'</span></a></li>';
|
801 |
}
|
888 |
}
|
889 |
}
|
890 |
|
891 |
+
// Lightbox attributes
|
892 |
if ( $show_lightbox ) {
|
893 |
$attach_id = get_post_thumbnail_id($post->ID);
|
894 |
+
$image_primary_meta = wp_get_attachment_metadata( $attach_id );
|
895 |
$lightbox_attrs = 'data-original-width="' . $image_primary_meta['width'] . '" data-original-height="' . $image_primary_meta['height'] . '" ' .
|
896 |
'data-caption="' . auxin_attachment_caption( $attach_id ) . '"';
|
897 |
}
|
898 |
|
899 |
if ( $paginate && $post_counter > $perpage ) {
|
900 |
+
?><div class="aux-iso-item aux-iso-hidden aux-loading <?php echo $item_classes; ?>"><?php
|
901 |
} else {
|
902 |
+
?><div class="aux-iso-item aux-loading <?php echo $item_classes; ?>"><?php
|
903 |
}
|
904 |
+
include auxin_get_template_file( 'theme-parts/entry/portfolio', $tamplate_file, AUXPFO()->template_path() );
|
905 |
+
?></div><?php
|
906 |
}
|
907 |
+
?>
|
|
|
908 |
</div>
|
909 |
+
<?php
|
910 |
}
|
911 |
|
912 |
if( $reset_query ){
|
includes/general-functions.php
CHANGED
@@ -17,29 +17,7 @@
|
|
17 |
* @param string $name (default: '')
|
18 |
*/
|
19 |
function auxpfo_get_template_part( $slug, $name = '' ) {
|
20 |
-
$
|
21 |
-
|
22 |
-
// Look in yourtheme/templates/slug-name.php
|
23 |
-
if ( $name ) {
|
24 |
-
$template = locate_template( array( "templates/{$slug}-{$name}.php", AUXPFO()->template_path() . "{$slug}-{$name}.php" ) );
|
25 |
-
}
|
26 |
-
|
27 |
-
// Get default slug-name.php
|
28 |
-
if ( ! $template && $name && file_exists( AUXPFO()->template_path() . "{$slug}-{$name}.php" ) ) {
|
29 |
-
$template = AUXPFO()->template_path() . "{$slug}-{$name}.php";
|
30 |
-
}
|
31 |
-
|
32 |
-
// If template file doesn't exist, look in yourtheme/templates/slug.php
|
33 |
-
if ( ! $template ) {
|
34 |
-
$template = locate_template( array( "templates/{$slug}.php", AUXPFO()->template_path() . "{$slug}.php" ) );
|
35 |
-
}
|
36 |
-
|
37 |
-
// Allow developers to filter template file from their plugin.
|
38 |
-
$template = apply_filters( 'auxin_portfolio_get_template_part', $template, $slug, $name );
|
39 |
-
|
40 |
-
if ( $template ) {
|
41 |
-
load_template( $template, false );
|
42 |
-
}
|
43 |
}
|
44 |
|
45 |
|
17 |
* @param string $name (default: '')
|
18 |
*/
|
19 |
function auxpfo_get_template_part( $slug, $name = '' ) {
|
20 |
+
auxin_get_template_part( $slug, $name, AUXPFO()->template_path() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
|
includes/general-hooks.php
CHANGED
@@ -36,8 +36,8 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
36 |
$sections[] = array(
|
37 |
'id' => 'portfolio-setting-section',
|
38 |
'parent' => '', // section parent's id
|
39 |
-
'title' => __( 'Portfolio', ''),
|
40 |
-
'description' => __( 'Portfolio Setting', ''),
|
41 |
'icon' => 'axicon-doc'
|
42 |
);
|
43 |
|
@@ -46,28 +46,28 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
46 |
$sections[] = array(
|
47 |
'id' => 'portfolio-setting-section-single',
|
48 |
'parent' => 'portfolio-setting-section', // section parent's id
|
49 |
-
'title' => __( 'Single Portfolio', ''),
|
50 |
-
'description' => __( 'Single Portfolio Setting', '')
|
51 |
);
|
52 |
|
53 |
|
54 |
$options[] = array(
|
55 |
-
'title' => __('Single Portfolio Style', ''),
|
56 |
-
'description' => __('Specifies position of sidebar on single portfolio.', ''),
|
57 |
'id' => 'portfolio_single_side_pos',
|
58 |
'section' => 'portfolio-setting-section-single',
|
59 |
'dependency' => array(),
|
60 |
'choices' => array(
|
61 |
'right' => array(
|
62 |
-
'label' => __('Right', ''),
|
63 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic.svg'
|
64 |
),
|
65 |
'left' => array(
|
66 |
-
'label' => __('Left', ''),
|
67 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
68 |
),
|
69 |
'bottom' => array(
|
70 |
-
'label' => __('Bottom', ''),
|
71 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-wide.svg'
|
72 |
)
|
73 |
),
|
@@ -77,7 +77,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
77 |
);
|
78 |
|
79 |
$options[] = array(
|
80 |
-
'title' => __('Sticky Side Area', ''),
|
81 |
'description' => __( 'Enable it to stick the side area on page while scrolling..'),
|
82 |
'id' => 'portfolio_single_stcky_sidebar',
|
83 |
'section' => 'portfolio-setting-section-single',
|
@@ -94,39 +94,39 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
94 |
);
|
95 |
|
96 |
$options[] = array(
|
97 |
-
'title' => __('Single portfolio Sidebar Position', ''),
|
98 |
-
'description' => __('Specifies position of sidebar on single portfolio.', ''),
|
99 |
'id' => 'portfolio_single_sidebar_position',
|
100 |
'section' => 'portfolio-setting-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', ''),
|
106 |
'css_class' => 'axiAdminIcon-sidebar-none'
|
107 |
),
|
108 |
'right-sidebar' => array(
|
109 |
-
'label' => __('Right Sidebar', ''),
|
110 |
'css_class' => 'axiAdminIcon-sidebar-right'
|
111 |
),
|
112 |
'left-sidebar' => array(
|
113 |
-
'label' => __('Left Sidebar' , ''),
|
114 |
'css_class' => 'axiAdminIcon-sidebar-left'
|
115 |
),
|
116 |
'left2-sidebar' => array(
|
117 |
-
'label' => __('Left Left Sidebar' , ''),
|
118 |
'css_class' => 'axiAdminIcon-sidebar-left-left'
|
119 |
),
|
120 |
'right2-sidebar' => array(
|
121 |
-
'label' => __('Right Right Sidebar' , ''),
|
122 |
'css_class' => 'axiAdminIcon-sidebar-right-right'
|
123 |
),
|
124 |
'left-right-sidebar' => array(
|
125 |
-
'label' => __('Left Right Sidebar' , ''),
|
126 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
127 |
),
|
128 |
'right-left-sidebar' => array(
|
129 |
-
'label' => __('Right Left Sidebar' , ''),
|
130 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
131 |
)
|
132 |
),
|
@@ -135,7 +135,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
135 |
);
|
136 |
|
137 |
$options[] = array(
|
138 |
-
'title' => __('Single portfolio Sidebar Style', ''),
|
139 |
'description' => 'Specifies style of sidebar on single portfolio.',
|
140 |
'id' => 'portfolio_single_sidebar_decoration',
|
141 |
'section' => 'portfolio-setting-section-single',
|
@@ -150,15 +150,15 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
150 |
'post_js' => '$(".single-portfolio main.aux-single").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
151 |
'choices' => array(
|
152 |
'simple' => array(
|
153 |
-
'label' => __( 'Simple' , ''),
|
154 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
155 |
),
|
156 |
'border' => array(
|
157 |
-
'label' => __( 'Bordered Sidebar' , ''),
|
158 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
159 |
),
|
160 |
'overlap' => array(
|
161 |
-
'label' => __( 'Overlap Background' , ''),
|
162 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
163 |
)
|
164 |
),
|
@@ -168,18 +168,18 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
168 |
|
169 |
// @TODO: we should add this in future
|
170 |
// $options[] = array(
|
171 |
-
// 'title' => __('Content Style', ''),
|
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).', ''),
|
173 |
// 'id' => 'portfolio_single_content_style',
|
174 |
// 'section' => 'portfolio-setting-section-single',
|
175 |
// 'dependency' => array(),
|
176 |
// 'choices' => array(
|
177 |
// 'simple' => array(
|
178 |
-
// 'label' => __( 'Default' , ''),
|
179 |
// 'image' => AUX_URL . 'images/visual-select/content-normal.svg'
|
180 |
// ),
|
181 |
// 'narrow' => array(
|
182 |
-
// 'label' => __( 'Narrow Content' , ''),
|
183 |
// 'image' => AUX_URL . 'images/visual-select/content-less.svg'
|
184 |
// )
|
185 |
// ),
|
@@ -190,7 +190,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
190 |
// );
|
191 |
|
192 |
$options[] = array(
|
193 |
-
'title' => __( 'Display Next & Previous portfolios', '' ),
|
194 |
'description' => __( 'Enable it to display links to next and previous portfolios on single portfolio page.' ),
|
195 |
'id' => 'show_portfolio_single_next_prev_nav',
|
196 |
'section' => 'portfolio-setting-section-single',
|
@@ -202,8 +202,8 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
202 |
);
|
203 |
|
204 |
$options[] = array(
|
205 |
-
'title' => __('Skin for Next & Previous Links', ''),
|
206 |
-
'description' => __('Specifies the skin for next and previous navigation block.', ''),
|
207 |
'id' => 'portfolio_single_next_prev_nav_skin',
|
208 |
'section' => 'portfolio-setting-section-single',
|
209 |
'dependency' => array(
|
@@ -216,27 +216,27 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
216 |
'transport' => 'refresh',
|
217 |
'choices' => array(
|
218 |
'minimal' => array(
|
219 |
-
'label' => __('Minimal (default)', ''),
|
220 |
'image' => AUX_URL . 'images/visual-select/post-navigation-1.svg'
|
221 |
),
|
222 |
'thumb-arrow' => array(
|
223 |
-
'label' => __('Thumbnail with Arrow', ''),
|
224 |
'image' => AUX_URL . 'images/visual-select/post-navigation-2.svg'
|
225 |
),
|
226 |
'thumb-no-arrow' => array(
|
227 |
-
'label' => __('Thumbnail without Arrow', ''),
|
228 |
'image' => AUX_URL . 'images/visual-select/post-navigation-3.svg'
|
229 |
),
|
230 |
'boxed-image' => array(
|
231 |
-
'label' => __('Navigation with Light Background', ''),
|
232 |
'image' => AUX_URL . 'images/visual-select/post-navigation-4.svg'
|
233 |
),
|
234 |
'boxed-image-dark' => array(
|
235 |
-
'label' => __('Navigation with Dark Background', ''),
|
236 |
'image' => AUX_URL . 'images/visual-select/post-navigation-5.svg'
|
237 |
),
|
238 |
'thumb-arrow-sticky' => array(
|
239 |
-
'label' => __('Sticky Thumbnail with Arrow', ''),
|
240 |
'image' => AUX_URL . 'images/visual-select/post-navigation-6.svg'
|
241 |
)
|
242 |
),
|
@@ -245,7 +245,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
245 |
);
|
246 |
|
247 |
$options[] = array(
|
248 |
-
'title' => __('Display Single Portfolio Categories', ''),
|
249 |
'description' => __( 'Enable it to display category section in single portfolio.'),
|
250 |
'id' => 'portfolio_single_display_category',
|
251 |
'section' => 'portfolio-setting-section-single',
|
@@ -256,7 +256,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
256 |
);
|
257 |
|
258 |
$options[] = array(
|
259 |
-
'title' => __('Display Single Portfolio Tags', ''),
|
260 |
'description' => __( 'Enable it to display Tag section in single portfolio.'),
|
261 |
'id' => 'portfolio_single_display_tag',
|
262 |
'section' => 'portfolio-setting-section-single',
|
@@ -272,13 +272,13 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
272 |
$sections[] = array(
|
273 |
'id' => 'portfolio-setting-section-single-related',
|
274 |
'parent' => 'portfolio-setting-section', // section parent's id
|
275 |
-
'title' => __( 'Related Portfolios', ''),
|
276 |
-
'description' => __( 'Setting for Related Portfolios Section in Single Page', '')
|
277 |
);
|
278 |
|
279 |
|
280 |
$options[] = array(
|
281 |
-
'title' => __( 'Display Related Portfolios', '' ),
|
282 |
'description' => __( 'Enable it to display related portfolios section on single portfolio page.' ),
|
283 |
'id' => 'show_portfolio_related_posts',
|
284 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -290,8 +290,8 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
290 |
);
|
291 |
|
292 |
$options[] = array(
|
293 |
-
'title' => __('Label of Related Section', ''),
|
294 |
-
'description' => __('Specifies the label of related items section.', ''),
|
295 |
'id' => 'portfolio_related_posts_label',
|
296 |
'section' => 'portfolio-setting-section-single-related',
|
297 |
'dependency' => array(
|
@@ -303,13 +303,13 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
303 |
),
|
304 |
'transport' => 'postMessage',
|
305 |
'post_js' => '$(".single-portfolio .aux-widget-related-posts > .widget-title").html( to );',
|
306 |
-
'default' => __( 'Related Projects/Works', '' ),
|
307 |
'type' => 'text'
|
308 |
);
|
309 |
|
310 |
$options[] = array(
|
311 |
-
'title' => __('Related Items Type', ''),
|
312 |
-
'description' => __('Specifies the appearance type for related portfolio element.', ''),
|
313 |
'id' => 'portfolio_related_posts_preview_mode',
|
314 |
'section' => 'portfolio-setting-section-single-related',
|
315 |
'dependency' => array(
|
@@ -329,7 +329,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
329 |
);
|
330 |
|
331 |
$options[] = array(
|
332 |
-
'title' => __('Number of Columns', ''),
|
333 |
'description' => '',
|
334 |
'id' => 'portfolio_related_posts_column_number',
|
335 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -349,7 +349,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
349 |
);
|
350 |
|
351 |
$options[] = array(
|
352 |
-
'title' => __('Align Center', ''),
|
353 |
'description' => __( 'Enable it to make related portfolios section text center.'),
|
354 |
'id' => 'portfolio_related_posts_align_center',
|
355 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -367,7 +367,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
367 |
);
|
368 |
|
369 |
$options[] = array(
|
370 |
-
'title' => __('Full Width Related Section', ''),
|
371 |
'description' => __( 'Enable it to make related portfolios section full width.' ),
|
372 |
'id' => 'portfolio_related_posts_full_width',
|
373 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -385,7 +385,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
385 |
);
|
386 |
|
387 |
$options[] = array(
|
388 |
-
'title' => __('Snap Related Items', ''),
|
389 |
'description' => __( 'Enable it to remove space between related portfolio items.' ),
|
390 |
'id' => 'portfolio_related_posts_snap_items',
|
391 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -403,7 +403,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
403 |
);
|
404 |
|
405 |
$options[] = array(
|
406 |
-
'title' => __('Display Portfolio Categories', ''),
|
407 |
'description' => __( 'Enable it to display the categories of each portfolio item in related portfolios section.'),
|
408 |
'id' => 'portfolio_related_posts_display_taxonomies',
|
409 |
'section' => 'portfolio-setting-section-single-related',
|
@@ -421,8 +421,8 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
421 |
);
|
422 |
|
423 |
|
424 |
-
/*$options[] = array( 'title' => __('View All button link', ''),
|
425 |
-
'description' => __('Specifies a link for "view all" button to portfolio listing page (the button that comes at the end of latest from portfolio element ) ', ''),
|
426 |
'id' => 'portfolio_view_all_btn_link',
|
427 |
'section' => 'portfolio-setting-section-single',
|
428 |
'dependency'=> array(),
|
@@ -436,14 +436,14 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
436 |
$sections[] = array(
|
437 |
'id' => 'portfolio-setting-section-archive',
|
438 |
'parent' => 'portfolio-setting-section', // section parent's id
|
439 |
-
'title' => __( 'Portfolio Page', ''),
|
440 |
-
'description' => __( 'Setting for portfolio Archive Page', '')
|
441 |
);
|
442 |
|
443 |
|
444 |
$options[] = array(
|
445 |
-
'title' => __('Portfolio Template', ''),
|
446 |
-
'description' => __('Choose your portfolio template.', ''),
|
447 |
'id' => 'portfolio_index_template_type',
|
448 |
'section' => 'portfolio-setting-section-archive',
|
449 |
'dependency' => array(),
|
@@ -451,19 +451,19 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
451 |
'choices' => array(
|
452 |
// default template
|
453 |
'grid-1' => array(
|
454 |
-
'label' => __('Grid' , ''),
|
455 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
456 |
),
|
457 |
'masonry-1' => array(
|
458 |
-
'label' => __('Masonry' , ''),
|
459 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
460 |
),
|
461 |
'tiles-1' => array(
|
462 |
-
'label' => __('Tiles' , ''),
|
463 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
464 |
),
|
465 |
'land-1' => array(
|
466 |
-
'label' => __('Land', ''),
|
467 |
'image' => AUX_URL . 'images/visual-select/blog-layout-10.svg'
|
468 |
)
|
469 |
),
|
@@ -472,7 +472,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
472 |
);
|
473 |
|
474 |
$options[] = array(
|
475 |
-
'title' => __('Image Aspect Ratio', ''),
|
476 |
'description' => '',
|
477 |
'id' => 'portfolio_image_aspect_ratio',
|
478 |
'section' => 'portfolio-setting-section-archive',
|
@@ -485,18 +485,18 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
485 |
),
|
486 |
'type' => 'select',
|
487 |
'choices' => array(
|
488 |
-
'0.75' => __('Horizontal 4:3' , ''),
|
489 |
-
'0.56' => __('Horizontal 16:9', ''),
|
490 |
-
'1.00' => __('Square 1:1' , ''),
|
491 |
-
'1.33' => __('Vertical 3:4' , '')
|
492 |
),
|
493 |
'transport' => 'refresh',
|
494 |
'default' => '0.56',
|
495 |
);
|
496 |
|
497 |
$options[] = array(
|
498 |
-
'title' => __('Portfolio Hover Type', ''),
|
499 |
-
'description' => __('Specifies the portfolio item type.', ''),
|
500 |
'id' => 'portfolio_archive_grid_item_type',
|
501 |
'section' => 'portfolio-setting-section-archive',
|
502 |
'dependency' => array(
|
@@ -508,21 +508,21 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
508 |
),
|
509 |
'type' => 'select',
|
510 |
'choices' => array(
|
511 |
-
'classic' => __('Classic', '' ),
|
512 |
-
'classic-lightbox' => __('Classic with lightbox style 1', '' ),
|
513 |
-
'classic-lightbox-boxed' => __('Classic with lightbox style 2', '' ),
|
514 |
-
'overlay' => __('Overlay title style 1', '' ),
|
515 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
516 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
517 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
518 |
),
|
519 |
'transport' => 'refresh',
|
520 |
'default' => 'classic',
|
521 |
);
|
522 |
|
523 |
$options[] = array(
|
524 |
-
'title' => __('Tile Portfolio Item Type', ''),
|
525 |
-
'description' => __('Specifies the portfolio item type.', ''),
|
526 |
'id' => 'portfolio_archive_tile_item_type',
|
527 |
'section' => 'portfolio-setting-section-archive',
|
528 |
'dependency' => array(
|
@@ -534,18 +534,18 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
534 |
),
|
535 |
'type' => 'select',
|
536 |
'choices' => array(
|
537 |
-
'overlay' => __('Overlay title style 1', '' ),
|
538 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
539 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
540 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
541 |
),
|
542 |
'transport' => 'refresh',
|
543 |
'default' => 'overlay',
|
544 |
);
|
545 |
|
546 |
$options[] = array(
|
547 |
-
'title' => __('Space', ''),
|
548 |
-
'description' => __('Specifies space between items in pixels.', ''),
|
549 |
'id' => 'portfolio_archive_grid_space',
|
550 |
'section' => 'portfolio-setting-section-archive',
|
551 |
'dependency' => array(
|
@@ -563,7 +563,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
563 |
|
564 |
|
565 |
$options[] = array(
|
566 |
-
'title' => __('Number of Columns', ''),
|
567 |
'description' => '',
|
568 |
'id' => 'portfolio_archive_column_number',
|
569 |
'section' => 'portfolio-setting-section-archive',
|
@@ -584,7 +584,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
584 |
);
|
585 |
|
586 |
$options[] = array(
|
587 |
-
'title' => __('Number of Columns in Tablet', ''),
|
588 |
'description' => '',
|
589 |
'id' => 'portfolio_archive_column_number_tablet',
|
590 |
'section' => 'portfolio-setting-section-archive',
|
@@ -606,7 +606,7 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
606 |
);
|
607 |
|
608 |
$options[] = array(
|
609 |
-
'title' => __('Number of Columns in Mobile', ''),
|
610 |
'description' => '',
|
611 |
'id' => 'portfolio_archive_column_number_mobile',
|
612 |
'section' => 'portfolio-setting-section-archive',
|
@@ -627,8 +627,8 @@ function auxin_define_portfolio_theme_options( $fields_sections_list ){
|
|
627 |
|
628 |
if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
629 |
$options[] = array(
|
630 |
-
'title' => __('Display Like Button', ''),
|
631 |
-
'description' => sprintf(__('Enable it to display %s like button%s on portfolio portfolios. Please note WP Ulike plugin needs to be activaited to use this option.', ''), '<strong>', '</strong>'),
|
632 |
'id' => 'show_portfolio_archive_like_button',
|
633 |
'section' => 'portfolio-setting-section-archive',
|
634 |
'dependency' => array(
|
@@ -645,38 +645,38 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
645 |
}
|
646 |
|
647 |
$options[] = array(
|
648 |
-
'title' => __('Portfolio Sidebar Position', ''),
|
649 |
-
'description' => __('Specifies the position of sidebar on portfolio page.', ''),
|
650 |
'id' => 'portfolio_index_sidebar_position',
|
651 |
'section' => 'portfolio-setting-section-archive',
|
652 |
'dependency' => array(),
|
653 |
'choices' => array(
|
654 |
'no-sidebar' => array(
|
655 |
-
'label' => __('No Sidebar', ''),
|
656 |
'css_class' => 'axiAdminIcon-sidebar-none'
|
657 |
),
|
658 |
'right-sidebar' => array(
|
659 |
-
'label' => __('Right Sidebar', ''),
|
660 |
'css_class' => 'axiAdminIcon-sidebar-right'
|
661 |
),
|
662 |
'left-sidebar' => array(
|
663 |
-
'label' => __('Left Sidebar' , ''),
|
664 |
'css_class' => 'axiAdminIcon-sidebar-left'
|
665 |
),
|
666 |
'left2-sidebar' => array(
|
667 |
-
'label' => __('Left Left Sidebar' , ''),
|
668 |
'css_class' => 'axiAdminIcon-sidebar-left-left'
|
669 |
),
|
670 |
'right2-sidebar' => array(
|
671 |
-
'label' => __('Right Right Sidebar' , ''),
|
672 |
'css_class' => 'axiAdminIcon-sidebar-right-right'
|
673 |
),
|
674 |
'left-right-sidebar' => array(
|
675 |
-
'label' => __('Left Right Sidebar' , ''),
|
676 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
677 |
),
|
678 |
'right-left-sidebar' => array(
|
679 |
-
'label' => __('Right Left Sidebar' , ''),
|
680 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
681 |
)
|
682 |
),
|
@@ -688,8 +688,8 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
688 |
);
|
689 |
|
690 |
$options[] = array(
|
691 |
-
'title' => __('Portfolio Sidebar Style', ''),
|
692 |
-
'description' => __('Specifies the style of sidebar on portfolio page.', ''),
|
693 |
'id' => 'portfolio_index_sidebar_decoration',
|
694 |
'section' => 'portfolio-setting-section-archive',
|
695 |
'dependency' => array(
|
@@ -703,15 +703,15 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
703 |
'post_js' => '$(".aux-archive").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
704 |
'choices' => array(
|
705 |
'simple' => array(
|
706 |
-
'label' => __('Simple' , ''),
|
707 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
708 |
),
|
709 |
'border' => array(
|
710 |
-
'label' => __('Bordered Sidebar' , ''),
|
711 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
712 |
),
|
713 |
'overlap' => array(
|
714 |
-
'label' => __('Overlap Background' , ''),
|
715 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
716 |
)
|
717 |
),
|
@@ -720,8 +720,8 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
720 |
);
|
721 |
|
722 |
$options[] = array(
|
723 |
-
'title' => __('Number of Portfolios Per Page', ''),
|
724 |
-
'description' => __('Specifies the number of portfolios items to show on each page.', ''),
|
725 |
'id' => 'portfolio_archive_items_perpage',
|
726 |
'section' => 'portfolio-setting-section-archive',
|
727 |
'dependency' => array(),
|
@@ -736,12 +736,12 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
736 |
$sections[] = array(
|
737 |
'id' => 'portfolio-setting-section-taxonomy',
|
738 |
'parent' => 'portfolio-setting-section', // section parent's id
|
739 |
-
'title' => __( 'Portfolio Category & tag', ''),
|
740 |
-
'description' => __( 'Portfolio Category & tag page Setting', '')
|
741 |
);
|
742 |
|
743 |
$options[] = array(
|
744 |
-
'title' => __('Taxonomy Page Template', ''),
|
745 |
'description' => 'Choose your category & tag page template.',
|
746 |
'id' => 'portfolio_taxonomy_template_type',
|
747 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -750,19 +750,19 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
750 |
'choices' => array(
|
751 |
// default template
|
752 |
'grid-1' => array(
|
753 |
-
'label' => __('Grid' , ''),
|
754 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
755 |
),
|
756 |
'masonry-1' => array(
|
757 |
-
'label' => __('Masonry' , ''),
|
758 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
759 |
),
|
760 |
'tiles-1' => array(
|
761 |
-
'label' => __('Tiles' , ''),
|
762 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
763 |
),
|
764 |
'land-1' => array(
|
765 |
-
'label' => __('Land', ''),
|
766 |
'image' => AUX_URL . 'images/visual-select/blog-layout-10.svg'
|
767 |
)
|
768 |
),
|
@@ -771,7 +771,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
771 |
);
|
772 |
|
773 |
$options[] = array(
|
774 |
-
'title' => __('Image Aspect Ratio', ''),
|
775 |
'description' => '',
|
776 |
'id' => 'portfolio_taxonomy_image_aspect_ratio',
|
777 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -784,18 +784,18 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
784 |
),
|
785 |
'type' => 'select',
|
786 |
'choices' => array(
|
787 |
-
'0.75' => __('Horizontal 4:3' , ''),
|
788 |
-
'0.56' => __('Horizontal 16:9', ''),
|
789 |
-
'1.00' => __('Square 1:1' , ''),
|
790 |
-
'1.33' => __('Vertical 3:4' , '')
|
791 |
),
|
792 |
'transport' => 'refresh',
|
793 |
'default' => '0.56',
|
794 |
);
|
795 |
|
796 |
$options[] = array(
|
797 |
-
'title' => __('Portfolio Hover Type', ''),
|
798 |
-
'description' => __('Specifies the portfolio item type.', ''),
|
799 |
'id' => 'portfolio_taxonomy_grid_item_type',
|
800 |
'section' => 'portfolio-setting-section-taxonomy',
|
801 |
'dependency' => array(
|
@@ -807,21 +807,21 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
807 |
),
|
808 |
'type' => 'select',
|
809 |
'choices' => array(
|
810 |
-
'classic' => __('Classic', '' ),
|
811 |
-
'classic-lightbox' => __('Classic with lightbox style 1', '' ),
|
812 |
-
'classic-lightbox-boxed' => __('Classic with lightbox style 2', '' ),
|
813 |
-
'overlay' => __('Overlay title style 1', '' ),
|
814 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
815 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
816 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
817 |
),
|
818 |
'transport' => 'refresh',
|
819 |
'default' => 'classic',
|
820 |
);
|
821 |
|
822 |
$options[] = array(
|
823 |
-
'title' => __('Tile Portfolio Item Type', ''),
|
824 |
-
'description' => __('Specifies the portfolio item type.', ''),
|
825 |
'id' => 'portfolio_taxonomy_tile_item_type',
|
826 |
'section' => 'portfolio-setting-section-taxonomy',
|
827 |
'dependency' => array(
|
@@ -833,18 +833,18 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
833 |
),
|
834 |
'type' => 'select',
|
835 |
'choices' => array(
|
836 |
-
'overlay' => __('Overlay title style 1', '' ),
|
837 |
-
'overlay-boxed' => __('Overlay title style 2', '' ),
|
838 |
-
'overlay-lightbox' => __('Overlay title with lightbox style 1', '' ),
|
839 |
-
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', '' ),
|
840 |
),
|
841 |
'transport' => 'refresh',
|
842 |
'default' => 'overlay',
|
843 |
);
|
844 |
|
845 |
$options[] = array(
|
846 |
-
'title' => __('Space', ''),
|
847 |
-
'description' => __('Specifies space between items in pixels.', ''),
|
848 |
'id' => 'portfolio_taxonomy_grid_space',
|
849 |
'section' => 'portfolio-setting-section-taxonomy',
|
850 |
'dependency' => array(
|
@@ -860,7 +860,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
860 |
);
|
861 |
|
862 |
$options[] = array(
|
863 |
-
'title' => __('Number of Columns', ''),
|
864 |
'description' => '',
|
865 |
'id' => 'portfolio_taxonomy_column_number',
|
866 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -881,7 +881,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
881 |
);
|
882 |
|
883 |
$options[] = array(
|
884 |
-
'title' => __('Number of Columns in Tablet', ''),
|
885 |
'description' => '',
|
886 |
'id' => 'portfolio_taxonomy_column_number_tablet',
|
887 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -903,7 +903,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
903 |
);
|
904 |
|
905 |
$options[] = array(
|
906 |
-
'title' => __('Number of Columns in Mobile', ''),
|
907 |
'description' => '',
|
908 |
'id' => 'portfolio_taxonomy_column_number_mobile',
|
909 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -924,8 +924,8 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
924 |
|
925 |
if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
926 |
$options[] = array(
|
927 |
-
'title' => __('Display Like Button', ''),
|
928 |
-
'description' => sprintf(__('Enable it to display %s like button%s on portfolio portfolios. Please note WP Ulike plugin needs to be activaited to use this option.', ''), '<strong>', '</strong>'),
|
929 |
'id' => 'show_portfolio_taxonomy_like_button',
|
930 |
'section' => 'portfolio-setting-section-taxonomy',
|
931 |
'dependency' => array(
|
@@ -950,7 +950,7 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
950 |
}
|
951 |
|
952 |
$options[] = array(
|
953 |
-
'title' => __('Taxonomy Page Sidebar Position', ''),
|
954 |
'description' => 'Specifies the position of sidebar on category & tag page.',
|
955 |
'id' => 'portfolio_taxonomy_sidebar_position',
|
956 |
'section' => 'portfolio-setting-section-taxonomy',
|
@@ -958,31 +958,31 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
958 |
'post_js' => '$(".archive.tag main, .archive.tax-portfolio-cat main").alterClass( "*-sidebar", to );',
|
959 |
'choices' => array(
|
960 |
'no-sidebar' => array(
|
961 |
-
'label' => __('No Sidebar', ''),
|
962 |
'css_class' => 'axiAdminIcon-sidebar-none'
|
963 |
),
|
964 |
'right-sidebar' => array(
|
965 |
-
'label' => __('Right Sidebar', ''),
|
966 |
'css_class' => 'axiAdminIcon-sidebar-right'
|
967 |
),
|
968 |
'left-sidebar' => array(
|
969 |
-
'label' => __('Left Sidebar' , ''),
|
970 |
'css_class' => 'axiAdminIcon-sidebar-left'
|
971 |
),
|
972 |
'left2-sidebar' => array(
|
973 |
-
'label' => __('Left Left Sidebar' , ''),
|
974 |
'css_class' => 'axiAdminIcon-sidebar-left-left'
|
975 |
),
|
976 |
'right2-sidebar' => array(
|
977 |
-
'label' => __('Right Right Sidebar' , ''),
|
978 |
'css_class' => 'axiAdminIcon-sidebar-right-right'
|
979 |
),
|
980 |
'left-right-sidebar' => array(
|
981 |
-
'label' => __('Left Right Sidebar' , ''),
|
982 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
983 |
),
|
984 |
'right-left-sidebar' => array(
|
985 |
-
'label' => __('Right Left Sidebar' , ''),
|
986 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
987 |
)
|
988 |
),
|
@@ -991,8 +991,8 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
991 |
);
|
992 |
|
993 |
$options[] = array(
|
994 |
-
'title' => __('Sidebar Style', ''),
|
995 |
-
'description' => __('Specifies the style of sidebar on category & tag page.', ''),
|
996 |
'id' => 'portfolio_taxonomy_archive_sidebar_decoration',
|
997 |
'section' => 'portfolio-setting-section-taxonomy',
|
998 |
'dependency' => array(
|
@@ -1005,15 +1005,15 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1005 |
'post_js' => '$(".archive.tag main, .archive.tax-portfolio-cat main").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
1006 |
'choices' => array(
|
1007 |
'simple' => array(
|
1008 |
-
'label' => __('Simple' , ''),
|
1009 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
1010 |
),
|
1011 |
'border' => array(
|
1012 |
-
'label' => __('Bordered Sidebar' , ''),
|
1013 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
1014 |
),
|
1015 |
'overlap' => array(
|
1016 |
-
'label' => __('Overlap Background' , ''),
|
1017 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
1018 |
)
|
1019 |
),
|
@@ -1022,19 +1022,19 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1022 |
);
|
1023 |
|
1024 |
$options[] = array(
|
1025 |
-
'title' => __('Taxonomy content length', ''),
|
1026 |
-
'description' => sprintf(__('Whether to display%1$ssummary%2$sor%1$sfull%2$scontent for each portfolio on category & tag page.', ''), '<code>', '</code>'),
|
1027 |
'id' => 'portfolio_taxonomy_archive_content_on_listing',
|
1028 |
'section' => 'portfolio-setting-section-taxonomy',
|
1029 |
'dependency' => array(),
|
1030 |
'transport' => 'refresh',
|
1031 |
'choices' => array(
|
1032 |
'full' => array(
|
1033 |
-
'label' =>__('Full text', ''),
|
1034 |
'css_class' => 'axiAdminIcon-blog-content-length-2'
|
1035 |
),
|
1036 |
'excerpt' => array(
|
1037 |
-
'label' => __('Summary' , ''),
|
1038 |
'css_class' => 'axiAdminIcon-blog-content-length-1'
|
1039 |
)
|
1040 |
),
|
@@ -1044,10 +1044,10 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1044 |
|
1045 |
// @TODO: Right now we don't use this options but we should do
|
1046 |
$options[] = array(
|
1047 |
-
'title' => __('Summery length', ''),
|
1048 |
-
'description' => __('Specifies summary character length on category & tag page.', ''),
|
1049 |
'id' => 'portfolio_taxonomy_archive_on_listing_length',
|
1050 |
-
'section' => '
|
1051 |
'dependency' => array(
|
1052 |
array(
|
1053 |
'id' => 'post_taxonomy_archive_content_on_listing',
|
@@ -1065,34 +1065,34 @@ if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
|
1065 |
$sections[] = array(
|
1066 |
'id' => 'portfolio-setting-section-metadata',
|
1067 |
'parent' => 'portfolio-setting-section', // section parent's id
|
1068 |
-
'title' => __( 'Portfolio MetaData', ''),
|
1069 |
-
'description' => __( 'Portfolio MetaData Setting', '')
|
1070 |
);
|
1071 |
|
1072 |
$options[] = array(
|
1073 |
-
'title' => __('Portfolio MetaDatas', ''),
|
1074 |
-
'description' => __('Specify the number of fields and the label of each one for portfolio metadatas', ''),
|
1075 |
'id' => 'portfolio_metadata_list_1',
|
1076 |
'section' => 'portfolio-setting-section-metadata',
|
1077 |
'dependency' => array(),
|
1078 |
'transport' => 'post_js',
|
1079 |
'choices' => array(
|
1080 |
-
'url' => __( 'Project URL', '' ),
|
1081 |
-
'client' => __( 'Client', '' ),
|
1082 |
-
'release_date' => __( 'Release Date', '' ),
|
1083 |
-
'author' => __( 'Author', '' ),
|
1084 |
-
'aux_custom_meta1' => __( 'Custom Field 1', '' ),
|
1085 |
-
'aux_custom_meta2' => __( 'Custom Field 2', '' ),
|
1086 |
-
'aux_custom_meta3' => __( 'Custom Field 3', '' ),
|
1087 |
-
'aux_custom_meta4' => __( 'Custom Field 4', '' ),
|
1088 |
-
'aux_custom_meta5' => __( 'Custom Field 5', '' ),
|
1089 |
-
'aux_custom_meta6' => __( 'Custom Field 6', '' ),
|
1090 |
-
'aux_custom_meta7' => __( 'Custom Field 7', '' ),
|
1091 |
-
'aux_custom_meta8' => __( 'Custom Field 8', '' ),
|
1092 |
-
'aux_custom_meta9' => __( 'Custom Field 9', '' ),
|
1093 |
-
'aux_custom_meta10' => __( 'Custom Field 10', '' ),
|
1094 |
-
'aux_custom_meta11' => __( 'Custom Field 11', '' ),
|
1095 |
-
'aux_custom_meta12' => __( 'Custom Field 12', '' )
|
1096 |
),
|
1097 |
'type' => 'sortable-input',
|
1098 |
'default' => '[{"id":"url", "label":"Project URL", "value":"Project URL"},{"id":"client", "label":"Client", "value":"Client"},{"id":"release_date", "label":"Release Date", "value":"Release Date"}]'
|
@@ -1132,7 +1132,7 @@ function auxpfo_init_portfolio_post_type_and_metafields(){
|
|
1132 |
if( is_admin() ){
|
1133 |
$metabox_args['post_type'] = $post_type;
|
1134 |
$metabox_args['hub_id'] = 'axi_meta_hub_portfolio';
|
1135 |
-
$metabox_args['hub_title'] = __('Portfolio Options', '' );
|
1136 |
$metabox_args['to_post_types'] = array( $post_type );
|
1137 |
|
1138 |
auxin_maybe_render_metabox_hub_for_post_type( $metabox_args );
|
36 |
$sections[] = array(
|
37 |
'id' => 'portfolio-setting-section',
|
38 |
'parent' => '', // section parent's id
|
39 |
+
'title' => __( 'Portfolio', 'auxin-portfolio'),
|
40 |
+
'description' => __( 'Portfolio Setting', 'auxin-portfolio'),
|
41 |
'icon' => 'axicon-doc'
|
42 |
);
|
43 |
|
46 |
$sections[] = array(
|
47 |
'id' => 'portfolio-setting-section-single',
|
48 |
'parent' => 'portfolio-setting-section', // section parent's id
|
49 |
+
'title' => __( 'Single Portfolio', 'auxin-portfolio'),
|
50 |
+
'description' => __( 'Single Portfolio Setting', 'auxin-portfolio')
|
51 |
);
|
52 |
|
53 |
|
54 |
$options[] = array(
|
55 |
+
'title' => __('Single Portfolio Style', 'auxin-portfolio'),
|
56 |
+
'description' => __('Specifies position of sidebar on single portfolio.', 'auxin-portfolio'),
|
57 |
'id' => 'portfolio_single_side_pos',
|
58 |
'section' => 'portfolio-setting-section-single',
|
59 |
'dependency' => array(),
|
60 |
'choices' => array(
|
61 |
'right' => array(
|
62 |
+
'label' => __('Right', 'auxin-portfolio'),
|
63 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic.svg'
|
64 |
),
|
65 |
'left' => array(
|
66 |
+
'label' => __('Left', 'auxin-portfolio'),
|
67 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-classic-left-algin.svg'
|
68 |
),
|
69 |
'bottom' => array(
|
70 |
+
'label' => __('Bottom', 'auxin-portfolio'),
|
71 |
'image' => AUX_URL . 'images/visual-select/portfolio-single-wide.svg'
|
72 |
)
|
73 |
),
|
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-setting-section-single',
|
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-setting-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 |
),
|
135 |
);
|
136 |
|
137 |
$options[] = array(
|
138 |
+
'title' => __('Single portfolio Sidebar Style', 'auxin-portfolio'),
|
139 |
'description' => 'Specifies style of sidebar on single portfolio.',
|
140 |
'id' => 'portfolio_single_sidebar_decoration',
|
141 |
'section' => 'portfolio-setting-section-single',
|
150 |
'post_js' => '$(".single-portfolio main.aux-single").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
151 |
'choices' => array(
|
152 |
'simple' => array(
|
153 |
+
'label' => __( 'Simple' , 'auxin-portfolio'),
|
154 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
155 |
),
|
156 |
'border' => array(
|
157 |
+
'label' => __( 'Bordered Sidebar' , 'auxin-portfolio'),
|
158 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
159 |
),
|
160 |
'overlap' => array(
|
161 |
+
'label' => __( 'Overlap Background' , 'auxin-portfolio'),
|
162 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
163 |
)
|
164 |
),
|
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-setting-section-single',
|
175 |
// 'dependency' => array(),
|
176 |
// 'choices' => array(
|
177 |
// 'simple' => array(
|
178 |
+
// 'label' => __( 'Default' , 'auxin-portfolio'),
|
179 |
// 'image' => AUX_URL . 'images/visual-select/content-normal.svg'
|
180 |
// ),
|
181 |
// 'narrow' => array(
|
182 |
+
// 'label' => __( 'Narrow Content' , 'auxin-portfolio'),
|
183 |
// 'image' => AUX_URL . 'images/visual-select/content-less.svg'
|
184 |
// )
|
185 |
// ),
|
190 |
// );
|
191 |
|
192 |
$options[] = array(
|
193 |
+
'title' => __( 'Display Next & Previous portfolios', 'auxin-portfolio' ),
|
194 |
'description' => __( 'Enable it to display links to next and previous portfolios on single portfolio page.' ),
|
195 |
'id' => 'show_portfolio_single_next_prev_nav',
|
196 |
'section' => 'portfolio-setting-section-single',
|
202 |
);
|
203 |
|
204 |
$options[] = array(
|
205 |
+
'title' => __('Skin for Next & Previous Links', 'auxin-portfolio'),
|
206 |
+
'description' => __('Specifies the skin for next and previous navigation block.', 'auxin-portfolio'),
|
207 |
'id' => 'portfolio_single_next_prev_nav_skin',
|
208 |
'section' => 'portfolio-setting-section-single',
|
209 |
'dependency' => array(
|
216 |
'transport' => 'refresh',
|
217 |
'choices' => array(
|
218 |
'minimal' => array(
|
219 |
+
'label' => __('Minimal (default)', 'auxin-portfolio'),
|
220 |
'image' => AUX_URL . 'images/visual-select/post-navigation-1.svg'
|
221 |
),
|
222 |
'thumb-arrow' => array(
|
223 |
+
'label' => __('Thumbnail with Arrow', 'auxin-portfolio'),
|
224 |
'image' => AUX_URL . 'images/visual-select/post-navigation-2.svg'
|
225 |
),
|
226 |
'thumb-no-arrow' => array(
|
227 |
+
'label' => __('Thumbnail without Arrow', 'auxin-portfolio'),
|
228 |
'image' => AUX_URL . 'images/visual-select/post-navigation-3.svg'
|
229 |
),
|
230 |
'boxed-image' => array(
|
231 |
+
'label' => __('Navigation with Light Background', 'auxin-portfolio'),
|
232 |
'image' => AUX_URL . 'images/visual-select/post-navigation-4.svg'
|
233 |
),
|
234 |
'boxed-image-dark' => array(
|
235 |
+
'label' => __('Navigation with Dark Background', 'auxin-portfolio'),
|
236 |
'image' => AUX_URL . 'images/visual-select/post-navigation-5.svg'
|
237 |
),
|
238 |
'thumb-arrow-sticky' => array(
|
239 |
+
'label' => __('Sticky Thumbnail with Arrow', 'auxin-portfolio'),
|
240 |
'image' => AUX_URL . 'images/visual-select/post-navigation-6.svg'
|
241 |
)
|
242 |
),
|
245 |
);
|
246 |
|
247 |
$options[] = array(
|
248 |
+
'title' => __('Display Single Portfolio Categories', 'auxin-portfolio'),
|
249 |
'description' => __( 'Enable it to display category section in single portfolio.'),
|
250 |
'id' => 'portfolio_single_display_category',
|
251 |
'section' => 'portfolio-setting-section-single',
|
256 |
);
|
257 |
|
258 |
$options[] = array(
|
259 |
+
'title' => __('Display Single Portfolio Tags', 'auxin-portfolio'),
|
260 |
'description' => __( 'Enable it to display Tag section in single portfolio.'),
|
261 |
'id' => 'portfolio_single_display_tag',
|
262 |
'section' => 'portfolio-setting-section-single',
|
272 |
$sections[] = array(
|
273 |
'id' => 'portfolio-setting-section-single-related',
|
274 |
'parent' => 'portfolio-setting-section', // section parent's id
|
275 |
+
'title' => __( 'Related Portfolios', 'auxin-portfolio'),
|
276 |
+
'description' => __( 'Setting for Related Portfolios Section in Single Page', 'auxin-portfolio')
|
277 |
);
|
278 |
|
279 |
|
280 |
$options[] = array(
|
281 |
+
'title' => __( 'Display Related Portfolios', 'auxin-portfolio' ),
|
282 |
'description' => __( 'Enable it to display related portfolios section on single portfolio page.' ),
|
283 |
'id' => 'show_portfolio_related_posts',
|
284 |
'section' => 'portfolio-setting-section-single-related',
|
290 |
);
|
291 |
|
292 |
$options[] = array(
|
293 |
+
'title' => __('Label of Related Section', 'auxin-portfolio'),
|
294 |
+
'description' => __('Specifies the label of related items section.', 'auxin-portfolio'),
|
295 |
'id' => 'portfolio_related_posts_label',
|
296 |
'section' => 'portfolio-setting-section-single-related',
|
297 |
'dependency' => array(
|
303 |
),
|
304 |
'transport' => 'postMessage',
|
305 |
'post_js' => '$(".single-portfolio .aux-widget-related-posts > .widget-title").html( to );',
|
306 |
+
'default' => __( 'Related Projects/Works', 'auxin-portfolio' ),
|
307 |
'type' => 'text'
|
308 |
);
|
309 |
|
310 |
$options[] = array(
|
311 |
+
'title' => __('Related Items Type', 'auxin-portfolio'),
|
312 |
+
'description' => __('Specifies the appearance type for related portfolio element.', 'auxin-portfolio'),
|
313 |
'id' => 'portfolio_related_posts_preview_mode',
|
314 |
'section' => 'portfolio-setting-section-single-related',
|
315 |
'dependency' => array(
|
329 |
);
|
330 |
|
331 |
$options[] = array(
|
332 |
+
'title' => __('Number of Columns', 'auxin-portfolio'),
|
333 |
'description' => '',
|
334 |
'id' => 'portfolio_related_posts_column_number',
|
335 |
'section' => 'portfolio-setting-section-single-related',
|
349 |
);
|
350 |
|
351 |
$options[] = array(
|
352 |
+
'title' => __('Align Center', 'auxin-portfolio'),
|
353 |
'description' => __( 'Enable it to make related portfolios section text center.'),
|
354 |
'id' => 'portfolio_related_posts_align_center',
|
355 |
'section' => 'portfolio-setting-section-single-related',
|
367 |
);
|
368 |
|
369 |
$options[] = array(
|
370 |
+
'title' => __('Full Width Related Section', 'auxin-portfolio'),
|
371 |
'description' => __( 'Enable it to make related portfolios section full width.' ),
|
372 |
'id' => 'portfolio_related_posts_full_width',
|
373 |
'section' => 'portfolio-setting-section-single-related',
|
385 |
);
|
386 |
|
387 |
$options[] = array(
|
388 |
+
'title' => __('Snap Related Items', 'auxin-portfolio'),
|
389 |
'description' => __( 'Enable it to remove space between related portfolio items.' ),
|
390 |
'id' => 'portfolio_related_posts_snap_items',
|
391 |
'section' => 'portfolio-setting-section-single-related',
|
403 |
);
|
404 |
|
405 |
$options[] = array(
|
406 |
+
'title' => __('Display Portfolio Categories', 'auxin-portfolio'),
|
407 |
'description' => __( 'Enable it to display the categories of each portfolio item in related portfolios section.'),
|
408 |
'id' => 'portfolio_related_posts_display_taxonomies',
|
409 |
'section' => 'portfolio-setting-section-single-related',
|
421 |
);
|
422 |
|
423 |
|
424 |
+
/*$options[] = array( 'title' => __('View All button link', 'auxin-portfolio'),
|
425 |
+
'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'),
|
426 |
'id' => 'portfolio_view_all_btn_link',
|
427 |
'section' => 'portfolio-setting-section-single',
|
428 |
'dependency'=> array(),
|
436 |
$sections[] = array(
|
437 |
'id' => 'portfolio-setting-section-archive',
|
438 |
'parent' => 'portfolio-setting-section', // section parent's id
|
439 |
+
'title' => __( 'Portfolio Page', 'auxin-portfolio'),
|
440 |
+
'description' => __( 'Setting for portfolio Archive Page', 'auxin-portfolio')
|
441 |
);
|
442 |
|
443 |
|
444 |
$options[] = array(
|
445 |
+
'title' => __('Portfolio Template', 'auxin-portfolio'),
|
446 |
+
'description' => __('Choose your portfolio template.', 'auxin-portfolio'),
|
447 |
'id' => 'portfolio_index_template_type',
|
448 |
'section' => 'portfolio-setting-section-archive',
|
449 |
'dependency' => array(),
|
451 |
'choices' => array(
|
452 |
// default template
|
453 |
'grid-1' => array(
|
454 |
+
'label' => __('Grid' , 'auxin-portfolio'),
|
455 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
456 |
),
|
457 |
'masonry-1' => array(
|
458 |
+
'label' => __('Masonry' , 'auxin-portfolio'),
|
459 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
460 |
),
|
461 |
'tiles-1' => array(
|
462 |
+
'label' => __('Tiles' , 'auxin-portfolio'),
|
463 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
464 |
),
|
465 |
'land-1' => array(
|
466 |
+
'label' => __('Land', 'auxin-portfolio'),
|
467 |
'image' => AUX_URL . 'images/visual-select/blog-layout-10.svg'
|
468 |
)
|
469 |
),
|
472 |
);
|
473 |
|
474 |
$options[] = array(
|
475 |
+
'title' => __('Image Aspect Ratio', 'auxin-portfolio'),
|
476 |
'description' => '',
|
477 |
'id' => 'portfolio_image_aspect_ratio',
|
478 |
'section' => 'portfolio-setting-section-archive',
|
485 |
),
|
486 |
'type' => 'select',
|
487 |
'choices' => array(
|
488 |
+
'0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
|
489 |
+
'0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
|
490 |
+
'1.00' => __('Square 1:1' , 'auxin-portfolio'),
|
491 |
+
'1.33' => __('Vertical 3:4' , 'auxin-portfolio')
|
492 |
),
|
493 |
'transport' => 'refresh',
|
494 |
'default' => '0.56',
|
495 |
);
|
496 |
|
497 |
$options[] = array(
|
498 |
+
'title' => __('Portfolio Hover Type', 'auxin-portfolio'),
|
499 |
+
'description' => __('Specifies the portfolio item type.', 'auxin-portfolio'),
|
500 |
'id' => 'portfolio_archive_grid_item_type',
|
501 |
'section' => 'portfolio-setting-section-archive',
|
502 |
'dependency' => array(
|
508 |
),
|
509 |
'type' => 'select',
|
510 |
'choices' => array(
|
511 |
+
'classic' => __('Classic', 'auxin-portfolio' ),
|
512 |
+
'classic-lightbox' => __('Classic with lightbox style 1', 'auxin-portfolio' ),
|
513 |
+
'classic-lightbox-boxed' => __('Classic with lightbox style 2', 'auxin-portfolio' ),
|
514 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
515 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
516 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
517 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
518 |
),
|
519 |
'transport' => 'refresh',
|
520 |
'default' => 'classic',
|
521 |
);
|
522 |
|
523 |
$options[] = array(
|
524 |
+
'title' => __('Tile Portfolio Item Type', 'auxin-portfolio'),
|
525 |
+
'description' => __('Specifies the portfolio item type.', 'auxin-portfolio'),
|
526 |
'id' => 'portfolio_archive_tile_item_type',
|
527 |
'section' => 'portfolio-setting-section-archive',
|
528 |
'dependency' => array(
|
534 |
),
|
535 |
'type' => 'select',
|
536 |
'choices' => array(
|
537 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
538 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
539 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
540 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
541 |
),
|
542 |
'transport' => 'refresh',
|
543 |
'default' => 'overlay',
|
544 |
);
|
545 |
|
546 |
$options[] = array(
|
547 |
+
'title' => __('Space', 'auxin-portfolio'),
|
548 |
+
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio'),
|
549 |
'id' => 'portfolio_archive_grid_space',
|
550 |
'section' => 'portfolio-setting-section-archive',
|
551 |
'dependency' => array(
|
563 |
|
564 |
|
565 |
$options[] = array(
|
566 |
+
'title' => __('Number of Columns', 'auxin-portfolio'),
|
567 |
'description' => '',
|
568 |
'id' => 'portfolio_archive_column_number',
|
569 |
'section' => 'portfolio-setting-section-archive',
|
584 |
);
|
585 |
|
586 |
$options[] = array(
|
587 |
+
'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
|
588 |
'description' => '',
|
589 |
'id' => 'portfolio_archive_column_number_tablet',
|
590 |
'section' => 'portfolio-setting-section-archive',
|
606 |
);
|
607 |
|
608 |
$options[] = array(
|
609 |
+
'title' => __('Number of Columns in Mobile', 'auxin-portfolio'),
|
610 |
'description' => '',
|
611 |
'id' => 'portfolio_archive_column_number_mobile',
|
612 |
'section' => 'portfolio-setting-section-archive',
|
627 |
|
628 |
if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
629 |
$options[] = array(
|
630 |
+
'title' => __('Display Like Button', 'auxin-portfolio'),
|
631 |
+
'description' => sprintf(__('Enable it to display %s like button%s on portfolio portfolios. Please note WP Ulike plugin needs to be activaited to use this option.', 'auxin-portfolio'), '<strong>', '</strong>'),
|
632 |
'id' => 'show_portfolio_archive_like_button',
|
633 |
'section' => 'portfolio-setting-section-archive',
|
634 |
'dependency' => array(
|
645 |
}
|
646 |
|
647 |
$options[] = array(
|
648 |
+
'title' => __('Portfolio Sidebar Position', 'auxin-portfolio'),
|
649 |
+
'description' => __('Specifies the position of sidebar on portfolio page.', 'auxin-portfolio'),
|
650 |
'id' => 'portfolio_index_sidebar_position',
|
651 |
'section' => 'portfolio-setting-section-archive',
|
652 |
'dependency' => array(),
|
653 |
'choices' => array(
|
654 |
'no-sidebar' => array(
|
655 |
+
'label' => __('No Sidebar', 'auxin-portfolio'),
|
656 |
'css_class' => 'axiAdminIcon-sidebar-none'
|
657 |
),
|
658 |
'right-sidebar' => array(
|
659 |
+
'label' => __('Right Sidebar', 'auxin-portfolio'),
|
660 |
'css_class' => 'axiAdminIcon-sidebar-right'
|
661 |
),
|
662 |
'left-sidebar' => array(
|
663 |
+
'label' => __('Left Sidebar' , 'auxin-portfolio'),
|
664 |
'css_class' => 'axiAdminIcon-sidebar-left'
|
665 |
),
|
666 |
'left2-sidebar' => array(
|
667 |
+
'label' => __('Left Left Sidebar' , 'auxin-portfolio'),
|
668 |
'css_class' => 'axiAdminIcon-sidebar-left-left'
|
669 |
),
|
670 |
'right2-sidebar' => array(
|
671 |
+
'label' => __('Right Right Sidebar' , 'auxin-portfolio'),
|
672 |
'css_class' => 'axiAdminIcon-sidebar-right-right'
|
673 |
),
|
674 |
'left-right-sidebar' => array(
|
675 |
+
'label' => __('Left Right Sidebar' , 'auxin-portfolio'),
|
676 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
677 |
),
|
678 |
'right-left-sidebar' => array(
|
679 |
+
'label' => __('Right Left Sidebar' , 'auxin-portfolio'),
|
680 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
681 |
)
|
682 |
),
|
688 |
);
|
689 |
|
690 |
$options[] = array(
|
691 |
+
'title' => __('Portfolio Sidebar Style', 'auxin-portfolio'),
|
692 |
+
'description' => __('Specifies the style of sidebar on portfolio page.', 'auxin-portfolio'),
|
693 |
'id' => 'portfolio_index_sidebar_decoration',
|
694 |
'section' => 'portfolio-setting-section-archive',
|
695 |
'dependency' => array(
|
703 |
'post_js' => '$(".aux-archive").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
704 |
'choices' => array(
|
705 |
'simple' => array(
|
706 |
+
'label' => __('Simple' , 'auxin-portfolio'),
|
707 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
708 |
),
|
709 |
'border' => array(
|
710 |
+
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
711 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
712 |
),
|
713 |
'overlap' => array(
|
714 |
+
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
715 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
716 |
)
|
717 |
),
|
720 |
);
|
721 |
|
722 |
$options[] = array(
|
723 |
+
'title' => __('Number of Portfolios Per Page', 'auxin-portfolio'),
|
724 |
+
'description' => __('Specifies the number of portfolios items to show on each page.', 'auxin-portfolio'),
|
725 |
'id' => 'portfolio_archive_items_perpage',
|
726 |
'section' => 'portfolio-setting-section-archive',
|
727 |
'dependency' => array(),
|
736 |
$sections[] = array(
|
737 |
'id' => 'portfolio-setting-section-taxonomy',
|
738 |
'parent' => 'portfolio-setting-section', // section parent's id
|
739 |
+
'title' => __( 'Portfolio Category & tag', 'auxin-portfolio'),
|
740 |
+
'description' => __( 'Portfolio Category & tag page Setting', 'auxin-portfolio')
|
741 |
);
|
742 |
|
743 |
$options[] = array(
|
744 |
+
'title' => __('Taxonomy Page Template', 'auxin-portfolio'),
|
745 |
'description' => 'Choose your category & tag page template.',
|
746 |
'id' => 'portfolio_taxonomy_template_type',
|
747 |
'section' => 'portfolio-setting-section-taxonomy',
|
750 |
'choices' => array(
|
751 |
// default template
|
752 |
'grid-1' => array(
|
753 |
+
'label' => __('Grid' , 'auxin-portfolio'),
|
754 |
'image' => AUX_URL . 'images/visual-select/portfolio-grid.svg'
|
755 |
),
|
756 |
'masonry-1' => array(
|
757 |
+
'label' => __('Masonry' , 'auxin-portfolio'),
|
758 |
'image' => AUX_URL . 'images/visual-select/portfolio-masonry.svg'
|
759 |
),
|
760 |
'tiles-1' => array(
|
761 |
+
'label' => __('Tiles' , 'auxin-portfolio'),
|
762 |
'image' => AUX_URL . 'images/visual-select/blog-layout-11.svg'
|
763 |
),
|
764 |
'land-1' => array(
|
765 |
+
'label' => __('Land', 'auxin-portfolio'),
|
766 |
'image' => AUX_URL . 'images/visual-select/blog-layout-10.svg'
|
767 |
)
|
768 |
),
|
771 |
);
|
772 |
|
773 |
$options[] = array(
|
774 |
+
'title' => __('Image Aspect Ratio', 'auxin-portfolio'),
|
775 |
'description' => '',
|
776 |
'id' => 'portfolio_taxonomy_image_aspect_ratio',
|
777 |
'section' => 'portfolio-setting-section-taxonomy',
|
784 |
),
|
785 |
'type' => 'select',
|
786 |
'choices' => array(
|
787 |
+
'0.75' => __('Horizontal 4:3' , 'auxin-portfolio'),
|
788 |
+
'0.56' => __('Horizontal 16:9', 'auxin-portfolio'),
|
789 |
+
'1.00' => __('Square 1:1' , 'auxin-portfolio'),
|
790 |
+
'1.33' => __('Vertical 3:4' , 'auxin-portfolio')
|
791 |
),
|
792 |
'transport' => 'refresh',
|
793 |
'default' => '0.56',
|
794 |
);
|
795 |
|
796 |
$options[] = array(
|
797 |
+
'title' => __('Portfolio Hover Type', 'auxin-portfolio'),
|
798 |
+
'description' => __('Specifies the portfolio item type.', 'auxin-portfolio'),
|
799 |
'id' => 'portfolio_taxonomy_grid_item_type',
|
800 |
'section' => 'portfolio-setting-section-taxonomy',
|
801 |
'dependency' => array(
|
807 |
),
|
808 |
'type' => 'select',
|
809 |
'choices' => array(
|
810 |
+
'classic' => __('Classic', 'auxin-portfolio' ),
|
811 |
+
'classic-lightbox' => __('Classic with lightbox style 1', 'auxin-portfolio' ),
|
812 |
+
'classic-lightbox-boxed' => __('Classic with lightbox style 2', 'auxin-portfolio' ),
|
813 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
814 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
815 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
816 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
817 |
),
|
818 |
'transport' => 'refresh',
|
819 |
'default' => 'classic',
|
820 |
);
|
821 |
|
822 |
$options[] = array(
|
823 |
+
'title' => __('Tile Portfolio Item Type', 'auxin-portfolio'),
|
824 |
+
'description' => __('Specifies the portfolio item type.', 'auxin-portfolio'),
|
825 |
'id' => 'portfolio_taxonomy_tile_item_type',
|
826 |
'section' => 'portfolio-setting-section-taxonomy',
|
827 |
'dependency' => array(
|
833 |
),
|
834 |
'type' => 'select',
|
835 |
'choices' => array(
|
836 |
+
'overlay' => __('Overlay title style 1', 'auxin-portfolio' ),
|
837 |
+
'overlay-boxed' => __('Overlay title style 2', 'auxin-portfolio' ),
|
838 |
+
'overlay-lightbox' => __('Overlay title with lightbox style 1', 'auxin-portfolio' ),
|
839 |
+
'overlay-lightbox-boxed' => __('Overlay title with lightbox style 2', 'auxin-portfolio' ),
|
840 |
),
|
841 |
'transport' => 'refresh',
|
842 |
'default' => 'overlay',
|
843 |
);
|
844 |
|
845 |
$options[] = array(
|
846 |
+
'title' => __('Space', 'auxin-portfolio'),
|
847 |
+
'description' => __('Specifies space between items in pixels.', 'auxin-portfolio'),
|
848 |
'id' => 'portfolio_taxonomy_grid_space',
|
849 |
'section' => 'portfolio-setting-section-taxonomy',
|
850 |
'dependency' => array(
|
860 |
);
|
861 |
|
862 |
$options[] = array(
|
863 |
+
'title' => __('Number of Columns', 'auxin-portfolio'),
|
864 |
'description' => '',
|
865 |
'id' => 'portfolio_taxonomy_column_number',
|
866 |
'section' => 'portfolio-setting-section-taxonomy',
|
881 |
);
|
882 |
|
883 |
$options[] = array(
|
884 |
+
'title' => __('Number of Columns in Tablet', 'auxin-portfolio'),
|
885 |
'description' => '',
|
886 |
'id' => 'portfolio_taxonomy_column_number_tablet',
|
887 |
'section' => 'portfolio-setting-section-taxonomy',
|
903 |
);
|
904 |
|
905 |
$options[] = array(
|
906 |
+
'title' => __('Number of Columns in Mobile', 'auxin-portfolio'),
|
907 |
'description' => '',
|
908 |
'id' => 'portfolio_taxonomy_column_number_mobile',
|
909 |
'section' => 'portfolio-setting-section-taxonomy',
|
924 |
|
925 |
if ( auxin_is_plugin_active( 'wp-ulike/wp-ulike.php')){
|
926 |
$options[] = array(
|
927 |
+
'title' => __('Display Like Button', 'auxin-portfolio'),
|
928 |
+
'description' => sprintf(__('Enable it to display %s like button%s on portfolio portfolios. Please note WP Ulike plugin needs to be activaited to use this option.', 'auxin-portfolio'), '<strong>', '</strong>'),
|
929 |
'id' => 'show_portfolio_taxonomy_like_button',
|
930 |
'section' => 'portfolio-setting-section-taxonomy',
|
931 |
'dependency' => array(
|
950 |
}
|
951 |
|
952 |
$options[] = array(
|
953 |
+
'title' => __('Taxonomy Page Sidebar Position', 'auxin-portfolio'),
|
954 |
'description' => 'Specifies the position of sidebar on category & tag page.',
|
955 |
'id' => 'portfolio_taxonomy_sidebar_position',
|
956 |
'section' => 'portfolio-setting-section-taxonomy',
|
958 |
'post_js' => '$(".archive.tag main, .archive.tax-portfolio-cat main").alterClass( "*-sidebar", to );',
|
959 |
'choices' => array(
|
960 |
'no-sidebar' => array(
|
961 |
+
'label' => __('No Sidebar', 'auxin-portfolio'),
|
962 |
'css_class' => 'axiAdminIcon-sidebar-none'
|
963 |
),
|
964 |
'right-sidebar' => array(
|
965 |
+
'label' => __('Right Sidebar', 'auxin-portfolio'),
|
966 |
'css_class' => 'axiAdminIcon-sidebar-right'
|
967 |
),
|
968 |
'left-sidebar' => array(
|
969 |
+
'label' => __('Left Sidebar' , 'auxin-portfolio'),
|
970 |
'css_class' => 'axiAdminIcon-sidebar-left'
|
971 |
),
|
972 |
'left2-sidebar' => array(
|
973 |
+
'label' => __('Left Left Sidebar' , 'auxin-portfolio'),
|
974 |
'css_class' => 'axiAdminIcon-sidebar-left-left'
|
975 |
),
|
976 |
'right2-sidebar' => array(
|
977 |
+
'label' => __('Right Right Sidebar' , 'auxin-portfolio'),
|
978 |
'css_class' => 'axiAdminIcon-sidebar-right-right'
|
979 |
),
|
980 |
'left-right-sidebar' => array(
|
981 |
+
'label' => __('Left Right Sidebar' , 'auxin-portfolio'),
|
982 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
983 |
),
|
984 |
'right-left-sidebar' => array(
|
985 |
+
'label' => __('Right Left Sidebar' , 'auxin-portfolio'),
|
986 |
'css_class' => 'axiAdminIcon-sidebar-left-right'
|
987 |
)
|
988 |
),
|
991 |
);
|
992 |
|
993 |
$options[] = array(
|
994 |
+
'title' => __('Sidebar Style', 'auxin-portfolio'),
|
995 |
+
'description' => __('Specifies the style of sidebar on category & tag page.', 'auxin-portfolio'),
|
996 |
'id' => 'portfolio_taxonomy_archive_sidebar_decoration',
|
997 |
'section' => 'portfolio-setting-section-taxonomy',
|
998 |
'dependency' => array(
|
1005 |
'post_js' => '$(".archive.tag main, .archive.tax-portfolio-cat main").alterClass( "aux-sidebar-style-*", "aux-sidebar-style-" + to );',
|
1006 |
'choices' => array(
|
1007 |
'simple' => array(
|
1008 |
+
'label' => __('Simple' , 'auxin-portfolio'),
|
1009 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-1.svg'
|
1010 |
),
|
1011 |
'border' => array(
|
1012 |
+
'label' => __('Bordered Sidebar' , 'auxin-portfolio'),
|
1013 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-2.svg'
|
1014 |
),
|
1015 |
'overlap' => array(
|
1016 |
+
'label' => __('Overlap Background' , 'auxin-portfolio'),
|
1017 |
'image' => AUX_URL . 'images/visual-select/sidebar-style-3.svg'
|
1018 |
)
|
1019 |
),
|
1022 |
);
|
1023 |
|
1024 |
$options[] = array(
|
1025 |
+
'title' => __('Taxonomy content length', 'auxin-portfolio'),
|
1026 |
+
'description' => sprintf(__('Whether to display%1$ssummary%2$sor%1$sfull%2$scontent for each portfolio on category & tag page.', 'auxin-portfolio'), '<code>', '</code>'),
|
1027 |
'id' => 'portfolio_taxonomy_archive_content_on_listing',
|
1028 |
'section' => 'portfolio-setting-section-taxonomy',
|
1029 |
'dependency' => array(),
|
1030 |
'transport' => 'refresh',
|
1031 |
'choices' => array(
|
1032 |
'full' => array(
|
1033 |
+
'label' =>__('Full text', 'auxin-portfolio'),
|
1034 |
'css_class' => 'axiAdminIcon-blog-content-length-2'
|
1035 |
),
|
1036 |
'excerpt' => array(
|
1037 |
+
'label' => __('Summary' , 'auxin-portfolio'),
|
1038 |
'css_class' => 'axiAdminIcon-blog-content-length-1'
|
1039 |
)
|
1040 |
),
|
1044 |
|
1045 |
// @TODO: Right now we don't use this options but we should do
|
1046 |
$options[] = array(
|
1047 |
+
'title' => __('Summery length', 'auxin-portfolio'),
|
1048 |
+
'description' => __('Specifies summary character length on category & tag page.', 'auxin-portfolio'),
|
1049 |
'id' => 'portfolio_taxonomy_archive_on_listing_length',
|
1050 |
+
'section' => 'portfolio-setting-section-taxonomy',
|
1051 |
'dependency' => array(
|
1052 |
array(
|
1053 |
'id' => 'post_taxonomy_archive_content_on_listing',
|
1065 |
$sections[] = array(
|
1066 |
'id' => 'portfolio-setting-section-metadata',
|
1067 |
'parent' => 'portfolio-setting-section', // section parent's id
|
1068 |
+
'title' => __( 'Portfolio MetaData', 'auxin-portfolio'),
|
1069 |
+
'description' => __( 'Portfolio MetaData Setting', 'auxin-portfolio')
|
1070 |
);
|
1071 |
|
1072 |
$options[] = array(
|
1073 |
+
'title' => __('Portfolio MetaDatas', 'auxin-portfolio'),
|
1074 |
+
'description' => __('Specify the number of fields and the label of each one for portfolio metadatas', 'auxin-portfolio'),
|
1075 |
'id' => 'portfolio_metadata_list_1',
|
1076 |
'section' => 'portfolio-setting-section-metadata',
|
1077 |
'dependency' => array(),
|
1078 |
'transport' => 'post_js',
|
1079 |
'choices' => array(
|
1080 |
+
'url' => __( 'Project URL', 'auxin-portfolio' ),
|
1081 |
+
'client' => __( 'Client', 'auxin-portfolio' ),
|
1082 |
+
'release_date' => __( 'Release Date', 'auxin-portfolio' ),
|
1083 |
+
'author' => __( 'Author', 'auxin-portfolio' ),
|
1084 |
+
'aux_custom_meta1' => __( 'Custom Field 1', 'auxin-portfolio' ),
|
1085 |
+
'aux_custom_meta2' => __( 'Custom Field 2', 'auxin-portfolio' ),
|
1086 |
+
'aux_custom_meta3' => __( 'Custom Field 3', 'auxin-portfolio' ),
|
1087 |
+
'aux_custom_meta4' => __( 'Custom Field 4', 'auxin-portfolio' ),
|
1088 |
+
'aux_custom_meta5' => __( 'Custom Field 5', 'auxin-portfolio' ),
|
1089 |
+
'aux_custom_meta6' => __( 'Custom Field 6', 'auxin-portfolio' ),
|
1090 |
+
'aux_custom_meta7' => __( 'Custom Field 7', 'auxin-portfolio' ),
|
1091 |
+
'aux_custom_meta8' => __( 'Custom Field 8', 'auxin-portfolio' ),
|
1092 |
+
'aux_custom_meta9' => __( 'Custom Field 9', 'auxin-portfolio' ),
|
1093 |
+
'aux_custom_meta10' => __( 'Custom Field 10', 'auxin-portfolio' ),
|
1094 |
+
'aux_custom_meta11' => __( 'Custom Field 11', 'auxin-portfolio' ),
|
1095 |
+
'aux_custom_meta12' => __( 'Custom Field 12', 'auxin-portfolio' )
|
1096 |
),
|
1097 |
'type' => 'sortable-input',
|
1098 |
'default' => '[{"id":"url", "label":"Project URL", "value":"Project URL"},{"id":"client", "label":"Client", "value":"Client"},{"id":"release_date", "label":"Release Date", "value":"Release Date"}]'
|
1132 |
if( is_admin() ){
|
1133 |
$metabox_args['post_type'] = $post_type;
|
1134 |
$metabox_args['hub_id'] = 'axi_meta_hub_portfolio';
|
1135 |
+
$metabox_args['hub_title'] = __('Portfolio Options', 'auxin-portfolio' );
|
1136 |
$metabox_args['to_post_types'] = array( $post_type );
|
1137 |
|
1138 |
auxin_maybe_render_metabox_hub_for_post_type( $metabox_args );
|
public/class-auxpfo.php
CHANGED
@@ -307,9 +307,9 @@ class AUXPFO {
|
|
307 |
* @since 1.0.0
|
308 |
*/
|
309 |
public function load_plugin_textdomain() {
|
310 |
-
$locale = apply_filters( 'plugin_locale', get_locale(), '' );
|
311 |
-
load_textdomain( '', trailingslashit( WP_LANG_DIR ) . '' . '/' . '' . '-' . $locale . '.mo' );
|
312 |
-
load_plugin_textdomain( '', FALSE, basename( AUXPFO_DIR ) . '/languages/' );
|
313 |
}
|
314 |
|
315 |
}
|
307 |
* @since 1.0.0
|
308 |
*/
|
309 |
public function load_plugin_textdomain() {
|
310 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), 'auxin-portfolio' );
|
311 |
+
load_textdomain( 'auxin-portfolio', trailingslashit( WP_LANG_DIR ) . 'auxin-portfolio' . '/' . 'auxin-portfolio' . '-' . $locale . '.mo' );
|
312 |
+
load_plugin_textdomain( 'auxin-portfolio', FALSE, basename( AUXPFO_DIR ) . '/languages/' );
|
313 |
}
|
314 |
|
315 |
}
|
public/includes/templates-post.php
CHANGED
@@ -181,7 +181,7 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
181 |
|
182 |
// the recent posts args
|
183 |
$defaults = array(
|
184 |
-
'title' => auxin_get_option('portfolio_related_posts_label', __( 'Related Projects', '' ) ),
|
185 |
'taxonomy_name' => 'portfolio-cat', // the taxonomy that we intent to display in post info
|
186 |
'taxonomy' => array( 'portfolio-cat', 'portfolio-tag' ),
|
187 |
'desktop_cnum' => auxin_get_option('portfolio_related_posts_column_number', 3 ),
|
@@ -236,9 +236,8 @@ function auxpfo_get_portfolio_related_posts( $args = array() ){
|
|
236 |
if( 'default' == $full_width = auxin_get_post_meta( $post->ID, '_related_posts_full_width', 'default' ) ) {
|
237 |
$full_width = auxin_get_option( 'portfolio_related_posts_full_width', false );
|
238 |
}
|
239 |
-
$full_width = auxin_is_true( $full_width )? true: false;
|
240 |
|
241 |
-
if( $full_width ){
|
242 |
$defaults['container_start_tag'] = '<div class="container">';
|
243 |
}
|
244 |
|
181 |
|
182 |
// the recent posts args
|
183 |
$defaults = array(
|
184 |
+
'title' => auxin_get_option('portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) ),
|
185 |
'taxonomy_name' => 'portfolio-cat', // the taxonomy that we intent to display in post info
|
186 |
'taxonomy' => array( 'portfolio-cat', 'portfolio-tag' ),
|
187 |
'desktop_cnum' => auxin_get_option('portfolio_related_posts_column_number', 3 ),
|
236 |
if( 'default' == $full_width = auxin_get_post_meta( $post->ID, '_related_posts_full_width', 'default' ) ) {
|
237 |
$full_width = auxin_get_option( 'portfolio_related_posts_full_width', false );
|
238 |
}
|
|
|
239 |
|
240 |
+
if( auxin_is_true( $full_width ) ){
|
241 |
$defaults['container_start_tag'] = '<div class="container">';
|
242 |
}
|
243 |
|
public/templates/single-portfolio.php
CHANGED
@@ -51,8 +51,8 @@ get_header(); ?>
|
|
51 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
52 |
}
|
53 |
auxin_single_page_navigation( array(
|
54 |
-
'prev_text' => __( 'Previous Portfolio', '' ),
|
55 |
-
'next_text' => __( 'Next Portfolio' , '' ),
|
56 |
'taxonomy' => 'portfolio-cat',
|
57 |
'skin' => $next_prev_skin // minimal, thumb-no-arrow, thumb-arrow, boxed-image
|
58 |
));
|
@@ -77,7 +77,7 @@ get_header(); ?>
|
|
77 |
|
78 |
// get title_label option
|
79 |
if( 'default' == $related_title_label = auxin_get_post_meta( $post->ID, '_related_posts_label', 'default' ) ) {
|
80 |
-
$related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', '' ) );
|
81 |
}
|
82 |
|
83 |
// get desktop_cnum option
|
51 |
$next_prev_skin = auxin_get_option( 'portfolio_single_next_prev_nav_skin', false );
|
52 |
}
|
53 |
auxin_single_page_navigation( array(
|
54 |
+
'prev_text' => __( 'Previous Portfolio', 'auxin-portfolio' ),
|
55 |
+
'next_text' => __( 'Next Portfolio' , 'auxin-portfolio' ),
|
56 |
'taxonomy' => 'portfolio-cat',
|
57 |
'skin' => $next_prev_skin // minimal, thumb-no-arrow, thumb-arrow, boxed-image
|
58 |
));
|
77 |
|
78 |
// get title_label option
|
79 |
if( 'default' == $related_title_label = auxin_get_post_meta( $post->ID, '_related_posts_label', 'default' ) ) {
|
80 |
+
$related_title_label = auxin_get_option( 'portfolio_related_posts_label', __( 'Related Projects', 'auxin-portfolio' ) );
|
81 |
}
|
82 |
|
83 |
// get desktop_cnum option
|
public/templates/theme-parts/entry/portfolio-column-overlay.php
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
<?php $tax_name = 'portfolio-cat';
|
46 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
47 |
foreach( $cat_terms as $term ){
|
48 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
49 |
}
|
50 |
}
|
51 |
?>
|
45 |
<?php $tax_name = 'portfolio-cat';
|
46 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
47 |
foreach( $cat_terms as $term ){
|
48 |
+
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
49 |
}
|
50 |
}
|
51 |
?>
|
public/templates/theme-parts/entry/portfolio-column.php
CHANGED
@@ -54,15 +54,15 @@
|
|
54 |
<?php $tax_name = 'portfolio-cat';
|
55 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
56 |
foreach( $cat_terms as $term ){
|
57 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
58 |
}
|
59 |
}
|
60 |
?>
|
61 |
</span>
|
62 |
<?php if( ! empty($cat_terms) ){
|
63 |
-
edit_post_link(__("Edit", ''), '<i> | </i>', '');
|
64 |
} else {
|
65 |
-
edit_post_link(__("Edit", ''), '', '');
|
66 |
}
|
67 |
?>
|
68 |
</div>
|
54 |
<?php $tax_name = 'portfolio-cat';
|
55 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
56 |
foreach( $cat_terms as $term ){
|
57 |
+
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
58 |
}
|
59 |
}
|
60 |
?>
|
61 |
</span>
|
62 |
<?php if( ! empty($cat_terms) ){
|
63 |
+
edit_post_link(__("Edit", 'auxin-portfolio'), '<i> | </i>', '');
|
64 |
} else {
|
65 |
+
edit_post_link(__("Edit", 'auxin-portfolio'), '', '');
|
66 |
}
|
67 |
?>
|
68 |
</div>
|
public/templates/theme-parts/entry/portfolio-land.php
CHANGED
@@ -79,15 +79,15 @@
|
|
79 |
$cat_terms = wp_get_post_terms( $post->ID, $tax_name );
|
80 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
81 |
foreach( $cat_terms as $term ){
|
82 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
83 |
}
|
84 |
}
|
85 |
?>
|
86 |
</span>
|
87 |
<?php if( ! empty($cat_terms) ){
|
88 |
-
edit_post_link(__("Edit", ''), '<i> | </i>', '');
|
89 |
} else {
|
90 |
-
edit_post_link(__("Edit", ''), '', '');
|
91 |
}
|
92 |
?>
|
93 |
</div>
|
79 |
$cat_terms = wp_get_post_terms( $post->ID, $tax_name );
|
80 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
81 |
foreach( $cat_terms as $term ){
|
82 |
+
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
83 |
}
|
84 |
}
|
85 |
?>
|
86 |
</span>
|
87 |
<?php if( ! empty($cat_terms) ){
|
88 |
+
edit_post_link(__("Edit", 'auxin-portfolio'), '<i> | </i>', '');
|
89 |
} else {
|
90 |
+
edit_post_link(__("Edit", 'auxin-portfolio'), '', '');
|
91 |
}
|
92 |
?>
|
93 |
</div>
|
public/templates/theme-parts/entry/portfolio.php
CHANGED
@@ -29,12 +29,12 @@
|
|
29 |
<?php $tax_name = 'portfolio-cat';
|
30 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
31 |
foreach( $cat_terms as $term ){
|
32 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
33 |
}
|
34 |
}
|
35 |
?>
|
36 |
</span>
|
37 |
-
<?php edit_post_link(__("Edit", ''), '<i> | </i>', ''); ?>
|
38 |
</div>
|
39 |
|
40 |
</div>
|
29 |
<?php $tax_name = 'portfolio-cat';
|
30 |
if( $cat_terms = wp_get_post_terms( $post->ID, $tax_name ) ){
|
31 |
foreach( $cat_terms as $term ){
|
32 |
+
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
33 |
}
|
34 |
}
|
35 |
?>
|
36 |
</span>
|
37 |
+
<?php edit_post_link(__("Edit", 'auxin-portfolio'), '<i> | </i>', ''); ?>
|
38 |
</div>
|
39 |
|
40 |
</div>
|
public/templates/theme-parts/entry/single-portfolio.php
CHANGED
@@ -49,7 +49,7 @@
|
|
49 |
<div class="aux-single-portfolio-share">
|
50 |
<div class="aux-tooltip-socials aux-tooltip-dark aux-socials aux-icon-left aux-medium">
|
51 |
<span class="aux-icon auxicon-share"></span>
|
52 |
-
<span class="aux-text"><?php _e( 'Share', '' ); ?></span>
|
53 |
</div>
|
54 |
</div>
|
55 |
<?php
|
@@ -102,7 +102,7 @@
|
|
102 |
|
103 |
echo '<dd><span class="entry-tax">';
|
104 |
foreach( $cat_terms as $term ){
|
105 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
106 |
}
|
107 |
echo '</span></dd>';
|
108 |
}
|
@@ -114,7 +114,7 @@
|
|
114 |
|
115 |
echo '<dd><span class="entry-tax">';
|
116 |
foreach( $tag_terms as $term ){
|
117 |
-
echo '<a href="'. get_term_link( $term->slug, $tax_name_tag ) .'" title="'.__("View all posts in ", ''). $term->name .'" rel="category" >'. $term->name .'</a>';
|
118 |
}
|
119 |
echo '</span></dd>';
|
120 |
}
|
@@ -133,7 +133,7 @@
|
|
133 |
?>
|
134 |
<a href="<?php echo $lunch_btn_url; ?>" class="aux-button aux-black aux-medium aux-curve">
|
135 |
<span class="aux-overlay"></span>
|
136 |
-
<span class="aux-text"><?php _e( 'Lunch Project', '' ); ?></span>
|
137 |
</a>
|
138 |
<?php }
|
139 |
} // End of displaying condition
|
49 |
<div class="aux-single-portfolio-share">
|
50 |
<div class="aux-tooltip-socials aux-tooltip-dark aux-socials aux-icon-left aux-medium">
|
51 |
<span class="aux-icon auxicon-share"></span>
|
52 |
+
<span class="aux-text"><?php _e( 'Share', 'auxin-portfolio' ); ?></span>
|
53 |
</div>
|
54 |
</div>
|
55 |
<?php
|
102 |
|
103 |
echo '<dd><span class="entry-tax">';
|
104 |
foreach( $cat_terms as $term ){
|
105 |
+
echo '<a href="'. get_term_link( $term->slug, $tax_name ) .'" title="'.__("View all posts in ", 'auxin-portfolio'). $term->name .'" rel="category" >'. $term->name .'</a>';
|
106 |
}
|
107 |
echo '</span></dd>';
|
108 |
}
|
114 |
|
115 |
echo '<dd><span class="entry-tax">';
|
116 |
foreach( $tag_terms as $term ){
|
117 |
+
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>';
|
118 |
}
|
119 |
echo '</span></dd>';
|
120 |
}
|
133 |
?>
|
134 |
<a href="<?php echo $lunch_btn_url; ?>" class="aux-button aux-black aux-medium aux-curve">
|
135 |
<span class="aux-overlay"></span>
|
136 |
+
<span class="aux-text"><?php _e( 'Lunch Project', 'auxin-portfolio' ); ?></span>
|
137 |
</a>
|
138 |
<?php }
|
139 |
} // End of displaying condition
|
public/templates/theme-parts/loop-portfolio.php
CHANGED
@@ -55,7 +55,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
55 |
// get the shortcode base portfolio page
|
56 |
$result = auxin_widget_recent_portfolios_grid_callback( $args );
|
57 |
} else {
|
58 |
-
$result = __('To enable this feature, please install "Auxin Portfolio" plugin.', '' );
|
59 |
}
|
60 |
|
61 |
// if it is normal portfolio archive loop
|
55 |
// get the shortcode base portfolio page
|
56 |
$result = auxin_widget_recent_portfolios_grid_callback( $args );
|
57 |
} else {
|
58 |
+
$result = __('To enable this feature, please install "Auxin Portfolio" plugin.', 'auxin-portfolio' );
|
59 |
}
|
60 |
|
61 |
// if it is normal portfolio archive loop
|
public/templates/theme-parts/single-portfolio.php
CHANGED
@@ -9,14 +9,4 @@ while ( have_posts() ) : the_post();
|
|
9 |
|
10 |
auxpfo_get_template_part( 'theme-parts/entry/single', 'portfolio');
|
11 |
|
12 |
-
|
13 |
-
// load the corresponding template part
|
14 |
-
if( $media_layout === "classic" ) {
|
15 |
-
//auxpfo_get_template_part( 'theme-parts/entry/single', 'portfolio');
|
16 |
-
} elseif ( in_array( $media_layout, array( 'grid', 'tile', 'masonry', 'land' ) ) ) {
|
17 |
-
//auxpfo_get_template_part( 'theme-parts/entry/single-portfolio', $media_layout );
|
18 |
-
}
|
19 |
-
|
20 |
endwhile; // end of the loop.
|
21 |
-
|
22 |
-
?>
|
9 |
|
10 |
auxpfo_get_template_part( 'theme-parts/entry/single', 'portfolio');
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
endwhile; // end of the loop.
|
|
|
|
public/templates/theme-parts/tax-portfolio.php
CHANGED
@@ -57,7 +57,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
57 |
// get the shortcode base portfolio taxonomy page
|
58 |
$result = auxin_widget_recent_portfolios_grid_callback( $args );
|
59 |
} else {
|
60 |
-
$result = __('To enable this feature, please install "Auxin Portfolio" plugin.', '' );
|
61 |
}
|
62 |
|
63 |
// if template type is default means land
|
@@ -76,7 +76,7 @@ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
|
|
76 |
if( true === $result ){
|
77 |
|
78 |
while ( have_posts() ) : the_post();
|
79 |
-
|
80 |
endwhile; // end of the loop.
|
81 |
|
82 |
// if it is a shortcode base blog page
|
57 |
// get the shortcode base portfolio taxonomy page
|
58 |
$result = auxin_widget_recent_portfolios_grid_callback( $args );
|
59 |
} else {
|
60 |
+
$result = __('To enable this feature, please install "Auxin Portfolio" plugin.', 'auxin-portfolio' );
|
61 |
}
|
62 |
|
63 |
// if template type is default means land
|
76 |
if( true === $result ){
|
77 |
|
78 |
while ( have_posts() ) : the_post();
|
79 |
+
auxpfo_get_template_part( 'theme-parts/entry/portfolio', 'land' );
|
80 |
endwhile; // end of the loop.
|
81 |
|
82 |
// if it is a shortcode base blog page
|