Premium Portfolio Features for Phlox theme - Version 0.7.0

Version Description

Download this release

Release Info

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

Version 0.7.0

Files changed (47) hide show
  1. LICENSE.txt +621 -0
  2. README.txt +132 -0
  3. admin/assets/css/index.php +1 -0
  4. admin/assets/images/index.php +1 -0
  5. admin/assets/images/saving.gif +0 -0
  6. admin/assets/js/index.php +1 -0
  7. admin/assets/js/tinymce/plugins/auxin-btns.js +345 -0
  8. admin/class-auxpfo-admin.php +112 -0
  9. admin/includes/admin-ajax.php +2 -0
  10. admin/includes/admin-hooks.php +3 -0
  11. admin/includes/admin-the-functions.php +4 -0
  12. admin/includes/classes/class-auxpfo-admin-assets.php +47 -0
  13. admin/includes/index.php +14 -0
  14. admin/includes/metaboxes/metabox-fields-portfolio-metadata.php +230 -0
  15. admin/includes/metaboxes/metabox-fields-portfolio-related.php +174 -0
  16. admin/includes/metaboxes/metabox-fields-portfolio.php +67 -0
  17. auxin-portfolio.php +80 -0
  18. includes/classes/class-auxpfo-post-type-portfolio.php +268 -0
  19. includes/classes/class-auxpfo-template-loader.php +79 -0
  20. includes/define.php +32 -0
  21. includes/elements/recent-portfolios.php +933 -0
  22. includes/general-functions.php +120 -0
  23. includes/general-hooks.php +1168 -0
  24. includes/general-shortcodes.php +4 -0
  25. includes/index.php +15 -0
  26. index.php +1 -0
  27. languages/auxin-portfolio.pot +1697 -0
  28. public/assets/css/index.php +1 -0
  29. public/assets/index.php +1 -0
  30. public/assets/js/index.php +1 -0
  31. public/class-auxpfo.php +320 -0
  32. public/includes/class-auxpfo-frontend-assets.php +45 -0
  33. public/includes/index.php +9 -0
  34. public/includes/templates-post.php +265 -0
  35. public/templates/archive-portfolio.php +39 -0
  36. public/templates/single-portfolio.php +121 -0
  37. public/templates/taxonomy-portfolio-cat.php +42 -0
  38. public/templates/taxonomy-portfolio-tag.php +13 -0
  39. public/templates/theme-parts/entry/portfolio-column-overlay.php +58 -0
  40. public/templates/theme-parts/entry/portfolio-column.php +73 -0
  41. public/templates/theme-parts/entry/portfolio-land.php +107 -0
  42. public/templates/theme-parts/entry/portfolio.php +42 -0
  43. public/templates/theme-parts/entry/single-portfolio.php +147 -0
  44. public/templates/theme-parts/loop-portfolio.php +95 -0
  45. public/templates/theme-parts/single-portfolio.php +22 -0
  46. public/templates/theme-parts/tax-portfolio.php +96 -0
  47. uninstall.php +16 -0
LICENSE.txt ADDED
@@ -0,0 +1,621 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
README.txt ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Portfolio for Phlox theme ===
2
+ Contributors: averta
3
+ Donate link: http://averta.net/
4
+ License: GPLv3
5
+ 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.7.0
10
+ License: GPLv3
11
+ License URI: http://www.gnu.org/licenses/gpl.html
12
+
13
+ Showcase your works beautifully in Phlox theme
14
+
15
+ == Description ==
16
+
17
+ = Overview =
18
+
19
+ When using a theme with auxin framework (like [Phlox Theme](http://averta.net/phlox/wordpress-theme/ "Phlox Theme")), this plugin adds portfolio and corresponding theme options that makes you able to showcase and present your projects in an elegant way.
20
+
21
+
22
+ >[Demo on Phlox Theme](http://averta.net/phlox/wordpress-theme/ "Live demo of Auxin Portfolio on Phlox Theme") | [Documentation](http://docs.averta.net/display/PD/Phlox+Documentation "Auxin Portfolio documentation") | [Video tutorials](http://support.averta.net/envato/videos/phlox-video-tutorials/ "Watch all video tutorials") | [Support forum](http://wordpress.org/support/plugin/auxin-portfolio "Free support")
23
+
24
+
25
+ = Features =
26
+ * Portfolio in Grid Layout
27
+ * Portfolio in Grid Layout With Filter Options
28
+ * Portfolio in Masonry Layout
29
+ * Portfolio in Masonry Layout With Filter Options
30
+ * Portfolio in Tiles Layout
31
+ * Siteorigin Page builder support
32
+ * Page builder Elements
33
+
34
+
35
+ = Some Samples =
36
+ * [Portfolio](http://averta.net/phlox/demo/portfolio/)
37
+
38
+ = Compatible Browsers =
39
+ * IE8+
40
+ * Firefox
41
+ * Safari
42
+ * Opera
43
+ * Chrome
44
+ * iOS browser
45
+ * Android browser
46
+
47
+
48
+ = Documentations =
49
+ If you have any question about working with "Auxin Portfolio", you can take a look at [online documentations](http://docs.averta.net/display/PD/Phlox+Documentation)
50
+
51
+ = Translation =
52
+ You can start translating this plugin from here: [online translation service](https://translate.wordpress.org/projects/wp-plugins/auxin-portfolio/).
53
+
54
+
55
+ == Installation ==
56
+
57
+ = Minimum Requirements =
58
+
59
+ * WordPress 4.3 or greater
60
+ * PHP version 5.6.0 or greater
61
+ * MySQL version 5.0 or greater
62
+
63
+
64
+ **This plugin works the best in [Phlox Theme](http://averta.net/phlox/wordpress-theme/)**
65
+
66
+
67
+ = Automatic installation (easiest way) =
68
+
69
+ To do an automatic install of Auxin Portfolio, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
70
+
71
+ In the search field type "Auxin Portfolio" and click Search Plugins. Once you have found it you can install it by simply clicking "Install Now".
72
+
73
+
74
+ = Manual installation =
75
+
76
+ **Uploading in WordPress Dashboard**
77
+
78
+ 1. Download `auxin-portfolio.zip`
79
+ 2. Navigate to the 'Add New' in the plugins dashboard
80
+ 3. Navigate to the 'Upload' area
81
+ 4. Select `auxin-portfolio.zip` from your computer
82
+ 5. Click 'Install Now'
83
+ 6. Activate the plugin in the Plugin dashboard
84
+
85
+ **Using FTP**
86
+
87
+ 1. Download `auxin-portfolio.zip`
88
+ 2. Extract the `auxin-portfolio` directory to your computer
89
+ 3. Upload the `auxin-portfolio` directory to the `/wp-content/plugins/` directory
90
+ 4. Activate the plugin in the Plugin dashboard
91
+
92
+ The WordPress codex contains [instructions on how to install a WordPress plugin](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
93
+
94
+
95
+
96
+ = Updating =
97
+
98
+ You can use automatic update to update the plugin safely.
99
+
100
+
101
+ == Frequently Asked Questions ==
102
+
103
+ = Where can I find Auxin Portfolio documentation and user guides =
104
+
105
+ If you have any question about working with "Auxin Portfolio", you can take a look at [online documentations](http://docs.averta.net/display/PD/Phlox+Documentation)
106
+
107
+ If you get stuck you can follow these [steps to get support](http://docs.averta.net/display/PD/Support).
108
+
109
+
110
+ = Will Auxin Portfolio work with my theme? =
111
+ No, Auxin Element only works on [Phlox Theme](http://averta.net/phlox/)
112
+
113
+ = Where can I report bugs? =
114
+ Bugs can be reported in our [support forums](http://wordpress.org/tags/auxin-portfolio).
115
+
116
+
117
+
118
+ == Screenshots ==
119
+
120
+
121
+
122
+ == Changelog ==
123
+
124
+ = Version 0.7.0 / (24.2.2017) =
125
+ - Initial release
126
+
127
+
128
+
129
+ == Upgrade Notice ==
130
+
131
+ = 0.7.0 =
132
+ -
admin/assets/css/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
admin/assets/images/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
admin/assets/images/saving.gif ADDED
Binary file
admin/assets/js/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
admin/assets/js/tinymce/plugins/auxin-btns.js ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+
3
+ tinymce.PluginManager.add('phlox_shortcodes_button', function(editor, url) {
4
+ editor.addButton('phlox_shortcodes_button', {
5
+ // text : false,
6
+ title: 'Phlox Shortcode',
7
+ type : 'menubutton',
8
+ icon : 'phlox-shortcode-btn',
9
+ classes: 'widget btn mfnsc',
10
+ menu : [ {
11
+ text : 'Typography',
12
+ menu :
13
+ [ {
14
+ text : 'Highlight',
15
+ menu :
16
+ [ {
17
+ text : 'Red',
18
+ onclick : function() {
19
+ editor.insertContent('[aux_highlight style="aux-highlight-red" extra_classes=""]Insert your content here[/aux_highlight]');
20
+ },
21
+ },
22
+ {
23
+ text : 'Blue',
24
+ onclick : function() {
25
+ editor.insertContent('[aux_highlight style="aux-highlight-blue" extra_classes=""]Insert your content here[/aux_highlight]');
26
+ },
27
+ },
28
+ {
29
+ text : 'Yellow',
30
+ onclick : function() {
31
+ editor.insertContent('[aux_highlight style="aux-highlight-yellow" extra_classes=""]Insert your content here[/aux_highlight]');
32
+ },
33
+ },
34
+ {
35
+ text : 'Green',
36
+ onclick : function() {
37
+ editor.insertContent('[aux_highlight style="aux-highlight-green" extra_classes=""]Insert your content here[/aux_highlight]');
38
+ },
39
+ },
40
+ ] // end of highlight
41
+
42
+
43
+ },
44
+ {
45
+ text : 'Dropcap',
46
+ menu :
47
+ [ {
48
+ text : 'Classic',
49
+ onclick : function() {
50
+ editor.insertContent('[aux_dropcap style="classic" extra_classes=""]Please insert your content here[/aux_dropcap]');
51
+ },
52
+ },
53
+ {
54
+ text : 'Square',
55
+ onclick : function() {
56
+ editor.insertContent('[aux_dropcap style="square" extra_classes=""]Please insert your content here[/aux_dropcap]');
57
+ },
58
+ },
59
+ {
60
+ text : 'Outline Square',
61
+ onclick : function() {
62
+ editor.insertContent('[aux_dropcap style="square-outline" extra_classes=""]Please insert your content here[/aux_dropcap]');
63
+ },
64
+ },
65
+ {
66
+ text : 'Round Square',
67
+ onclick : function() {
68
+ editor.insertContent('[aux_dropcap style="square-round" extra_classes=""]Please insert your content here[/aux_dropcap]');
69
+ },
70
+ },
71
+ {
72
+ text : 'Circle',
73
+ onclick : function() {
74
+ editor.insertContent('[aux_dropcap style="circle" extra_classes=""]Please insert your content here[/aux_dropcap]');
75
+ },
76
+ },
77
+ {
78
+ text : 'Outline Circle',
79
+ onclick : function() {
80
+ editor.insertContent('[aux_dropcap style="circle-outline" extra_classes=""]Please insert your content here[/aux_dropcap]');
81
+ },
82
+ },
83
+ ] // end of dropcap
84
+ }, // end of dropcap
85
+ {
86
+ text : 'Blockquote',
87
+ menu :
88
+ [ {
89
+ text : 'Quote Normal',
90
+ onclick : function() {
91
+ editor.insertContent('[aux_quote type="quote-normal" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
92
+ },
93
+ },
94
+ {
95
+ text : 'Blockquote Normal',
96
+ onclick : function() {
97
+ editor.insertContent('[aux_quote type="blockquote-normal" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
98
+ },
99
+ },
100
+ {
101
+ text : 'Blockquote Bordered',
102
+ onclick : function() {
103
+ editor.insertContent('[aux_quote type="blockquote-bordered" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
104
+ },
105
+ },
106
+ {
107
+ text : 'Intro Hero',
108
+ onclick : function() {
109
+ editor.insertContent('[aux_quote type="intro-hero" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
110
+ },
111
+ },
112
+ {
113
+ text : 'Intro',
114
+ onclick : function() {
115
+ editor.insertContent('[aux_quote type="intro-normal" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
116
+ },
117
+ },
118
+ {
119
+ text : 'Intro with Splitter',
120
+ onclick : function() {
121
+ editor.insertContent('[aux_quote type="intro-splitter" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
122
+ },
123
+ },
124
+ {
125
+ text : 'Pullquote Normal',
126
+ onclick : function() {
127
+ editor.insertContent('[aux_quote type="pullquote-normal" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
128
+ },
129
+ },
130
+ {
131
+ text : 'Pullquote Colorized',
132
+ onclick : function() {
133
+ editor.insertContent('[aux_quote type="pullquote-colorized" text_align="left" quote_symbol="1" title="title" extra_classes=""]Insert your quote here[/aux_quote]');
134
+ },
135
+ },
136
+ ] // end of Block Qoute
137
+ }, // end of Block Qoute
138
+
139
+ ] // end of typography
140
+ }, // end of typography
141
+ {
142
+ text : 'Content',
143
+ menu : [ {
144
+ text : 'Phlox Text',
145
+ onclick : function() {
146
+ editor.insertContent('[aux_text title_link="" text_align="left" icon="auxicon-bow-tie" image_position="top" icon_color="#888" title="title" extra_classes=""]Insert your quote here[/aux_text]');
147
+ },
148
+
149
+ }, // end of Phlox Text
150
+ {
151
+ text : 'Button',
152
+ menu :
153
+ [ {
154
+ text : 'Normal',
155
+ onclick : function() {
156
+ editor.insertContent('[aux_button label="Button" size="medium" icon_align="left" color_name="dark-gray" border="" style="" icon="fa fa-beer" link="" target="_blank"]');
157
+ },
158
+ },
159
+ {
160
+ text : '3D',
161
+ onclick : function() {
162
+ editor.insertContent('[aux_button label="Button" size="medium" icon_align="left" color_name="dark-gray" border="" style="3d" icon="fa fa-beer" link="" target="_blank"]');
163
+ },
164
+ },
165
+ {
166
+ text : 'Outline',
167
+ onclick : function() {
168
+ editor.insertContent('[aux_button label="Button" size="medium" icon_align="left" color_name="dark-gray" border="" style="outline" icon="fa fa-beer" link="" target="_blank"]');
169
+ },
170
+ },
171
+ ] // end of Button
172
+ }, // end of Button
173
+ {
174
+ text : 'Map',
175
+ onclick : function() {
176
+ editor.insertContent('[aux_gmaps type="ROADMAP" show_mapcontrols="1" zoom_wheel="0" height="700" latitude="54" longitude="14" zoom="3" style="" title="Title" marker_info="Marker info" extra_classes=""]');
177
+ },
178
+
179
+ }, // end of map
180
+ {
181
+ text : 'Gallery',
182
+ menu :
183
+ [ {
184
+ text : 'Grid',
185
+ onclick : function() {
186
+ editor.insertContent('[aux_gallery columns="2" order="ASC" orderby="menu_order ID" layout="grid" pagination="0" perpage="24" size="medium" link="lightbox" include="seprate your image ids here" extra_classes=""]');
187
+ },
188
+ },
189
+ {
190
+ text : '3D',
191
+ onclick : function() {
192
+ editor.insertContent('[aux_gallery columns="2" order="ASC" orderby="menu_order ID" layout="justify-rows" pagination="0" perpage="24" size="medium" link="lightbox" include="seprate your image ids here" extra_classes=""]');
193
+ },
194
+ },
195
+
196
+ ] // end of Gallery
197
+ }, // end of Gallery
198
+ {
199
+ text : 'Divider',
200
+ menu :
201
+ [ {
202
+ text : 'Solid',
203
+ onclick : function() {
204
+ editor.insertContent('[aux_divider width="medium" style="solid" margin_top="20" margin_bottom="20" extra_classes=""]');
205
+ },
206
+ },
207
+ {
208
+ text : 'White Space',
209
+ onclick : function() {
210
+ editor.insertContent('[aux_divider width="medium" style="white-space" margin_top="20" margin_bottom="20" extra_classes=""]');
211
+ },
212
+ },
213
+ {
214
+ text : 'Dashed',
215
+ onclick : function() {
216
+ editor.insertContent('[aux_divider width="medium" style="dashed" margin_top="20" margin_bottom="20" extra_classes=""]');
217
+ },
218
+ },
219
+ {
220
+ text : 'Circle',
221
+ onclick : function() {
222
+ editor.insertContent('[aux_divider width="medium" style="circle-symbol" margin_top="20" margin_bottom="20" extra_classes=""]');
223
+ },
224
+ },
225
+ {
226
+ text : 'Diamond',
227
+ onclick : function() {
228
+ editor.insertContent('[aux_divider width="medium" style="diamond-symbol" margin_top="20" margin_bottom="20" extra_classes=""]');
229
+ },
230
+ },
231
+
232
+ ] // end of Divider
233
+ }, // end of Divider
234
+ {
235
+ text : 'Contact Form',
236
+ menu :
237
+ [ {
238
+ text : 'Phlox Contact Form',
239
+ onclick : function() {
240
+ editor.insertContent('[aux_contact_form title="Title" type="phlox" email="info@email.net" extra_classes=""]');
241
+ },
242
+ },
243
+ {
244
+ text : 'Contact Form7',
245
+ onclick : function() {
246
+ editor.insertContent('[aux_contact_form title="Title" type="cf7" email="info@email.net" cf7_shortcode="insert contactform shortcode here" extra_classes=""]');
247
+ },
248
+ },
249
+
250
+
251
+ ] // end of Contact Form
252
+ }, // end of Contact Form
253
+ {
254
+ text : 'Search',
255
+ onclick : function() {
256
+ editor.insertContent('[aux_search title="Title" extra_classes=""]');
257
+ },
258
+
259
+ }, // end of Search
260
+ {
261
+ text : 'Code',
262
+ onclick : function() {
263
+ editor.insertContent('[aux_code language="javascript" theme="tomorrow" title="Title" extra_classes=""]insert your code here[/aux_code]');
264
+ },
265
+
266
+ }, // end of Code
267
+ {
268
+ text : 'Socials',
269
+ menu :
270
+ [ {
271
+ text : 'Horizontal',
272
+ onclick : function() {
273
+ editor.insertContent('[aux_socials_list size="medium" direction="horizontal" title="Title"]');
274
+ },
275
+ },
276
+ {
277
+ text : 'Vertical',
278
+ onclick : function() {
279
+ editor.insertContent('[aux_socials_list size="medium" direction="vertical" title="Title"]');
280
+ },
281
+ },
282
+
283
+
284
+ ] // end of Socials
285
+ }, // end of Socials
286
+ {
287
+ text : 'Image',
288
+ menu :
289
+ [ {
290
+ text : 'Normal',
291
+ onclick : function() {
292
+ editor.insertContent('[aux_image target="_blank" title="Title" attach_id="Insert your image id here" lightbox="no" attach_id_hover="Insert your image id here" width="" height="" link="" icon="plus" extra_classes=""]');
293
+ },
294
+ },
295
+ {
296
+ text : 'Lightbox',
297
+ onclick : function() {
298
+ editor.insertContent('[aux_image target="_blank" title="Title" attach_id="Insert your image id here" lightbox="yes" attach_id_hover="Insert your image id here" width="" height="" link="" icon="plus" extra_classes=""]');
299
+ },
300
+ },
301
+
302
+
303
+ ] // end of Image
304
+ }, // end of Image
305
+ {
306
+ text : 'About Author',
307
+ onclick : function() {
308
+ editor.insertContent('[aux_about_widget image_style="square" title="Title" name="Name" skills="Skills" info="Insert your info here" about_image="Insert your image id here" image_style="circle/square" align_center="0" show_socials="0" extra_classes=""]');
309
+ },
310
+
311
+ }, // end of About
312
+
313
+
314
+ ]
315
+ },
316
+ {
317
+ text : 'Layout',
318
+ menu : [
319
+ {
320
+ text : '2 Columns',
321
+ onclick : function() {
322
+ editor.insertContent("[aux_row columns=\"2\"]<br />[aux_col]First column content. Insert your content here[/aux_col]<br />[aux_col]Second column content. Insert your content here[/aux_col]<br />[/aux_row]");
323
+ }
324
+ },
325
+ {
326
+ text : '3 Columns',
327
+ onclick : function() {
328
+ editor.insertContent("[aux_row columns=\"3\"]<br />[aux_col]First column content. Insert your content here[/aux_col]<br />[aux_col]Second column content. Insert your content here[/aux_col]<br />[aux_col]Third column content. Insert your content here[/aux_col]<br />[/aux_row]");
329
+ }
330
+ },
331
+ {
332
+ text : '4 Columns',
333
+ onclick : function() {
334
+ editor.insertContent("[aux_row columns=\"4\"]<br />[aux_col]First column content. Insert your content here[/aux_col]<br />[aux_col]Second column content. Insert your content here[/aux_col]<br />[aux_col]Third column content. Insert your content here[/aux_col]<br />[aux_col]Forth column content. Insert your content here[/aux_col]<br />[/aux_row]");
335
+ }
336
+ }
337
+ ]
338
+ }
339
+ ]
340
+
341
+ });
342
+
343
+ });
344
+
345
+ })();
admin/class-auxpfo-admin.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Main Admin Class
4
+ *
5
+ * @echo HEADER
6
+ */
7
+
8
+ // no direct access allowed
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ die();
11
+ }
12
+
13
+
14
+ /**
15
+ * This class is used to work with the
16
+ * administrative side of the plugin
17
+ */
18
+ class AUXPFO_Admin {
19
+
20
+ /**
21
+ * Instance of this class.
22
+ *
23
+ * @since 1.0.0
24
+ *
25
+ * @var object
26
+ */
27
+ protected static $instance = null;
28
+
29
+ /**
30
+ * Slug of the plugin screen.
31
+ *
32
+ * @since 1.0.0
33
+ *
34
+ * @var string
35
+ */
36
+ protected $screen_hook_suffix = null;
37
+
38
+
39
+
40
+ /**
41
+ * Initialize the plugin by loading admin classes and functions
42
+ *
43
+ * @since 1.0.0
44
+ */
45
+ private function __construct() {
46
+
47
+ // include admin files
48
+ $this->includes();
49
+
50
+ $this->enqueue_admin_scripts();
51
+ }
52
+
53
+
54
+ /**
55
+ * Include admin essential classes and functions
56
+ *
57
+ * @return void
58
+ */
59
+ private function includes(){
60
+ include_once( AUXPFO_ADMIN_DIR . '/includes/index.php' );
61
+ }
62
+
63
+
64
+
65
+ /**
66
+ * Return an instance of this class.
67
+ *
68
+ * @since 1.0.0
69
+ *
70
+ * @return object A single instance of this class.
71
+ */
72
+ public static function get_instance() {
73
+
74
+ if( apply_filters( 'auxpfo_access_only_for_super_admins' , 0 ) && ! is_super_admin() ) {
75
+ return;
76
+ }
77
+
78
+ // If the single instance hasn't been set, set it now.
79
+ if ( null == self::$instance ) {
80
+ self::$instance = new self;
81
+ }
82
+
83
+ return self::$instance;
84
+ }
85
+
86
+
87
+ /**
88
+ * Register and enqueue admin-specific JavaScript & Stylesheet.
89
+ *
90
+ * @since 1.0.0
91
+ *
92
+ * @return null Return early if no settings page is registered.
93
+ */
94
+ public function enqueue_admin_scripts() {
95
+
96
+ $admin_assets = new AUXPFO_Admin_Assets();
97
+
98
+ if ( ! isset( $this->screen_hook_suffix ) )
99
+ return;
100
+
101
+ $screen = get_current_screen();
102
+ if ( $this->screen_hook_suffix == $screen->id ) {
103
+ // enqueue styles on the pages that belongs to plugin
104
+ }
105
+
106
+ }
107
+
108
+
109
+
110
+ }
111
+
112
+ return AUXPFO_Admin::get_instance();
admin/includes/admin-ajax.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+
admin/includes/admin-hooks.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ /*============================================================================*/
admin/includes/admin-the-functions.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php // admin related functions
2
+
3
+
4
+
admin/includes/classes/class-auxpfo-admin-assets.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Scripts Class.
4
+ *
5
+ * @
6
+ */
7
+
8
+ // no direct access allowed
9
+ if ( ! defined('ABSPATH') ) {
10
+ die();
11
+ }
12
+
13
+ /**
14
+ * Class to load and print master slider panel scripts
15
+ */
16
+ class AUXPFO_Admin_Assets {
17
+
18
+
19
+ /**
20
+ * __construct
21
+ */
22
+ function __construct() {
23
+ // general assets
24
+ $this->load_styles();
25
+ $this->load_scripts();
26
+ }
27
+
28
+
29
+ /**
30
+ * Styles for admin
31
+ *
32
+ * @return void
33
+ */
34
+ public function load_styles() {
35
+ // wp_enqueue_style( AUXPFO_SLUG .'-admin-styles', AUXPFO_ADMIN_URL . '/assets/css/msp-general.css', array(), AUXPFO_VERSION );
36
+ }
37
+
38
+ /**
39
+ * Scripts for admin
40
+ *
41
+ * @return void
42
+ */
43
+ public function load_scripts() {
44
+ //wp_enqueue_script( AUXPFO_SLUG .'-admin-scripts', AUXPFO_ADMIN_URL . '/assets/js/admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-dialog'), AUXPFO_VERSION, true );
45
+ }
46
+
47
+ }
admin/includes/index.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // load admin related classes & functions
2
+
3
+ // load admin related functions
4
+ include_once( 'admin-the-functions.php' );
5
+
6
+ // load admin related classes
7
+ include_once( 'classes/class-auxpfo-admin-assets.php' );
8
+
9
+ do_action( 'auxpfo_admin_classes_loaded' );
10
+
11
+ include_once( 'metaboxes/metabox-fields-portfolio.php' );
12
+
13
+ // load admin related functions
14
+ include_once( 'admin-hooks.php' );
admin/includes/metaboxes/metabox-fields-portfolio-metadata.php ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Add metabox options for portfolio
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
+ 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
+ ),
75
+ ),
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
+ // ),
98
+ // 'transport' => 'postMessage',
99
+ // 'post_js' => '$(".single-portfolio .aux-primary .hentry").toggleClass( "aux-narrow-context", "narrow" == to );',
100
+ // 'default' => 'simple',
101
+ // 'type' => 'radio-image'
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(
124
+ 'id' => '_show_next_prev_nav',
125
+ 'value' => array('default', 'yes'),
126
+ 'operator'=> ''
127
+ )
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
+ ),
159
+ 'type' => 'radio-image',
160
+ 'default' => 'default'
161
+ ),
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' => ''
209
+ )
210
+
211
+ );
212
+
213
+ // Generate the custom metadata fields base on defined fields in theme options
214
+ $metafields = json_decode( auxin_get_option( 'portfolio_metadata_list_1' ), true );
215
+ if( is_array( $metafields ) ){
216
+ foreach ( $metafields as $metadata_info ) {
217
+ if( ! empty( $metadata_info['id'] ) ){
218
+ $model->fields[] = array(
219
+ 'title' => $metadata_info['value'],
220
+ 'description' => '',
221
+ 'id' => '_auxin_meta_' . $metadata_info['id'],
222
+ 'type' => 'text',
223
+ 'default' => ''
224
+ );
225
+ }
226
+ }
227
+ }
228
+
229
+ return $model;
230
+ }
admin/includes/metaboxes/metabox-fields-portfolio-related.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Add metabox options for portfolio
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
+ 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(
41
+ 'id' => '_display_related',
42
+ 'value' => array('default', 'yes'),
43
+ 'operator'=> ''
44
+ )
45
+ ),
46
+ 'type' => 'text',
47
+ 'default' => ''
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(
55
+ array(
56
+ 'id' => '_display_related',
57
+ 'value' => array('default', 'yes'),
58
+ 'operator'=> ''
59
+ )
60
+ ),
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(
75
+ array(
76
+ 'id' => '_display_related',
77
+ 'value' => array('default', 'yes'),
78
+ 'operator'=> ''
79
+ )
80
+ ),
81
+ 'type' => 'select',
82
+ 'default' => 'default',
83
+ 'choices' => array(
84
+ 'default' => __('Theme Default', ''),
85
+ '1' => '1',
86
+ '2' => '2',
87
+ '3' => '3'
88
+ )
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(
96
+ array(
97
+ 'id' => '_display_related',
98
+ 'value' => array('default', 'yes'),
99
+ 'operator'=> ''
100
+ )
101
+ ),
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(
116
+ array(
117
+ 'id' => '_display_related',
118
+ 'value' => array('default', 'yes'),
119
+ 'operator'=> ''
120
+ )
121
+ ),
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(
136
+ array(
137
+ 'id' => '_display_related',
138
+ 'value' => array('default', 'yes'),
139
+ 'operator'=> ''
140
+ )
141
+ ),
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(
156
+ array(
157
+ 'id' => '_display_related',
158
+ 'value' => array('default', 'yes'),
159
+ 'operator'=> ''
160
+ )
161
+ ),
162
+ 'type' => 'select',
163
+ 'default' => 'default',
164
+ 'choices' => array(
165
+ 'default' => __('Theme Default', ''),
166
+ 'yes' => __('Yes', ''),
167
+ 'no' => __('No', ''),
168
+ )
169
+ )
170
+
171
+ );
172
+
173
+ return $model;
174
+ }
admin/includes/metaboxes/metabox-fields-portfolio.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Add metabox options for portfolio
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
+ /*======================================================================*/
18
+
19
+ function auxin_push_metabox_models_portfolio( $models ){
20
+
21
+ // Load general metabox models
22
+ include_once( AUX_CON . 'admin/metaboxes/metabox-fields-general-slider-setting.php' );
23
+ include_once( AUX_CON . 'admin/metaboxes/metabox-fields-general-bg-setting.php' );
24
+ include_once( AUX_CON . 'admin/metaboxes/metabox-fields-general-title-setting.php' );
25
+ include_once( AUX_CON . 'admin/metaboxes/metabox-fields-general-advanced.php' );
26
+ include_once( AUX_CON . 'admin/metaboxes/metabox-fields-general-layout.php' );
27
+
28
+ include_once( 'metabox-fields-portfolio-metadata.php' );
29
+ include_once( 'metabox-fields-portfolio-related.php' );
30
+
31
+ // Attach general common metabox models to hub
32
+ $models[] = array(
33
+ 'model' => auxin_metabox_fields_general_layout(),
34
+ 'priority' => 10
35
+ );
36
+ $models[] = array(
37
+ 'model' => auxin_metabox_fields_general_title() ,
38
+ 'priority' => 10
39
+ );
40
+ $models[] = array(
41
+ 'model' => auxin_metabox_fields_general_background(),
42
+ 'priority' => 10
43
+ );
44
+ $models[] = array(
45
+ 'model' => auxin_metabox_fields_general_slider(),
46
+ 'priority' => 10
47
+ );
48
+ $models[] = array(
49
+ 'model' => auxin_metabox_fields_general_advanced(),
50
+ 'priority' => 10
51
+ );
52
+ $models[] = array(
53
+ 'model' => auxpfo_metabox_fields_portfolio_metadata(),
54
+ 'priority' => 8
55
+ );
56
+ $models[] = array(
57
+ 'model' => auxpfo_metabox_fields_portfolio_related_metadata(),
58
+ 'priority' => 9
59
+ );
60
+
61
+ return $models;
62
+ }
63
+
64
+ add_filter( 'auxin_admin_metabox_models_portfolio', 'auxin_push_metabox_models_portfolio' );
65
+
66
+
67
+
auxin-portfolio.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Portfolio for themes with auxin framework
4
+ *
5
+ *
6
+ * @package Auxin
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link http://averta.net/phlox/
10
+ * @copyright (c) 2010-2017
11
+ *
12
+ * Plugin Name: Auxin Portfolio
13
+ * Plugin URI: http://averta.net/phlox/
14
+ * Description: Showcase your works beautifully in Phlox theme
15
+ * Version: 0.7.0
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.2
22
+ */
23
+
24
+ // If this file is called directly, abort.
25
+ if ( ! defined( 'WPINC' ) ) {
26
+ die('No Naughty Business Please !');
27
+ }
28
+
29
+ // Abort loading if WordPress is upgrading
30
+ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
31
+ return;
32
+ }
33
+
34
+ /*----------------------------------------------------------------------------*/
35
+
36
+
37
+ // Run the plugin only for Phlox theme
38
+ if ( ! wp_installing() || 'wp-activate.php' === $pagenow ) {
39
+ if ( ! file_exists( get_template_directory() . '/auxin/auxin-include/auxin.php' ) ){
40
+ return;
41
+ }
42
+ }
43
+
44
+
45
+ // Make sure the client has PHP version 5.3 or higher, otherwise, throw a notice
46
+ function auxpfo_requirement_notice() {
47
+ echo '<div class="error"><p>' . __( 'PHP version 5.3.0 or above is required for "Auxin Portfolio" plugin', 'auxin-portfolio' ) . '</p></div>';
48
+ }
49
+ if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
50
+ add_action( 'admin_notices', 'auxpfo_requirement_notice' );
51
+ return;
52
+ }
53
+
54
+
55
+ // Check if the theme meets the plugin requirements
56
+ function auxpfo_auxin_theme_requirement_notice() {
57
+ if ( defined('THEME_VERSION') && version_compare( THEME_VERSION, '1.6.0', '<' ) ) {
58
+ echo '<div class="error"><p>'.
59
+ sprintf(
60
+ __( 'You are using %1$s theme version %2$s. You need to update the %1$s theme to latest version in order to use %3$s plugin', 'auxin-portfolio' ),
61
+ '<em>'. THEME_NAME_I18N .'</em>',
62
+ '<em>'. THEME_VERSION . '</em>',
63
+ '<em>'. __('Auxin Portfolio', 'auxin-portfolio') . '</em>'
64
+ ).
65
+ '</p></div>';
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
+ /*----------------------------------------------------------------------------*/
includes/classes/class-auxpfo-post-type-portfolio.php ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Add Portfolio post type and 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
+
18
+
19
+ /**
20
+ * Register Portfolio post type and taxonomies
21
+ *
22
+ */
23
+ class Auxpfo_Post_Type_Portfolio extends Auxin_Post_Type_Base {
24
+
25
+
26
+
27
+ function __construct() {
28
+
29
+ $post_type = 'portfolio';
30
+
31
+ //add_filter( 'admin_post_thumbnail_html' , array( $this, 'featured_image_instruction' ) );
32
+ //add_filter( 'the_permalink' , array( $this, 'posttype_permalink' ), 10, 1 );
33
+
34
+ parent::__construct( $post_type );
35
+ }
36
+
37
+
38
+ /**
39
+ * Register post type
40
+ *
41
+ * @return void
42
+ */
43
+ public function register_post_type() {
44
+
45
+ if( ! $single_slug = get_option( THEME_ID.'_'.$this->post_type.'_structure', '' ) )
46
+ $single_slug = $this->post_type; // validate single slug
47
+
48
+ if( ! $archive_slug = get_option( THEME_ID.'_'.$this->post_type.'_archive_structure', '' ) )
49
+ $archive_slug = $this->post_type.'/all'; // validate archive slug
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,
74
+ 'show_ui' => true,
75
+ 'query_var' => true,
76
+ 'rewrite' => array (
77
+ 'slug' => $single_slug,
78
+ 'with_front' => true,
79
+ 'feeds' => true
80
+ ),
81
+ 'capability_type' => $this->post_type,
82
+ 'map_meta_cap' => true,
83
+ 'hierarchical' => false,
84
+ 'menu_position' => 30,
85
+ 'show_in_nav_menus' => true,
86
+ 'menu_icon' => 'dashicons-art',
87
+ 'supports' => array( 'title','editor','thumbnail','excerpt','page-attributes', 'revisions' ),
88
+ 'has_archive' => $archive_slug
89
+ );
90
+
91
+ return register_post_type( $this->post_type, apply_filters( "auxin_register_post_type_args_{$this->post_type}", $args ) );
92
+ }
93
+
94
+ /**
95
+ * Register taxonomies
96
+ *
97
+ * @return void
98
+ */
99
+ public function register_taxonomies() {
100
+
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';
118
+
119
+ register_taxonomy( $tax_cat_name,
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',
127
+ 'query_var' => true,
128
+ 'capabilities' => array(
129
+ 'manage_terms' => "manage_{$this->post_type}_terms",
130
+ 'edit_terms' => "edit_{$this->post_type}_terms",
131
+ 'delete_terms' => "delete_{$this->post_type}_terms",
132
+ 'assign_terms' => "assign_{$this->post_type}_terms",
133
+ ),
134
+ 'rewrite' => array(
135
+ 'slug' => _x( 'portfolio-cat', 'taxonomy slug', '' ),
136
+ 'hierarchical' => false
137
+ )
138
+ ) )
139
+ );
140
+
141
+
142
+
143
+
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';
166
+
167
+ register_taxonomy( $tax_tag_name,
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',
175
+ 'query_var' => true,
176
+ 'capabilities' => array(
177
+ 'manage_terms' => "manage_{$this->post_type}_terms",
178
+ 'edit_terms' => "edit_{$this->post_type}_terms",
179
+ 'delete_terms' => "delete_{$this->post_type}_terms",
180
+ 'assign_terms' => "assign_{$this->post_type}_terms",
181
+ ),
182
+ 'rewrite' => array(
183
+ 'slug' => _x( 'portfolio-tag', 'taxonomy slug', '' ),
184
+ 'hierarchical' => false
185
+ )
186
+ ) )
187
+ );
188
+
189
+ }
190
+
191
+
192
+ /**
193
+ * Customizing post type list Columns
194
+ *
195
+ * @param array $column An array of column name => label
196
+ * @return array List of columns shown when listing posts of the post type
197
+ */
198
+ public function manage_edit_columns( $columns ){
199
+ unset( $columns['title'], $columns['date'] );
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 );
211
+ }
212
+
213
+
214
+ /**
215
+ * Applied to the list of columns to print on the manage posts screen for current post type
216
+ *
217
+ * @param array $column An array of column name => label
218
+ * @return array List of columns shown when listing posts of the post type
219
+ */
220
+ public function manage_posttype_custom_columns( $column ){
221
+ global $post;
222
+
223
+ switch ( $column ) {
224
+ case "description":
225
+ the_excerpt();
226
+ break;
227
+ case "cat":
228
+ echo get_the_term_list( $post->ID, 'portfolio-cat', '', ', ','' );
229
+ break;
230
+ case "tag":
231
+ echo get_the_term_list( $post->ID, 'portfolio-tag', '', ', ','' );
232
+ break;
233
+ case "portfolio_image":
234
+ echo get_the_post_thumbnail( $post, 'thumbnail' );
235
+ break;
236
+ case "release_date":
237
+ echo get_post_meta( $post->ID, "release-date", true );
238
+ break;
239
+ }
240
+ }
241
+
242
+
243
+ /**
244
+ * Add instruction to featured post
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
+ }
252
+
253
+
254
+ /**
255
+ * Redirect post type single page if redirect URL is set
256
+ */
257
+ function posttype_permalink( $permalink ){
258
+ global $post;
259
+
260
+ if ( isset( $post ) && $this->post_type == get_post_type( $post->ID ) ){
261
+ $redirect_url = get_post_meta( $post->ID, "{$this->post_type}-redirect-url", true );
262
+ if( ! empty( $redirect_url ) )
263
+ return $redirect_url;
264
+ }
265
+ return $permalink;
266
+ }
267
+
268
+ }
includes/classes/class-auxpfo-template-loader.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Template Loader
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
+ class Auxpfo_Template_Loader {
18
+
19
+ public static function init() {
20
+ add_filter( 'template_include' , array( __CLASS__, 'template_loader' ) );
21
+ }
22
+
23
+ /**
24
+ * Load a template.
25
+ *
26
+ * @param mixed $template
27
+ * @return string
28
+ */
29
+ public static function template_loader( $template ) {
30
+ $find = array();
31
+ $file = '';
32
+
33
+ if ( is_embed() ) {
34
+ return $template;
35
+ }
36
+
37
+
38
+ if ( is_single() && get_post_type() == 'portfolio' ) {
39
+
40
+ $find[] = AUXPFO()->template_path() . 'single-portfolio.php';
41
+
42
+ } elseif ( is_tax( get_object_taxonomies( 'portfolio' ) ) ) {
43
+
44
+ $term = get_queried_object();
45
+
46
+ if ( is_tax( 'portfolio-cat' ) || is_tax( 'portfolio-tag' ) ) {
47
+ $file = 'taxonomy-' . $term->taxonomy . '.php';
48
+ } else {
49
+ $file = 'archive-portfolio.php';
50
+ }
51
+
52
+ $find[] = AUXPFO()->template_path() . 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
53
+ $find[] = AUXPFO()->template_path() . 'taxonomy-' . $term->taxonomy . '.php';
54
+ $find[] = AUXPFO()->template_path() . $file;
55
+
56
+ } elseif ( is_post_type_archive( 'portfolio' ) ) {
57
+
58
+ $find[] = AUXPFO()->template_path() . 'archive-portfolio.php';
59
+ }
60
+
61
+ $find = array_unique( $find );
62
+
63
+ if ( $find && $templates = locate_template( array_unique( $find ) ) ) {
64
+ return $templates;
65
+ }
66
+
67
+ foreach ( $find as $file ) {
68
+ if( file_exists( $file ) ){
69
+ $template = $file;
70
+ break;
71
+ }
72
+ }
73
+
74
+ return $template;
75
+ }
76
+
77
+ }
78
+
79
+ Auxpfo_Template_Loader::init();
includes/define.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // no direct access allowed
4
+ if ( ! defined('ABSPATH') ) {
5
+ die();
6
+ }
7
+
8
+ // theme name
9
+ if( ! defined( 'THEME_NAME' ) ){
10
+ $theme_data = wp_get_theme();
11
+ define( 'THEME_NAME', $theme_data->Name );
12
+ }
13
+
14
+
15
+ define( 'AUXPFO_VERSION' , '0.7.0' );
16
+
17
+ define( 'AUXPFO_SLUG' , 'auxin-portfolio' );
18
+
19
+
20
+ define( 'AUXPFO_DIR' , dirname( plugin_dir_path( __FILE__ ) ) );
21
+ define( 'AUXPFO_URL' , plugins_url( '', plugin_dir_path( __FILE__ ) ) );
22
+ define( 'AUXPFO_BASE_NAME' , plugin_basename( AUXPFO_DIR ) . '/auxin-portfolio.php' ); // auxin-portfolio/auxin-portfolio.php
23
+
24
+
25
+ define( 'AUXPFO_ADMIN_DIR' , AUXPFO_DIR . '/admin' );
26
+ define( 'AUXPFO_ADMIN_URL' , AUXPFO_URL . '/admin' );
27
+
28
+ define( 'AUXPFO_INC_DIR' , AUXPFO_DIR . '/includes' );
29
+ define( 'AUXPFO_INC_URL' , AUXPFO_URL . '/includes' );
30
+
31
+ define( 'AUXPFO_PUB_DIR' , AUXPFO_DIR . '/public' );
32
+ define( 'AUXPFO_PUB_URL' , AUXPFO_URL . '/public' );
includes/elements/recent-portfolios.php ADDED
@@ -0,0 +1,933 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Code highlighter element
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
+ function auxin_get_recent_portfolios_master_array( $master_array ) {
14
+
15
+ $categories = get_terms( array( 'taxonomy' => 'portfolio-cat',
16
+ 'orderby' => 'count',
17
+ 'hide_empty' => true
18
+ ));
19
+
20
+ $categories_list = array( '' => __('All Categories', '' ) ) ;
21
+ foreach ( $categories as $key => $value ) {
22
+ // $categories_list[$value->term_id] = $value->name;
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,
33
+ 'is_widget' => false,
34
+ 'is_shortcode' => true,
35
+ 'is_so' => true,
36
+ 'is_vc' => true,
37
+ 'category' => THEME_NAME,
38
+ 'group' => '',
39
+ 'admin_enqueue_js' => '',
40
+ 'admin_enqueue_css' => '',
41
+ 'front_enqueue_js' => '',
42
+ 'front_enqueue_css' => '',
43
+ 'icon' => 'auxin-element auxin-grid',
44
+ 'custom_markup' => '',
45
+ 'js_view' => '',
46
+ 'html_template' => '',
47
+ 'deprecated' => '',
48
+ 'content_element' => '',
49
+ 'as_parent' => '',
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' => true,
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' => 'dropdown',
72
+ 'def_value' => '',
73
+ 'holder' => 'dropdown',
74
+ 'class' => 'cat',
75
+ 'value' => $categories_list,
76
+ 'admin_label' => true,
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
+ 'def_value' => '',
88
+ 'holder' => 'textfield',
89
+ 'class' => 'num',
90
+ 'admin_label' => true,
91
+ 'dependency' => '',
92
+ 'weight' => '',
93
+ 'group' => '' ,
94
+ 'edit_field_class' => ''
95
+ ),
96
+
97
+ array(
98
+ 'heading' => __('Only portfolios',AUXELS_DOMAIN ),
99
+ '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).', AUXELS_DOMAIN ),
100
+ 'param_name' => 'only_posts__in',
101
+ 'type' => 'textfield',
102
+ 'value' => '',
103
+ 'holder' => 'textfield',
104
+ 'class' => '',
105
+ 'admin_label' => true,
106
+ 'dependency' => '',
107
+ 'weight' => '',
108
+ 'group' => '' ,
109
+ 'edit_field_class' => ''
110
+ ),
111
+ array(
112
+ 'heading' => __('Include portfolios',AUXELS_DOMAIN ),
113
+ '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)', AUXELS_DOMAIN ),
114
+ 'param_name' => 'include',
115
+ 'type' => 'textfield',
116
+ 'value' => '',
117
+ 'holder' => 'textfield',
118
+ 'class' => '',
119
+ 'admin_label' => true,
120
+ 'dependency' => '',
121
+ 'weight' => '',
122
+ 'group' => '' ,
123
+ 'edit_field_class' => ''
124
+ ),
125
+ array(
126
+ 'heading' => __('Exclude posts',AUXELS_DOMAIN ),
127
+ '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)', AUXELS_DOMAIN ),
128
+ 'param_name' => 'exclude',
129
+ 'type' => 'textfield',
130
+ 'value' => '',
131
+ 'holder' => 'textfield',
132
+ 'class' => '',
133
+ 'admin_label' => true,
134
+ 'dependency' => '',
135
+ 'weight' => '',
136
+ 'group' => '' ,
137
+ 'edit_field_class' => ''
138
+ ),
139
+ array(
140
+ 'heading' => __('Order by', AUXELS_DOMAIN),
141
+ 'description' => '',
142
+ 'param_name' => 'order_by',
143
+ 'type' => 'dropdown',
144
+ 'def_value' => 'menu_order date',
145
+ 'holder' => 'dropdown',
146
+ 'class' => 'order_by',
147
+ 'value' => array (
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' => __('Order', ''),
167
+ 'description' => '',
168
+ 'param_name' => 'order',
169
+ 'type' => 'dropdown',
170
+ 'def_value' => 'DESC',
171
+ 'holder' => 'dropdown',
172
+ 'class' => 'order',
173
+ 'value' =>array (
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' => true,
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' => 'dropdown',
204
+ 'class' => 'num',
205
+ 'value' => array(
206
+ 'grid' => 'Grid',
207
+ 'masonry' => 'Masonry',
208
+ 'tiles' => 'Tiles'
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' => 'dropdown',
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' => true,
246
+ 'dependency' => array(
247
+ 'element' => 'layout',
248
+ 'value' => array( 'grid' )
249
+ ),
250
+ 'weight' => '',
251
+ 'group' => '' ,
252
+ 'edit_field_class' => ''
253
+ ),
254
+ array(
255
+ 'heading' => __('Exclude portfolios without media',AUXELS_DOMAIN ),
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' => 'dropdown',
275
+ 'admin_label' => false,
276
+ 'dependency' => array(
277
+ 'element' => 'layout',
278
+ 'value' => array( 'grid', 'masonry' )
279
+ ),
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 item type','' ),
294
+ 'description' => '',
295
+ 'param_name' => 'tiles_item_style',
296
+ 'type' => 'dropdown',
297
+ 'def_value' => 'overlay',
298
+ 'holder' => 'dropdown',
299
+ 'admin_label' => false,
300
+ 'dependency' => array(
301
+ 'element' => 'layout',
302
+ 'value' => array( 'tiles' )
303
+ ),
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' => true,
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' => true,
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' => true,
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' => 'dropdown',
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
+ ),
389
+ 'dependency' => array(
390
+ 'element' => 'show_filters',
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' => 'dropdown',
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' => 'dropdown',
430
+ 'class' => 'display_like',
431
+ 'admin_label' => 1,
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' => true,
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' => 'textfield',
460
+ 'class' => '',
461
+ 'admin_label' => true,
462
+ 'dependency' => array(
463
+ 'element' => 'deeplink',
464
+ 'value' => '1'
465
+ ),
466
+ 'weight' => '',
467
+ 'group' => '' ,
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' => true,
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' => 'textfield',
488
+ 'class' => '',
489
+ 'admin_label' => true,
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' => 'textfield',
505
+ 'class' => '',
506
+ 'admin_label' => true,
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' => 'dropdown',
522
+ 'class' => 'num',
523
+ 'value' => array(
524
+ '1' => '1' , '2' => '2' , '3' => '3' ,
525
+ '4' => '4' , '5' => '5' , '6' => '6'
526
+ ),
527
+ 'admin_label' => true,
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' => 'dropdown',
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' => true,
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' => 'dropdown',
565
+ 'class' => 'num',
566
+ 'value' => array(
567
+ '1' => '1' , '2' => '2', '3' => '3'
568
+ ),
569
+ 'admin_label' => true,
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' => 'textfield',
586
+ 'class' => 'extra_classes',
587
+ 'admin_label' => true,
588
+ 'dependency' => '',
589
+ 'weight' => '',
590
+ 'group' => '',
591
+ 'edit_field_class' => ''
592
+ )
593
+ )
594
+ );
595
+
596
+ return $master_array;
597
+ }
598
+
599
+ add_filter( 'auxin_master_array_shortcodes', 'auxin_get_recent_portfolios_master_array', 10, 1 );
600
+
601
+
602
+ /**
603
+ * Element without loop and column
604
+ * The front-end output of this element is returned by the following function
605
+ *
606
+ * @param array $atts The array containing the parsed values from shortcode, it should be same as defined params above.
607
+ * @param string $shortcode_content The shorcode content
608
+ * @return string The output of element markup
609
+ */
610
+ function auxin_widget_recent_portfolios_grid_callback( $atts, $shortcode_content = null ){
611
+
612
+ global $aux_content_width;
613
+
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' => 'menu_order date',
626
+ 'order' => 'desc',
627
+ 'exclude_without_media' => 0,
628
+ 'display_like' => true,
629
+ 'deeplink' => false,
630
+ 'deeplink_slug' => uniqid('portfolio-'),
631
+ 'show_filters' => 1,
632
+ 'filter_by' => 'portfolio-cat',
633
+ 'filter_style' => 'aux-slideup',
634
+ 'filter_align' => 'aux-left',
635
+ 'item_style' => 'classic',
636
+ 'tiles_item_style' => 'overlay',
637
+ 'paginate' => 1,
638
+ 'perpage' => 10,
639
+ 'show_title' => 1,
640
+ 'show_info' => 1,
641
+ 'image_aspect_ratio' => 0.75,
642
+ 'space' => 30,
643
+ 'desktop_cnum' => 4,
644
+ 'tablet_cnum' => 'inherit',
645
+ 'phone_cnum' => '1',
646
+ 'layout' => 'grid',
647
+ 'tag' => '',
648
+ 'extra_classes' => '',
649
+ 'custom_el_id' => '',
650
+ 'reset_query' => true,
651
+ 'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
652
+ 'wp_query_args' => array(), // additional wp_query args
653
+ 'base_class' => 'aux-widget-recent-portfolios'
654
+ );
655
+
656
+ $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
657
+ extract( $result['parsed_atts'] );
658
+
659
+ ob_start();
660
+
661
+ global $wp_query;
662
+
663
+ if( ! $use_wp_query ) {
664
+ // create wp_query to get latest items -----------
665
+ $args = array(
666
+ 'post_type' => 'portfolio',
667
+ 'orderby' => $order_by,
668
+ 'order' => $order,
669
+ 'offset' => $offset,
670
+ 'paged' => $paged,
671
+ 'cat' => $cat,
672
+ 'post_status' => 'publish',
673
+ 'posts_per_page' => $posts_per_page,
674
+ 'ignore_sticky_posts' => 1,
675
+
676
+ 'include_posts__in' => $include, // include posts in this list
677
+ 'posts__not_in' => $exclude, // exclude posts in this list
678
+ 'posts__in' => $only_posts__in, // only posts in this list
679
+
680
+ 'exclude_without_media' => $exclude_without_media
681
+ );
682
+
683
+ // ---------------------------------------------------------------------
684
+
685
+ // add the additional query args if available
686
+ if( $wp_query_args ){
687
+ $args = wp_parse_args( $args, $wp_query_args );
688
+ }
689
+
690
+ // pass the args through the auxin query parser
691
+ $wp_query = new WP_Query( auxin_parse_query_args( $args ) );
692
+ }
693
+
694
+ $post_counter = 0;
695
+ $items_classes = '';
696
+ $isoxin_attrs = '';
697
+ $item_classes = '';
698
+ $isotope_id = uniqid();
699
+ $phone_break_point = 767;
700
+ $crop = true;
701
+ $isotop_layout = 'fitRows';
702
+ $is_tiles = 'tiles' == $layout;
703
+
704
+ // widget header ------------------------------
705
+ echo $result['widget_header'];
706
+ echo $result['widget_title'];
707
+
708
+ if ( 'masonry' == $layout ) {
709
+ $crop = false;
710
+ $isotop_layout = 'masonry';
711
+ } elseif ( $is_tiles ) {
712
+ // in tiles we use tiles_item_style instead
713
+ $item_style = $tiles_item_style;
714
+ $isotop_layout = 'packery';
715
+ $space = 0;
716
+ }
717
+
718
+ // check item style and define related variables
719
+ switch ( $item_style ) {
720
+ case 'classic-lightbox':
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 = 'portfolio-column.php';
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 = 'portfolio-column.php';
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 = 'portfolio-column-overlay.php';
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 = 'portfolio-column-overlay.php';
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 = 'portfolio-column-overlay.php';
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 = 'portfolio-column-overlay.php';
755
+ break;
756
+ default:
757
+ $frame_effect_classes = '';
758
+ $hover_classes = '';
759
+ $show_lightbox = false;
760
+ $tamplate_file = 'portfolio-column.php';
761
+ }
762
+
763
+ // generate columns class
764
+ if ( $is_tiles ) {
765
+ $items_classes = 'aux-tiles-layout aux-isotope-animated aux-portfolio-columns';
766
+ $column_media_width = auxin_get_content_column_width( 4, $space );
767
+ } else {
768
+ $tablet_cnum = ('inherit' == $tablet_cnum ) ? $desktop_cnum : $tablet_cnum ;
769
+ // $tablet_cnum = 'inherit' != $tablet_cnum ? $tablet_cnum : $desktop_cnum;
770
+ // $phone_cnum = 'inherit' != $phone_cnum ? $phone_cnum : $tablet_cnum;
771
+
772
+ $items_classes = 'aux-isotope-layout aux-layout-grid aux-isotope-animated aux-no-gutter aux-portfolio-columns aux-row';
773
+ $items_classes .= ' aux-de-col' . $desktop_cnum;
774
+ $items_classes .= ' aux-tb-col' . $tablet_cnum;
775
+ $items_classes .= ' aux-mb-col' . $phone_cnum;
776
+ $column_media_width = auxin_get_content_column_width( $desktop_cnum, 15 );
777
+ $column_media_height = 'masonry' == $layout ? 0 : $column_media_width * $image_aspect_ratio;
778
+ }
779
+
780
+ if ( $show_lightbox ) {
781
+ $items_classes .= ' aux-lightbox-gallery';
782
+ }
783
+
784
+ $isoxin_attrs = 'data-lazyload="true" data-space="'.$space.'" data-pagination="'. ( $paginate ? 'true' : 'false' ) . '" data-deeplink="'. ( $deeplink ? 'true' : 'false' ) . '"';
785
+ $isoxin_attrs .= 'data-slug="' . $deeplink_slug . '" data-perpage="' . $perpage . '" data-layout="' . $isotop_layout . '"';
786
+
787
+ $have_posts = $wp_query->have_posts();
788
+
789
+ if( $have_posts ){
790
+
791
+ // show filters
792
+ if ( $show_filters ) {
793
+
794
+ $terms = get_terms(
795
+ array(
796
+ 'taxonomy' => $filter_by,
797
+ 'orderby' => 'count',
798
+ 'hide_empty' => true
799
+ )
800
+ );
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
+ }
808
+ ?></ul></div><?php
809
+ }
810
+ }
811
+
812
+ ?>
813
+ <div id="<?php echo $isotope_id; ?>" class="<?php echo $items_classes?>" <?php echo $isoxin_attrs ?>>
814
+ <div class="aux-items-loading">
815
+ <div class="aux-loading-loop">
816
+ <svg class="aux-circle" width="100%" height="100%" viewBox="0 0 42 42">
817
+ <circle class="aux-stroke-bg" r="20" cx="21" cy="21" fill="none"></circle>
818
+ <circle class="aux-progress" r="20" cx="21" cy="21" fill="none" transform="rotate(-90 21 21)"></circle>
819
+ </svg>
820
+ </div>
821
+ </div>
822
+
823
+ <?php
824
+ while ( $wp_query->have_posts() ) {
825
+
826
+ // break the loop if it is reached to the limit
827
+ if ( $num == '' || $post_counter < $num ) {
828
+ $post_counter ++;
829
+ } else {
830
+ break;
831
+ }
832
+
833
+ $wp_query->the_post();
834
+ $post = $wp_query->post;
835
+ $item_classes = '';
836
+
837
+ if ( $is_tiles ) {
838
+ $item_pattern_info = auxin_get_tile_pattern( 'default', $post_counter - 1, $column_media_width );
839
+ $post_vars = auxpfo_get_portfolio_config(
840
+ $post,
841
+ array(
842
+ 'request_from' => 'archive',
843
+ 'media_width' => $phone_break_point,
844
+ 'media_size' => $item_pattern_info['size'],
845
+ 'upscale_image' => true,
846
+ 'preloadable_image' => true,
847
+ 'crop' => true,
848
+ 'add_image_hw' => false, // whether add width and height attr or not
849
+ 'image_sizes' => $item_pattern_info['image_sizes'],
850
+ 'srcset_sizes' => $item_pattern_info['srcset_sizes']
851
+ )
852
+ );
853
+
854
+ $item_classes = $item_pattern_info['classname'];
855
+ $item_inner_classes = 'aux-keep-aspect';
856
+ } else {
857
+ $post_vars = auxpfo_get_portfolio_config(
858
+ $post,
859
+ array(
860
+ 'request_from' => 'archive',
861
+ 'media_width' => $phone_break_point,
862
+ 'media_size' => array( 'width' => $column_media_width, 'height' => $column_media_height ),
863
+ 'upscale_image' => true,
864
+ 'preloadable_image' => true,
865
+ 'crop' => $crop,
866
+ 'add_image_hw' => true, // whether add width and height attr or not
867
+ 'image_sizes' => array(
868
+ array( 'min' => '', 'max' => '767px', 'width' => '80vw' ),
869
+ array( 'min' => '768px', 'max' => '992px', 'width' => '40vw' ),
870
+ array( 'min' => '' , 'max' => '', 'width' => round( $column_media_width ) .'px' )
871
+ ),
872
+ 'srcset_sizes' => array(
873
+ array( 'width' => $column_media_width, 'height' => $column_media_height ),
874
+ array( 'width' => 2 * $column_media_width, 'height' => 2 * $column_media_height ),
875
+ array( 'width' => 4 * $column_media_width, 'height' => 4 * $column_media_height )
876
+ )
877
+ )
878
+ );
879
+ $item_classes = 'aux-col';
880
+ $item_inner_classes = '';
881
+ }
882
+
883
+ extract( $post_vars );
884
+
885
+ if ( !$has_attach ) {
886
+ $post_counter --;
887
+ continue;
888
+ }
889
+
890
+ if ( $show_filters ) {
891
+ $filters = wp_get_post_terms( $post->ID, $filter_by );
892
+ foreach ( $filters as $filter ) {
893
+ $item_classes .= ' iso-filter-'. $filter->name;
894
+ }
895
+ }
896
+
897
+ // lightbox attributes
898
+ if ( $show_lightbox ) {
899
+ $attach_id = get_post_thumbnail_id($post->ID);
900
+ $image_primary_meta = wp_get_attachment_metadata( $attach_id );
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
+ ?> <div class="aux-iso-item aux-iso-hidden aux-loading <?php echo $item_classes; ?>"> <?php
907
+ } else {
908
+ ?> <div class="aux-iso-item aux-loading <?php echo $item_classes; ?>"> <?php
909
+ }
910
+ include( AUXPFO_DIR . '/public/templates/theme-parts/entry/' . $tamplate_file );
911
+ ?> </div> <?php
912
+ }
913
+
914
+ ?>
915
+ </div>
916
+ <?php
917
+ }
918
+
919
+ if( $reset_query ){
920
+ wp_reset_query();
921
+ }
922
+
923
+ // return false if no result found
924
+ if( ! $have_posts ){
925
+ ob_get_clean();
926
+ return false;
927
+ }
928
+
929
+ // widget footer ------------------------------
930
+ echo $result['widget_footer'];
931
+
932
+ return ob_get_clean();
933
+ }
includes/general-functions.php ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ *
5
+ * @package Auxin
6
+ * @license LICENSE.txt
7
+ * @author
8
+ * @link http://averta.net/phlox/
9
+ * @copyright (c) 2010-2017
10
+ */
11
+
12
+
13
+ /**
14
+ * Get template part.
15
+ *
16
+ * @param mixed $slug
17
+ * @param string $name (default: '')
18
+ */
19
+ function auxpfo_get_template_part( $slug, $name = '' ) {
20
+ $template = '';
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
+
46
+ /**
47
+ * Whether a plugin is active or not
48
+ *
49
+ * @param string $plugin_basename plugin directory name and mail file address
50
+ * @return bool True if plugin is active and FALSE otherwise
51
+ */
52
+ if( ! function_exists( 'auxin_is_plugin_active' ) ){
53
+ function auxin_is_plugin_active( $plugin_basename ){
54
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
55
+ return is_plugin_active( $plugin_basename );
56
+ }
57
+ }
58
+
59
+
60
+ /**
61
+ * Generates and returns markup for like button base on features of wp_unlike plugin
62
+ *
63
+ * @param array $args The list of setting for this element
64
+ * @return string The markup for like button
65
+ */
66
+ if( ! function_exists( 'aunin_wp_ulike_plugin_btn' ) ){
67
+
68
+ function aunin_wp_ulike_plugin_btn( $args ){
69
+
70
+ if( ! function_exists('wp_ulike') ){
71
+ return;
72
+ }
73
+
74
+ global $post,$wp_ulike_class,$wp_user_IP;
75
+
76
+ $get_like = get_post_meta( $post->ID, '_liked', true );
77
+
78
+ $defaults = array(
79
+ 'post_id' => $post->ID,
80
+ 'get_like' => empty( $get_like ) ? 0 : $get_like,
81
+ 'user_id' => $wp_ulike_class->get_reutrn_id(),
82
+ 'theme_class' => wp_ulike_get_setting('wp_ulike_posts', 'theme')
83
+ );
84
+
85
+ $parsed_args = wp_parse_args( $args, $defaults );
86
+ extract( $parsed_args );
87
+
88
+
89
+ $only_registered_users = wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users');
90
+
91
+ if( 1 != $only_registered_users || ( 1 == $only_registered_users && is_user_logged_in() ) ){
92
+
93
+ $data = array(
94
+ "id" => $post_id, //Post ID
95
+ "user_id" => $user_id, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
96
+ "user_ip" => $wp_user_IP, //User IP
97
+ "get_like" => $get_like, //Number Of Likes
98
+ "method" => 'likeThis', //JavaScript method
99
+ "setting" => 'wp_ulike_posts', //Setting Key
100
+ "type" => 'post', //Function type (post/process)
101
+ "table" => 'ulike', //posts table
102
+ "column" => 'post_id', //ulike table column name
103
+ "key" => '_liked', //meta key
104
+ "cookie" => 'liked-' //Cookie Name
105
+ );
106
+
107
+ // call wp_get_ulike function from class-ulike calss
108
+ $counter = $wp_ulike_class->wp_get_ulike( $data );
109
+
110
+ $wp_ulike = '<div id="wp-ulike-'.$post_id.'" class="wpulike '.$theme_class.'">';
111
+ $wp_ulike .= '<div class="counter">'.$counter.'</div>';
112
+ $wp_ulike .= '</div>';
113
+ $wp_ulike .= $wp_ulike_class->get_liked_users( $post_id,'ulike','post_id','wp_ulike_posts' );
114
+
115
+ return $wp_ulike;
116
+ }
117
+
118
+ }
119
+
120
+ }
includes/general-hooks.php ADDED
@@ -0,0 +1,1168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * General WordPress Hooks
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
+
14
+
15
+ /**
16
+ * Outputs theme options for portfolio
17
+ *
18
+ *
19
+ * @package Auxin
20
+ * @license LICENSE.txt
21
+ * @author
22
+ * @link http://averta.net/phlox/
23
+ * @copyright (c) 2010-2017
24
+ */
25
+ function auxin_define_portfolio_theme_options( $fields_sections_list ){
26
+
27
+ $options = $fields_sections_list['fields' ];
28
+ $sections = $fields_sections_list['sections'];
29
+
30
+ /* ---------------------------------------------------------------------------------------------------
31
+ Portfolio Section
32
+ --------------------------------------------------------------------------------------------------- */
33
+
34
+ // Portfolio section ==================================================================
35
+
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
+
44
+ // Sub section - Portfolio Single Page -------------------------------
45
+
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
+ ),
74
+ 'default' => 'right',
75
+ 'type' => 'radio-image',
76
+ 'post_js' => '$(".single-portfolio main.aux-single .aux-primary .type-portfolio").alterClass( "aux-side-*", "aux-side-" + to );',
77
+ );
78
+
79
+ $options[] = array(
80
+ 'title' => __('Sticky Side Area', ''),
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',
84
+ 'dependency' => array(
85
+ array(
86
+ 'id' => 'portfolio_single_side_pos',
87
+ 'value' => array('right', 'left'),
88
+ 'operator'=> ''
89
+ )
90
+ ),
91
+ 'transport' => 'refresh',
92
+ 'default' => '0',
93
+ 'type' => 'switch'
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
+ ),
133
+ 'default' => 'right-sidebar',
134
+ 'type' => 'radio-image'
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',
142
+ 'dependency' => array(
143
+ array(
144
+ 'id' => 'portfolio_single_sidebar_position',
145
+ 'value' => 'no-sidebar',
146
+ 'operator'=> '!='
147
+ )
148
+ ),
149
+ 'transport' => 'postMessage',
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
+ ),
165
+ 'type' => 'radio-image',
166
+ 'default' => 'border'
167
+ );
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
+ // ),
186
+ // 'transport' => 'postMessage',
187
+ // 'post_js' => '$(".single-portfolio .aux-primary .hentry").toggleClass( "aux-narrow-context", "narrow" == to );',
188
+ // 'default' => 'simple',
189
+ // 'type' => 'radio-image'
190
+ // );
191
+
192
+ $options[] = array(
193
+ 'title' => __( 'Display Next & Previous portfolios', '' ),
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',
197
+ 'dependency' => '',
198
+ 'transport' => 'refresh',
199
+ // 'post_js' => '$(".single .aux-next-prev-posts").toggle( to );',
200
+ 'default' => '1',
201
+ 'type' => 'switch'
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(
210
+ array(
211
+ 'id' => 'show_portfolio_single_next_prev_nav',
212
+ 'value' => array('1'),
213
+ 'operator'=> ''
214
+ )
215
+ ),
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
+ ),
243
+ 'type' => 'radio-image',
244
+ 'default' => 'minimal'
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',
252
+ 'dependency' => '',
253
+ 'transport' => 'refresh',
254
+ 'default' => '0',
255
+ 'type' => 'switch'
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',
263
+ 'dependency' => '',
264
+ 'transport' => 'refresh',
265
+ 'default' => '0',
266
+ 'type' => 'switch'
267
+ );
268
+
269
+
270
+ // Sub section - related portfolios section -------------------------------
271
+
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',
285
+ 'dependency' => '',
286
+ 'transport' => 'postMessage',
287
+ 'post_js' => '$(".single-portfolio .aux-widget-related-posts").toggle( to );',
288
+ 'default' => '1',
289
+ 'type' => 'switch'
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(
298
+ array(
299
+ 'id' => 'show_portfolio_related_posts',
300
+ 'value' => array('1'),
301
+ 'operator'=> ''
302
+ )
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(
316
+ array(
317
+ 'id' => 'show_portfolio_related_posts',
318
+ 'value' => array('1'),
319
+ 'operator'=> ''
320
+ )
321
+ ),
322
+ 'transport' => 'refresh',
323
+ 'choices' => array(
324
+ 'grid' => 'Grid',
325
+ 'carousel' => 'Carousel'
326
+ ),
327
+ 'type' => 'select',
328
+ 'default' => 'grid'
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',
336
+ 'dependency' => array(
337
+ array(
338
+ 'id' => 'show_portfolio_related_posts',
339
+ 'value' => array('1'),
340
+ 'operator'=> ''
341
+ )
342
+ ),
343
+ 'transport' => 'refresh',
344
+ 'type' => 'select',
345
+ 'choices' => array(
346
+ '1' => '1', '2' => '2', '3' => '3',
347
+ ),
348
+ 'default' => '3'
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',
356
+ 'dependency' => array(
357
+ array(
358
+ 'id' => 'show_portfolio_related_posts',
359
+ 'value' => array('1'),
360
+ 'operator'=> ''
361
+ )
362
+ ),
363
+ 'transport' => 'postMessage',
364
+ 'post_js' => '$(".single-portfolio .aux-widget-related-posts").toggleClass( "aux-text-align-center", to );',
365
+ 'default' => '0',
366
+ 'type' => 'switch'
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',
374
+ 'dependency' => array(
375
+ array(
376
+ 'id' => 'show_portfolio_related_posts',
377
+ 'value' => array('1'),
378
+ 'operator'=> ''
379
+ )
380
+ ),
381
+ 'transport' => 'postMessage',
382
+ 'post_js' => '$(".single-portfolio .aux-widget-related-posts").closest(".container").toggleClass( "aux-fold", ! to );',
383
+ 'default' => '0',
384
+ 'type' => 'switch'
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',
392
+ 'dependency' => array(
393
+ array(
394
+ 'id' => 'show_portfolio_related_posts',
395
+ 'value' => array('1'),
396
+ 'operator'=> ''
397
+ )
398
+ ),
399
+ 'transport' => 'refresh',
400
+ // 'post_js' => '$(".single-portfolio .aux-widget-related-posts > .aux-row").toggleClass( "aux-no-gutter", to );',
401
+ 'default' => '0',
402
+ 'type' => 'switch'
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',
410
+ 'dependency' => array(
411
+ array(
412
+ 'id' => 'show_portfolio_related_posts',
413
+ 'value' => array('1'),
414
+ 'operator'=> ''
415
+ )
416
+ ),
417
+ 'transport' => 'refresh',
418
+ // 'post_js' => '$(".single-portfolio .aux-widget-related-posts .entry-tax").toggle( to );',
419
+ 'default' => '0',
420
+ 'type' => 'switch'
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(),
429
+ 'default' => home_url(),
430
+ 'type' => 'text' );*/
431
+
432
+
433
+
434
+ // Sub section - portfolio Archive Page -------------------------------
435
+
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(),
450
+ 'transport' => 'refresh',
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
+ ),
470
+ 'type' => 'radio-image',
471
+ 'default' => 'grid-1'
472
+ );
473
+
474
+ $options[] = array(
475
+ 'title' => __('Image Aspect Ratio', ''),
476
+ 'description' => '',
477
+ 'id' => 'portfolio_image_aspect_ratio',
478
+ 'section' => 'portfolio-setting-section-archive',
479
+ 'dependency' => array(
480
+ array(
481
+ 'id' => 'portfolio_index_template_type',
482
+ 'value' => array('grid-1'),
483
+ 'operator'=> '=='
484
+ )
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(
503
+ array(
504
+ 'id' => 'portfolio_index_template_type',
505
+ 'value' => array('grid-1', 'masonry-1'),
506
+ 'operator'=> '=='
507
+ )
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(
529
+ array(
530
+ 'id' => 'portfolio_index_template_type',
531
+ 'value' => array('tiles-1'),
532
+ 'operator'=> '=='
533
+ )
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(
552
+ array(
553
+ 'id' => 'portfolio_index_template_type',
554
+ 'value' => array('grid-1', 'masonry-1'),
555
+ 'operator'=> '=='
556
+ )
557
+ ),
558
+ 'transport' => 'refresh',
559
+ 'default' => '30',
560
+ 'type' => 'text'
561
+ );
562
+
563
+
564
+
565
+ $options[] = array(
566
+ 'title' => __('Number of Columns', ''),
567
+ 'description' => '',
568
+ 'id' => 'portfolio_archive_column_number',
569
+ 'section' => 'portfolio-setting-section-archive',
570
+ 'dependency' => array(
571
+ array(
572
+ 'id' => 'portfolio_index_template_type',
573
+ 'value' => array('grid-1', 'masonry-1'),
574
+ 'operator'=> '=='
575
+ )
576
+ ),
577
+ 'type' => 'select',
578
+ 'choices' => array(
579
+ '1' => '1', '2' => '2', '3' => '3',
580
+ '4' => '4', '5' => '5', '6' => '6'
581
+ ),
582
+ 'transport' => 'refresh',
583
+ 'default' => '4',
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',
591
+ 'dependency' => array(
592
+ array(
593
+ 'id' => 'portfolio_index_template_type',
594
+ 'value' => array('grid-1', 'masonry-1'),
595
+ 'operator'=> '=='
596
+ )
597
+ ),
598
+ 'type' => 'select',
599
+ 'choices' => array(
600
+ 'inherit' => 'Inherited from larger',
601
+ '1' => '1', '2' => '2', '3' => '3',
602
+ '4' => '4', '5' => '5', '6' => '6'
603
+ ),
604
+ 'transport' => 'refresh',
605
+ 'default' => 'inherit',
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',
613
+ 'dependency' => array(
614
+ array(
615
+ 'id' => 'portfolio_index_template_type',
616
+ 'value' => array('grid-1', 'masonry-1'),
617
+ 'operator'=> '=='
618
+ )
619
+ ),
620
+ 'type' => 'select',
621
+ 'choices' => array(
622
+ '1' => '1' , '2' => '2', '3' => '3'
623
+ ),
624
+ 'transport' => 'refresh',
625
+ 'default' => '1',
626
+ );
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(
635
+ array(
636
+ 'id' => 'portfolio_index_template_type',
637
+ 'value' => array('tiles-1'),
638
+ 'operator'=> '!='
639
+ )
640
+ ),
641
+ 'transport' => 'refresh',
642
+ 'default' => '1',
643
+ 'type' => 'switch'
644
+ );
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
+ ),
683
+ 'dependency' => array(),
684
+ 'post_js' => '$(".blog .aux-archive, main.aux-home").alterClass( "*-sidebar", to );',
685
+ 'type' => 'radio-image',
686
+ 'transport' => 'refresh',
687
+ 'default' => 'no-siderbar'
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(
696
+ array(
697
+ 'id' => 'portfolio_index_sidebar_position',
698
+ 'value' => 'no-sidebar',
699
+ 'operator'=> '!='
700
+ )
701
+ ),
702
+ 'transport' => 'postMessage',
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
+ ),
718
+ 'type' => 'radio-image',
719
+ 'default' => 'border'
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(),
728
+ 'transport' => 'refresh',
729
+ 'default' => '12',
730
+ 'type' => 'text'
731
+ );
732
+
733
+
734
+ // Sub section - Portfolio Taxonomy Page -------------------------------
735
+
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',
748
+ 'dependency' => array(),
749
+ 'transport' => 'refresh',
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
+ ),
769
+ 'type' => 'radio-image',
770
+ 'default' => 'grid-1'
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',
778
+ 'dependency' => array(
779
+ array(
780
+ 'id' => 'portfolio_taxonomy_template_type',
781
+ 'value' => array('grid-1'),
782
+ 'operator'=> '=='
783
+ )
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(
802
+ array(
803
+ 'id' => 'portfolio_taxonomy_template_type',
804
+ 'value' => array('grid-1', 'masonry-1'),
805
+ 'operator'=> '=='
806
+ )
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(
828
+ array(
829
+ 'id' => 'portfolio_taxonomy_template_type',
830
+ 'value' => array('tiles-1'),
831
+ 'operator'=> '=='
832
+ )
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(
851
+ array(
852
+ 'id' => 'portfolio_taxonomy_template_type',
853
+ 'value' => array('grid-1', 'masonry-1'),
854
+ 'operator'=> '=='
855
+ )
856
+ ),
857
+ 'transport' => 'refresh',
858
+ 'default' => '30',
859
+ 'type' => 'text'
860
+ );
861
+
862
+ $options[] = array(
863
+ 'title' => __('Number of Columns', ''),
864
+ 'description' => '',
865
+ 'id' => 'portfolio_taxonomy_column_number',
866
+ 'section' => 'portfolio-setting-section-taxonomy',
867
+ 'dependency' => array(
868
+ array(
869
+ 'id' => 'portfolio_taxonomy_template_type',
870
+ 'value' => array('grid-1', 'masonry-1'),
871
+ 'operator'=> '=='
872
+ )
873
+ ),
874
+ 'type' => 'select',
875
+ 'choices' => array(
876
+ '1' => '1', '2' => '2', '3' => '3',
877
+ '4' => '4', '5' => '5', '6' => '6'
878
+ ),
879
+ 'transport' => 'refresh',
880
+ 'default' => '4',
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',
888
+ 'dependency' => array(
889
+ array(
890
+ 'id' => 'portfolio_taxonomy_template_type',
891
+ 'value' => array('grid-1', 'masonry-1'),
892
+ 'operator'=> '=='
893
+ )
894
+ ),
895
+ 'type' => 'select',
896
+ 'choices' => array(
897
+ 'inherit' => 'Inherited from larger',
898
+ '1' => '1', '2' => '2', '3' => '3',
899
+ '4' => '4', '5' => '5', '6' => '6'
900
+ ),
901
+ 'transport' => 'refresh',
902
+ 'default' => 'inherit',
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',
910
+ 'dependency' => array(
911
+ array(
912
+ 'id' => 'portfolio_taxonomy_template_type',
913
+ 'value' => array('grid-1', 'masonry-1'),
914
+ 'operator'=> '=='
915
+ )
916
+ ),
917
+ 'type' => 'select',
918
+ 'choices' => array(
919
+ '1' => '1' , '2' => '2', '3' => '3'
920
+ ),
921
+ 'transport' => 'refresh',
922
+ 'default' => '1',
923
+ );
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(
932
+ array(
933
+ 'id' => 'portfolio_taxonomy_template_type',
934
+ 'value' => array('tiles-1'),
935
+ 'operator'=> '!='
936
+ ),
937
+ // @TODO: relation on this dependency is not working
938
+ // array(
939
+ // 'id' => 'portfolio_taxonomy_grid_item_type',
940
+ // 'value' => array('classic', 'classic-lightbox', 'classic-lightbox-boxed'),
941
+ // 'operator'=> '=='
942
+ // ),
943
+ // 'relation'=> 'and'
944
+
945
+ ),
946
+ 'transport' => 'refresh',
947
+ 'default' => '1',
948
+ 'type' => 'switch'
949
+ );
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',
957
+ 'dependency' => array(),
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
+ ),
989
+ 'type' => 'radio-image',
990
+ 'default' => 'right-siderbar'
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(
999
+ array(
1000
+ 'id' => 'portfolio_taxonomy_sidebar_position',
1001
+ 'value' => 'no-sidebar',
1002
+ 'operator'=> '!='
1003
+ )
1004
+ ),
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
+ ),
1020
+ 'type' => 'radio-image',
1021
+ 'default' => 'border'
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
+ ),
1041
+ 'default' => 'full',
1042
+ 'type' => 'radio-image'
1043
+ );
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' => 'poerfolio-setting-section-taxonomy',
1051
+ 'dependency' => array(
1052
+ array(
1053
+ 'id' => 'post_taxonomy_archive_content_on_listing',
1054
+ 'value' => array('excerpt'),
1055
+ 'operator'=> ''
1056
+ )
1057
+ ),
1058
+ 'transport' => 'refresh',
1059
+ 'default' => '255',
1060
+ 'type' => 'text'
1061
+ );
1062
+
1063
+ // -------------------------------------------------------------------------
1064
+
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"}]'
1099
+ );
1100
+
1101
+ return array( 'fields' => $options, 'sections' => $sections );
1102
+ }
1103
+
1104
+ add_filter( 'auxin_defined_option_fields_sections', 'auxin_define_portfolio_theme_options', 13, 1 );
1105
+
1106
+
1107
+
1108
+ /**
1109
+ * Embed the
1110
+ *
1111
+ * @return [type] [description]
1112
+ */
1113
+ function auxpfo_init_portfolio_post_type_and_metafields(){
1114
+
1115
+ // abort if phlox theme is not enabled
1116
+ if( ! defined('AUXIN_VERSION') ){
1117
+ return;
1118
+ }
1119
+
1120
+ $post_type = 'portfolio';
1121
+ $all_post_types = auxin_get_possible_post_types(true);
1122
+
1123
+ // check if the post type is allowed
1124
+ if( ! empty( $all_post_types[ $post_type ] ) && $all_post_types[ $post_type ] ){
1125
+
1126
+ // Initiate the post type
1127
+ include AUXPFO_INC_DIR . '/classes/class-auxpfo-post-type-portfolio.php';
1128
+
1129
+ $portfolio_instance = new Auxpfo_Post_Type_Portfolio();
1130
+ $portfolio_instance->register_taxonomies();
1131
+
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 );
1139
+ }
1140
+ }
1141
+
1142
+ }
1143
+ add_action( 'init', 'auxpfo_init_portfolio_post_type_and_metafields' );
1144
+
1145
+
1146
+
1147
+
1148
+ /**
1149
+ * Adds a mian css class indicator to body tag
1150
+ *
1151
+ * @param array $classes List of body css classes
1152
+ * @return array The modified list of body css classes
1153
+ */
1154
+ /*
1155
+ function auxpfo_body_class( $classes ) {
1156
+ return $classes;
1157
+ }
1158
+ add_filter( 'body_class', 'auxpfo_body_class' );
1159
+ */
1160
+
1161
+
1162
+ /*-----------------------------------------------------------------------------------*/
1163
+ /* Add SiteOrigin class prefix and custom field classes path
1164
+ /*-----------------------------------------------------------------------------------*/
1165
+
1166
+ // if ( auxin_is_plugin_active( 'so-widgets-bundle/so-widgets-bundle.php') ) {
1167
+
1168
+ // }
includes/general-shortcodes.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+
3
+ /*-----------------------------------------------------------------------------------*/
4
+
includes/index.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // commeon functions
4
+ include_once( 'general-functions.php' );
5
+ include_once( 'general-hooks.php' );
6
+
7
+ // load shortcode files
8
+ include_once( 'general-shortcodes.php' );
9
+
10
+ include_once( 'classes/class-auxpfo-template-loader.php' );
11
+
12
+
13
+ // load elements
14
+ include_once( 'elements/recent-portfolios.php' );
15
+
index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // silence is golden
languages/auxin-portfolio.pot ADDED
@@ -0,0 +1,1697 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 averta.ltd
2
+ #, fuzzy
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Auxin Portfolio\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
7
+ "POT-Creation-Date: 2017-02-25 12:24+0330\n"
8
+ "PO-Revision-Date: 2015-05-21 20:55+0330\n"
9
+ "Last-Translator: FULL NAME <email@example.com>\n"
10
+ "Language-Team: LANGUAGE <info@averta.net >\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Poedit 1.8.11\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
16
+ "esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_ex\n"
17
+ "X-Poedit-Basepath: ..\n"
18
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:12
23
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:17
24
+ msgid "Portfolio Information"
25
+ msgstr ""
26
+
27
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:24
28
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:29
29
+ msgid "Featured Image (Secondary)"
30
+ msgstr ""
31
+
32
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:25
33
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:30
34
+ msgid "Specifies the secondary cover image for this portfolio."
35
+ msgstr ""
36
+
37
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:31
38
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:36
39
+ msgid "Hide featured image."
40
+ msgstr ""
41
+
42
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:32
43
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:37
44
+ msgid ""
45
+ "Enable this option to remove the featured image from single page of this "
46
+ "portfolio. Useful when you intent to display images that vary from the "
47
+ "featured image."
48
+ msgstr ""
49
+
50
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:39
51
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:44
52
+ msgid "Overview"
53
+ msgstr ""
54
+
55
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:40
56
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:45
57
+ msgid "Specifies a short description about the project."
58
+ msgstr ""
59
+
60
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:47
61
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:52
62
+ msgid "Info Layout"
63
+ msgstr ""
64
+
65
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:48
66
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:53
67
+ msgid ""
68
+ "Specifies the alignment of metadata column. (Default: \"right\" for LTR "
69
+ "websites and \"left\" for RTL ones)"
70
+ msgstr ""
71
+
72
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:54
73
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:126
74
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:59
75
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:131
76
+ msgid "Default"
77
+ msgstr ""
78
+
79
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:58
80
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:63
81
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:385
82
+ #: build/auxin-portfolio/includes/general-hooks.php:62
83
+ #: includes/elements/recent-portfolios.php:380 includes/general-hooks.php:52
84
+ msgid "Right"
85
+ msgstr ""
86
+
87
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:62
88
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:67
89
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:377
90
+ #: build/auxin-portfolio/includes/general-hooks.php:66
91
+ #: includes/elements/recent-portfolios.php:372 includes/general-hooks.php:56
92
+ msgid "Left"
93
+ msgstr ""
94
+
95
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:66
96
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:71
97
+ #: build/auxin-portfolio/includes/general-hooks.php:70
98
+ #: includes/general-hooks.php:60
99
+ msgid "Bottom"
100
+ msgstr ""
101
+
102
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:100
103
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:105
104
+ #: build/auxin-portfolio/includes/general-hooks.php:193
105
+ #: includes/general-hooks.php:183
106
+ msgid "Display Next & Previous portfolios"
107
+ msgstr ""
108
+
109
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:101
110
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:106
111
+ #: build/auxin-portfolio/includes/general-hooks.php:194
112
+ #: includes/general-hooks.php:184
113
+ msgid ""
114
+ "Enable it to display links to next and previous portfolios on single "
115
+ "portfolio page."
116
+ msgstr ""
117
+
118
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:107
119
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:166
120
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:179
121
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:192
122
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:24
123
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:59
124
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:79
125
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:100
126
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:120
127
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:140
128
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:160
129
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:112
130
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:171
131
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:184
132
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:197
133
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:29
134
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:64
135
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:84
136
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:105
137
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:125
138
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:145
139
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:165
140
+ msgid "Theme Default"
141
+ msgstr ""
142
+
143
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:108
144
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:167
145
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:180
146
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:193
147
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:25
148
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:101
149
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:121
150
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:141
151
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:161
152
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:113
153
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:172
154
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:185
155
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:198
156
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:30
157
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:106
158
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:126
159
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:146
160
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:166
161
+ msgid "Yes"
162
+ msgstr ""
163
+
164
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:109
165
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:168
166
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:181
167
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:194
168
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:26
169
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:102
170
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:122
171
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:142
172
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:162
173
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:114
174
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:173
175
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:186
176
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:199
177
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:31
178
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:107
179
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:127
180
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:147
181
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:167
182
+ msgid "No"
183
+ msgstr ""
184
+
185
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:114
186
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:119
187
+ #: build/auxin-portfolio/includes/general-hooks.php:205
188
+ #: includes/general-hooks.php:195
189
+ msgid "Skin for Next & Previous Links"
190
+ msgstr ""
191
+
192
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:115
193
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:120
194
+ #: build/auxin-portfolio/includes/general-hooks.php:206
195
+ #: includes/general-hooks.php:196
196
+ msgid "Specifies the skin for next and previous navigation block."
197
+ msgstr ""
198
+
199
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:130
200
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:135
201
+ #: build/auxin-portfolio/includes/general-hooks.php:219
202
+ #: includes/general-hooks.php:209
203
+ msgid "Minimal (default)"
204
+ msgstr ""
205
+
206
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:134
207
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:139
208
+ #: build/auxin-portfolio/includes/general-hooks.php:223
209
+ #: includes/general-hooks.php:213
210
+ msgid "Thumbnail with Arrow"
211
+ msgstr ""
212
+
213
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:138
214
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:143
215
+ #: build/auxin-portfolio/includes/general-hooks.php:227
216
+ #: includes/general-hooks.php:217
217
+ msgid "Thumbnail without Arrow"
218
+ msgstr ""
219
+
220
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:142
221
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:147
222
+ #: build/auxin-portfolio/includes/general-hooks.php:231
223
+ #: includes/general-hooks.php:221
224
+ msgid "Navigation with Light Background"
225
+ msgstr ""
226
+
227
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:146
228
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:151
229
+ #: build/auxin-portfolio/includes/general-hooks.php:235
230
+ #: includes/general-hooks.php:225
231
+ msgid "Navigation with Dark Background"
232
+ msgstr ""
233
+
234
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:150
235
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:155
236
+ #: build/auxin-portfolio/includes/general-hooks.php:239
237
+ #: includes/general-hooks.php:229
238
+ msgid "Sticky Thumbnail with Arrow"
239
+ msgstr ""
240
+
241
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:160
242
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:165
243
+ #: build/auxin-portfolio/includes/general-hooks.php:80
244
+ #: includes/general-hooks.php:70
245
+ msgid "Sticky Side Area"
246
+ msgstr ""
247
+
248
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:161
249
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:166
250
+ msgid "Enable it to stick the side area on page while scrolling."
251
+ msgstr ""
252
+
253
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:173
254
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:178
255
+ #: build/auxin-portfolio/includes/general-hooks.php:248
256
+ #: includes/general-hooks.php:238
257
+ msgid "Display Single Portfolio Categories"
258
+ msgstr ""
259
+
260
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:174
261
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:179
262
+ msgid "Specifies whether to display catetory section or not."
263
+ msgstr ""
264
+
265
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:186
266
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:191
267
+ #: build/auxin-portfolio/includes/general-hooks.php:259
268
+ #: includes/general-hooks.php:249
269
+ msgid "Display Single Portfolio Tags"
270
+ msgstr ""
271
+
272
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:187
273
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:192
274
+ msgid "Specifies whether to display tag section or not."
275
+ msgstr ""
276
+
277
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:199
278
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:204
279
+ msgid "Lunch Project Button"
280
+ msgstr ""
281
+
282
+ #: admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:200
283
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-metadata.php:205
284
+ msgid ""
285
+ "Specifies an URL for action button in order to lunch the project's webpage. "
286
+ "Leave it empty if you don`t need Lunch Project Button."
287
+ msgstr ""
288
+
289
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:12
290
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:17
291
+ msgid "Related Portfolio"
292
+ msgstr ""
293
+
294
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:17
295
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:22
296
+ #: build/auxin-portfolio/includes/general-hooks.php:281
297
+ #: includes/general-hooks.php:271
298
+ msgid "Display Related Portfolios"
299
+ msgstr ""
300
+
301
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:18
302
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:23
303
+ msgid ""
304
+ "Enable it to display related porfolios section on single portfolio page."
305
+ msgstr ""
306
+
307
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:31
308
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:36
309
+ #: build/auxin-portfolio/includes/general-hooks.php:293
310
+ #: includes/general-hooks.php:283
311
+ msgid "Label of Related Section"
312
+ msgstr ""
313
+
314
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:32
315
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:37
316
+ #: build/auxin-portfolio/includes/general-hooks.php:294
317
+ #: includes/general-hooks.php:284
318
+ msgid "Specifies the label of related items section."
319
+ msgstr ""
320
+
321
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:46
322
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:51
323
+ #: build/auxin-portfolio/includes/general-hooks.php:311
324
+ #: includes/general-hooks.php:301
325
+ msgid "Related Items Type"
326
+ msgstr ""
327
+
328
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:47
329
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:52
330
+ #: build/auxin-portfolio/includes/general-hooks.php:312
331
+ #: includes/general-hooks.php:302
332
+ msgid "Specifies the appearance type for related portfolio element."
333
+ msgstr ""
334
+
335
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:60
336
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:65
337
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:212
338
+ #: build/auxin-portfolio/includes/general-hooks.php:454
339
+ #: build/auxin-portfolio/includes/general-hooks.php:753
340
+ #: includes/elements/recent-portfolios.php:207 includes/general-hooks.php:444
341
+ #: includes/general-hooks.php:743
342
+ msgid "Grid"
343
+ msgstr ""
344
+
345
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:61
346
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:66
347
+ msgid "Carousel"
348
+ msgstr ""
349
+
350
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:66
351
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:71
352
+ #: build/auxin-portfolio/includes/general-hooks.php:332
353
+ #: build/auxin-portfolio/includes/general-hooks.php:566
354
+ #: build/auxin-portfolio/includes/general-hooks.php:863
355
+ #: includes/general-hooks.php:322 includes/general-hooks.php:556
356
+ #: includes/general-hooks.php:853
357
+ msgid "Number of Columns"
358
+ msgstr ""
359
+
360
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:87
361
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:92
362
+ #: build/auxin-portfolio/includes/general-hooks.php:352
363
+ #: includes/general-hooks.php:342
364
+ msgid "Align Center"
365
+ msgstr ""
366
+
367
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:88
368
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:93
369
+ #: build/auxin-portfolio/includes/general-hooks.php:353
370
+ #: includes/general-hooks.php:343
371
+ msgid "Enable it to make related portfolios section text center."
372
+ msgstr ""
373
+
374
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:107
375
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:112
376
+ #: build/auxin-portfolio/includes/general-hooks.php:370
377
+ #: includes/general-hooks.php:360
378
+ msgid "Full Width Related Section"
379
+ msgstr ""
380
+
381
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:108
382
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:113
383
+ #: build/auxin-portfolio/includes/general-hooks.php:371
384
+ #: includes/general-hooks.php:361
385
+ msgid "Enable it to make related portfolios section full width."
386
+ msgstr ""
387
+
388
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:127
389
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:132
390
+ #: build/auxin-portfolio/includes/general-hooks.php:388
391
+ #: includes/general-hooks.php:378
392
+ msgid "Snap Related Items"
393
+ msgstr ""
394
+
395
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:128
396
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:133
397
+ #: build/auxin-portfolio/includes/general-hooks.php:389
398
+ #: includes/general-hooks.php:379
399
+ msgid "Enable it to remove space between related portfolio items."
400
+ msgstr ""
401
+
402
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:147
403
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:152
404
+ #: build/auxin-portfolio/includes/general-hooks.php:406
405
+ #: includes/general-hooks.php:396
406
+ msgid "Display Portfolio Categories"
407
+ msgstr ""
408
+
409
+ #: admin/includes/metaboxes/metabox-fields-portfolio-related.php:148
410
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:153
411
+ #: build/auxin-portfolio/includes/general-hooks.php:407
412
+ #: includes/general-hooks.php:397
413
+ msgid ""
414
+ "Enable it to display the categories of each portfolio item in related "
415
+ "portfolios section."
416
+ msgstr ""
417
+
418
+ #: auxin-portfolio.php:42 build/auxin-portfolio/auxin-portfolio.php:47
419
+ msgid "PHP version 5.3.0 or above is required for \"Auxin Portfolio\" plugin"
420
+ msgstr ""
421
+
422
+ #: auxin-portfolio.php:55 build/auxin-portfolio/auxin-portfolio.php:60
423
+ #, php-format
424
+ msgid ""
425
+ "You are using %1$s theme version %2$s. You need to update the %1$s theme to "
426
+ "latest version in order to use %3$s plugin"
427
+ msgstr ""
428
+
429
+ #: auxin-portfolio.php:58 build/auxin-portfolio/auxin-portfolio.php:63
430
+ msgid "Auxin Portfolio"
431
+ msgstr ""
432
+
433
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:85
434
+ msgid "1"
435
+ msgstr ""
436
+
437
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:86
438
+ msgid "2"
439
+ msgstr ""
440
+
441
+ #: build/auxin-portfolio/admin/includes/metaboxes/metabox-fields-portfolio-related.php:87
442
+ msgid "3"
443
+ msgstr ""
444
+
445
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:53
446
+ msgctxt ""
447
+ msgid "Portfolios"
448
+ msgstr ""
449
+
450
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:54
451
+ #: build/auxin-portfolio/includes/general-hooks.php:39
452
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:49
453
+ #: includes/general-hooks.php:29
454
+ msgid "Portfolio"
455
+ msgstr ""
456
+
457
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:55
458
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:50
459
+ msgctxt "Admin menu name"
460
+ msgid "Portfolios"
461
+ msgstr ""
462
+
463
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:56
464
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:51
465
+ msgid "Add New"
466
+ msgstr ""
467
+
468
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:57
469
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:52
470
+ msgid "All Portfolios"
471
+ msgstr ""
472
+
473
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:58
474
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:53
475
+ msgid "Add New Portfolio"
476
+ msgstr ""
477
+
478
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:59
479
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:54
480
+ msgid "Edit Portfolio"
481
+ msgstr ""
482
+
483
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:60
484
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:55
485
+ msgid "New Portfolio"
486
+ msgstr ""
487
+
488
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:61
489
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:56
490
+ msgid "View Portfolio"
491
+ msgstr ""
492
+
493
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:62
494
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:57
495
+ msgid "Search Portfolios"
496
+ msgstr ""
497
+
498
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:63
499
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:58
500
+ msgid "Parent Portfolio"
501
+ msgstr ""
502
+
503
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:64
504
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:59
505
+ msgid "No Portfolios found"
506
+ msgstr ""
507
+
508
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:65
509
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:60
510
+ msgid "No Portfolios found in Trash"
511
+ msgstr ""
512
+
513
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:70
514
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:65
515
+ msgid "Here you can add new portfolio to your website."
516
+ msgstr ""
517
+
518
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:104
519
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:123
520
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:99
521
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:118
522
+ msgid "Portfolio Categories"
523
+ msgstr ""
524
+
525
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:105
526
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:100
527
+ msgid "Portfolio Category"
528
+ msgstr ""
529
+
530
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:106
531
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:101
532
+ msgid "All Portfolio Categories"
533
+ msgstr ""
534
+
535
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:107
536
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:102
537
+ msgid "Parent Portfolio Category"
538
+ msgstr ""
539
+
540
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:108
541
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:103
542
+ msgid "Parent Portfolio Category:"
543
+ msgstr ""
544
+
545
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:109
546
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:104
547
+ msgid "Edit Portfolio Category"
548
+ msgstr ""
549
+
550
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:110
551
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:105
552
+ msgid "Update Portfolio Category"
553
+ msgstr ""
554
+
555
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:111
556
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:106
557
+ msgid "Add New Portfolio Category"
558
+ msgstr ""
559
+
560
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:112
561
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:107
562
+ msgid "New Portfolio Category"
563
+ msgstr ""
564
+
565
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:113
566
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:108
567
+ msgid "Search in Portfolio Categories"
568
+ msgstr ""
569
+
570
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:114
571
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:109
572
+ msgctxt "portfolio-cat admin menu name"
573
+ msgid "Categories"
574
+ msgstr ""
575
+
576
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:135
577
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:130
578
+ msgctxt "taxonomy slug"
579
+ msgid "portfolio-cat"
580
+ msgstr ""
581
+
582
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:147
583
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:142
584
+ msgid "Portfolio Tags / Filters"
585
+ msgstr ""
586
+
587
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:148
588
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:143
589
+ msgid "Portfolio Tag/Filter"
590
+ msgstr ""
591
+
592
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:149
593
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:144
594
+ msgid "Search in Portfolio Tags/filters"
595
+ msgstr ""
596
+
597
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:150
598
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:145
599
+ msgid "Popular Tags/filters"
600
+ msgstr ""
601
+
602
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:151
603
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:146
604
+ msgid "All Portfolio Tags/filters"
605
+ msgstr ""
606
+
607
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:152
608
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:147
609
+ msgid "Parent Portfolio Tag"
610
+ msgstr ""
611
+
612
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:153
613
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:148
614
+ msgid "Parent Portfolio Tag:"
615
+ msgstr ""
616
+
617
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:154
618
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:149
619
+ msgid "Edit Portfolio Tag/Filter"
620
+ msgstr ""
621
+
622
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:155
623
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:150
624
+ msgid "Update Portfolio Tag/Filter"
625
+ msgstr ""
626
+
627
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:156
628
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:151
629
+ msgid "Add new Portfolio Tag/Filter"
630
+ msgstr ""
631
+
632
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:157
633
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:152
634
+ msgid "New Portfolio Tag/Filter"
635
+ msgstr ""
636
+
637
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:159
638
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:154
639
+ msgid "Separate tags with commas"
640
+ msgstr ""
641
+
642
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:160
643
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:155
644
+ msgid "Add or remove Tag/Filter"
645
+ msgstr ""
646
+
647
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:161
648
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:156
649
+ msgid "Choose from the most used tags"
650
+ msgstr ""
651
+
652
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:162
653
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:157
654
+ msgctxt "portfolio-tag admin menu name"
655
+ msgid "Tags ( Filters )"
656
+ msgstr ""
657
+
658
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:171
659
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:166
660
+ msgid "Portfolio Tags/Filters"
661
+ msgstr ""
662
+
663
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:183
664
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:178
665
+ msgctxt "taxonomy slug"
666
+ msgid "portfolio-tag"
667
+ msgstr ""
668
+
669
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:203
670
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:198
671
+ msgctxt "Image column at portfolio edit columns"
672
+ msgid "Image"
673
+ msgstr ""
674
+
675
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:204
676
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:199
677
+ msgctxt "Title column at portfolio edit columns"
678
+ msgid "Title"
679
+ msgstr ""
680
+
681
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:205
682
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:200
683
+ msgctxt "Type column at portfolio edit columns"
684
+ msgid "Category / Type"
685
+ msgstr ""
686
+
687
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:206
688
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:201
689
+ msgctxt "Tag/Filter column at portfolio edit columns"
690
+ msgid "Tag / Filter"
691
+ msgstr ""
692
+
693
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:207
694
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:202
695
+ msgctxt "Date column at portfolio edit columns"
696
+ msgid "Release Date"
697
+ msgstr ""
698
+
699
+ #: build/auxin-portfolio/includes/classes/class-auxpfo-post-type-portfolio.php:248
700
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:243
701
+ msgid ""
702
+ "This is an image that is chosen as the representative/cover image for your "
703
+ "project."
704
+ msgstr ""
705
+
706
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:20
707
+ #: includes/elements/recent-portfolios.php:15
708
+ msgid "All Categories"
709
+ msgstr ""
710
+
711
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:26
712
+ #: includes/elements/recent-portfolios.php:21
713
+ msgid "[Phlox] Recent Portfolio on Grid, Tile and Masonry"
714
+ msgstr ""
715
+
716
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:29
717
+ #: includes/elements/recent-portfolios.php:24
718
+ msgid "It adds recent portfolio items in gird, tile or masonry style."
719
+ msgstr ""
720
+
721
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:53
722
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:150
723
+ #: includes/elements/recent-portfolios.php:48
724
+ #: includes/elements/recent-portfolios.php:145
725
+ msgid "Title"
726
+ msgstr ""
727
+
728
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:54
729
+ #: includes/elements/recent-portfolios.php:49
730
+ msgid "Recent items title, leave it empty if you don`t need title."
731
+ msgstr ""
732
+
733
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:68
734
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:358
735
+ #: includes/elements/recent-portfolios.php:63
736
+ #: includes/elements/recent-portfolios.php:353
737
+ msgid "Categories"
738
+ msgstr ""
739
+
740
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:69
741
+ #: includes/elements/recent-portfolios.php:64
742
+ msgid "Specifies a category that you want to show portfolio items from it."
743
+ msgstr ""
744
+
745
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:83
746
+ #: includes/elements/recent-portfolios.php:78
747
+ msgid "Number of items to show"
748
+ msgstr ""
749
+
750
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:84
751
+ #: includes/elements/recent-portfolios.php:79
752
+ msgid "Leave it empty to show all items"
753
+ msgstr ""
754
+
755
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:98
756
+ #: includes/elements/recent-portfolios.php:93
757
+ msgid "Only portfolios"
758
+ msgstr ""
759
+
760
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:99
761
+ #: includes/elements/recent-portfolios.php:94
762
+ msgid ""
763
+ "If you intend to display ONLY specific portfolios, you should specify them "
764
+ "here. You have to insert the post IDs that are separated by comma (eg. "
765
+ "53,34,87,25)."
766
+ msgstr ""
767
+
768
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:112
769
+ #: includes/elements/recent-portfolios.php:107
770
+ msgid "Include portfolios"
771
+ msgstr ""
772
+
773
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:113
774
+ #: includes/elements/recent-portfolios.php:108
775
+ msgid ""
776
+ "If you intend to include additional portfolios, you should specify them "
777
+ "here. You have to insert the Post IDs that are separated by comma (eg. "
778
+ "53,34,87,25)"
779
+ msgstr ""
780
+
781
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:126
782
+ #: includes/elements/recent-portfolios.php:121
783
+ msgid "Exclude posts"
784
+ msgstr ""
785
+
786
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:127
787
+ #: includes/elements/recent-portfolios.php:122
788
+ msgid ""
789
+ "If you intend to exclude specific posts from result, you should specify the "
790
+ "posts here. You have to insert the Post IDs that are separated by comma (eg. "
791
+ "53,34,87,25)"
792
+ msgstr ""
793
+
794
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:140
795
+ #: includes/elements/recent-portfolios.php:135
796
+ msgid "Order by"
797
+ msgstr ""
798
+
799
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:148
800
+ #: includes/elements/recent-portfolios.php:143
801
+ msgid "Date"
802
+ msgstr ""
803
+
804
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:149
805
+ #: includes/elements/recent-portfolios.php:144
806
+ msgid "Menu Order"
807
+ msgstr ""
808
+
809
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:151
810
+ #: includes/elements/recent-portfolios.php:146
811
+ msgid "ID"
812
+ msgstr ""
813
+
814
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:152
815
+ #: includes/elements/recent-portfolios.php:147
816
+ msgid "Random"
817
+ msgstr ""
818
+
819
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:153
820
+ #: includes/elements/recent-portfolios.php:148
821
+ msgid "Comments"
822
+ msgstr ""
823
+
824
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:154
825
+ #: includes/elements/recent-portfolios.php:149
826
+ msgid "Date Modified"
827
+ msgstr ""
828
+
829
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:155
830
+ #: build/auxin-portfolio/includes/general-hooks.php:1083
831
+ #: includes/elements/recent-portfolios.php:150 includes/general-hooks.php:1073
832
+ msgid "Author"
833
+ msgstr ""
834
+
835
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:156
836
+ #: includes/elements/recent-portfolios.php:151
837
+ msgid "Inserted Post IDs"
838
+ msgstr ""
839
+
840
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:166
841
+ #: includes/elements/recent-portfolios.php:161
842
+ msgid "Order"
843
+ msgstr ""
844
+
845
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:174
846
+ #: includes/elements/recent-portfolios.php:169
847
+ msgid "Descending"
848
+ msgstr ""
849
+
850
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:175
851
+ #: includes/elements/recent-portfolios.php:170
852
+ msgid "Ascending"
853
+ msgstr ""
854
+
855
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:184
856
+ #: includes/elements/recent-portfolios.php:179
857
+ msgid "Start offset"
858
+ msgstr ""
859
+
860
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:185
861
+ #: includes/elements/recent-portfolios.php:180
862
+ msgid "Number of post to displace or pass over."
863
+ msgstr ""
864
+
865
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:198
866
+ #: includes/elements/recent-portfolios.php:193
867
+ msgid "Layout"
868
+ msgstr ""
869
+
870
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:199
871
+ #: includes/elements/recent-portfolios.php:194
872
+ msgid "Different layout types of appearing items."
873
+ msgstr ""
874
+
875
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:216
876
+ #: build/auxin-portfolio/includes/general-hooks.php:458
877
+ #: build/auxin-portfolio/includes/general-hooks.php:757
878
+ #: includes/elements/recent-portfolios.php:211 includes/general-hooks.php:448
879
+ #: includes/general-hooks.php:747
880
+ msgid "Masonry"
881
+ msgstr ""
882
+
883
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:220
884
+ #: build/auxin-portfolio/includes/general-hooks.php:462
885
+ #: build/auxin-portfolio/includes/general-hooks.php:761
886
+ #: includes/elements/recent-portfolios.php:215 includes/general-hooks.php:452
887
+ #: includes/general-hooks.php:751
888
+ msgid "Tiles"
889
+ msgstr ""
890
+
891
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:232
892
+ #: includes/elements/recent-portfolios.php:227
893
+ msgid "Image aspect ratio"
894
+ msgstr ""
895
+
896
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:240
897
+ #: build/auxin-portfolio/includes/general-hooks.php:488
898
+ #: build/auxin-portfolio/includes/general-hooks.php:787
899
+ #: includes/elements/recent-portfolios.php:235 includes/general-hooks.php:478
900
+ #: includes/general-hooks.php:777
901
+ msgid "Horizontal 4:3"
902
+ msgstr ""
903
+
904
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:241
905
+ #: build/auxin-portfolio/includes/general-hooks.php:489
906
+ #: build/auxin-portfolio/includes/general-hooks.php:788
907
+ #: includes/elements/recent-portfolios.php:236 includes/general-hooks.php:479
908
+ #: includes/general-hooks.php:778
909
+ msgid "Horizontal 16:9"
910
+ msgstr ""
911
+
912
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:242
913
+ #: build/auxin-portfolio/includes/general-hooks.php:490
914
+ #: build/auxin-portfolio/includes/general-hooks.php:789
915
+ #: includes/elements/recent-portfolios.php:237 includes/general-hooks.php:480
916
+ #: includes/general-hooks.php:779
917
+ msgid "Square 1:1"
918
+ msgstr ""
919
+
920
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:243
921
+ #: build/auxin-portfolio/includes/general-hooks.php:491
922
+ #: build/auxin-portfolio/includes/general-hooks.php:790
923
+ #: includes/elements/recent-portfolios.php:238 includes/general-hooks.php:481
924
+ #: includes/general-hooks.php:780
925
+ msgid "Vertical 3:4"
926
+ msgstr ""
927
+
928
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:255
929
+ #: includes/elements/recent-portfolios.php:250
930
+ msgid "Exclude portfolios without media"
931
+ msgstr ""
932
+
933
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:269
934
+ #: includes/elements/recent-portfolios.php:264
935
+ msgid "Portfolio hover type"
936
+ msgstr ""
937
+
938
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:283
939
+ #: build/auxin-portfolio/includes/general-hooks.php:511
940
+ #: build/auxin-portfolio/includes/general-hooks.php:810
941
+ #: includes/elements/recent-portfolios.php:278 includes/general-hooks.php:501
942
+ #: includes/general-hooks.php:800
943
+ msgid "Classic"
944
+ msgstr ""
945
+
946
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:284
947
+ #: build/auxin-portfolio/includes/general-hooks.php:512
948
+ #: build/auxin-portfolio/includes/general-hooks.php:811
949
+ #: includes/elements/recent-portfolios.php:279 includes/general-hooks.php:502
950
+ #: includes/general-hooks.php:801
951
+ msgid "Classic with lightbox style 1"
952
+ msgstr ""
953
+
954
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:285
955
+ #: build/auxin-portfolio/includes/general-hooks.php:513
956
+ #: build/auxin-portfolio/includes/general-hooks.php:812
957
+ #: includes/elements/recent-portfolios.php:280 includes/general-hooks.php:503
958
+ #: includes/general-hooks.php:802
959
+ msgid "Classic with lightbox style 2"
960
+ msgstr ""
961
+
962
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:286
963
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:307
964
+ #: build/auxin-portfolio/includes/general-hooks.php:514
965
+ #: build/auxin-portfolio/includes/general-hooks.php:537
966
+ #: build/auxin-portfolio/includes/general-hooks.php:813
967
+ #: build/auxin-portfolio/includes/general-hooks.php:836
968
+ #: includes/elements/recent-portfolios.php:281
969
+ #: includes/elements/recent-portfolios.php:302 includes/general-hooks.php:504
970
+ #: includes/general-hooks.php:527 includes/general-hooks.php:803
971
+ #: includes/general-hooks.php:826
972
+ msgid "Overlay title style 1"
973
+ msgstr ""
974
+
975
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:287
976
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:308
977
+ #: build/auxin-portfolio/includes/general-hooks.php:515
978
+ #: build/auxin-portfolio/includes/general-hooks.php:538
979
+ #: build/auxin-portfolio/includes/general-hooks.php:814
980
+ #: build/auxin-portfolio/includes/general-hooks.php:837
981
+ #: includes/elements/recent-portfolios.php:282
982
+ #: includes/elements/recent-portfolios.php:303 includes/general-hooks.php:505
983
+ #: includes/general-hooks.php:528 includes/general-hooks.php:804
984
+ #: includes/general-hooks.php:827
985
+ msgid "Overlay title style 2"
986
+ msgstr ""
987
+
988
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:288
989
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:309
990
+ #: build/auxin-portfolio/includes/general-hooks.php:516
991
+ #: build/auxin-portfolio/includes/general-hooks.php:539
992
+ #: build/auxin-portfolio/includes/general-hooks.php:815
993
+ #: build/auxin-portfolio/includes/general-hooks.php:838
994
+ #: includes/elements/recent-portfolios.php:283
995
+ #: includes/elements/recent-portfolios.php:304 includes/general-hooks.php:506
996
+ #: includes/general-hooks.php:529 includes/general-hooks.php:805
997
+ #: includes/general-hooks.php:828
998
+ msgid "Overlay title with lightbox style 1"
999
+ msgstr ""
1000
+
1001
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:289
1002
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:310
1003
+ #: build/auxin-portfolio/includes/general-hooks.php:517
1004
+ #: build/auxin-portfolio/includes/general-hooks.php:540
1005
+ #: build/auxin-portfolio/includes/general-hooks.php:816
1006
+ #: build/auxin-portfolio/includes/general-hooks.php:839
1007
+ #: includes/elements/recent-portfolios.php:284
1008
+ #: includes/elements/recent-portfolios.php:305 includes/general-hooks.php:507
1009
+ #: includes/general-hooks.php:530 includes/general-hooks.php:806
1010
+ #: includes/general-hooks.php:829
1011
+ msgid "Overlay title with lightbox style 2"
1012
+ msgstr ""
1013
+
1014
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:293
1015
+ #: includes/elements/recent-portfolios.php:288
1016
+ msgid "Portfolio item type"
1017
+ msgstr ""
1018
+
1019
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:314
1020
+ #: includes/elements/recent-portfolios.php:309
1021
+ msgid "Insert portfolio title"
1022
+ msgstr ""
1023
+
1024
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:327
1025
+ #: includes/elements/recent-portfolios.php:322
1026
+ msgid "Insert portfolio meta"
1027
+ msgstr ""
1028
+
1029
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:339
1030
+ #: includes/elements/recent-portfolios.php:334
1031
+ msgid "Show filters"
1032
+ msgstr ""
1033
+
1034
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:351
1035
+ #: includes/elements/recent-portfolios.php:346
1036
+ msgid "Filter by"
1037
+ msgstr ""
1038
+
1039
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:352
1040
+ #: includes/elements/recent-portfolios.php:347
1041
+ msgid "Filter by categories or tags"
1042
+ msgstr ""
1043
+
1044
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:359
1045
+ #: includes/elements/recent-portfolios.php:354
1046
+ msgid "Tags"
1047
+ msgstr ""
1048
+
1049
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:370
1050
+ #: includes/elements/recent-portfolios.php:365
1051
+ msgid "Filter Control Alignment"
1052
+ msgstr ""
1053
+
1054
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:381
1055
+ #: includes/elements/recent-portfolios.php:376
1056
+ msgid "Center"
1057
+ msgstr ""
1058
+
1059
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:398
1060
+ #: includes/elements/recent-portfolios.php:393
1061
+ msgid "Filter button style"
1062
+ msgstr ""
1063
+
1064
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:399
1065
+ #: includes/elements/recent-portfolios.php:394
1066
+ msgid "Style of filter buttons."
1067
+ msgstr ""
1068
+
1069
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:412
1070
+ #: includes/elements/recent-portfolios.php:407
1071
+ msgid "Slide up"
1072
+ msgstr ""
1073
+
1074
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:413
1075
+ #: includes/elements/recent-portfolios.php:408
1076
+ msgid "Fill"
1077
+ msgstr ""
1078
+
1079
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:414
1080
+ #: includes/elements/recent-portfolios.php:409
1081
+ msgid "Cube"
1082
+ msgstr ""
1083
+
1084
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:415
1085
+ #: includes/elements/recent-portfolios.php:410
1086
+ msgid "Underline"
1087
+ msgstr ""
1088
+
1089
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:416
1090
+ #: includes/elements/recent-portfolios.php:411
1091
+ msgid "Float frame"
1092
+ msgstr ""
1093
+
1094
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:417
1095
+ #: includes/elements/recent-portfolios.php:412
1096
+ msgid "Borderd"
1097
+ msgstr ""
1098
+
1099
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:418
1100
+ #: includes/elements/recent-portfolios.php:413
1101
+ msgid "Float underline"
1102
+ msgstr ""
1103
+
1104
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:424
1105
+ #: includes/elements/recent-portfolios.php:419
1106
+ msgid "Display like button"
1107
+ msgstr ""
1108
+
1109
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:425
1110
+ #: includes/elements/recent-portfolios.php:420
1111
+ #, php-format
1112
+ msgid ""
1113
+ "Enable it to display %s like button%s on gride template blog. Please note WP "
1114
+ "Ulike plugin needs to be activaited to use this option."
1115
+ msgstr ""
1116
+
1117
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:442
1118
+ #: includes/elements/recent-portfolios.php:437
1119
+ msgid "Deeplink"
1120
+ msgstr ""
1121
+
1122
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:443
1123
+ #: includes/elements/recent-portfolios.php:438
1124
+ msgid ""
1125
+ "Enables the deeplink feature, it updates URL based on page and filter status."
1126
+ msgstr ""
1127
+
1128
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:454
1129
+ #: includes/elements/recent-portfolios.php:449
1130
+ msgid "Deeplink slug"
1131
+ msgstr ""
1132
+
1133
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:455
1134
+ #: includes/elements/recent-portfolios.php:450
1135
+ msgid "Specifies the deeplink slug value in address bar."
1136
+ msgstr ""
1137
+
1138
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:471
1139
+ #: includes/elements/recent-portfolios.php:466
1140
+ msgid "Paginate"
1141
+ msgstr ""
1142
+
1143
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:472
1144
+ #: includes/elements/recent-portfolios.php:467
1145
+ msgid "Paginates the portfolio items"
1146
+ msgstr ""
1147
+
1148
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:483
1149
+ #: includes/elements/recent-portfolios.php:478
1150
+ msgid "Items number perpage"
1151
+ msgstr ""
1152
+
1153
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:499
1154
+ #: build/auxin-portfolio/includes/general-hooks.php:547
1155
+ #: build/auxin-portfolio/includes/general-hooks.php:846
1156
+ #: includes/elements/recent-portfolios.php:494 includes/general-hooks.php:537
1157
+ #: includes/general-hooks.php:836
1158
+ msgid "Space"
1159
+ msgstr ""
1160
+
1161
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:500
1162
+ #: build/auxin-portfolio/includes/general-hooks.php:548
1163
+ #: build/auxin-portfolio/includes/general-hooks.php:847
1164
+ #: includes/elements/recent-portfolios.php:495 includes/general-hooks.php:538
1165
+ #: includes/general-hooks.php:837
1166
+ msgid "Specifies space between items in pixels."
1167
+ msgstr ""
1168
+
1169
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:516
1170
+ #: includes/elements/recent-portfolios.php:511
1171
+ msgid "Number of columns"
1172
+ msgstr ""
1173
+
1174
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:537
1175
+ #: includes/elements/recent-portfolios.php:532
1176
+ msgid "Number of columns in tablet size"
1177
+ msgstr ""
1178
+
1179
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:559
1180
+ #: includes/elements/recent-portfolios.php:554
1181
+ msgid "Number of columns in phone size"
1182
+ msgstr ""
1183
+
1184
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:579
1185
+ #: includes/elements/recent-portfolios.php:574
1186
+ msgid "Extra class name"
1187
+ msgstr ""
1188
+
1189
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:580
1190
+ #: includes/elements/recent-portfolios.php:575
1191
+ msgid ""
1192
+ "If you wish to style particular content element differently, then use this "
1193
+ "field to add a class name and then refer to it in your css file."
1194
+ msgstr ""
1195
+
1196
+ #: build/auxin-portfolio/includes/elements/recent-portfolios.php:804
1197
+ #: includes/elements/recent-portfolios.php:799
1198
+ msgid "all"
1199
+ msgstr ""
1200
+
1201
+ #: build/auxin-portfolio/includes/general-hooks.php:40
1202
+ #: includes/general-hooks.php:30
1203
+ msgid "Portfolio Setting"
1204
+ msgstr ""
1205
+
1206
+ #: build/auxin-portfolio/includes/general-hooks.php:49
1207
+ #: includes/general-hooks.php:39
1208
+ msgid "Single Portfolio"
1209
+ msgstr ""
1210
+
1211
+ #: build/auxin-portfolio/includes/general-hooks.php:50
1212
+ #: includes/general-hooks.php:40
1213
+ msgid "Single Portfolio Setting"
1214
+ msgstr ""
1215
+
1216
+ #: build/auxin-portfolio/includes/general-hooks.php:55
1217
+ #: includes/general-hooks.php:45
1218
+ msgid "Single Portfolio Style"
1219
+ msgstr ""
1220
+
1221
+ #: build/auxin-portfolio/includes/general-hooks.php:56
1222
+ #: build/auxin-portfolio/includes/general-hooks.php:98
1223
+ #: includes/general-hooks.php:46 includes/general-hooks.php:88
1224
+ msgid "Specifies position of sidebar on single portfolio."
1225
+ msgstr ""
1226
+
1227
+ #: build/auxin-portfolio/includes/general-hooks.php:81
1228
+ #: includes/general-hooks.php:71
1229
+ msgid "Enable it to stick the side area on page while scrolling.."
1230
+ msgstr ""
1231
+
1232
+ #: build/auxin-portfolio/includes/general-hooks.php:97
1233
+ #: includes/general-hooks.php:87
1234
+ msgid "Single portfolio Sidebar Position"
1235
+ msgstr ""
1236
+
1237
+ #: build/auxin-portfolio/includes/general-hooks.php:105
1238
+ #: build/auxin-portfolio/includes/general-hooks.php:655
1239
+ #: build/auxin-portfolio/includes/general-hooks.php:961
1240
+ #: includes/general-hooks.php:95 includes/general-hooks.php:645
1241
+ #: includes/general-hooks.php:951
1242
+ msgid "No Sidebar"
1243
+ msgstr ""
1244
+
1245
+ #: build/auxin-portfolio/includes/general-hooks.php:109
1246
+ #: build/auxin-portfolio/includes/general-hooks.php:659
1247
+ #: build/auxin-portfolio/includes/general-hooks.php:965
1248
+ #: includes/general-hooks.php:99 includes/general-hooks.php:649
1249
+ #: includes/general-hooks.php:955
1250
+ msgid "Right Sidebar"
1251
+ msgstr ""
1252
+
1253
+ #: build/auxin-portfolio/includes/general-hooks.php:113
1254
+ #: build/auxin-portfolio/includes/general-hooks.php:663
1255
+ #: build/auxin-portfolio/includes/general-hooks.php:969
1256
+ #: includes/general-hooks.php:103 includes/general-hooks.php:653
1257
+ #: includes/general-hooks.php:959
1258
+ msgid "Left Sidebar"
1259
+ msgstr ""
1260
+
1261
+ #: build/auxin-portfolio/includes/general-hooks.php:117
1262
+ #: build/auxin-portfolio/includes/general-hooks.php:667
1263
+ #: build/auxin-portfolio/includes/general-hooks.php:973
1264
+ #: includes/general-hooks.php:107 includes/general-hooks.php:657
1265
+ #: includes/general-hooks.php:963
1266
+ msgid "Left Left Sidebar"
1267
+ msgstr ""
1268
+
1269
+ #: build/auxin-portfolio/includes/general-hooks.php:121
1270
+ #: build/auxin-portfolio/includes/general-hooks.php:671
1271
+ #: build/auxin-portfolio/includes/general-hooks.php:977
1272
+ #: includes/general-hooks.php:111 includes/general-hooks.php:661
1273
+ #: includes/general-hooks.php:967
1274
+ msgid "Right Right Sidebar"
1275
+ msgstr ""
1276
+
1277
+ #: build/auxin-portfolio/includes/general-hooks.php:125
1278
+ #: build/auxin-portfolio/includes/general-hooks.php:675
1279
+ #: build/auxin-portfolio/includes/general-hooks.php:981
1280
+ #: includes/general-hooks.php:115 includes/general-hooks.php:665
1281
+ #: includes/general-hooks.php:971
1282
+ msgid "Left Right Sidebar"
1283
+ msgstr ""
1284
+
1285
+ #: build/auxin-portfolio/includes/general-hooks.php:129
1286
+ #: build/auxin-portfolio/includes/general-hooks.php:679
1287
+ #: build/auxin-portfolio/includes/general-hooks.php:985
1288
+ #: includes/general-hooks.php:119 includes/general-hooks.php:669
1289
+ #: includes/general-hooks.php:975
1290
+ msgid "Right Left Sidebar"
1291
+ msgstr ""
1292
+
1293
+ #: build/auxin-portfolio/includes/general-hooks.php:138
1294
+ #: includes/general-hooks.php:128
1295
+ msgid "Single portfolio Sidebar Style"
1296
+ msgstr ""
1297
+
1298
+ #: build/auxin-portfolio/includes/general-hooks.php:153
1299
+ #: build/auxin-portfolio/includes/general-hooks.php:706
1300
+ #: build/auxin-portfolio/includes/general-hooks.php:1008
1301
+ #: includes/general-hooks.php:143 includes/general-hooks.php:696
1302
+ #: includes/general-hooks.php:998
1303
+ msgid "Simple"
1304
+ msgstr ""
1305
+
1306
+ #: build/auxin-portfolio/includes/general-hooks.php:157
1307
+ #: build/auxin-portfolio/includes/general-hooks.php:710
1308
+ #: build/auxin-portfolio/includes/general-hooks.php:1012
1309
+ #: includes/general-hooks.php:147 includes/general-hooks.php:700
1310
+ #: includes/general-hooks.php:1002
1311
+ msgid "Bordered Sidebar"
1312
+ msgstr ""
1313
+
1314
+ #: build/auxin-portfolio/includes/general-hooks.php:161
1315
+ #: build/auxin-portfolio/includes/general-hooks.php:714
1316
+ #: build/auxin-portfolio/includes/general-hooks.php:1016
1317
+ #: includes/general-hooks.php:151 includes/general-hooks.php:704
1318
+ #: includes/general-hooks.php:1006
1319
+ msgid "Overlap Background"
1320
+ msgstr ""
1321
+
1322
+ #: build/auxin-portfolio/includes/general-hooks.php:249
1323
+ #: includes/general-hooks.php:239
1324
+ msgid "Enable it to display category section in single portfolio."
1325
+ msgstr ""
1326
+
1327
+ #: build/auxin-portfolio/includes/general-hooks.php:260
1328
+ #: includes/general-hooks.php:250
1329
+ msgid "Enable it to display Tag section in single portfolio."
1330
+ msgstr ""
1331
+
1332
+ #: build/auxin-portfolio/includes/general-hooks.php:275
1333
+ #: includes/general-hooks.php:265
1334
+ msgid "Related Portfolios"
1335
+ msgstr ""
1336
+
1337
+ #: build/auxin-portfolio/includes/general-hooks.php:276
1338
+ #: includes/general-hooks.php:266
1339
+ msgid "Setting for Related Portfolios Section in Single Page"
1340
+ msgstr ""
1341
+
1342
+ #: build/auxin-portfolio/includes/general-hooks.php:282
1343
+ #: includes/general-hooks.php:272
1344
+ msgid ""
1345
+ "Enable it to display related portfolios section on single portfolio page."
1346
+ msgstr ""
1347
+
1348
+ #: build/auxin-portfolio/includes/general-hooks.php:306
1349
+ #: includes/general-hooks.php:296
1350
+ msgid "Related Projects/Works"
1351
+ msgstr ""
1352
+
1353
+ #: build/auxin-portfolio/includes/general-hooks.php:439
1354
+ #: includes/general-hooks.php:429
1355
+ msgid "Portfolio Page"
1356
+ msgstr ""
1357
+
1358
+ #: build/auxin-portfolio/includes/general-hooks.php:440
1359
+ #: includes/general-hooks.php:430
1360
+ msgid "Setting for portfolio Archive Page"
1361
+ msgstr ""
1362
+
1363
+ #: build/auxin-portfolio/includes/general-hooks.php:445
1364
+ #: includes/general-hooks.php:435
1365
+ msgid "Portfolio Template"
1366
+ msgstr ""
1367
+
1368
+ #: build/auxin-portfolio/includes/general-hooks.php:446
1369
+ #: includes/general-hooks.php:436
1370
+ msgid "Choose your portfolio template."
1371
+ msgstr ""
1372
+
1373
+ #: build/auxin-portfolio/includes/general-hooks.php:466
1374
+ #: build/auxin-portfolio/includes/general-hooks.php:765
1375
+ #: includes/general-hooks.php:456 includes/general-hooks.php:755
1376
+ msgid "Land"
1377
+ msgstr ""
1378
+
1379
+ #: build/auxin-portfolio/includes/general-hooks.php:475
1380
+ #: build/auxin-portfolio/includes/general-hooks.php:774
1381
+ #: includes/general-hooks.php:465 includes/general-hooks.php:764
1382
+ msgid "Image Aspect Ratio"
1383
+ msgstr ""
1384
+
1385
+ #: build/auxin-portfolio/includes/general-hooks.php:498
1386
+ #: build/auxin-portfolio/includes/general-hooks.php:797
1387
+ #: includes/general-hooks.php:488 includes/general-hooks.php:787
1388
+ msgid "Portfolio Hover Type"
1389
+ msgstr ""
1390
+
1391
+ #: build/auxin-portfolio/includes/general-hooks.php:499
1392
+ #: build/auxin-portfolio/includes/general-hooks.php:525
1393
+ #: build/auxin-portfolio/includes/general-hooks.php:798
1394
+ #: build/auxin-portfolio/includes/general-hooks.php:824
1395
+ #: includes/general-hooks.php:489 includes/general-hooks.php:515
1396
+ #: includes/general-hooks.php:788 includes/general-hooks.php:814
1397
+ msgid "Specifies the portfolio item type."
1398
+ msgstr ""
1399
+
1400
+ #: build/auxin-portfolio/includes/general-hooks.php:524
1401
+ #: build/auxin-portfolio/includes/general-hooks.php:823
1402
+ #: includes/general-hooks.php:514 includes/general-hooks.php:813
1403
+ msgid "Tile Portfolio Item Type"
1404
+ msgstr ""
1405
+
1406
+ #: build/auxin-portfolio/includes/general-hooks.php:587
1407
+ #: build/auxin-portfolio/includes/general-hooks.php:884
1408
+ #: includes/general-hooks.php:577 includes/general-hooks.php:874
1409
+ msgid "Number of Columns in Tablet"
1410
+ msgstr ""
1411
+
1412
+ #: build/auxin-portfolio/includes/general-hooks.php:609
1413
+ #: build/auxin-portfolio/includes/general-hooks.php:906
1414
+ #: includes/general-hooks.php:599 includes/general-hooks.php:896
1415
+ msgid "Number of Columns in Mobile"
1416
+ msgstr ""
1417
+
1418
+ #: build/auxin-portfolio/includes/general-hooks.php:630
1419
+ #: build/auxin-portfolio/includes/general-hooks.php:927
1420
+ #: includes/general-hooks.php:620 includes/general-hooks.php:917
1421
+ msgid "Display Like Button"
1422
+ msgstr ""
1423
+
1424
+ #: build/auxin-portfolio/includes/general-hooks.php:631
1425
+ #: build/auxin-portfolio/includes/general-hooks.php:928
1426
+ #: includes/general-hooks.php:621 includes/general-hooks.php:918
1427
+ #, php-format
1428
+ msgid ""
1429
+ "Enable it to display %s like button%s on portfolio portfolios. Please note "
1430
+ "WP Ulike plugin needs to be activaited to use this option."
1431
+ msgstr ""
1432
+
1433
+ #: build/auxin-portfolio/includes/general-hooks.php:648
1434
+ #: includes/general-hooks.php:638
1435
+ msgid "Portfolio Sidebar Position"
1436
+ msgstr ""
1437
+
1438
+ #: build/auxin-portfolio/includes/general-hooks.php:649
1439
+ #: includes/general-hooks.php:639
1440
+ msgid "Specifies the position of sidebar on portfolio page."
1441
+ msgstr ""
1442
+
1443
+ #: build/auxin-portfolio/includes/general-hooks.php:691
1444
+ #: includes/general-hooks.php:681
1445
+ msgid "Portfolio Sidebar Style"
1446
+ msgstr ""
1447
+
1448
+ #: build/auxin-portfolio/includes/general-hooks.php:692
1449
+ #: includes/general-hooks.php:682
1450
+ msgid "Specifies the style of sidebar on portfolio page."
1451
+ msgstr ""
1452
+
1453
+ #: build/auxin-portfolio/includes/general-hooks.php:723
1454
+ #: includes/general-hooks.php:713
1455
+ msgid "Number of Portfolios Per Page"
1456
+ msgstr ""
1457
+
1458
+ #: build/auxin-portfolio/includes/general-hooks.php:724
1459
+ #: includes/general-hooks.php:714
1460
+ msgid "Specifies the number of portfolios items to show on each page."
1461
+ msgstr ""
1462
+
1463
+ #: build/auxin-portfolio/includes/general-hooks.php:739
1464
+ #: includes/general-hooks.php:729
1465
+ msgid "Portfolio Category & tag"
1466
+ msgstr ""
1467
+
1468
+ #: build/auxin-portfolio/includes/general-hooks.php:740
1469
+ #: includes/general-hooks.php:730
1470
+ msgid "Portfolio Category & tag page Setting"
1471
+ msgstr ""
1472
+
1473
+ #: build/auxin-portfolio/includes/general-hooks.php:744
1474
+ #: includes/general-hooks.php:734
1475
+ msgid "Taxonomy Page Template"
1476
+ msgstr ""
1477
+
1478
+ #: build/auxin-portfolio/includes/general-hooks.php:953
1479
+ #: includes/general-hooks.php:943
1480
+ msgid "Taxonomy Page Sidebar Position"
1481
+ msgstr ""
1482
+
1483
+ #: build/auxin-portfolio/includes/general-hooks.php:994
1484
+ #: includes/general-hooks.php:984
1485
+ msgid "Sidebar Style"
1486
+ msgstr ""
1487
+
1488
+ #: build/auxin-portfolio/includes/general-hooks.php:995
1489
+ #: includes/general-hooks.php:985
1490
+ msgid "Specifies the style of sidebar on category & tag page."
1491
+ msgstr ""
1492
+
1493
+ #: build/auxin-portfolio/includes/general-hooks.php:1025
1494
+ #: includes/general-hooks.php:1015
1495
+ msgid "Taxonomy content length"
1496
+ msgstr ""
1497
+
1498
+ #: build/auxin-portfolio/includes/general-hooks.php:1026
1499
+ #: includes/general-hooks.php:1016
1500
+ #, php-format
1501
+ msgid ""
1502
+ "Whether to display%1$ssummary%2$sor%1$sfull%2$scontent for each portfolio on "
1503
+ "category & tag page."
1504
+ msgstr ""
1505
+
1506
+ #: build/auxin-portfolio/includes/general-hooks.php:1033
1507
+ #: includes/general-hooks.php:1023
1508
+ msgid "Full text"
1509
+ msgstr ""
1510
+
1511
+ #: build/auxin-portfolio/includes/general-hooks.php:1037
1512
+ #: includes/general-hooks.php:1027
1513
+ msgid "Summary"
1514
+ msgstr ""
1515
+
1516
+ #: build/auxin-portfolio/includes/general-hooks.php:1047
1517
+ #: includes/general-hooks.php:1037
1518
+ msgid "Summery length"
1519
+ msgstr ""
1520
+
1521
+ #: build/auxin-portfolio/includes/general-hooks.php:1048
1522
+ #: includes/general-hooks.php:1038
1523
+ msgid "Specifies summary character length on category & tag page."
1524
+ msgstr ""
1525
+
1526
+ #: build/auxin-portfolio/includes/general-hooks.php:1068
1527
+ #: includes/general-hooks.php:1058
1528
+ msgid "Portfolio MetaData"
1529
+ msgstr ""
1530
+
1531
+ #: build/auxin-portfolio/includes/general-hooks.php:1069
1532
+ #: includes/general-hooks.php:1059
1533
+ msgid "Portfolio MetaData Setting"
1534
+ msgstr ""
1535
+
1536
+ #: build/auxin-portfolio/includes/general-hooks.php:1073
1537
+ #: includes/general-hooks.php:1063
1538
+ msgid "Portfolio MetaDatas"
1539
+ msgstr ""
1540
+
1541
+ #: build/auxin-portfolio/includes/general-hooks.php:1074
1542
+ #: includes/general-hooks.php:1064
1543
+ msgid ""
1544
+ "Specify the number of fields and the label of each one for portfolio "
1545
+ "metadatas"
1546
+ msgstr ""
1547
+
1548
+ #: build/auxin-portfolio/includes/general-hooks.php:1080
1549
+ #: includes/general-hooks.php:1070
1550
+ msgid "Project URL"
1551
+ msgstr ""
1552
+
1553
+ #: build/auxin-portfolio/includes/general-hooks.php:1081
1554
+ #: includes/general-hooks.php:1071
1555
+ msgid "Client"
1556
+ msgstr ""
1557
+
1558
+ #: build/auxin-portfolio/includes/general-hooks.php:1082
1559
+ #: includes/general-hooks.php:1072
1560
+ msgid "Release Date"
1561
+ msgstr ""
1562
+
1563
+ #: build/auxin-portfolio/includes/general-hooks.php:1084
1564
+ #: includes/general-hooks.php:1074
1565
+ msgid "Custom Field 1"
1566
+ msgstr ""
1567
+
1568
+ #: build/auxin-portfolio/includes/general-hooks.php:1085
1569
+ #: includes/general-hooks.php:1075
1570
+ msgid "Custom Field 2"
1571
+ msgstr ""
1572
+
1573
+ #: build/auxin-portfolio/includes/general-hooks.php:1086
1574
+ #: includes/general-hooks.php:1076
1575
+ msgid "Custom Field 3"
1576
+ msgstr ""
1577
+
1578
+ #: build/auxin-portfolio/includes/general-hooks.php:1087
1579
+ #: includes/general-hooks.php:1077
1580
+ msgid "Custom Field 4"
1581
+ msgstr ""
1582
+
1583
+ #: build/auxin-portfolio/includes/general-hooks.php:1088
1584
+ #: includes/general-hooks.php:1078
1585
+ msgid "Custom Field 5"
1586
+ msgstr ""
1587
+
1588
+ #: build/auxin-portfolio/includes/general-hooks.php:1089
1589
+ #: includes/general-hooks.php:1079
1590
+ msgid "Custom Field 6"
1591
+ msgstr ""
1592
+
1593
+ #: build/auxin-portfolio/includes/general-hooks.php:1090
1594
+ #: includes/general-hooks.php:1080
1595
+ msgid "Custom Field 7"
1596
+ msgstr ""
1597
+
1598
+ #: build/auxin-portfolio/includes/general-hooks.php:1091
1599
+ #: includes/general-hooks.php:1081
1600
+ msgid "Custom Field 8"
1601
+ msgstr ""
1602
+
1603
+ #: build/auxin-portfolio/includes/general-hooks.php:1092
1604
+ #: includes/general-hooks.php:1082
1605
+ msgid "Custom Field 9"
1606
+ msgstr ""
1607
+
1608
+ #: build/auxin-portfolio/includes/general-hooks.php:1093
1609
+ #: includes/general-hooks.php:1083
1610
+ msgid "Custom Field 10"
1611
+ msgstr ""
1612
+
1613
+ #: build/auxin-portfolio/includes/general-hooks.php:1094
1614
+ #: includes/general-hooks.php:1084
1615
+ msgid "Custom Field 11"
1616
+ msgstr ""
1617
+
1618
+ #: build/auxin-portfolio/includes/general-hooks.php:1095
1619
+ #: includes/general-hooks.php:1085
1620
+ msgid "Custom Field 12"
1621
+ msgstr ""
1622
+
1623
+ #: build/auxin-portfolio/includes/general-hooks.php:1135
1624
+ #: includes/general-hooks.php:1125
1625
+ msgid "Portfolio Options"
1626
+ msgstr ""
1627
+
1628
+ #: build/auxin-portfolio/public/includes/templates-post.php:177
1629
+ #: public/includes/templates-post.php:177
1630
+ msgid "Please activate \"Auxin Elements\" plugin."
1631
+ msgstr ""
1632
+
1633
+ #: build/auxin-portfolio/public/includes/templates-post.php:184
1634
+ #: build/auxin-portfolio/public/templates/single-portfolio.php:80
1635
+ #: public/includes/templates-post.php:184
1636
+ #: public/templates/single-portfolio.php:75
1637
+ msgid "Related Projects"
1638
+ msgstr ""
1639
+
1640
+ #: build/auxin-portfolio/public/templates/single-portfolio.php:54
1641
+ #: public/templates/single-portfolio.php:49
1642
+ msgid "Previous Portfolio"
1643
+ msgstr ""
1644
+
1645
+ #: build/auxin-portfolio/public/templates/single-portfolio.php:55
1646
+ #: public/templates/single-portfolio.php:50
1647
+ msgid "Next Portfolio"
1648
+ msgstr ""
1649
+
1650
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-column-overlay.php:48
1651
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-column.php:57
1652
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-land.php:82
1653
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio.php:32
1654
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:105
1655
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:117
1656
+ #: public/templates/theme-parts/entry/portfolio-column-overlay.php:48
1657
+ #: public/templates/theme-parts/entry/portfolio-column.php:57
1658
+ #: public/templates/theme-parts/entry/portfolio-land.php:82
1659
+ #: public/templates/theme-parts/entry/portfolio.php:32
1660
+ #: public/templates/theme-parts/entry/single-portfolio.php:105
1661
+ #: public/templates/theme-parts/entry/single-portfolio.php:117
1662
+ msgid "View all posts in "
1663
+ msgstr ""
1664
+
1665
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-column.php:63
1666
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-column.php:65
1667
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-land.php:88
1668
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio-land.php:90
1669
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/portfolio.php:37
1670
+ #: public/templates/theme-parts/entry/portfolio-column.php:63
1671
+ #: public/templates/theme-parts/entry/portfolio-column.php:65
1672
+ #: public/templates/theme-parts/entry/portfolio-land.php:88
1673
+ #: public/templates/theme-parts/entry/portfolio-land.php:90
1674
+ #: public/templates/theme-parts/entry/portfolio.php:37
1675
+ msgid "Edit"
1676
+ msgstr ""
1677
+
1678
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:52
1679
+ #: public/templates/theme-parts/entry/single-portfolio.php:52
1680
+ msgid "Share"
1681
+ msgstr ""
1682
+
1683
+ #: build/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:136
1684
+ #: public/templates/theme-parts/entry/single-portfolio.php:136
1685
+ msgid "Lunch Project"
1686
+ msgstr ""
1687
+
1688
+ #: build/auxin-portfolio/public/templates/theme-parts/loop-portfolio.php:58
1689
+ #: build/auxin-portfolio/public/templates/theme-parts/tax-portfolio.php:60
1690
+ #: public/templates/theme-parts/loop-portfolio.php:58
1691
+ #: public/templates/theme-parts/tax-portfolio.php:60
1692
+ msgid "To enable this feature, please install \"Auxin Portfolio\" plugin."
1693
+ msgstr ""
1694
+
1695
+ #: includes/classes/class-auxpfo-post-type-portfolio.php:48
1696
+ msgid "Portfolios"
1697
+ msgstr ""
public/assets/css/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
public/assets/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
public/assets/js/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
public/class-auxpfo.php ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Auxin Portfolio.
4
+ *
5
+ * @echo HEADER
6
+ */
7
+
8
+ if ( ! class_exists( 'AUXPFO' ) ) :
9
+
10
+
11
+
12
+ class AUXPFO {
13
+
14
+ /**
15
+ * Unique identifier for your plugin.
16
+ *
17
+ * The variable name is used as the text domain when internationalizing strings of text.
18
+ *
19
+ * @since 1.0.0
20
+ *
21
+ * @var string
22
+ */
23
+ protected $plugin_slug = 'auxin-portfolio';
24
+
25
+ /**
26
+ * Instance of this class.
27
+ *
28
+ * @since 1.0.0
29
+ *
30
+ * @var object
31
+ */
32
+ protected static $instance = null;
33
+
34
+
35
+ /**
36
+ * Instance of Admin class.
37
+ *
38
+ * @since 1.0.0
39
+ *
40
+ * @var object
41
+ */
42
+ public $admin = null;
43
+
44
+
45
+
46
+ /**
47
+ * Initialize the plugin
48
+ *
49
+ * @since 1.0.0
50
+ */
51
+ private function __construct() {
52
+
53
+ // Auto-load classes on demand
54
+ // if ( function_exists( "__autoload" ) ) {
55
+ // spl_autoload_register( "__autoload" );
56
+ // }
57
+ // spl_autoload_register( array( $this, 'autoload' ) );
58
+
59
+ $this->includes();
60
+
61
+ add_action( 'init', array( $this, 'init' ) );
62
+
63
+ // Activate plugin when new blog is added
64
+ add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
65
+
66
+ // Loaded action
67
+ do_action( 'auxpfo_loaded' );
68
+ }
69
+
70
+
71
+ /**
72
+ * Auto-load auxin classes on demand to reduce memory consumption
73
+ *
74
+ * @param mixed $class
75
+ * @return void
76
+ */
77
+ function autoload( $class ) {
78
+ $path = null;
79
+ $class = strtolower( $class );
80
+ $file = 'class-' . str_replace( '_', '-', $class ) . '.php';
81
+
82
+ // the possible pathes containing classes
83
+ $possible_pathes = array(
84
+ AUXPFO_INC_DIR . '/classes/',
85
+ AUXPFO_PUB_DIR . '/includes/',
86
+ AUXPFO_ADMIN_DIR . '/includes/classes/'
87
+ );
88
+
89
+ foreach ( $possible_pathes as $path ) {
90
+ if( is_readable( THEME_DIR . $path . $file ) ){
91
+ locate_template( $path . $file, true, true );
92
+ return;
93
+ }
94
+ }
95
+ }
96
+
97
+
98
+
99
+ /**
100
+ *
101
+ * @return [type] [description]
102
+ */
103
+ private function includes() {
104
+
105
+ // load common functionalities
106
+ include_once( AUXPFO_INC_DIR . '/index.php' );
107
+
108
+ // Dashboard and Administrative Functionality
109
+ if ( is_admin() ) {
110
+
111
+ // Load AJAX spesific codes on demand
112
+ if ( defined('DOING_AJAX') && DOING_AJAX ){
113
+ include( AUXPFO_ADMIN_DIR . '/includes/admin-ajax.php' );
114
+
115
+
116
+ // Load admin spesific codes
117
+ } else {
118
+ $this->admin = include( AUXPFO_ADMIN_DIR . '/class-auxpfo-admin.php' );
119
+ }
120
+
121
+ // Load Frontend Functionality
122
+ } else {
123
+ include 'includes/index.php';
124
+ }
125
+
126
+ }
127
+
128
+
129
+ /**
130
+ * Init the plugin when WordPress Initialises.
131
+ *
132
+ * @return void
133
+ */
134
+ public function init(){
135
+
136
+ // @deprecate version 5.0
137
+ global $wp_version;
138
+ if ( version_compare( $wp_version, '4.6', '<' ) ) {
139
+ // Load plugin text domain
140
+ $this->load_plugin_textdomain();
141
+ }
142
+ }
143
+
144
+
145
+ /**
146
+ * Return an instance of this class.
147
+ *
148
+ * @since 1.0.0
149
+ *
150
+ * @return object A single instance of this class.
151
+ */
152
+ public static function get_instance() {
153
+
154
+ // If the single instance hasn't been set, set it now.
155
+ if ( null == self::$instance ) {
156
+ self::$instance = new self;
157
+ }
158
+
159
+ return self::$instance;
160
+ }
161
+
162
+
163
+ /**
164
+ * Fired when the plugin is activated.
165
+ *
166
+ * @since 1.0.0
167
+ *
168
+ * @param boolean $network_wide True if WPMU superadmin uses
169
+ * "Network Activate" action, false if
170
+ * WPMU is disabled or plugin is
171
+ * activated on an individual blog.
172
+ */
173
+ public static function activate( $network_wide ) {
174
+
175
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
176
+
177
+ if ( $network_wide ) {
178
+
179
+ // Get all blog ids
180
+ $blog_ids = self::get_blog_ids();
181
+
182
+ foreach ( $blog_ids as $blog_id ) {
183
+
184
+ switch_to_blog( $blog_id );
185
+ self::single_activate();
186
+ }
187
+
188
+ restore_current_blog();
189
+
190
+ } else {
191
+ self::single_activate();
192
+ }
193
+
194
+ } else {
195
+ self::single_activate();
196
+ }
197
+ }
198
+
199
+
200
+ /**
201
+ * Fired when the plugin is deactivated.
202
+ *
203
+ * @since 1.0.0
204
+ *
205
+ * @param boolean $network_wide True if WPMU superadmin uses
206
+ * "Network Deactivate" action, false if
207
+ * WPMU is disabled or plugin is
208
+ * deactivated on an individual blog.
209
+ */
210
+ public static function deactivate( $network_wide ) {
211
+
212
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
213
+
214
+ if ( $network_wide ) {
215
+
216
+ // Get all blog ids
217
+ $blog_ids = self::get_blog_ids();
218
+
219
+ foreach ( $blog_ids as $blog_id ) {
220
+ switch_to_blog( $blog_id );
221
+ self::single_deactivate();
222
+ }
223
+
224
+ restore_current_blog();
225
+
226
+ } else {
227
+ self::single_deactivate();
228
+ }
229
+
230
+ } else {
231
+ self::single_deactivate();
232
+ }
233
+
234
+ }
235
+
236
+
237
+ /**
238
+ * Fired for each blog when the plugin is activated.
239
+ *
240
+ * @since 1.0.0
241
+ */
242
+ private static function single_activate() {
243
+ do_action( 'auxpfo_activated', get_current_blog_id() );
244
+ }
245
+
246
+
247
+ /**
248
+ * Fired for each blog when the plugin is deactivated.
249
+ *
250
+ * @since 1.0.0
251
+ */
252
+ private static function single_deactivate() {
253
+ do_action( 'auxpfo_deactivated' );
254
+ }
255
+
256
+
257
+ /**
258
+ * Fired when a new site is activated with a WPMU environment.
259
+ *
260
+ * @since 1.0.0
261
+ *
262
+ * @param int $blog_id ID of the new blog.
263
+ */
264
+ public function activate_new_site( $blog_id ) {
265
+ if ( 1 !== did_action( 'wpmu_new_blog' ) ) {
266
+ return;
267
+ }
268
+
269
+ switch_to_blog( $blog_id );
270
+ self::single_activate();
271
+ restore_current_blog();
272
+ }
273
+
274
+ /**
275
+ * Get all blog ids of blogs in the current network that are:
276
+ * - not archived
277
+ * - not spam
278
+ * - not deleted
279
+ *
280
+ * @since 1.0.0
281
+ *
282
+ * @return array|false The blog ids, false if no matches.
283
+ */
284
+ private static function get_blog_ids() {
285
+ global $wpdb;
286
+
287
+ // get an array of blog ids
288
+ $sql = "SELECT blog_id FROM $wpdb->blogs
289
+ WHERE archived = '0' AND spam = '0'
290
+ AND deleted = '0'";
291
+
292
+ return $wpdb->get_col( $sql );
293
+ }
294
+
295
+ /**
296
+ * Get the template path.
297
+ * @return string
298
+ */
299
+ public function template_path() {
300
+ return apply_filters( 'auxin_portfolio_template_path', AUXPFO_PUB_DIR . '/templates/' );
301
+ }
302
+
303
+
304
+ /**
305
+ * Load the plugin text domain for translation.
306
+ *
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
+ }
316
+
317
+ endif;
318
+
319
+ function AUXPFO(){ return AUXPFO::get_instance(); }
320
+ AUXPFO();
public/includes/class-auxpfo-frontend-assets.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Load frontend scripts and styles
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
+ /**
14
+ * Constructor
15
+ */
16
+ class AUXPFO_Frontend_Assets {
17
+
18
+
19
+ /**
20
+ * Construct
21
+ */
22
+ public function __construct() {
23
+
24
+ }
25
+
26
+ /**
27
+ * Styles for admin
28
+ *
29
+ * @return void
30
+ */
31
+ public function load_styles() {
32
+ //wp_enqueue_style( AUXPFO_SLUG .'-main', AUXPFO_PUB_URL . '/assets/css/main.css', array(), AUXPFO_VERSION );
33
+ }
34
+
35
+ /**
36
+ * Scripts for admin
37
+ *
38
+ * @return void
39
+ */
40
+ public function load_scripts() {
41
+ //wp_enqueue_script( AUXPFO_SLUG .'-main', AUXPFO_PUB_URL . '/assets/js/main.js', array('jquery'), AUXPFO_VERSION, true );
42
+ }
43
+
44
+ }
45
+ return new AUXPFO_Frontend_Assets();
public/includes/index.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // If this file is called directly, abort.
4
+ if ( ! defined( 'WPINC' ) ) {
5
+ die('No Naughty Business Please !');
6
+ }
7
+
8
+ include 'class-auxpfo-frontend-assets.php';
9
+ include 'templates-post.php';
public/includes/templates-post.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! function_exists('auxpfo_get_portfolio_config') ) {
4
+
5
+ function auxpfo_get_portfolio_config( $post, $settings ) {
6
+ global $aux_content_width;
7
+
8
+ $defaults = array(
9
+ 'request_from' => 'archive',
10
+ 'content_width' => '',
11
+ 'upscale_image' => true,
12
+ 'preloadable_image' => false,
13
+ 'media_size' => '', // large, medium, thumbnail
14
+ 'aspect_ratio' => 1,
15
+ 'add_image_hw' => true, // whether to add with and height attrs to image
16
+ 'image_sizes' => array(),
17
+ 'srcset_sizes' => array(),
18
+ 'crop' => true
19
+ );
20
+
21
+ $settings = wp_parse_args( $settings, $defaults );
22
+ extract( $settings );
23
+
24
+ if ( empty( $media_width ) ) {
25
+ $media_width = $aux_content_width;
26
+ }
27
+
28
+ $args = array(
29
+ 'show_share_btn' => true,
30
+ 'show_like_btn' => true,
31
+ 'show_actions' => true,
32
+ 'show_side' => true,
33
+ 'show_title' => true,
34
+ 'the_media' => '',
35
+ 'the_attach' => '',
36
+ 'has_attach' => false,
37
+ 'post_class' => '',
38
+ 'media_parent_class'=> '',
39
+ 'media_class' => '',
40
+ 'sticky_sidebar' => false,
41
+ 'display_cat' => true
42
+ );
43
+
44
+ if( empty( $post ) ){
45
+ return $args;
46
+ }
47
+
48
+
49
+ // get the post media layout
50
+ if( 'default' == $media_layout = auxin_get_post_meta( $post->ID, '_media_layout', 'default' ) ){
51
+ $media_layout = auxin_get_option( 'portfolio_single_media_layout' );
52
+ }
53
+
54
+ // get side position
55
+ if( 'default' == $side_pos = auxin_get_post_meta( $post->ID, '_side_info_pos', 'default' ) ){
56
+ // $side_pos = is_rtl() ? 'left' : 'right';
57
+ $side_pos = auxin_get_option( 'portfolio_single_side_pos', 'right' );
58
+ }
59
+
60
+ // get display_cat
61
+ if( 'default' == $display_cat = auxin_get_post_meta( $post->ID, '_side_info_dicplay_cat', 'default' ) ){
62
+ $display_cat = auxin_get_option( 'portfolio_single_display_category', true );
63
+ }
64
+ $args['display_cat'] = ( $display_cat == "yes" || $display_cat === true )? true: false;
65
+
66
+ // get display_tag
67
+ if( 'default' == $display_tag = auxin_get_post_meta( $post->ID, '_side_info_dicplay_tag', 'default' ) ){
68
+ $display_tag = auxin_get_option( 'portfolio_single_display_tag', true );
69
+ }
70
+ $args['display_tag'] = ($display_tag == "yes" || $display_tag === true )? true: false;
71
+
72
+ if ( 'bottom' != $side_pos ) {
73
+ if( 'default' == $sticky_sidebar = auxin_get_post_meta( $post->ID, '_sticky_sidebar', 'default' ) ){
74
+ $sticky_sidebar = auxin_get_option( 'portfolio_single_stcky_sidebar', false );
75
+ }
76
+ // sticky sidebar
77
+ $args['sticky_sidebar'] = ($sticky_sidebar == "yes" || $display_tag === true )? true: false;
78
+ }
79
+
80
+ // specify the side position
81
+ $args['post_class'] .= 'aux-side-' . $side_pos;
82
+
83
+ switch ( $media_layout ) {
84
+ case 'classic':
85
+ $args['media_parent_class'] = 'aux-stack';
86
+ $args['media_class'] = 'aux-media-frame aux-media-image';
87
+ break;
88
+
89
+ case 'grid':
90
+ $args['post_class'] .= ' portfolio-grid';
91
+ $args['media_parent_class'] = 'aux-portolio-grid gallery-columns-2';
92
+ $args['media_class'] = 'aux-portolio-grid-column';
93
+ break;
94
+
95
+ case 'masonry':
96
+ case 'land':
97
+ case 'tile':
98
+ default:
99
+
100
+ break;
101
+ }
102
+
103
+ if( ! empty( $media_size ) ){
104
+ if( is_array( $media_size ) ){
105
+ $media_size['width'] = ! empty( $media_size['width' ] ) ? $media_size['width' ] : '';
106
+ $media_size['height'] = ! empty( $media_size['height'] ) ? $media_size['height'] : '';
107
+
108
+ $size = array( 'width' => $media_size['width'], 'height' => $media_size['height'] );
109
+ } else {
110
+ $size = auxin_wp_get_image_size( $media_size );
111
+ $size = array( 'width' => $size['width'], 'height' => $size['height'] );
112
+ }
113
+ } else {
114
+ $size = array( 'width' => $media_width, 'height' => $media_width * $aspect_ratio );
115
+ }
116
+
117
+
118
+ if ( 'archive' == $request_from ) {
119
+ $args['has_attach'] = has_post_thumbnail( $post->ID );
120
+
121
+ if ( $args['has_attach'] ) {
122
+ $args['the_attach'] = auxin_get_the_post_responsive_thumbnail(
123
+ $post->ID,
124
+ array(
125
+ 'size' => $size,
126
+ 'crop' => $crop,
127
+ 'preloadable' => $preloadable_image,
128
+ 'add_hw' => $add_image_hw,
129
+ 'image_sizes' => $image_sizes,
130
+ 'srcset_sizes' => $srcset_sizes,
131
+ 'upscale' => $upscale_image
132
+ )
133
+ );
134
+ }
135
+
136
+ $args['the_media'] = '<div class="aux-media-frame aux-media-image">'.
137
+ '<a href="'.get_permalink( $post->ID ).'">'.
138
+ $args['the_attach'].
139
+ '</a>'.
140
+ '</div>';
141
+ } else {
142
+ $args['has_attach'] = ! auxin_get_post_meta( $post->ID, '_no_feature_image_in_single', 0 );
143
+
144
+ if( $args['has_attach'] ){
145
+ $args['the_media'] = get_the_post_thumbnail( $post->ID, 'large' );
146
+ $args['has_attach'] = ! empty( $args['the_media'] );
147
+ }
148
+ }
149
+
150
+ // Don't display post title if title bar is enable to prevent duplicated title in single page
151
+ if( 'archive' !== $request_from && auxin_get_post_meta( $post->ID, 'aux_title_bar_show', 0 ) ) {
152
+ $args['show_title'] = false;
153
+ }
154
+
155
+ // action buttons
156
+ $args['show_share_btn'] = ( auxin_get_option( 'show_portfolio_single_share', true ) );
157
+ $args['show_like_btn' ] = ( auxin_get_option( 'show_portfolio_single_like', true ) );
158
+ $args['show_actions' ] = ( auxin_get_option( 'show_portfolio_single_share_like_section', true ) );
159
+ if( !$args['show_share_btn'] && !$args['show_like_btn'] ) {
160
+ $args['show_actions' ] = false;
161
+ }
162
+
163
+ return $args;
164
+ }
165
+
166
+ }
167
+
168
+ /**
169
+ * Retrieves the markup for related portfolios
170
+ *
171
+ * @param array $args The element setting
172
+ * @return string The final markup
173
+ */
174
+ function auxpfo_get_portfolio_related_posts( $args = array() ){
175
+
176
+ if( ! function_exists('auxin_get_the_related_posts') ){
177
+ return __( 'Please activate "Auxin Elements" plugin.' );
178
+ }
179
+
180
+ global $post;
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 ),
188
+ 'tablet_cnum' => 2,
189
+ 'phone_cnum' => 1,
190
+ 'display_title' => true,
191
+ 'show_info' => true,
192
+ 'show_date' => false,
193
+ 'author_or_readmore' => '', // readmore, author, none
194
+ 'display_categories' => auxin_get_option('portfolio_related_posts_display_taxonomies', true ),
195
+ 'max_taxonomy_num' => 3,
196
+ 'wp_query_args' => array(),
197
+ 'content_layout' => 'entry-boxed', // entry-boxed
198
+ 'post_info_position' => 'after-title',
199
+ 'image_aspect_ratio' => 0.75,
200
+ 'preview_mode' => auxin_get_option( 'portfolio_related_posts_preview_mode', 'grid' ),
201
+ 'grid_table_hover' => 'bgimage-bgcolor',
202
+ 'ignore_media' => false, // whether to ignore media for this
203
+ 'exclude' => '',
204
+ 'include' => '',
205
+ 'order_by' => 'menu_order date',
206
+ 'order' => 'desc',
207
+ 'exclude_without_media' => 0,
208
+ 'exclude_custom_post_formats' => 0,
209
+ 'exclude_quote_link' => 0,
210
+ 'exclude_post_formats_in' => array(), // the list od post formats to exclude
211
+ 'display_like' => true,
212
+ 'extra_classes' => auxin_get_option('portfolio_related_posts_align_center', false ) ? 'aux-text-align-center': '',
213
+ 'extra_column_classes' => '',
214
+ 'custom_el_id' => '',
215
+ 'carousel_space' => 30,
216
+ 'carousel_autoplay' => false,
217
+ 'full_width' => false,
218
+ 'carousel_autoplay_delay' => '2',
219
+ 'carousel_navigation' => 'perpage',
220
+ 'carousel_navigation_control' => 'bullets',
221
+ 'carousel_loop' => 1,
222
+ 'base_class' => 'aux-widget-recent-posts aux-widget-related-posts',
223
+ 'text_alignment' => '',
224
+ 'container_start_tag' => '<div class="container aux-fold">',
225
+ 'container_end_tag' => '</div>'
226
+ );
227
+
228
+ // get snap option
229
+ if( 'default' == $snap_related_item = auxin_get_post_meta( $post->ID, '_related_posts_snap_items', 'default' ) ) {
230
+ $snap_related_item = auxin_get_option( 'portfolio_related_posts_snap_items', false );
231
+ }
232
+ $defaults['carousel_space'] = $snap_related_item = auxin_is_true( $snap_related_item )? 0: 30;
233
+
234
+ // whether the wapper is full width or not
235
+ // get full width option
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
+
245
+ // whether to snap the items (0 space between the items)
246
+ if( $defaults['carousel_space'] === 0 ){
247
+ $defaults['extra_column_classes'] = 'aux-no-gutter';
248
+ }
249
+
250
+
251
+ $args = wp_parse_args( $args, $defaults );
252
+
253
+ // ------------------------------------------------
254
+
255
+ return auxin_get_the_related_posts( $args );
256
+ }
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
public/templates/archive-portfolio.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Template for displaying archive page of portfolio.
4
+ *
5
+ *
6
+ * @package Auxin
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link http://averta.net/phlox/
10
+ * @copyright (c) 2010-2017
11
+ */
12
+ get_header();?>
13
+
14
+ <main id="main" <?php auxin_content_main_class(); ?> >
15
+ <div class="aux-wrapper">
16
+ <div class="container aux-fold clearfix">
17
+
18
+ <div id="primary" class="aux-primary">
19
+ <div class="content" role="main" data-target="archive">
20
+
21
+ <?php
22
+ if( have_posts() ){
23
+ auxpfo_get_template_part( 'theme-parts/loop', 'portfolio' );
24
+ } else {
25
+ auxpfo_get_template_part( 'theme-parts/content', 'none' );
26
+ }
27
+ ?>
28
+ </div><!-- end content -->
29
+ </div><!-- end primary -->
30
+
31
+
32
+ <?php get_sidebar(); ?>
33
+
34
+ </div><!-- end container -->
35
+ </div><!-- end wrapper -->
36
+ </main><!-- end main -->
37
+
38
+ <?php get_sidebar('footer'); ?>
39
+ <?php get_footer(); ?>
public/templates/single-portfolio.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Template for displaying all single portfolio
4
+ *
5
+ *
6
+ * @package Auxin
7
+ * @license LICENSE.txt
8
+ * @author
9
+ * @link http://averta.net/phlox/
10
+ * @copyright (c) 2010-2017
11
+ */
12
+ $is_pass_protected = post_password_required();
13
+
14
+ get_header(); ?>
15
+ <?php //include 'slider.php'; ?>
16
+
17
+ <main id="main" <?php auxin_content_main_class(); ?> >
18
+ <div class="aux-wrapper">
19
+ <div class="container aux-fold">
20
+
21
+ <div id="primary" class="aux-primary" >
22
+ <div class="content" role="main" >
23
+
24
+ <?php if ( have_posts() && ! $is_pass_protected ) : ?>
25
+
26
+ <?php auxpfo_get_template_part( 'theme-parts/single', get_post_type() ); ?>
27
+
28
+ <?php comments_template( '/comments.php', true ); ?>
29
+
30
+ <?php elseif( $is_pass_protected ) : ?>
31
+
32
+ <?php echo get_the_password_form(); ?>
33
+
34
+ <?php else : ?>
35
+
36
+ <?php auxpfo_get_template_part( 'theme-parts/content', 'none' ); ?>
37
+
38
+ <?php endif; ?>
39
+
40
+ </div><!-- end content -->
41
+
42
+ <?php
43
+ // get next/prev portfolio button
44
+ if( 'default' == $display_next_pre = auxin_get_post_meta( $post->ID, '_show_next_prev_nav', 'default' ) ){
45
+ $display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
46
+ }
47
+ $display_next_pre = auxin_is_true( $display_next_pre )? true: false;
48
+
49
+ if( $display_next_pre ) {
50
+ if( 'default' == $next_prev_skin = auxin_get_post_meta( $post->ID, '_next_prev_nav_skin', 'default' ) ){
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
+ ));
59
+ }
60
+ ?>
61
+
62
+ </div><!-- end primary -->
63
+
64
+
65
+ <?php get_sidebar(); ?>
66
+
67
+
68
+ </div><!-- end container -->
69
+
70
+ <?php
71
+ // get display_related option
72
+ if( 'default' == $display_related = auxin_get_post_meta( $post->ID, '_display_related', 'default' ) ) {
73
+ $display_related = auxin_get_option( 'show_portfolio_related_posts', true );
74
+ }
75
+ $display_related = auxin_is_true( $display_related )? true: false;
76
+ if( $display_related ) {
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
84
+ if( 'default' == $desktop_cnum = auxin_get_post_meta( $post->ID, '_related_posts_column_number', 'default' ) ) {
85
+ $desktop_cnum = auxin_get_option( 'portfolio_related_posts_column_number', true );
86
+ }
87
+
88
+ // get preview_mode option
89
+ if( 'default' == $preview_mode = auxin_get_post_meta( $post->ID, '_related_posts_preview_mode', 'default' ) ) {
90
+ $preview_mode = auxin_get_option( 'portfolio_related_posts_preview_mode', true );
91
+ }
92
+
93
+ // get alignment option
94
+ if( 'default' == $extra_classes = auxin_get_post_meta( $post->ID, '_related_posts_align_center', 'default' ) ) {
95
+ $extra_classes = auxin_get_option( 'portfolio_related_posts_align_center', true );
96
+ }
97
+ $extra_classes = ( $extra_classes == "yes" || $extra_classes === true )? true: false;
98
+
99
+ // get display_categories option
100
+ if( 'default' == $display_categories = auxin_get_post_meta( $post->ID, '_related_posts_display_taxonomies', 'default' ) ) {
101
+ $display_categories = auxin_get_option( 'portfolio_related_posts_display_taxonomies', true );
102
+ }
103
+ $display_categories = auxin_is_true( $display_categories )? true: false;
104
+
105
+
106
+ // set arguments
107
+ $defaults = array(
108
+ 'title' => $related_title_label,
109
+ 'desktop_cnum' => $desktop_cnum,
110
+ 'preview_mode' => $preview_mode,
111
+ 'extra_classes' => ( $extra_classes ) ? 'aux-text-align-center': '',
112
+ 'display_categories' => $display_categories
113
+ );
114
+ echo auxpfo_get_portfolio_related_posts( $defaults );
115
+ }
116
+ ?>
117
+ </div><!-- end wrapper -->
118
+ </main><!-- end main -->
119
+
120
+ <?php get_sidebar('footer'); ?>
121
+ <?php get_footer(); ?>
public/templates/taxonomy-portfolio-cat.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /* Loops through all portfolio, taxes, .. and display posts */
2
+
3
+ /**
4
+ * The template for displaying taxonomies
5
+ *
6
+ *
7
+ * @package Auxin
8
+ * @license LICENSE.txt
9
+ * @author
10
+ * @link http://averta.net/phlox/
11
+ * @copyright (c) 2010-2017
12
+ */
13
+ get_header();?>
14
+
15
+ <main id="main" <?php auxin_content_main_class(); ?> >
16
+ <div class="aux-wrapper">
17
+ <div class="container aux-fold clearfix">
18
+
19
+ <div id="primary" class="aux-primary">
20
+ <div class="content" role="main" data-target="archive">
21
+
22
+ <?php
23
+ if( have_posts() ){
24
+ auxpfo_get_template_part( 'theme-parts/tax', 'portfolio' );
25
+ } else {
26
+ auxpfo_get_template_part( 'theme-parts/content', 'none' );
27
+ }
28
+ ?>
29
+ </div><!-- end content -->
30
+ </div><!-- end primary -->
31
+
32
+
33
+ <?php get_sidebar(); ?>
34
+
35
+ </div><!-- end container -->
36
+ </div><!-- end wrapper -->
37
+ </main><!-- end main -->
38
+
39
+ <?php get_sidebar('footer'); ?>
40
+ <?php get_footer(); ?>
41
+
42
+
public/templates/taxonomy-portfolio-tag.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /* Loops through all portfolio, taxes, .. and display posts */
2
+
3
+ /**
4
+ * The template for displaying taxonomies
5
+ *
6
+ *
7
+ * @package Auxin
8
+ * @license LICENSE.txt
9
+ * @author
10
+ * @link http://averta.net/phlox/
11
+ * @copyright (c) 2010-2017
12
+ */
13
+ include 'taxonomy-portfolio-cat.php';
public/templates/theme-parts/entry/portfolio-column-overlay.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <article <?php post_class( 'aux-item-overlay' . ' ' . $hover_classes . ' ' . $item_inner_classes ); ?> >
2
+ <div class="entry-media <?php echo $frame_effect_classes . ' ' . $item_inner_classes ?>">
3
+ <?php echo $the_media; ?>
4
+ </div>
5
+
6
+ <div class="aux-overlay-content">
7
+ <?php if( $show_lightbox ) { ?>
8
+ <div class="aux-portfolio-overlay-buttons">
9
+ <div class="aux-hover-circle-plus aux-delay-2x">
10
+ <a href="<?php echo auxin_get_the_attachment_url( $post->ID, 'full' )?>" <?php echo $lightbox_attrs; ?> class="aux-lightbox-btn " >
11
+ <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
12
+ <span class="aux-overlay"></span>
13
+ <span class="aux-svg-arrow aux-medium-plus aux-white"></span>
14
+ <span class="aux-hover-arrow aux-svg-arrow aux-medium-plus"></span>
15
+ </div>
16
+ </a>
17
+ </div>
18
+ <div class="aux-arrow-post-link aux-hover-circle-link">
19
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
20
+ <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
21
+ <span class="aux-overlay"></span>
22
+ <span class="aux-svg-arrow aux-medium-right aux-white"></span>
23
+ <span class="aux-hover-arrow aux-svg-arrow aux-medium-right"></span>
24
+ </div>
25
+ </a>
26
+ </div>
27
+
28
+ </div>
29
+ <?php } ?>
30
+
31
+ <?php if( $show_title || $show_info ) { ?>
32
+ <div class="entry-main">
33
+
34
+ <?php if( $show_title ) { ?>
35
+ <h3 class="aux-portfolio-item-title aux-hover-move-up">
36
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
37
+ <?php echo !empty( $the_name ) ? $the_name : get_the_title(); ?>
38
+ </a>
39
+ </h3>
40
+ <?php } ?>
41
+
42
+ <?php if( $show_info ) { ?>
43
+ <div class="entry-tax aux-hover-move-up aux-delay-1x">
44
+ <?php // the_category(' '); we can use this template tag, but customizable way is needed! ?>
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
+ ?>
52
+ </div>
53
+ <?php } ?>
54
+
55
+ </div>
56
+ <?php } ?>
57
+ </div>
58
+ </article>
public/templates/theme-parts/entry/portfolio-column.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <article <?php post_class( 'aux-item-classic' ); ?> >
2
+ <div class="<?php echo $hover_classes ?>">
3
+ <div class="entry-media <?php echo $frame_effect_classes ?>">
4
+ <?php echo $the_media; ?>
5
+ </div>
6
+
7
+ <?php if( $show_lightbox ) { ?>
8
+ <div class="aux-overlay-content">
9
+ <div class="aux-portfolio-overlay-buttons">
10
+ <div class="aux-lightbox-btn aux-hover-circle-plus aux-delay-2x">
11
+ <a href="<?php echo auxin_get_the_attachment_url( $post->ID, 'full' )?>" <?php echo $lightbox_attrs; ?> >
12
+ <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
13
+ <span class="aux-overlay"></span>
14
+ <span class="aux-svg-arrow aux-medium-plus aux-white"></span>
15
+ <span class="aux-hover-arrow aux-svg-arrow aux-medium-plus"></span>
16
+ </div>
17
+ </a>
18
+ </div>
19
+ <div class="aux-arrow-post-link aux-hover-circle-link">
20
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
21
+ <div class="aux-arrow-nav aux-round aux-hover-slide aux-outline aux-semi-small aux-white">
22
+ <span class="aux-overlay"></span>
23
+ <span class="aux-svg-arrow aux-medium-right aux-white"></span>
24
+ <span class="aux-hover-arrow aux-svg-arrow aux-medium-right"></span>
25
+ </div>
26
+ </a>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ <?php } ?>
31
+ </div>
32
+
33
+ <?php if( $show_title || $show_info ) { ?>
34
+ <div class="entry-main">
35
+
36
+ <?php if( $show_title ) { ?>
37
+ <header class="entry-header">
38
+ <h3 class="entry-title">
39
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
40
+ <?php echo !empty( $the_name ) ? $the_name : get_the_title(); ?>
41
+ </a>
42
+ </h3>
43
+ </header>
44
+ <?php } ?>
45
+ <?php
46
+ if( $display_like && function_exists('wp_ulike') ){
47
+ wp_ulike('get');
48
+ }
49
+ ?>
50
+ <?php if( $show_info ) { ?>
51
+ <div class="entry-info">
52
+ <span class="entry-tax">
53
+ <?php // the_category(' '); we can use this template tag, but customizable way is needed! ?>
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>
69
+ <?php } ?>
70
+ </div>
71
+ <?php } ?>
72
+
73
+ </article>
public/templates/theme-parts/entry/portfolio-land.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $post, $more, $aux_content_width;
3
+ $more = 0; // to enable read more tag
4
+
5
+ // the image width is 63% of wrapper
6
+ $media_width = $aux_content_width * 0.63;
7
+ $image_aspect_ratio = 0.65;
8
+
9
+ $post_vars = auxpfo_get_portfolio_config( $post, array(
10
+ 'request_from' => 'archive',
11
+ 'media_width' => $media_width,
12
+ 'media_size' => 'large',
13
+ 'upscale_image' => true,
14
+ 'crop' => true,
15
+ 'add_image_hw' => true,
16
+ 'image_sizes' => array(
17
+ array( 'min' => '', 'max' => '1024px', 'width' => '100vw' ),
18
+ array( 'min' => '', 'max' => '', 'width' => $media_width.'px' )
19
+ ),
20
+ 'srcset_sizes' => array(
21
+ array( 'width' => $media_width, 'height' => $media_width * $image_aspect_ratio ),
22
+ array( 'width' => 2 * $media_width, 'height' => 2 * $media_width * $image_aspect_ratio ),
23
+ array( 'width' => 4 * $media_width, 'height' => 4 * $media_width * $image_aspect_ratio )
24
+ )
25
+ ) );
26
+ extract( $post_vars );
27
+ ?>
28
+ <article <?php post_class( 'aux-single-portfolio-wrapper aux-portfolio-land' ); ?> >
29
+ <?php if ( $has_attach ) { ?>
30
+ <div class="entry-media">
31
+ <?php echo $the_media; ?>
32
+ </div>
33
+ <?php
34
+ }else { ?>
35
+ <div class="entry-media">
36
+ <div class="aux-media-frame aux-media-image">
37
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
38
+ <img src="<?php echo AUX_URL . 'images/welcome/image-frame.svg'; ?>" class="auxin-attachment auxin-featured-image attachment-1024x1024" alt="portfolio default image" >
39
+ </a>
40
+ </div>
41
+ </div>
42
+ <?php }
43
+ ?>
44
+ <div class="aux-land-side">
45
+ <div class="entry-main">
46
+
47
+ <header class="entry-header">
48
+ <h3 class="entry-title">
49
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
50
+ <?php echo !empty( $the_name ) ? $the_name : get_the_title(); ?>
51
+ </a>
52
+ </h3>
53
+ </header>
54
+
55
+ <div class="entry-content">
56
+ <?php
57
+
58
+ // $content_listing_type = is_category() || is_tag() ? auxin_get_option( 'post_taxonomy_archive_content_on_listing' ) : auxin_get_option( 'blog_content_on_listing' );
59
+ // $content_listing_length = is_category() || is_tag() ? auxin_get_option( 'post_taxonomy_archive_on_listing_length', 255 ) : auxin_get_option( 'excerpt_len', 255 );
60
+
61
+ // get overview context
62
+ $_overview = auxin_get_post_meta( $post->ID, '_overview' );
63
+
64
+ if( has_excerpt() ) {
65
+ the_excerpt();
66
+ } else if( ! empty( $_overview ) ){
67
+ auxin_the_trimmed_string( auxin_strip_shortcodes( auxin_extract_text( $_overview ) ), 170 );
68
+ }
69
+
70
+ ?>
71
+ </div>
72
+ </div>
73
+
74
+ <footer class="entry-meta">
75
+ <div class="portfolio-tax">
76
+ <span class="entry-tax">
77
+ <?php // the_category(' '); we can use this template tag, but customizable way is needed! ?>
78
+ <?php $tax_name = 'portfolio-cat';
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>
94
+ <?php
95
+ if( function_exists('wp_ulike') && auxin_get_option( 'show_portfolio_archive_like_button' ) ) { ?>
96
+ <div class="comments-iconic">
97
+ <?php
98
+ wp_ulike('get');
99
+ ?>
100
+ </div>
101
+ <?php } ?>
102
+
103
+ </footer>
104
+
105
+ </div>
106
+
107
+ </article>
public/templates/theme-parts/entry/portfolio.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <article <?php post_class( 'aux-col' ); ?> >
3
+ <?php if ( $has_attach ) : ?>
4
+ <div class="entry-media">
5
+
6
+ <?php echo $the_media; ?>
7
+
8
+ </div>
9
+ <?php endif; ?>
10
+
11
+ <div class="entry-main">
12
+
13
+ <header class="entry-header">
14
+ <?php
15
+ if( $show_title ) {
16
+ ?>
17
+ <h3 class="entry-title">
18
+ <a href="<?php echo !empty( $the_link ) ? $the_link : get_permalink(); ?>">
19
+ <?php echo !empty( $the_name ) ? $the_name : get_the_title(); ?>
20
+ </a>
21
+ </h3>
22
+ <?php
23
+ } ?>
24
+ </header>
25
+
26
+ <div class="entry-info">
27
+ <span class="entry-tax">
28
+ <?php // the_category(' '); we can use this template tag, but customizable way is needed! ?>
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>
41
+
42
+ </article>
public/templates/theme-parts/entry/single-portfolio.php ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $post;
3
+
4
+ $post_vars = auxpfo_get_portfolio_config( $post, array( 'request_from' => 'single' ) );
5
+ extract( $post_vars );
6
+ ?>
7
+
8
+ <article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?> role="article" >
9
+
10
+ <div class="entry-main">
11
+ <?php
12
+ if( $has_attach ) {
13
+ echo '<div class="entry-media ' . $media_parent_class . '">' . $the_media . '</div>';
14
+ }
15
+ if ( $the_content = auxin_get_the_content() ) {
16
+ echo '<div class="entry-content clearfix">' . $the_content . '</div>';
17
+ }
18
+ ?>
19
+ </div>
20
+ <!-- end of entry main -->
21
+
22
+ <?php if( $show_side ) { ?>
23
+ <!-- start - Portfolio info -->
24
+
25
+ <?php if( $sticky_sidebar ) {
26
+ // 45 is the space between site header and the side area
27
+ $sticky_header_height = ( auxin_get_option('site_header_top_sticky') ? auxin_get_option('site_header_container_scaled_height') : 0 ) + 45;
28
+ ?>
29
+ <div class="entry-side aux-sticky-position" data-use-transform="true" data-sticky-margin="<?php echo $sticky_header_height; ?>" data-boundaries="true">
30
+ <?php } else { ?>
31
+ <div class="entry-side">
32
+ <?php } ?>
33
+ <div class="entry-overview-container">
34
+ <?php
35
+ // get overview context
36
+ $_overview = auxin_get_post_meta( $post->ID, '_overview', '' );
37
+
38
+ if( $_overview || $show_actions ) {
39
+ if( $_overview ){
40
+ echo '<div class="entry-side-overview">' . do_shortcode( $_overview ) . '</div>';
41
+ }
42
+ if( $show_actions ) { ?>
43
+ <div class="entry-actions">
44
+ <?php
45
+ if( function_exists( 'wp_ulike' ) && $show_like_btn ){
46
+ echo aunin_wp_ulike_plugin_btn( array( 'theme_class' => 'wpulike-heart' ) );
47
+ }
48
+ if( $show_share_btn ) { ?>
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
56
+ }
57
+ ?>
58
+ </div>
59
+ <?php }
60
+ } ?>
61
+ </div>
62
+
63
+ <?php
64
+
65
+ if( $display_cat ) {
66
+ // get portfolio categories
67
+ $tax_name = 'portfolio-cat';
68
+ $cat_terms = wp_get_post_terms( $post->ID, $tax_name );
69
+ if( empty( $cat_terms ) ) {
70
+ $display_cat = false;
71
+ }
72
+ }
73
+
74
+ if( $display_tag ) {
75
+ // get portfolio tags
76
+ $tax_name_tag = 'portfolio-tag';
77
+ $tag_terms = wp_get_post_terms( $post->ID, $tax_name_tag );
78
+ if( empty( $tag_terms ) ) {
79
+ $display_tag = false;
80
+ }
81
+ }
82
+
83
+ $lunch_btn_url = auxin_get_post_meta( $post->ID, '_lunch_button_url', '' );
84
+ if( !empty( $lunch_btn_url ) ) {
85
+ $display_lunch = true;
86
+ } else { $display_lunch = false; }
87
+
88
+ // print the portfolio metadata
89
+ $metafields = json_decode( auxin_get_option( 'portfolio_metadata_list_1' ), true );
90
+
91
+ if (is_array( $metafields ) && !array_filter($metafields) ) {
92
+ $display_metafields = true;
93
+ } else { $display_metafields = false; }
94
+
95
+ if( $display_metafields || $display_cat || $display_tag || $display_lunch ){ // start of displaying condition
96
+ echo '<div class="entry-meta-data-container">';
97
+ echo '<div class="entry-meta-data"><dl>';
98
+ if( $display_cat ){
99
+ if ( count($cat_terms) == 1 ) {
100
+ echo "<dt>Category</dt>";
101
+ } else { echo "<dt>Categories</dt>"; }
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
+ }
109
+
110
+ if( $display_tag ) {
111
+ if ( count($tag_terms) == 1 ) {
112
+ echo "<dt>Tag</dt>";
113
+ } else { echo "<dt>Tags</dt>"; }
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
+ }
121
+
122
+ foreach ( $metafields as $metadata_info ) {
123
+ if( ! empty( $metadata_info['id'] ) && $meta_value = auxin_get_post_meta( $post->ID, '_auxin_meta_' . $metadata_info['id'] ) ){
124
+ echo "<dt>{$metadata_info['value']}</dt>";
125
+ echo "<dd>{$meta_value}</dd>";
126
+ }
127
+ }
128
+
129
+ echo '</dl></div>';
130
+
131
+
132
+ if( $display_lunch ) {
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
140
+ ?>
141
+ </div>
142
+ </div>
143
+ <!-- end - Portfolio info -->
144
+ <?php } ?>
145
+
146
+ </article> <!-- end article -->
147
+
public/templates/theme-parts/loop-portfolio.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /* Loops through all portfolio posts */
2
+
3
+
4
+ // the page number
5
+ $paged = max( 1, get_query_var('paged'), get_query_var('page') );
6
+ // get template type id
7
+ $template_type_id = auxin_get_option( 'portfolio_index_template_type', 'grid-1' );
8
+ // get template type
9
+ $template_type = strstr( $template_type_id, '-', true );
10
+ // posts perpage
11
+ $per_page = get_option( 'posts_per_page' );
12
+
13
+
14
+ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
15
+
16
+ $args = array(
17
+ 'posts_per_page' => -1,
18
+ 'paged' => '',
19
+ 'order_by' => 'menu_order date',
20
+ 'order' => 'desc',
21
+ 'display_like' => auxin_get_option( 'show_portfolio_archive_like_button' ),
22
+ 'deeplink' => false,
23
+ 'item_style' => auxin_get_option( 'portfolio_archive_grid_item_type' ),
24
+ 'paginate' => false,
25
+ 'perpage' => false,
26
+ 'show_filters' => false,
27
+ 'show_title' => true,
28
+ 'show_info' => true,
29
+ 'image_aspect_ratio' => auxin_get_option( 'portfolio_image_aspect_ratio'),
30
+ 'space' => auxin_get_option( 'portfolio_archive_grid_space'),
31
+ 'desktop_cnum' => auxin_get_option( 'portfolio_archive_column_number' ),
32
+ 'tablet_cnum' => auxin_get_option( 'portfolio_archive_column_number_tablet' ),
33
+ 'phone_cnum' => auxin_get_option( 'portfolio_archive_column_number_mobile' ),
34
+ 'layout' => $template_type,
35
+ 'tag' => '',
36
+ 'extra_classes' => '',
37
+ 'custom_el_id' => '',
38
+ 'reset_query' => false,
39
+ 'use_wp_query' => true, // true to use the global wp_query, false to use internal custom query
40
+ 'base_class' => 'aux-widget-recent-portfolios'
41
+ );
42
+
43
+ if( 'masonry' == $template_type ){
44
+ unset( $args['image_aspect_ratio'] );
45
+
46
+ } else if( 'tiles' == $template_type ){
47
+ unset( $args['image_aspect_ratio'] );
48
+ unset( $args['space'] );
49
+ unset( $args['desktop_cnum'] );
50
+ unset( $args['tablet_cnum' ] );
51
+ unset( $args['phone_cnum' ] );
52
+ }
53
+
54
+ if( function_exists( 'auxin_widget_recent_portfolios_grid_callback' ) ){
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
62
+ } else {
63
+ global $query_string;
64
+
65
+ $q_args = '&paged='. $paged. '&posts_per_page='. get_option( 'posts_per_page' );
66
+
67
+ // query the posts
68
+ query_posts( $query_string . $q_args );
69
+ // does this query has result?
70
+ $result = have_posts();
71
+ }
72
+
73
+
74
+ // if it is not a shortcode base portfolio page
75
+ if( true === $result ){
76
+
77
+ while ( have_posts() ) : the_post();
78
+
79
+ include 'entry/portfolio-land.php';
80
+
81
+ endwhile; // end of the loop.
82
+
83
+ // if it is a shortcode base portfolio page
84
+ } else if( ! empty( $result ) ){
85
+ echo $result;
86
+
87
+ // if result not found
88
+ } else {
89
+ auxpfo_get_template_part( 'theme-parts/content', 'none' );
90
+ }
91
+
92
+
93
+ auxin_the_paginate_nav(
94
+ array( 'css_class' => auxin_get_option('archive_pagination_skin') )
95
+ );
public/templates/theme-parts/single-portfolio.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ while ( have_posts() ) : the_post();
4
+
5
+ // get the post media layout
6
+ if( 'default' == $media_layout = auxin_get_post_meta( $post->ID, '_media_layout', 'default' ) ){
7
+ $media_layout = auxin_get_option( 'portfolio_single_media_layout' );
8
+ }
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
+ ?>
public/templates/theme-parts/tax-portfolio.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /* Loops through all portfolio, taxes, .. and display posts */
2
+
3
+
4
+ // the page number
5
+ $paged = max( 1, get_query_var('paged'), get_query_var('page') );
6
+ // get portfolio template type id
7
+ $portfolio_taxonomy_template = auxin_get_option( 'portfolio_taxonomy_template_type', 'grid-1' );
8
+ // @TODO: we should use portfolio_archive_items_perpage for portfolio per page in both portfolio archive and taxonomy
9
+ // get template type
10
+ $template_type = strstr( $portfolio_taxonomy_template, '-', true );
11
+ // posts perpage
12
+ $per_page = get_option( 'posts_per_page' );
13
+
14
+
15
+ // if template type is masonry
16
+ if( in_array( $template_type, array('grid', 'masonry', 'tiles') ) ){
17
+
18
+ $args = array(
19
+ 'posts_per_page' => -1,
20
+ 'paged' => '',
21
+ 'order_by' => 'menu_order date',
22
+ 'order' => 'desc',
23
+ 'display_like' => auxin_get_option( 'show_portfolio_taxonomy_like_button' ),
24
+ 'deeplink' => false,
25
+ 'item_style' => auxin_get_option( 'portfolio_taxonomy_grid_item_type' ),
26
+ 'paginate' => false,
27
+ 'perpage' => false,
28
+ 'show_filters' => false,
29
+ 'show_title' => true,
30
+ 'show_info' => true,
31
+ 'image_aspect_ratio' => auxin_get_option( 'portfolio_taxonomy_image_aspect_ratio'),
32
+ 'space' => auxin_get_option( 'portfolio_taxonomy_grid_space') ,
33
+ 'desktop_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number' ),
34
+ 'tablet_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number_tablet' ),
35
+ 'phone_cnum' => auxin_get_option( 'portfolio_taxonomy_column_number_mobile' ),
36
+ 'layout' => 'grid',
37
+ 'tag' => '',
38
+ 'extra_classes' => '',
39
+ 'custom_el_id' => '',
40
+ 'reset_query' => false,
41
+ 'use_wp_query' => true, // true to use the global wp_query, false to use internal custom query
42
+ 'base_class' => 'aux-widget-recent-portfolios'
43
+ );
44
+
45
+ if( 'masonry' == $template_type ){
46
+ unset( $args['image_aspect_ratio'] );
47
+
48
+ } else if( 'tiles' == $template_type ){
49
+ unset( $args['image_aspect_ratio'] );
50
+ unset( $args['space'] );
51
+ unset( $args['desktop_cnum'] );
52
+ unset( $args['tablet_cnum' ] );
53
+ unset( $args['phone_cnum' ] );
54
+ }
55
+
56
+ if( function_exists( 'auxin_widget_recent_portfolios_grid_callback' ) ){
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
64
+ } else {
65
+ global $query_string;
66
+ $q_args = '&paged='. $paged. '&posts_per_page='. get_option( 'posts_per_page' );
67
+
68
+ // query the posts
69
+ query_posts( $query_string . $q_args );
70
+ // does this query has result?
71
+ $result = have_posts();
72
+ }
73
+
74
+
75
+ // if it is not a shortcode base blog page
76
+ if( true === $result ){
77
+
78
+ while ( have_posts() ) : the_post();
79
+ include 'theme-parts/entry/portfolio-land.php';
80
+ endwhile; // end of the loop.
81
+
82
+ // if it is a shortcode base blog page
83
+ } else if( ! empty( $result ) ){
84
+ echo $result;
85
+
86
+ // if result not found
87
+ } else {
88
+ auxpfo_get_template_part( 'theme-parts/content', 'none' );
89
+ }
90
+
91
+ auxin_the_paginate_nav(
92
+ array( 'css_class' => auxin_get_option('archive_pagination_skin') )
93
+ );
94
+
95
+
96
+
uninstall.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired when the plugin is uninstalled.
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
+ // If uninstall not called from WordPress, then exit
14
+ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
15
+ exit( 'No Naughty Business Please !' );
16
+ }