Master Slider – Responsive Touch Slider - Version 1.0.0

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Master Slider – Responsive Touch Slider
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

Files changed (69) hide show
  1. ChangeLog.txt +4 -0
  2. LICENSE.txt +621 -0
  3. README.txt +167 -0
  4. admin/assets/css/global.css +15 -0
  5. admin/assets/css/msp-general.css +476 -0
  6. admin/assets/images/help.png +0 -0
  7. admin/assets/images/master-admin-menu.svg +16 -0
  8. admin/assets/images/misc/shortcode-in-editor.png +0 -0
  9. admin/assets/images/misc/where-is-ms-shortcode.png +0 -0
  10. admin/assets/images/slider-types/pt_custom.png +0 -0
  11. admin/assets/images/starters/autoplay-slider.jpg +0 -0
  12. admin/assets/images/starters/fullwidth-slider-with-thumbs.jpg +0 -0
  13. admin/assets/images/starters/fullwidth-slider.jpg +0 -0
  14. admin/assets/images/starters/simple-slider.jpg +0 -0
  15. admin/assets/images/starters/slider-with-horizontal-thumbs.jpg +0 -0
  16. admin/assets/images/starters/slider-with-slide-info-v2.jpg +0 -0
  17. admin/assets/images/starters/slider-with-slide-info.jpg +0 -0
  18. admin/assets/images/starters/slider-with-vertical-thumbs.jpg +0 -0
  19. admin/assets/images/thirdparty/master-slider-32x32.png +0 -0
  20. admin/assets/js/admin.js +285 -0
  21. admin/assets/js/index.php +1 -0
  22. admin/class-master-slider-admin.php +276 -0
  23. admin/includes/classes/class-axiom-list-table.php +966 -0
  24. admin/includes/classes/class-axiom-screen-help.php +102 -0
  25. admin/includes/classes/class-msp-admin-ajax.php +155 -0
  26. admin/includes/classes/class-msp-admin-assets.php +360 -0
  27. admin/includes/classes/class-msp-importer.php +786 -0
  28. admin/includes/classes/class-msp-list-table.php +200 -0
  29. admin/includes/classes/class-msp-parser.php +907 -0
  30. admin/includes/classes/class-msp-pointers.php +182 -0
  31. admin/includes/classes/class-msp-screen-help.php +160 -0
  32. admin/includes/classes/class-msp-shortcode-factory.php +142 -0
  33. admin/includes/classes/msp-admin-templates.php +13 -0
  34. admin/includes/index.php +27 -0
  35. admin/includes/msp-admin-functions.php +134 -0
  36. admin/includes/msp-admin-templates.php +13 -0
  37. admin/includes/msp-compatibility.php +31 -0
  38. admin/includes/msp-hooks.php +1 -0
  39. admin/includes/msp-sample-sliders.php +134 -0
  40. admin/views/index.php +56 -0
  41. admin/views/setting/class-msp-settings.php +174 -0
  42. admin/views/setting/class-settings-api.php +522 -0
  43. admin/views/slider-dashboard/get-preview.html +34 -0
  44. admin/views/slider-dashboard/list-sliders.php +164 -0
  45. admin/views/slider-dashboard/preview.php +71 -0
  46. admin/views/slider-panel/css/codemirror.css +264 -0
  47. admin/views/slider-panel/css/jquery-ui-1.10.4.min.css +6 -0
  48. admin/views/slider-panel/css/jquery.jscrollpane.css +115 -0
  49. admin/views/slider-panel/css/msp-components.css +200 -0
  50. admin/views/slider-panel/css/msp-style.css +1132 -0
  51. admin/views/slider-panel/css/reset.css +57 -0
  52. admin/views/slider-panel/css/spectrum.css +496 -0
  53. admin/views/slider-panel/images/center.png +0 -0
  54. admin/views/slider-panel/images/fill.png +0 -0
  55. admin/views/slider-panel/images/fit.png +0 -0
  56. admin/views/slider-panel/images/help.png +0 -0
  57. admin/views/slider-panel/images/loading.gif +0 -0
  58. admin/views/slider-panel/images/masterslider.gif +0 -0
  59. admin/views/slider-panel/images/no-color.gif +0 -0
  60. admin/views/slider-panel/images/patt.png +0 -0
  61. admin/views/slider-panel/images/stretch.png +0 -0
  62. admin/views/slider-panel/images/tile.png +0 -0
  63. admin/views/slider-panel/images/ui-spritesheet.png +0 -0
  64. admin/views/slider-panel/index.php +654 -0
  65. admin/views/slider-panel/js/ember-model.min.js +5 -0
  66. admin/views/slider-panel/js/ember.min.js +19 -0
  67. admin/views/slider-panel/js/handlebars.min.js +21 -0
  68. admin/views/slider-panel/js/masterslider.wp.js +3108 -0
  69. admin/views/slider-panel/js/msp.required.js +5172 -0
ChangeLog.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Master Slider - Responsive Touch Slider for WordPress ===
2
+ Contributors: averta
3
+ Donate link: http://averta.net/
4
+ License: GPLv3
5
+ License URI: http://www.gnu.org/licenses/gpl.html
6
+ Tags: banner rotator, carousel, content slider, gallery, image slider, responsive slider, showcase, slideshow, swipe, touch slider, video gallery, seo, vertical slide, HTML5 slider, hardware accelerate, css3, animation, mobile slider, iOS, video slider, yotube slider, horizontal slider, vertical slider, fullwidth slider, fullscreen slider, post slider, photo slider, online album, mobile slider, WordPress slider
7
+ Requires at least: 3.8
8
+ Tested up to: 3.9.1
9
+ Stable tag: 1.0.0
10
+
11
+ Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
12
+
13
+ == Description ==
14
+
15
+ - Master Slider is a free responsive image and content slider with super smooth hardware accelerated transitions. It supports touch navigation with pure swipe gesture that you have never experienced before. It's a truly responsive and device friendly slider which works perfect in all major devices.
16
+
17
+ = Strength & flexibility =
18
+ Master Slider is built using WordPress best practices both on the front and the back end. This results in an efficient, robust and intuitive plugin.
19
+
20
+ = Smart dashboard widgets & reports =
21
+ Keep a birds-eye view of incoming sales and reviews, stock levels and general store performance and statistics all from the WordPress dashboard or go to the reports section to view stats in more detail.
22
+
23
+ Master Slider works with any theme, including the default WordPress themes.
24
+
25
+
26
+ = Features =
27
+
28
+ * Responsive
29
+ * Touch Swipe Navigation
30
+ * Extremely user friendly admin panel
31
+ * Drag and drop slider creation
32
+ * Live preview in admin panel
33
+ * Smart auto crop
34
+ * Thumbnails and Tabs
35
+ * Smart Preloading
36
+ * X Starter Samples
37
+ * Cross Browser
38
+ * Light weight
39
+ * Fully Customizable
40
+ * SEO Friendly
41
+ * Hardware Accelerated Transitions
42
+ * Auto height Slider
43
+ * Loop Sliding
44
+ * Smart Memory Management
45
+ * Autoplay
46
+ * Exclusive Widget and shortcodes
47
+ * 6 modern and unique skins
48
+ * Flexible
49
+ * Advanced import/export tool
50
+ * Custom user roles
51
+ * Extremely lightweight
52
+ * Built-in cache boosting
53
+ * Translate ready
54
+ * Multisite compatible
55
+ * Extensive Developer API
56
+
57
+
58
+ = Compatible Browsers =
59
+
60
+ * IE8+
61
+ * Firefox
62
+ * Safari
63
+ * Opera
64
+ * Chrome
65
+ * iOS browser
66
+ * Android browser
67
+
68
+ = Translation =
69
+
70
+ You can start translating Master Slider by our [online translation service](http://translate.averta.net/projects/masterslider/free-version).
71
+
72
+
73
+ == Installation ==
74
+
75
+ = Minimum Requirements =
76
+
77
+ * WordPress 3.8 or greater
78
+ * PHP version 5.2.4 or greater
79
+ * MySQL version 5.0 or greater
80
+
81
+
82
+ **This section describes how to install the plugin and get it working**
83
+
84
+ This section describes how to install the plugin and get it working.
85
+
86
+
87
+ = Automatic installation (easiest way) =
88
+
89
+ To do an automatic install of Master Slider, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
90
+
91
+ In the search field type "Master Slider" and click Search Plugins. Once you have found it you can install it by simply clicking "Install Now".
92
+
93
+
94
+ = Manual installation =
95
+
96
+ **Uploading in WordPress Dashboard**
97
+
98
+ 1. Download `ms-slider.zip`
99
+ 2. Navigate to the 'Add New' in the plugins dashboard
100
+ 3. Navigate to the 'Upload' area
101
+ 4. Select `ms-slider.zip` from your computer
102
+ 5. Click 'Install Now'
103
+ 6. Activate the plugin in the Plugin dashboard
104
+
105
+ **Using FTP**
106
+
107
+ 1. Download `ms-slider.zip`
108
+ 2. Extract the `ms-slider` directory to your computer
109
+ 3. Upload the `ms-slider` directory to the `/wp-content/plugins/` directory
110
+ 4. Activate the plugin in the Plugin dashboard
111
+
112
+ The WordPress codex contains [instructions on how to install a WordPress plugin](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
113
+
114
+
115
+
116
+ = Updating =
117
+
118
+ Automatic updates should work like a charm; as always though, ensure you backup your site just in case.
119
+
120
+
121
+ == Frequently Asked Questions ==
122
+
123
+ = Where can I find Master Slider documentation and user guides =
124
+
125
+ For help setting up and configuring Master Slider please refer to our [user guide](http://averta.net/)
126
+
127
+ For extending Master Slider, see our [codex](http://averta.net/).
128
+
129
+ If you get stuck and you're not a averta customer, you can ask for help on the [Community Forums](http://averta.net).
130
+
131
+ = Will Master Slider work with my theme? =
132
+
133
+
134
+ = Where can I request new features? =
135
+
136
+
137
+ = Where can I report bugs or contribute to the project? =
138
+
139
+ Bugs can be reported either in our support forum or preferably on
140
+
141
+ = Master Slider is awesome! Can I contribute? =
142
+
143
+
144
+
145
+ == Screenshots ==
146
+
147
+ 1. Sliders listing table
148
+ 2. Slider setting
149
+ 3. Drag and Drop slide creation
150
+ 4. 6 Highly customizable slider controls
151
+ 5. Flexible slider controls
152
+
153
+
154
+
155
+ == Changelog ==
156
+
157
+ = Version 1.8.5 / (11.06.2014) =
158
+ * [New Feature]: New option added to layer options to fix layer position
159
+ * [New Feature]: Compability with prettyPhoto lightbox added
160
+ * [Fix]: An issue with aligning slide info fixed
161
+
162
+
163
+
164
+ == Upgrade Notice ==
165
+
166
+ = 1.0.0 =
167
+ This is a major update. Test extensions and your theme prior to updating and ensure that you keep backups.
admin/assets/css/global.css ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /** masterslider admin menu icon **/
3
+ #toplevel_page_master-slider .menu-icon-generic div.wp-menu-image:before { content: ' ';}
4
+ #toplevel_page_master-slider .menu-icon-generic div.wp-menu-image {
5
+ background: url( ../images/master-admin-menu.svg ) no-repeat 7px 7px !important;
6
+ background-size: 23px auto !important;
7
+ opacity:0.6;
8
+ }
9
+ #toplevel_page_masterslider .menu-icon-generic.wp-menu-open div.wp-menu-image,
10
+ #toplevel_page_masterslider .menu-icon-generic.current div.wp-menu-image {
11
+ opacity:1;
12
+ }
13
+ /** visual composer element **/
14
+ .icon-vc-msslider-el ,
15
+ .wpb_masterslider_pb .wpb_element_wrapper { background-image: url( ../images/thirdparty/master-slider-32x32.png ) !important; }
admin/assets/css/msp-general.css ADDED
@@ -0,0 +1,476 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* This stylesheet is used to style the admin page for masterslider plugin.*/
2
+
3
+ .manage-column.column-ID {
4
+ width:50px;
5
+ }
6
+ .manage-column.column-shortcode {
7
+ width: 150px;
8
+ }
9
+ .manage-column.column-slides_num {
10
+ width:40px;
11
+ }
12
+ .manage-column.column-type {
13
+ width:100px;
14
+ }
15
+ .manage-column.column-date_modified{
16
+ width:115px;
17
+ }
18
+ .manage-column.column-date_created{
19
+ width:130px;
20
+ }
21
+ #msp-main-wrapper .wp-list-table td { vertical-align: middle; }
22
+
23
+ #msp-main-wrapper .wp-list-table .preview { float:none; }
24
+
25
+ #msp-main-wrapper .wp-list-table thead tr,
26
+ #msp-main-wrapper .wp-list-table tfoot tr { height:45px; }
27
+
28
+ #msp-main-wrapper .wp-list-table thead tr th,
29
+ #msp-main-wrapper .wp-list-table tfoot tr th,
30
+ #msp-main-wrapper .wp-list-table thead th.manage-column a,
31
+ #msp-main-wrapper .wp-list-table tfoot th.manage-column a { color:#777; }
32
+ #msp-main-wrapper .wp-list-table tbody tr { height:40px; }
33
+
34
+
35
+ .tablenav.top {
36
+ display:none;
37
+ }
38
+ .tablenav.bottom {
39
+ margin-top:12px;
40
+ position: relative;
41
+ float:right;
42
+ }
43
+
44
+ .action-btns-list {
45
+ position:relative;
46
+ margin-top: 20px;
47
+ margin-bottom: 30px;
48
+ display: inline-block;
49
+ }
50
+
51
+ .toplevel_page_masterslider .ui-widget-overlay {
52
+ z-index:39999;
53
+ }
54
+
55
+ /** add new slider button **/
56
+
57
+ .msp-ac-btn {
58
+ padding: 0px 16px;
59
+ height: 28px;
60
+ line-height: 28px;
61
+ font-size: 13px;
62
+ display: inline-block;
63
+ color: #fff;
64
+ background:#777;
65
+ border-bottom: 3px solid #656565;
66
+ margin-right: 10px;
67
+ position: relative;
68
+ font-weight: 300;
69
+ text-decoration: none;
70
+ }
71
+
72
+ .msp-ac-btn:hover {
73
+ top:1px;
74
+ color: #eee;
75
+ border-bottom-width: 2px;
76
+ }
77
+ msp-ac-btn:active {
78
+ top:2px;
79
+ color: #ddd;
80
+ border-bottom-width: 1px;
81
+ }
82
+
83
+ .action-add-new {
84
+ padding-left:0;
85
+ }
86
+
87
+ .msp-btn-blue { background-color:#2ea2cc; border-bottom-color: #278aae; }
88
+ .msp-btn-red { background-color:#cc2e2e; border-bottom-color: #ad2626; }
89
+ .msp-btn-gray { background-color:#777777; border-bottom-color: #656565; }
90
+
91
+
92
+
93
+ .msp-iconic span,
94
+ .msp-iconic-big span {
95
+ float: left;
96
+ display:block;
97
+ margin: 0;
98
+ text-align: center;
99
+ }
100
+
101
+ .msp-iconic span:before,
102
+ .msp-iconic-big span:before {
103
+ font: 400 20px/1 dashicons !important;
104
+ speak: none;
105
+ display: inline-block;
106
+ -webkit-font-smoothing: antialiased;
107
+ -moz-osx-font-smoothing: grayscale;
108
+ -moz-transition: all .1s ease-in-out;
109
+ -o-transition: all .1s ease-in-out;
110
+ -webkit-transition: all .1s ease-in-out;
111
+ transition: all .1s ease-in-out;
112
+ }
113
+
114
+ .msp-iconic {
115
+ padding-left:0;
116
+ }
117
+
118
+ .msp-iconic span {
119
+ width: 25px;
120
+ height: 27px;
121
+ margin-right: 3px;
122
+ margin-left: 4px;
123
+ }
124
+
125
+ .msp-iconic span:before {
126
+ padding: 5px 0 0 0;
127
+ height: 28px;
128
+ width: 20px;
129
+ }
130
+
131
+
132
+ .msp-iconic-big {
133
+ padding-left:0;
134
+ }
135
+
136
+ .msp-iconic-big span {
137
+ width: 30px;
138
+ height: 27px;
139
+ border-right: 1px solid white;
140
+ margin-right: 15px;
141
+ }
142
+
143
+ .msp-iconic-big span:before {
144
+ padding: 6px 0 0 0;
145
+ height: 28px;
146
+ width: 20px;
147
+ }
148
+
149
+ .action-add-new span:before {
150
+ content: '\f132';
151
+ }
152
+
153
+ .column-action .msp-ac-btn {
154
+ margin-right:1px;
155
+ }
156
+
157
+ .column-action .action-preview span:before{
158
+ content: '\f179';
159
+ }
160
+
161
+ .column-action .action-delete span:before{
162
+ content: '\f182';
163
+ }
164
+
165
+ .column-action .action-duplicate span:before{
166
+ content: '\f105';
167
+ padding-top: 6px;
168
+ }
169
+
170
+ @media only screen and (max-width: 1500px) {
171
+ .column-date_created { display:none; }
172
+
173
+ }
174
+
175
+ @media only screen and (max-width: 1350px) {
176
+ .column-date_modified { display:none; }
177
+ }
178
+
179
+ @media only screen and (max-width: 1250px) {
180
+ .column-slides_num { display:none; }
181
+ .column-ID { display:none; }
182
+ }
183
+
184
+ @media only screen and (max-width: 1150px) {
185
+ .column-type { display:none; }
186
+ }
187
+
188
+ @media only screen and (max-width: 782px) {
189
+
190
+ .tablenav.bottom {
191
+ float:none;
192
+ }
193
+
194
+ .action-btns-list {
195
+ top:-10px;
196
+ text-align:center;
197
+ display: block;
198
+ }
199
+
200
+ .action-btns-list .msp-ac-btn {
201
+ padding-top:4px;
202
+ padding-bottom:4px;
203
+ }
204
+ }
205
+
206
+ .master-updates tbody th { height:300px; }
207
+
208
+ .master-updates tbody { vertical-align: top; }
209
+
210
+ .master-updates .latest-updates { border-left:1px solid #e1e1e1; }
211
+
212
+ tbody .latest-updates {
213
+ padding: 0 0 0 5px;
214
+ }
215
+
216
+
217
+ #msp-header {
218
+ background: white;
219
+ padding:13px 15px;
220
+ margin-top: 20px;
221
+ }
222
+ .msp-logo {
223
+ line-height:100%;
224
+ }
225
+
226
+ /** slider type selector **/
227
+
228
+ #msp-slider-type-select {
229
+ display:none;
230
+ }
231
+ #msp-slider-type-select .msp-templates-list {
232
+ top:47px;
233
+ }
234
+ #msp-slider-type-select .msp-template-figure {
235
+ opacity: 1;
236
+ }
237
+ #msp-slider-type-select .msp-template-figure.is-unavailable {
238
+ opacity: 0.8;
239
+ }
240
+ #msp-slider-type-select .msp-template-figure .msp-templte-selected {
241
+ display:none;
242
+ }
243
+ #msp-slider-type-select .msp-template-figure.selected .msp-templte-selected {
244
+ display:inline-block;
245
+ }
246
+
247
+ .msp-metabox-hr { clear:both; }
248
+
249
+ #msp-slider-type-select .msp-template-figure {
250
+ width: 18%;
251
+ }
252
+ #msp-slider-type-select .msp-templates-list .msp-metabox-hr {
253
+ padding-bottom: 40px;
254
+ }
255
+
256
+ #msp-slider-type-select .msp-dialog-inner-title {
257
+ border-bottom: 1px solid #e5e5e5;
258
+ padding: 5px 0 0;
259
+ margin: 10px 20px 10px;
260
+ }
261
+
262
+ #msp-slider-type-select .msp-dialog-inner-title span {
263
+ font-size: 18px;
264
+ color: #666;
265
+ position: relative;
266
+ bottom: -9px;
267
+ background: #fff;
268
+ padding: 0 10px 0 0;
269
+ }
270
+
271
+ #msp-slider-type-select .section-divider {
272
+ padding-top: 30px;
273
+ clear:both;
274
+ }
275
+
276
+ #msp-slider-type-select .msp-templates-bottom {
277
+ padding: 15px 20px 0;
278
+ -webkit-box-sizing: border-box;
279
+ -moz-box-sizing: border-box;
280
+ box-sizing: border-box;
281
+ }
282
+
283
+ #msp-slider-type-select .msp-templates-bottom button {
284
+ width: 100%;
285
+ margin: 0;
286
+ }
287
+
288
+ .msp-starter-selector {
289
+ max-width:1240px;
290
+ }
291
+
292
+ @media only screen and (max-width: 1500px) {
293
+ #msp-slider-type-select .msp-template-figure {
294
+ width: 17.5%;
295
+ }
296
+ }
297
+ @media only screen and (max-width: 1200px) {
298
+ #msp-slider-type-select .msp-template-figure {
299
+ width: 22%;
300
+ }
301
+ }
302
+
303
+ /** slider import export **/
304
+
305
+ .msp-import-export-wrapper {
306
+ display:none;
307
+ }
308
+
309
+ .msp-dialog-inner-split-header {
310
+ background: white;
311
+ padding-left: 20px;
312
+ height: 45px;
313
+ line-height: 45px;
314
+ border-bottom: solid 1px #dedede;
315
+ margin: 0;
316
+ border-top: solid 1px #dedede;
317
+ font-weight: 400;
318
+ color: #2EA2CC;
319
+ margin: 0;
320
+ font-size: 1.2em;
321
+ position: relative;
322
+ }
323
+
324
+ .msp-import-export-dialog {
325
+ top: 50px !important;
326
+ margin:0 auto;
327
+ min-width:400px !important;
328
+ z-index:110000;
329
+ }
330
+
331
+ .msp-select-file {
332
+ overflow: hidden;
333
+ background: #FAFAFA;
334
+ outline: none;
335
+ border: 1px solid #E4E4E4;
336
+ height: 30px;
337
+ padding: 5px !important;
338
+ }
339
+
340
+ .msp-import-form {
341
+
342
+ }
343
+
344
+ .msp-import-export-wrapper .msp-ac-btn.button {
345
+ border: none;
346
+ outline: none;
347
+ color:#fff;
348
+ border-bottom: 3px solid #278aae;
349
+ border-radius: 0;
350
+ height: 31px;
351
+ line-height: 31px;
352
+ padding-left: 28px;
353
+ padding-right: 28px;
354
+ background-color:#2ea2cc;
355
+ font-weight: 300;
356
+ }
357
+
358
+ .msp-import-export-wrapper .msp-ac-btn.button:hover {
359
+ color:#fff;
360
+ background-color:#2ea2cc;
361
+ }
362
+
363
+ .msp-import-wrapper .msp-ac-btn.button {
364
+ top:-1px;
365
+ }
366
+
367
+ .msp-dialog-section-desc {
368
+ margin-top: 10px;
369
+ display: block;
370
+ }
371
+
372
+ .msp-dialog-inner-section {
373
+ padding: 27px 35px;
374
+ }
375
+
376
+ .msp-import-export-wrapper .msp-ac-btn.button:hover {
377
+ color:#fff;
378
+ background-color:#2ea2cc;
379
+ }
380
+
381
+
382
+ .msp-export-table.widefat {
383
+ border:none;
384
+ box-shadow: none;
385
+ }
386
+
387
+ .msp-export-table th {
388
+ padding:10px 10px 10px 0;
389
+ }
390
+
391
+ .msp-export-table thead th {
392
+ font-weight:normal;
393
+ }
394
+
395
+ .msp-export-table tbody th {
396
+ font-weight:normal;
397
+ }
398
+
399
+ .export-field-cb {
400
+ width:30px;
401
+ }
402
+
403
+ .export-field-ID {
404
+ width:50px;
405
+ }
406
+
407
+ .export-field-lastmodify {
408
+ width:140px;
409
+ }
410
+
411
+ .export-field-type {
412
+ width:140px;
413
+ }
414
+
415
+ .msp-export-table-container {
416
+ max-height:270px;
417
+ overflow-y:auto;
418
+ margin-bottom: 20px;
419
+ margin-right: -35px;
420
+ padding-right: 35px;
421
+ }
422
+
423
+ .msp-export-options-table {
424
+ margin-bottom:25px;
425
+ }
426
+
427
+ .msp-dialog-inner-section-title {
428
+ font-size: 15px;
429
+ padding-left: 9px;
430
+ font-weight: 600;
431
+ }
432
+
433
+
434
+ /* preview dialog window */
435
+
436
+ .msp-container.msp-preview-dialog {
437
+ top: 45px !important;
438
+ margin:0 auto;
439
+ width:90% !important;
440
+ min-width:400px !important;
441
+ z-index:110000;
442
+ }
443
+
444
+ #ms-preview-wrapper > div{
445
+ margin-left:auto;
446
+ margin-right:auto;
447
+ }
448
+ #msp-slider-preview {
449
+ display:none;
450
+ width:100% !important;
451
+ max-height:90%;
452
+ margin-bottom:-4px;
453
+ }
454
+ #msp-slider-preview #wpbody-content {
455
+ padding-bottom: 65px;
456
+ }
457
+
458
+ /** other **/
459
+ .update-nag { display:none; }
460
+
461
+ #contextual-help-link-wrap {
462
+ right: 20px;
463
+ border: none;
464
+ box-shadow: none;
465
+ background: url(../images/help.png) no-repeat 2px 2px;
466
+ }
467
+
468
+ #screen-meta-links .screen-meta-toggle {
469
+ top: 44px;
470
+ }
471
+
472
+ #contextual-help-link-wrap>a{
473
+ padding-left: 35px;
474
+ }
475
+
476
+ #wpcontent, .auto-fold #wpcontent { padding-left: 0; }
admin/assets/images/help.png ADDED
Binary file
admin/assets/images/master-admin-menu.svg ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="20px" height="20px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
6
+ <g>
7
+ <g>
8
+ <path style="fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;" d="M3.184,11.345l-1.127,2.864L0.01,8.987l1.127-2.864
9
+ L3.184,11.345z M12.251,11.345l-1.127,2.864L9.087,8.987l1.117-2.864L12.251,11.345z"/>
10
+ <path style="fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;" d="M3.184,11.345L1.137,6.124L2.254,3.25l2.047,5.231
11
+ L3.184,11.345z M12.251,11.345l-2.047-5.221l1.127-2.874l2.037,5.231L12.251,11.345z"/>
12
+ <path style="fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;" d="M2.502,3.25h4.094l4.28,10.959H6.792L2.502,3.25z
13
+ M11.579,3.25h4.084l4.28,10.959h-4.084L11.579,3.25z"/>
14
+ </g>
15
+ </g>
16
+ </svg>
admin/assets/images/misc/shortcode-in-editor.png ADDED
Binary file
admin/assets/images/misc/where-is-ms-shortcode.png ADDED
Binary file
admin/assets/images/slider-types/pt_custom.png ADDED
Binary file
admin/assets/images/starters/autoplay-slider.jpg ADDED
Binary file
admin/assets/images/starters/fullwidth-slider-with-thumbs.jpg ADDED
Binary file
admin/assets/images/starters/fullwidth-slider.jpg ADDED
Binary file
admin/assets/images/starters/simple-slider.jpg ADDED
Binary file
admin/assets/images/starters/slider-with-horizontal-thumbs.jpg ADDED
Binary file
admin/assets/images/starters/slider-with-slide-info-v2.jpg ADDED
Binary file
admin/assets/images/starters/slider-with-slide-info.jpg ADDED
Binary file
admin/assets/images/starters/slider-with-vertical-thumbs.jpg ADDED
Binary file
admin/assets/images/thirdparty/master-slider-32x32.png ADDED
Binary file
admin/assets/js/admin.js ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Administration-specific JavaScript
2
+ (function ( $ ) {
3
+ "use strict";
4
+
5
+ // Slider type selector dialog
6
+ $(function () {
7
+
8
+ var $add_new_slider = $('#msp-add-slider');
9
+ if( ! $add_new_slider.length ) return;
10
+
11
+
12
+ // get markup for slider types
13
+ var $slider_types_markup = $('#msp-slider-type-select');
14
+
15
+ $slider_types_markup.dialog({
16
+ resizable: false,
17
+ autoOpen: false,
18
+ modal: true,
19
+ width: 1000,
20
+ height: 550,
21
+ title: __MSP_GEN_LAN.genl_005,
22
+ draggable: false,
23
+ show: 'fade',
24
+ dialogClass: 'msp-container msp-dialog msp-starter-selector',
25
+ open: function(){
26
+ $('.ui-widget-overlay').bind('click',function(){
27
+ $slider_types_markup.dialog('close');
28
+ });
29
+ }
30
+ });
31
+
32
+ window.onSelectorDialogResize = function(event){
33
+ var frame = event.data.the_frame;
34
+ frame.dialog("option", "position", "center");
35
+ frame.dialog("option", "width" , "80%" );
36
+ frame.dialog("option", "height" , $(window).height()-90 );
37
+ };
38
+
39
+ $(window).bind('resize', { the_frame:$slider_types_markup } , onSelectorDialogResize );
40
+ $(window).trigger('resize');
41
+
42
+
43
+ // open select type window on add slider btn clicked
44
+ $add_new_slider.on('click', function(event){
45
+ event.preventDefault();
46
+ $slider_types_markup.dialog( 'open' );
47
+ });
48
+
49
+
50
+ // highlight selected template - ignore coming soon items
51
+ var $slider_types = $('#msp-slider-type-select .msp-template-figure:not(.is-unavailable)');
52
+
53
+ $slider_types.on('click', function(event){
54
+ $slider_types.removeClass('selected');
55
+ $(this).addClass('selected');
56
+ });
57
+
58
+ // if the template is disabled and disabled_msg is set, display the text on click
59
+ var $slider_types_disabled = $('#msp-slider-type-select .msp-template-figure.is-unavailable');
60
+
61
+ $slider_types_disabled.on('click', function(event){
62
+ var disabled_alert_text = $(this).data('disabled-msg');
63
+ if( disabled_alert_text )
64
+ alert( disabled_alert_text );
65
+ });
66
+
67
+ // get "create" slider
68
+ var $create_slider_btn = $('#msp-slider-type-create');
69
+
70
+ $create_slider_btn.on('click', function(event){
71
+ event.preventDefault();
72
+ var $create_btn = $(this);
73
+
74
+
75
+ var $selected_item = $('#msp-slider-type-select .msp-template-figure.selected').eq(0);
76
+
77
+ var starter_section = $selected_item.data('starter-section');
78
+ var slider_type = $selected_item.data('slider-type');
79
+ var starter_id = $selected_item.data('starter-uid');
80
+
81
+ if( 'main_types' == starter_section ) {
82
+
83
+ $create_btn.text( __MSP_GEN_LAN.genl_004 );
84
+ $create_btn.prop("disabled",true);
85
+
86
+ jQuery.post(
87
+ ajaxurl,
88
+ {
89
+ action : 'msp_create_new_handler', // the handler
90
+ nonce : jQuery('#msp-main-wrapper').data('nonce'), // the generated nonce value
91
+ slider_type : slider_type
92
+ },
93
+ function(res){
94
+
95
+ if( res.success === true ){
96
+ $create_btn.text( __MSP_GEN_LAN.genl_003 );
97
+ window.location.href = res.redirect;
98
+ }else{
99
+ $create_btn.prop( "disabled", false );
100
+ $create_btn.text( res.message );
101
+ }
102
+ }
103
+ );
104
+
105
+ } else {
106
+ $create_btn.text( 'Preparing to import content ..' );
107
+ window.location.href = __MS.importer + "&starter_id=" + starter_id + "&step=2";
108
+ }
109
+
110
+ });
111
+
112
+ });
113
+
114
+
115
+
116
+ // Live preview
117
+ $(function (){
118
+
119
+ window.lunchMastersliderPreview = function( event ){
120
+ if( event ) event.preventDefault();
121
+
122
+ var $preview_wrapper = $('#msp-slider-preview');
123
+
124
+ if( ! $preview_wrapper.length ) {
125
+ $preview_wrapper = $('<iframe id="msp-slider-preview" width="100%" height="90%" ></iframe>');
126
+ $preview_wrapper = $preview_wrapper.appendTo( $('body') );
127
+ $preview_wrapper = $('#msp-slider-preview');
128
+ }
129
+
130
+ $preview_wrapper.dialog({
131
+ resizable: false,
132
+ autoOpen: false,
133
+ modal: true,
134
+ width: $(window).width(),
135
+ height: $(window).height()-45,
136
+ title: __MSP_GEN_LAN.genl_002,
137
+ draggable: false,
138
+ show: 'fade',
139
+ dialogClass: 'msp-container msp-dialog msp-preview-dialog',
140
+ close: function( event, ui ) {
141
+ $preview_wrapper.prop( 'src', 'about:blank');
142
+ },
143
+ open: function(){
144
+ $('.ui-widget-overlay').bind('click',function(){
145
+ $preview_wrapper.dialog('close');
146
+ });
147
+ }
148
+ });
149
+
150
+ $preview_wrapper.prop( 'src', __MS.msp_plugin_url + '/admin/views/slider-dashboard/get-preview.html?cn=' + Math.random() ).dialog('open');
151
+
152
+ window.onbeforeunload = function(){
153
+ if( $preview_wrapper.dialog( 'isOpen' ) )
154
+ return __MSP_GEN_LAN.genl_001;
155
+ };
156
+
157
+ window.onPreviewDialogResize = function(event){
158
+ var frame = event.data.the_frame;
159
+ frame.dialog("option", "position", "center");
160
+ frame.dialog("option", "height" , $(window).height()-45 );
161
+ };
162
+
163
+ $(window).bind('resize', { the_frame:$preview_wrapper } , onPreviewDialogResize );
164
+ };
165
+
166
+
167
+
168
+ window.lunchMastersliderPreviewBySliderID = function( slider_id ){
169
+
170
+ var $preview_wrapper = $('#msp-slider-preview');
171
+
172
+ if( ! $preview_wrapper.length ) {
173
+ $preview_wrapper = $('<iframe id="msp-slider-preview" width="100%" height="90%" ></iframe>');
174
+ $preview_wrapper = $preview_wrapper.appendTo( $('body') );
175
+ $preview_wrapper = $('#msp-slider-preview');
176
+ }
177
+
178
+ $preview_wrapper.dialog({
179
+ resizable: false,
180
+ autoOpen: false,
181
+ modal: true,
182
+ width: $(window).width(),
183
+ height: $(window).height()-45,
184
+ title: __MSP_GEN_LAN.genl_002,
185
+ draggable: false,
186
+ show: 'fade',
187
+ dialogClass: 'msp-container msp-dialog msp-preview-dialog',
188
+ close: function( event, ui ) {
189
+ $preview_wrapper.prop( 'src', 'about:blank');
190
+ },
191
+ open: function(){
192
+ $('.ui-widget-overlay').bind('click',function(){
193
+ $preview_wrapper.dialog('close');
194
+ });
195
+ }
196
+ });
197
+
198
+ $preview_wrapper.load(function(){
199
+ console.log('preview loaded compeletely.');
200
+ });
201
+
202
+ $preview_wrapper.prop( 'src', __MS.msp_menu_page + '&action=preview&strip_wp&slider_id=' + slider_id ).dialog('open');
203
+
204
+ window.onbeforeunload = function(){
205
+ if( $preview_wrapper.dialog( 'isOpen' ) )
206
+ return __MSP_GEN_LAN.genl_001;
207
+ };
208
+
209
+ window.onPreviewDialogResize = function(event){
210
+ var frame = event.data.the_frame;
211
+ frame.dialog("option", "position", "center");
212
+ frame.dialog("option", "height" , $(window).height()-45 );
213
+ };
214
+
215
+ $(window).bind('resize', { the_frame:$preview_wrapper } , onPreviewDialogResize );
216
+ $(window).trigger('resize');
217
+ };
218
+
219
+
220
+ window.lunchMastersliderImportExport = function(){
221
+
222
+ var $import_export_wrapper = $('.msp-import-export-wrapper');
223
+
224
+ if( ! $import_export_wrapper.length )
225
+ return;
226
+
227
+ $import_export_wrapper.dialog({
228
+ resizable: false,
229
+ autoOpen: true,
230
+ modal: true,
231
+ width: 800,
232
+ height: $(window).height()-85,
233
+ title: __MSP_GEN_LAN.genl_007,
234
+ draggable: false,
235
+ show: 'fade',
236
+ dialogClass: 'msp-container msp-dialog msp-import-export-dialog',
237
+ close: function( event, ui ) {
238
+
239
+ },
240
+ open: function(){
241
+ $('.ui-widget-overlay').bind('click',function(){
242
+ $import_export_wrapper.dialog('close');
243
+ });
244
+ }
245
+ });
246
+
247
+ window.onPreviewDialogResize = function(event){
248
+ var frame = event.data.the_frame;
249
+ var dialogHeight = $(window).height()-85;
250
+ frame.dialog("option", "position", "center");
251
+ frame.dialog("option", "height" , dialogHeight );
252
+ $('.msp-export-table-container').css('min-height', dialogHeight - 350 );
253
+ };
254
+
255
+ $(window).bind('resize', { the_frame:$import_export_wrapper } , onPreviewDialogResize );
256
+ $(window).trigger('resize');
257
+ };
258
+
259
+ // check all btn in export dialog
260
+ $('.export-check-all').bind( 'click', function(){
261
+
262
+ var $this = $(this);
263
+ var isChecked = $this.prop('checked');
264
+ $('.msp-export-sliders-table .export-slider-cb').prop( 'checked', isChecked );
265
+ });
266
+
267
+ // export button clicked
268
+ $('#msp-export-btn').bind( 'click', function(){
269
+ if( ! $('.msp-export-sliders-table .export-slider-cb:checked').length ) {
270
+ alert( __MSP_GEN_LAN.genl_006 );
271
+ return false;
272
+ }
273
+ });
274
+
275
+ // help button position
276
+ if( $('#msp-header').length ){
277
+ var help_btn_top_offset = $('#msp-header')[0].getBoundingClientRect().top - 6;
278
+ $('#contextual-help-link-wrap').css( 'top', help_btn_top_offset );
279
+ }
280
+
281
+ });
282
+
283
+
284
+
285
+ }(jQuery));
admin/assets/js/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
admin/class-master-slider-admin.php ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Master Slider Admin
4
+ *
5
+ * @package MasterSlider
6
+ * @author averta [averta.net]
7
+ * @license LICENSE.txt
8
+ * @link http://masterslider.com
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+ // no direct access allowed
13
+ if ( ! defined( 'ABSPATH' ) ) {
14
+ die();
15
+ }
16
+
17
+
18
+ /**
19
+ * This class is used to work with the
20
+ * administrative side of Masterslider
21
+ */
22
+ class Master_Slider_Admin {
23
+
24
+ /**
25
+ * Instance of this class.
26
+ *
27
+ * @since 1.0.0
28
+ *
29
+ * @var object
30
+ */
31
+ protected static $instance = null;
32
+
33
+ /**
34
+ * Slug of the plugin screen.
35
+ *
36
+ * @since 1.0.0
37
+ *
38
+ * @var string
39
+ */
40
+ protected $sliders_screen_hook_suffix = null;
41
+
42
+
43
+
44
+ /**
45
+ * Initialize the plugin by loading admin classes and functions
46
+ *
47
+ * @since 1.0.0
48
+ */
49
+ private function __construct() {
50
+
51
+ // include admin files
52
+ $this->includes();
53
+
54
+ add_action( 'init', array( $this, 'init' ) );
55
+ }
56
+
57
+
58
+ /**
59
+ * Include admin essential classes and functions
60
+ *
61
+ * @return void
62
+ */
63
+ private function includes(){
64
+ include_once( MSWP_AVERTA_ADMIN_DIR . '/includes/index.php' );
65
+ include_once( MSWP_AVERTA_ADMIN_DIR . '/views/setting/class-msp-settings.php' );
66
+ }
67
+
68
+
69
+ public function init() {
70
+
71
+ // Before init action
72
+ do_action( 'before_masterslider_admin_init' );
73
+
74
+ // A filter hook to restrict access to plugin panel only for super admin on multiste
75
+ if( apply_filters( 'masterslider_access_only_for_super_admins' , 0 ) && ! is_super_admin() ) {
76
+ return;
77
+ }
78
+
79
+ // Assign masterslider custom capabilities
80
+ Master_Slider::assign_custom_caps();
81
+ // Inject default styles and effects
82
+ Master_Slider::set_default_options();
83
+
84
+
85
+ // Initial tasks on admin init
86
+ add_action( 'admin_init', array( $this, 'admin_init') );
87
+
88
+ // Load admin Stylesheet and JavaScript.
89
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts') );
90
+
91
+ // Add some essential content in admin page header
92
+ add_action( 'admin_head', array( $this, 'admin_header' ), 9 );
93
+
94
+ // Add the options page and menu item.
95
+ add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
96
+
97
+ // Add an action link pointing to the setting page.
98
+ add_filter( 'plugin_action_links_'. MSWP_AVERTA_BASE_NAME, array( $this, 'add_action_links' ) );
99
+
100
+ // Add an action link on plugin row meta in plugins page
101
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 4 );
102
+
103
+ // Admin init action
104
+ do_action( 'masterslider_admin_init' );
105
+ }
106
+
107
+
108
+ /**
109
+ * Triggers on admin init
110
+ *
111
+ * @return void
112
+ */
113
+ public function admin_init(){
114
+
115
+ $this->after_plugin_update();
116
+ }
117
+
118
+
119
+ /**
120
+ * Regenerate and cache custom css codes for all slider after plugin update
121
+ *
122
+ * @return bool TRUE on success, FALSE otherwise
123
+ */
124
+ public function after_plugin_update (){
125
+
126
+ if( get_option( 'masterslider_lite_plugin_version', '0' ) == MSWP_AVERTA_VERSION )
127
+ return false;
128
+
129
+ msp_save_custom_styles();
130
+ update_option( 'masterslider_lite_plugin_version', MSWP_AVERTA_VERSION );
131
+ do_action( 'masterslider_after_plugin_updated' );
132
+
133
+ return true;
134
+ }
135
+
136
+
137
+ /**
138
+ * Return an instance of this class.
139
+ *
140
+ * @since 1.0.0
141
+ *
142
+ * @return object A single instance of this class.
143
+ */
144
+ public static function get_instance() {
145
+
146
+ if( apply_filters( 'masterslider_access_only_for_super_admins' , 0 ) && ! is_super_admin() ) {
147
+ return;
148
+ }
149
+
150
+ // If the single instance hasn't been set, set it now.
151
+ if ( null == self::$instance ) {
152
+ self::$instance = new self;
153
+ }
154
+
155
+ return self::$instance;
156
+ }
157
+
158
+
159
+ /**
160
+ * Register and enqueue admin-specific JavaScript & Stylesheet.
161
+ *
162
+ * @since 1.0.0
163
+ *
164
+ * @return null Return early if no settings page is registered.
165
+ */
166
+ public function enqueue_admin_scripts() {
167
+
168
+ // load global style - loads on all admin area
169
+ wp_enqueue_style( MSWP_SLUG .'-global-styles', MSWP_AVERTA_ADMIN_URL . '/assets/css/global.css', array(), MSWP_AVERTA_VERSION );
170
+
171
+ if ( ! isset( $this->sliders_screen_hook_suffix ) )
172
+ return;
173
+
174
+ // load masterslider spesific assets only on it's admin page
175
+ $screen = get_current_screen();
176
+ if ( $this->sliders_screen_hook_suffix == $screen->id ) {
177
+
178
+ $admin_assets = new MSP_Admin_Assets();
179
+ $admin_assets->enqueue();
180
+ }
181
+
182
+ }
183
+
184
+
185
+ /**
186
+ * Print essential content in admin page header
187
+ *
188
+ * @since 1.0.0
189
+ *
190
+ * @return void
191
+ */
192
+ public function admin_header() {
193
+
194
+ if ( ! isset( $this->sliders_screen_hook_suffix ) ) {
195
+ return;
196
+ }
197
+
198
+ $screen = get_current_screen();
199
+ if ( $this->sliders_screen_hook_suffix == $screen->id ) {
200
+
201
+ if ( isset( $_REQUEST['slider_id'] ) ) {
202
+
203
+ $slider_id = $_REQUEST['slider_id'];
204
+ global $mspdb;
205
+ $custom_fonts = $mspdb->get_slider_field_val( $slider_id, 'custom_fonts' );
206
+
207
+ if ( ! empty( $custom_fonts ) )
208
+ printf( "<link rel='stylesheet' id='masterslider-admin-fonts' href='http://fonts.googleapis.com/css?family=%s' type='text/css' />\n", $custom_fonts );
209
+ }
210
+ }
211
+ }
212
+
213
+
214
+ /**
215
+ * Register the administration menu for this plugin into the WordPress Dashboard menu.
216
+ *
217
+ * @since 1.0.0
218
+ */
219
+ public function add_plugin_admin_menu() {
220
+
221
+ $ms_page_title = apply_filters( 'masterslider_admin_page_title', __( 'Master Sliders', MSWP_TEXT_DOMAIN ) );
222
+ $ms_menu_title = apply_filters( 'masterslider_admin_menu_title', __( 'Master Slider' , MSWP_TEXT_DOMAIN ) );
223
+
224
+ // Add a top-level menu for master slider
225
+ $this->sliders_screen_hook_suffix = add_menu_page(
226
+ $ms_page_title,
227
+ $ms_menu_title,
228
+ apply_filters( 'masterslider_access_capability', 'access_masterslider' ),
229
+ MSWP_SLUG,
230
+ array( $this, 'display_master_slider_panel_page' )
231
+ );
232
+
233
+ }
234
+
235
+
236
+ /**
237
+ * Render the panel page for this plugin.
238
+ *
239
+ * @since 1.0.0
240
+ */
241
+ public function display_master_slider_panel_page() {
242
+ include_once( 'views/index.php' );
243
+ }
244
+
245
+
246
+ /**
247
+ * Add settings action link to the plugins page.
248
+ *
249
+ * @since 1.0.0
250
+ */
251
+ public function add_action_links( $links ) {
252
+
253
+ return array_merge(
254
+ array(
255
+ 'settings' => '<a href="' . admin_url( 'admin.php?page=' . MSWP_SLUG . '-setting' ) . '">' . __( 'Settings', MSWP_TEXT_DOMAIN ) . '</a>'
256
+ ),
257
+ $links
258
+ );
259
+
260
+ }
261
+
262
+
263
+ /**
264
+ * Add extra action link to the plugin meta on plugins page.
265
+ *
266
+ * @since 1.8.0
267
+ */
268
+ public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ){
269
+ if( $plugin_file == MSWP_AVERTA_BASE_NAME ) { }
270
+ return $plugin_meta;
271
+ }
272
+
273
+
274
+ }
275
+
276
+ return Master_Slider_Admin::get_instance();
admin/includes/classes/class-axiom-list-table.php ADDED
@@ -0,0 +1,966 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Base class for displaying a list of items in an ajaxified HTML table.
4
+ *
5
+ */
6
+ if ( ! class_exists( 'Axiom_List_Table' ) ) :
7
+
8
+ class Axiom_List_Table {
9
+
10
+ /**
11
+ * The current list of items
12
+ *
13
+ * @since 3.1.0
14
+ * @var array
15
+ * @access protected
16
+ */
17
+ var $items;
18
+
19
+ /**
20
+ * Various information about the current table
21
+ *
22
+ * @since 3.1.0
23
+ * @var array
24
+ * @access private
25
+ */
26
+ var $_args;
27
+
28
+ /**
29
+ * Various information needed for displaying the pagination
30
+ *
31
+ * @since 3.1.0
32
+ * @var array
33
+ * @access private
34
+ */
35
+ var $_pagination_args = array();
36
+
37
+ /**
38
+ * The current screen
39
+ *
40
+ * @since 3.1.0
41
+ * @var object
42
+ * @access protected
43
+ */
44
+ var $screen;
45
+
46
+ /**
47
+ * Cached bulk actions
48
+ *
49
+ * @since 3.1.0
50
+ * @var array
51
+ * @access private
52
+ */
53
+ var $_actions;
54
+
55
+ /**
56
+ * Cached pagination output
57
+ *
58
+ * @since 3.1.0
59
+ * @var string
60
+ * @access private
61
+ */
62
+ var $_pagination;
63
+
64
+ /**
65
+ * Constructor. The child class should call this constructor from its own constructor
66
+ *
67
+ * @param array $args An associative array with information about the current table
68
+ * @access protected
69
+ */
70
+ function __construct( $args = array() ) {
71
+ $args = wp_parse_args( $args, array(
72
+ 'plural' => '',
73
+ 'singular' => '',
74
+ 'ajax' => false,
75
+ 'screen' => null,
76
+ ) );
77
+
78
+ $this->screen = convert_to_screen( $args['screen'] );
79
+
80
+ add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 );
81
+
82
+ if ( !$args['plural'] )
83
+ $args['plural'] = $this->screen->base;
84
+
85
+ $args['plural'] = sanitize_key( $args['plural'] );
86
+ $args['singular'] = sanitize_key( $args['singular'] );
87
+
88
+ $this->_args = $args;
89
+
90
+ if ( $args['ajax'] ) {
91
+ // wp_enqueue_script( 'list-table' );
92
+ add_action( 'admin_footer', array( $this, '_js_vars' ) );
93
+ }
94
+ }
95
+
96
+ /**
97
+ * Checks the current user's permissions
98
+ * @uses wp_die()
99
+ *
100
+ * @since 3.1.0
101
+ * @access public
102
+ * @abstract
103
+ */
104
+ function ajax_user_can() {
105
+ die( 'function Axiom_List_Table::ajax_user_can() must be over-ridden in a sub-class.' );
106
+ }
107
+
108
+ /**
109
+ * Prepares the list of items for displaying.
110
+ * @uses Axiom_List_Table::set_pagination_args()
111
+ *
112
+ * @since 3.1.0
113
+ * @access public
114
+ * @abstract
115
+ */
116
+ function prepare_items() {
117
+ die( 'function Axiom_List_Table::prepare_items() must be over-ridden in a sub-class.' );
118
+ }
119
+
120
+ /**
121
+ * An internal method that sets all the necessary pagination arguments
122
+ *
123
+ * @param array $args An associative array with information about the pagination
124
+ * @access protected
125
+ */
126
+ function set_pagination_args( $args ) {
127
+ $args = wp_parse_args( $args, array(
128
+ 'total_items' => 0,
129
+ 'total_pages' => 0,
130
+ 'per_page' => 0,
131
+ ) );
132
+
133
+ if ( !$args['total_pages'] && $args['per_page'] > 0 )
134
+ $args['total_pages'] = ceil( $args['total_items'] / $args['per_page'] );
135
+
136
+ // redirect if page number is invalid and headers are not already sent
137
+ if ( ! headers_sent() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) {
138
+ wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) );
139
+ exit;
140
+ }
141
+
142
+ $this->_pagination_args = $args;
143
+ }
144
+
145
+ /**
146
+ * Access the pagination args
147
+ *
148
+ * @since 3.1.0
149
+ * @access public
150
+ *
151
+ * @param string $key
152
+ * @return array
153
+ */
154
+ function get_pagination_arg( $key ) {
155
+ if ( 'page' == $key )
156
+ return $this->get_pagenum();
157
+
158
+ if ( isset( $this->_pagination_args[$key] ) )
159
+ return $this->_pagination_args[$key];
160
+ }
161
+
162
+ /**
163
+ * Whether the table has items to display or not
164
+ *
165
+ * @since 3.1.0
166
+ * @access public
167
+ *
168
+ * @return bool
169
+ */
170
+ function has_items() {
171
+ return !empty( $this->items );
172
+ }
173
+
174
+ /**
175
+ * Message to be displayed when there are no items
176
+ *
177
+ * @since 3.1.0
178
+ * @access public
179
+ */
180
+ function no_items() {
181
+ _e( 'No items found.' );
182
+ }
183
+
184
+ /**
185
+ * Display the search box.
186
+ *
187
+ * @since 3.1.0
188
+ * @access public
189
+ *
190
+ * @param string $text The search button text
191
+ * @param string $input_id The search input id
192
+ */
193
+ function search_box( $text, $input_id ) {
194
+ if ( empty( $_REQUEST['s'] ) && !$this->has_items() )
195
+ return;
196
+
197
+ $input_id = $input_id . '-search-input';
198
+
199
+ if ( ! empty( $_REQUEST['orderby'] ) )
200
+ echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
201
+ if ( ! empty( $_REQUEST['order'] ) )
202
+ echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
203
+ if ( ! empty( $_REQUEST['post_mime_type'] ) )
204
+ echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
205
+ if ( ! empty( $_REQUEST['detached'] ) )
206
+ echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '" />';
207
+ ?>
208
+ <p class="search-box">
209
+ <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
210
+ <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
211
+ <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
212
+ </p>
213
+ <?php
214
+ }
215
+
216
+ /**
217
+ * Get an associative array ( id => link ) with the list
218
+ * of views available on this table.
219
+ *
220
+ * @since 3.1.0
221
+ * @access protected
222
+ *
223
+ * @return array
224
+ */
225
+ function get_views() {
226
+ return array();
227
+ }
228
+
229
+ /**
230
+ * Display the list of views available on this table.
231
+ *
232
+ * @since 3.1.0
233
+ * @access public
234
+ */
235
+ function views() {
236
+ $views = $this->get_views();
237
+ /**
238
+ * Filter the list of available list table views.
239
+ *
240
+ * The dynamic portion of the hook name, $this->screen->id, refers
241
+ * to the ID of the current screen, usually a string.
242
+ *
243
+ * @since 3.5.0
244
+ *
245
+ * @param array $views An array of available list table views.
246
+ */
247
+ $views = apply_filters( "views_{$this->screen->id}", $views );
248
+
249
+ if ( empty( $views ) )
250
+ return;
251
+
252
+ echo "<ul class='subsubsub'>\n";
253
+ foreach ( $views as $class => $view ) {
254
+ $views[ $class ] = "\t<li class='$class'>$view";
255
+ }
256
+ echo implode( " |</li>\n", $views ) . "</li>\n";
257
+ echo "</ul>";
258
+ }
259
+
260
+ /**
261
+ * Get an associative array ( option_name => option_title ) with the list
262
+ * of bulk actions available on this table.
263
+ *
264
+ * @since 3.1.0
265
+ * @access protected
266
+ *
267
+ * @return array
268
+ */
269
+ function get_bulk_actions() {
270
+ return array();
271
+ }
272
+
273
+ /**
274
+ * Display the bulk actions dropdown.
275
+ *
276
+ * @since 3.1.0
277
+ * @access public
278
+ */
279
+ function bulk_actions() {
280
+ if ( is_null( $this->_actions ) ) {
281
+ $no_new_actions = $this->_actions = $this->get_bulk_actions();
282
+ /**
283
+ * Filter the list table Bulk Actions drop-down.
284
+ *
285
+ * The dynamic portion of the hook name, $this->screen->id, refers
286
+ * to the ID of the current screen, usually a string.
287
+ *
288
+ * This filter can currently only be used to remove bulk actions.
289
+ *
290
+ * @since 3.5.0
291
+ *
292
+ * @param array $actions An array of the available bulk actions.
293
+ */
294
+ $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
295
+ $this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions );
296
+ $two = '';
297
+ } else {
298
+ $two = '2';
299
+ }
300
+
301
+ if ( empty( $this->_actions ) )
302
+ return;
303
+
304
+ echo "<select name='action$two'>\n";
305
+ echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
306
+
307
+ foreach ( $this->_actions as $name => $title ) {
308
+ $class = 'edit' == $name ? ' class="hide-if-no-js"' : '';
309
+
310
+ echo "\t<option value='$name'$class>$title</option>\n";
311
+ }
312
+
313
+ echo "</select>\n";
314
+
315
+ submit_button( __( 'Apply' ), 'action', false, false, array( 'id' => "doaction$two" ) );
316
+ echo "\n";
317
+ }
318
+
319
+ /**
320
+ * Get the current action selected from the bulk actions dropdown.
321
+ *
322
+ * @since 3.1.0
323
+ * @access public
324
+ *
325
+ * @return string|bool The action name or False if no action was selected
326
+ */
327
+ function current_action() {
328
+ if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] )
329
+ return $_REQUEST['action'];
330
+
331
+ if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] )
332
+ return $_REQUEST['action2'];
333
+
334
+ return false;
335
+ }
336
+
337
+ /**
338
+ * Generate row actions div
339
+ *
340
+ * @since 3.1.0
341
+ * @access protected
342
+ *
343
+ * @param array $actions The list of actions
344
+ * @param bool $always_visible Whether the actions should be always visible
345
+ * @return string
346
+ */
347
+ function row_actions( $actions, $always_visible = false ) {
348
+ $action_count = count( $actions );
349
+ $i = 0;
350
+
351
+ if ( !$action_count )
352
+ return '';
353
+
354
+ $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
355
+ foreach ( $actions as $action => $link ) {
356
+ ++$i;
357
+ ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
358
+ $out .= "<span class='$action'>$link$sep</span>";
359
+ }
360
+ $out .= '</div>';
361
+
362
+ return $out;
363
+ }
364
+
365
+ /**
366
+ * Display a monthly dropdown for filtering items
367
+ *
368
+ * @since 3.1.0
369
+ * @access protected
370
+ */
371
+ function months_dropdown( $post_type ) {
372
+ global $wpdb, $wp_locale;
373
+
374
+ $months = $wpdb->get_results( $wpdb->prepare( "
375
+ SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
376
+ FROM $wpdb->posts
377
+ WHERE post_type = %s
378
+ ORDER BY post_date DESC
379
+ ", $post_type ) );
380
+
381
+ /**
382
+ * Filter the 'Months' drop-down results.
383
+ *
384
+ * @since 3.7.0
385
+ *
386
+ * @param object $months The months drop-down query results.
387
+ * @param string $post_type The post type.
388
+ */
389
+ $months = apply_filters( 'months_dropdown_results', $months, $post_type );
390
+
391
+ $month_count = count( $months );
392
+
393
+ if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) )
394
+ return;
395
+
396
+ $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
397
+ ?>
398
+ <select name='m'>
399
+ <option<?php selected( $m, 0 ); ?> value='0'><?php _e( 'Show all dates' ); ?></option>
400
+ <?php
401
+ foreach ( $months as $arc_row ) {
402
+ if ( 0 == $arc_row->year )
403
+ continue;
404
+
405
+ $month = zeroise( $arc_row->month, 2 );
406
+ $year = $arc_row->year;
407
+
408
+ printf( "<option %s value='%s'>%s</option>\n",
409
+ selected( $m, $year . $month, false ),
410
+ esc_attr( $arc_row->year . $month ),
411
+ /* translators: 1: month name, 2: 4-digit year */
412
+ sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
413
+ );
414
+ }
415
+ ?>
416
+ </select>
417
+ <?php
418
+ }
419
+
420
+ /**
421
+ * Display a view switcher
422
+ *
423
+ * @since 3.1.0
424
+ * @access protected
425
+ */
426
+ function view_switcher( $current_mode ) {
427
+ $modes = array(
428
+ 'list' => __( 'List View' ),
429
+ 'excerpt' => __( 'Excerpt View' )
430
+ );
431
+
432
+ ?>
433
+ <input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>" />
434
+ <div class="view-switch">
435
+ <?php
436
+ foreach ( $modes as $mode => $title ) {
437
+ $class = ( $current_mode == $mode ) ? 'class="current"' : '';
438
+ echo "<a href='" . esc_url( add_query_arg( 'mode', $mode, $_SERVER['REQUEST_URI'] ) ) . "' $class><img id='view-switch-$mode' src='" . esc_url( includes_url( 'images/blank.gif' ) ) . "' width='20' height='20' title='$title' alt='$title' /></a>\n";
439
+ }
440
+ ?>
441
+ </div>
442
+ <?php
443
+ }
444
+
445
+ /**
446
+ * Display a comment count bubble
447
+ *
448
+ * @since 3.1.0
449
+ * @access protected
450
+ *
451
+ * @param int $post_id
452
+ * @param int $pending_comments
453
+ */
454
+ function comments_bubble( $post_id, $pending_comments ) {
455
+ $pending_phrase = sprintf( __( '%s pending' ), number_format( $pending_comments ) );
456
+
457
+ if ( $pending_comments )
458
+ echo '<strong>';
459
+
460
+ echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) . "</span></a>";
461
+
462
+ if ( $pending_comments )
463
+ echo '</strong>';
464
+ }
465
+
466
+ /**
467
+ * Get the current page number
468
+ *
469
+ * @since 3.1.0
470
+ * @access protected
471
+ *
472
+ * @return int
473
+ */
474
+ function get_pagenum() {
475
+ $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0;
476
+
477
+ if( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] )
478
+ $pagenum = $this->_pagination_args['total_pages'];
479
+
480
+ return max( 1, $pagenum );
481
+ }
482
+
483
+ /**
484
+ * Get number of items to display on a single page
485
+ *
486
+ * @since 3.1.0
487
+ * @access protected
488
+ *
489
+ * @return int
490
+ */
491
+ function get_items_per_page( $option, $default = 20 ) {
492
+ $per_page = (int) get_user_option( $option );
493
+ if ( empty( $per_page ) || $per_page < 1 )
494
+ $per_page = $default;
495
+
496
+ /**
497
+ * Filter the number of items to be displayed on each page of the list table.
498
+ *
499
+ * The dynamic hook name, $option, refers to the per page option depending
500
+ * on the type of list table in use. Possible values may include:
501
+ * 'edit_comments_per_page', 'sites_network_per_page', 'site_themes_network_per_page',
502
+ * 'themes_netework_per_page', 'users_network_per_page', 'edit_{$post_type}', etc.
503
+ *
504
+ * @since 2.9.0
505
+ *
506
+ * @param int $per_page Number of items to be displayed. Default 20.
507
+ */
508
+ return (int) apply_filters( $option, $per_page );
509
+ }
510
+
511
+ /**
512
+ * Display the pagination.
513
+ *
514
+ * @since 3.1.0
515
+ * @access protected
516
+ */
517
+ function pagination( $which ) {
518
+ if ( empty( $this->_pagination_args ) )
519
+ return;
520
+
521
+ extract( $this->_pagination_args, EXTR_SKIP );
522
+
523
+ $output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
524
+
525
+ $current = $this->get_pagenum();
526
+
527
+ $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
528
+
529
+ $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first', 'action' ), $current_url );
530
+
531
+ $page_links = array();
532
+
533
+ $disable_first = $disable_last = '';
534
+ if ( $current == 1 )
535
+ $disable_first = ' disabled';
536
+ if ( $current == $total_pages )
537
+ $disable_last = ' disabled';
538
+
539
+ $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
540
+ 'first-page' . $disable_first,
541
+ esc_attr__( 'Go to the first page' ),
542
+ esc_url( remove_query_arg( 'paged', $current_url ) ),
543
+ '&laquo;'
544
+ );
545
+
546
+ $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
547
+ 'prev-page' . $disable_first,
548
+ esc_attr__( 'Go to the previous page' ),
549
+ esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ),
550
+ '&lsaquo;'
551
+ );
552
+
553
+ if ( 'bottom' == $which )
554
+ $html_current_page = $current;
555
+ else
556
+ $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='paged' value='%s' size='%d' />",
557
+ esc_attr__( 'Current page' ),
558
+ $current,
559
+ strlen( $total_pages )
560
+ );
561
+
562
+ $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
563
+ $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>';
564
+
565
+ $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
566
+ 'next-page' . $disable_last,
567
+ esc_attr__( 'Go to the next page' ),
568
+ esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ),
569
+ '&rsaquo;'
570
+ );
571
+
572
+ $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",
573
+ 'last-page' . $disable_last,
574
+ esc_attr__( 'Go to the last page' ),
575
+ esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
576
+ '&raquo;'
577
+ );
578
+
579
+ $pagination_links_class = 'pagination-links';
580
+ if ( ! empty( $infinite_scroll ) )
581
+ $pagination_links_class = ' hide-if-js';
582
+ $output .= "\n<span class='$pagination_links_class'>" . join( "\n", $page_links ) . '</span>';
583
+
584
+ if ( $total_pages )
585
+ $page_class = $total_pages < 2 ? ' one-page' : '';
586
+ else
587
+ $page_class = ' no-pages';
588
+
589
+ $this->_pagination = "<div class='tablenav-pages{$page_class}'>$output</div>";
590
+
591
+ echo $this->_pagination;
592
+ }
593
+
594
+ /**
595
+ * Get a list of columns. The format is:
596
+ * 'internal-name' => 'Title'
597
+ *
598
+ * @since 3.1.0
599
+ * @access protected
600
+ * @abstract
601
+ *
602
+ * @return array
603
+ */
604
+ function get_columns() {
605
+ die( 'function Axiom_List_Table::get_columns() must be over-ridden in a sub-class.' );
606
+ }
607
+
608
+ /**
609
+ * Get a list of sortable columns. The format is:
610
+ * 'internal-name' => 'orderby'
611
+ * or
612
+ * 'internal-name' => array( 'orderby', true )
613
+ *
614
+ * The second format will make the initial sorting order be descending
615
+ *
616
+ * @since 3.1.0
617
+ * @access protected
618
+ *
619
+ * @return array
620
+ */
621
+ function get_sortable_columns() {
622
+ return array();
623
+ }
624
+
625
+ /**
626
+ * Get a list of all, hidden and sortable columns, with filter applied
627
+ *
628
+ * @since 3.1.0
629
+ * @access protected
630
+ *
631
+ * @return array
632
+ */
633
+ function get_column_info() {
634
+ if ( isset( $this->_column_headers ) )
635
+ return $this->_column_headers;
636
+
637
+ $columns = get_column_headers( $this->screen );
638
+ $hidden = get_hidden_columns( $this->screen );
639
+
640
+ $sortable_columns = $this->get_sortable_columns();
641
+ /**
642
+ * Filter the list table sortable columns for a specific screen.
643
+ *
644
+ * The dynamic portion of the hook name, $this->screen->id, refers
645
+ * to the ID of the current screen, usually a string.
646
+ *
647
+ * @since 3.5.0
648
+ *
649
+ * @param array $sortable_columns An array of sortable columns.
650
+ */
651
+ $_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns );
652
+
653
+ $sortable = array();
654
+ foreach ( $_sortable as $id => $data ) {
655
+ if ( empty( $data ) )
656
+ continue;
657
+
658
+ $data = (array) $data;
659
+ if ( !isset( $data[1] ) )
660
+ $data[1] = false;
661
+
662
+ $sortable[$id] = $data;
663
+ }
664
+
665
+ $this->_column_headers = array( $columns, $hidden, $sortable );
666
+
667
+ return $this->_column_headers;
668
+ }
669
+
670
+ /**
671
+ * Return number of visible columns
672
+ *
673
+ * @since 3.1.0
674
+ * @access public
675
+ *
676
+ * @return int
677
+ */
678
+ function get_column_count() {
679
+ list ( $columns, $hidden ) = $this->get_column_info();
680
+ $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
681
+ return count( $columns ) - count( $hidden );
682
+ }
683
+
684
+ /**
685
+ * Print column headers, accounting for hidden and sortable columns.
686
+ *
687
+ * @since 3.1.0
688
+ * @access protected
689
+ *
690
+ * @param bool $with_id Whether to set the id attribute or not
691
+ */
692
+ function print_column_headers( $with_id = true ) {
693
+ list( $columns, $hidden, $sortable ) = $this->get_column_info();
694
+
695
+ $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
696
+ $current_url = remove_query_arg( 'paged', $current_url );
697
+
698
+ if ( isset( $_GET['orderby'] ) )
699
+ $current_orderby = $_GET['orderby'];
700
+ else
701
+ $current_orderby = '';
702
+
703
+ if ( isset( $_GET['order'] ) && 'desc' == $_GET['order'] )
704
+ $current_order = 'desc';
705
+ else
706
+ $current_order = 'asc';
707
+
708
+ if ( ! empty( $columns['cb'] ) ) {
709
+ static $cb_counter = 1;
710
+ $columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All' ) . '</label>'
711
+ . '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />';
712
+ $cb_counter++;
713
+ }
714
+
715
+ foreach ( $columns as $column_key => $column_display_name ) {
716
+ $class = array( 'manage-column', "column-$column_key" );
717
+
718
+ $style = '';
719
+ if ( in_array( $column_key, $hidden ) )
720
+ $style = 'display:none;';
721
+
722
+ $style = ' style="' . $style . '"';
723
+
724
+ if ( 'cb' == $column_key )
725
+ $class[] = 'check-column';
726
+ elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) )
727
+ $class[] = 'num';
728
+
729
+ if ( isset( $sortable[$column_key] ) ) {
730
+ list( $orderby, $desc_first ) = $sortable[$column_key];
731
+
732
+ if ( $current_orderby == $orderby ) {
733
+ $order = 'asc' == $current_order ? 'desc' : 'asc';
734
+ $class[] = 'sorted';
735
+ $class[] = $current_order;
736
+ } else {
737
+ $order = $desc_first ? 'desc' : 'asc';
738
+ $class[] = 'sortable';
739
+ $class[] = $desc_first ? 'asc' : 'desc';
740
+ }
741
+
742
+ $column_display_name = '<a href="' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '"><span>' . $column_display_name . '</span><span class="sorting-indicator"></span></a>';
743
+ }
744
+
745
+ $id = $with_id ? "id='$column_key'" : '';
746
+
747
+ if ( !empty( $class ) )
748
+ $class = "class='" . join( ' ', $class ) . "'";
749
+
750
+ echo "<th scope='col' $id $class $style>$column_display_name</th>";
751
+ }
752
+ }
753
+
754
+ /**
755
+ * Display the table
756
+ *
757
+ * @since 3.1.0
758
+ * @access public
759
+ */
760
+ function display() {
761
+ extract( $this->_args );
762
+
763
+ $this->display_tablenav( 'top' );
764
+
765
+ ?>
766
+ <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
767
+ <thead>
768
+ <tr>
769
+ <?php $this->print_column_headers(); ?>
770
+ </tr>
771
+ </thead>
772
+
773
+ <tfoot>
774
+ <tr>
775
+ <?php $this->print_column_headers( false ); ?>
776
+ </tr>
777
+ </tfoot>
778
+
779
+ <tbody id="the-list"<?php if ( $singular ) echo " data-wp-lists='list:$singular'"; ?>>
780
+ <?php $this->display_rows_or_placeholder(); ?>
781
+ </tbody>
782
+ </table>
783
+ <?php
784
+ $this->display_tablenav( 'bottom' );
785
+ }
786
+
787
+ /**
788
+ * Get a list of CSS classes for the <table> tag
789
+ *
790
+ * @since 3.1.0
791
+ * @access protected
792
+ *
793
+ * @return array
794
+ */
795
+ function get_table_classes() {
796
+ return array( 'widefat', 'fixed', $this->_args['plural'] );
797
+ }
798
+
799
+ /**
800
+ * Generate the table navigation above or below the table
801
+ *
802
+ * @since 3.1.0
803
+ * @access protected
804
+ */
805
+ function display_tablenav( $which ) {
806
+ if ( 'top' == $which )
807
+ wp_nonce_field( 'bulk-' . $this->_args['plural'] );
808
+ ?>
809
+ <div class="tablenav <?php echo esc_attr( $which ); ?>">
810
+
811
+ <div class="alignleft actions bulkactions">
812
+ <?php $this->bulk_actions(); ?>
813
+ </div>
814
+ <?php
815
+ $this->extra_tablenav( $which );
816
+ $this->pagination( $which );
817
+ ?>
818
+
819
+ <br class="clear" />
820
+ </div>
821
+ <?php
822
+ }
823
+
824
+ /**
825
+ * Extra controls to be displayed between bulk actions and pagination
826
+ *
827
+ * @since 3.1.0
828
+ * @access protected
829
+ */
830
+ function extra_tablenav( $which ) {}
831
+
832
+ /**
833
+ * Generate the <tbody> part of the table
834
+ *
835
+ * @since 3.1.0
836
+ * @access protected
837
+ */
838
+ function display_rows_or_placeholder() {
839
+ if ( $this->has_items() ) {
840
+ $this->display_rows();
841
+ } else {
842
+ list( $columns, $hidden ) = $this->get_column_info();
843
+ echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
844
+ $this->no_items();
845
+ echo '</td></tr>';
846
+ }
847
+ }
848
+
849
+ /**
850
+ * Generate the table rows
851
+ *
852
+ * @since 3.1.0
853
+ * @access protected
854
+ */
855
+ function display_rows() {
856
+ foreach ( $this->items as $item )
857
+ $this->single_row( $item );
858
+ }
859
+
860
+ /**
861
+ * Generates content for a single row of the table
862
+ *
863
+ * @since 3.1.0
864
+ * @access protected
865
+ *
866
+ * @param object $item The current item
867
+ */
868
+ function single_row( $item ) {
869
+ static $row_class = '';
870
+ $row_class = ( $row_class == '' ? ' class="alternate"' : '' );
871
+
872
+ echo '<tr' . $row_class . '>';
873
+ $this->single_row_columns( $item );
874
+ echo '</tr>';
875
+ }
876
+
877
+ /**
878
+ * Generates the columns for a single row of the table
879
+ *
880
+ * @since 3.1.0
881
+ * @access protected
882
+ *
883
+ * @param object $item The current item
884
+ */
885
+ function single_row_columns( $item ) {
886
+ list( $columns, $hidden ) = $this->get_column_info();
887
+
888
+ foreach ( $columns as $column_name => $column_display_name ) {
889
+ $class = "class='$column_name column-$column_name'";
890
+
891
+ $style = '';
892
+ if ( in_array( $column_name, $hidden ) )
893
+ $style = ' style="display:none;"';
894
+
895
+ $attributes = "$class$style";
896
+
897
+ if ( 'cb' == $column_name ) {
898
+ echo '<th scope="row" class="check-column">';
899
+ echo $this->column_cb( $item );
900
+ echo '</th>';
901
+ }
902
+ elseif ( method_exists( $this, 'column_' . $column_name ) ) {
903
+ echo "<td $attributes>";
904
+ echo call_user_func( array( $this, 'column_' . $column_name ), $item );
905
+ echo "</td>";
906
+ }
907
+ else {
908
+ echo "<td $attributes>";
909
+ echo $this->column_default( $item, $column_name );
910
+ echo "</td>";
911
+ }
912
+ }
913
+ }
914
+
915
+ /**
916
+ * Handle an incoming ajax request (called from admin-ajax.php)
917
+ *
918
+ * @since 3.1.0
919
+ * @access public
920
+ */
921
+ function ajax_response() {
922
+ $this->prepare_items();
923
+
924
+ extract( $this->_args );
925
+ extract( $this->_pagination_args, EXTR_SKIP );
926
+
927
+ ob_start();
928
+ if ( ! empty( $_REQUEST['no_placeholder'] ) )
929
+ $this->display_rows();
930
+ else
931
+ $this->display_rows_or_placeholder();
932
+
933
+ $rows = ob_get_clean();
934
+
935
+ $response = array( 'rows' => $rows );
936
+
937
+ if ( isset( $total_items ) )
938
+ $response['total_items_i18n'] = sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) );
939
+
940
+ if ( isset( $total_pages ) ) {
941
+ $response['total_pages'] = $total_pages;
942
+ $response['total_pages_i18n'] = number_format_i18n( $total_pages );
943
+ }
944
+
945
+ die( json_encode( $response ) );
946
+ }
947
+
948
+ /**
949
+ * Send required variables to JavaScript land
950
+ *
951
+ * @access private
952
+ */
953
+ function _js_vars() {
954
+ $args = array(
955
+ 'class' => get_class( $this ),
956
+ 'screen' => array(
957
+ 'id' => $this->screen->id,
958
+ 'base' => $this->screen->base,
959
+ )
960
+ );
961
+
962
+ printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) );
963
+ }
964
+ }
965
+
966
+ endif;
admin/includes/classes/class-axiom-screen-help.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Simple class to add help tabs on top of admin pages
4
+ *
5
+ * @package Axiom
6
+ * @author averta [averta.net]
7
+ * @license LICENSE.txt
8
+ * @link http://averta.net
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+
13
+ if( ! class_exists( 'Axiom_Screen_Help' ) ) :
14
+
15
+ /**
16
+ * Simple class to add help tabs on top of admin pages
17
+ */
18
+ class Axiom_Screen_Help {
19
+
20
+ /**
21
+ * variable that holds tabs list
22
+ * @var array
23
+ */
24
+ public $tabs = array();
25
+
26
+ /**
27
+ * A perfix to make tabs data filterable and extendable
28
+ * @var string
29
+ */
30
+ public $filter_prefix = '';
31
+
32
+ /**
33
+ * __construct, assign screen hooks to display help tabs on target screens
34
+ *
35
+ * @param array $tabs an array containing help tabs list
36
+ * @param string|array $allowed_screen_ids the screens id(s) that help tabs should be displayed on.
37
+ * Default value is 'all' that means help tabs will be displayed across all admin page
38
+ */
39
+ public function __construct( $tabs = '', $allowed_screen_ids = 'all', $prefix = 'axiom_help_tab_' ) {
40
+
41
+ // store passed tabs and prefix
42
+ $this->tabs = (array)$tabs;
43
+ $this->filter_prefix = $prefix;
44
+
45
+
46
+ if( 'all' == $allowed_screen_ids ) {
47
+ add_action( 'in_admin_header' , array( $this, 'display_help_panel' ), 10, 3 );
48
+ return;
49
+ }
50
+
51
+ foreach ( (array)$allowed_screen_ids as $screen_id ) {
52
+ add_action( 'load-' . $screen_id , array( $this, 'display_help_panel' ), 10, 3 );
53
+ }
54
+
55
+ }
56
+
57
+ /**
58
+ * Display output in panel
59
+ * @return [type] [description]
60
+ */
61
+ public function display_help_panel() {
62
+
63
+ $screen = get_current_screen();
64
+
65
+ foreach ($this->tabs as $tab ) {
66
+
67
+ if( empty( $tab ) )
68
+ continue;
69
+
70
+ if( !isset( $tab['id'] ) ) {
71
+ _e( 'The help tab id is not valid.' );
72
+ continue;
73
+ }
74
+
75
+ // Add help panel
76
+ $screen->add_help_tab( apply_filters( $this->filter_prefix . $tab['id'] , $tab ) );
77
+ }
78
+ }
79
+
80
+ /**
81
+ * Store all tabs in $this->tabs
82
+ * @param array an array containing list of all tabs
83
+ */
84
+ public function set_tabs( $tabs ){
85
+ $this->tabs = $tabs;
86
+ }
87
+
88
+ /**
89
+ * Add a tab to help tabs list
90
+ * @example array('id' => 'the-tab-name-id',
91
+ * 'title' => __( 'Tab Title' ),
92
+ * 'content' => 'Tab contant'
93
+ * )
94
+ * @param array array containing tab data according to example
95
+ */
96
+ public function add_tab( $tab ){
97
+ $this->tabs[] = $tab;
98
+ }
99
+
100
+ }
101
+
102
+ endif;
admin/includes/classes/class-msp-admin-ajax.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //
2
+
3
+ /**
4
+ *
5
+ */
6
+ class MSP_Admin_Ajax {
7
+
8
+
9
+
10
+ function __construct () {
11
+
12
+ // get and save data on ajax data post
13
+ add_action( 'wp_ajax_msp_panel_handler' , array( $this, 'save_panel_ajax' ) );
14
+ add_action( 'wp_ajax_msp_create_new_handler', array( $this, 'create_new_slider' ) );
15
+ }
16
+
17
+
18
+
19
+ /**
20
+ * Save ajax handler for main panel data
21
+ *
22
+ * @since 1.0.0
23
+ */
24
+ public function save_panel_ajax() {
25
+
26
+ header( "Content-Type: application/json" );
27
+
28
+ // verify nonce
29
+ if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], "msp_panel") ) {
30
+ echo json_encode( array( 'success' => false, 'message' => __("Authorization failed!", MSWP_TEXT_DOMAIN ) ) );
31
+ exit();
32
+ }
33
+
34
+ // ignore the request if the current user doesn't have sufficient permissions
35
+ if ( ! current_user_can( 'publish_masterslider' ) ) {
36
+ echo json_encode( array( 'success' => false,
37
+ 'message' => apply_filters( 'masterslider_insufficient_permissions_to_publish_message', __( "Sorry, You don't have enough permission to publish slider!", MSWP_TEXT_DOMAIN ) )
38
+ )
39
+ );
40
+ exit();
41
+ }
42
+
43
+ /////////////////////////////////////////////////////////////////////////////////////////
44
+
45
+ // Get the slider id
46
+ $slider_id = isset( $_REQUEST['slider_id'] ) ? $_REQUEST['slider_id'] : '';
47
+
48
+ if ( empty( $slider_id ) ) {
49
+ echo json_encode( array( 'success' => false, 'type' => 'save' , 'message' => __( "Slider id is not defined.", MSWP_TEXT_DOMAIN ) ) );
50
+ exit;
51
+ }
52
+
53
+ // get the slider type
54
+ $slider_type = isset( $_REQUEST['slider_type'] ) ? $_REQUEST['slider_type'] : 'custom';
55
+
56
+ // get panel data
57
+ $msp_data = isset( $_REQUEST['msp_data'] ) ? $_REQUEST['msp_data'] : NULL;
58
+
59
+
60
+ // get parse and database tools
61
+ global $mspdb;
62
+
63
+ // load and get parser and start parsing data
64
+ $parser = msp_get_parser();
65
+ $parser->set_data( $msp_data, $slider_id );
66
+
67
+ // get required parsed data
68
+ $slider_setting = $parser->get_slider_setting();
69
+ $slides = $parser->get_slides();
70
+ $slider_custom_styles = $parser->get_styles();
71
+
72
+ $fields = array(
73
+ 'title' => $slider_setting[ 'title' ],
74
+ 'type' => $slider_setting[ 'slider_type' ],
75
+ 'slides_num' => count( $slides ),
76
+ 'params' => $msp_data,
77
+ 'custom_styles' => $slider_custom_styles,
78
+ 'custom_fonts' => $slider_setting[ 'gfonts' ],
79
+ 'status' => 'published'
80
+ );
81
+
82
+ // store slider data in database
83
+ $is_saved = $mspdb->update_slider( $slider_id, $fields );
84
+
85
+ msp_save_custom_styles();
86
+
87
+
88
+ // flush slider cache if slider cache is enabled
89
+ msp_flush_slider_cache( $slider_id );
90
+
91
+
92
+ // create and output the response
93
+ if( isset( $is_saved ) )
94
+ $response = json_encode( array( 'success' => true, 'type' => 'save' , 'message' => __( "Saved Successfully.", MSWP_TEXT_DOMAIN ) ) );
95
+ else
96
+ $response = json_encode( array( 'success' => true, 'type' => 'save' , 'message' => __( "No Data Recieved." , MSWP_TEXT_DOMAIN ) ) );
97
+
98
+ echo $response;
99
+
100
+ exit;// IMPORTANT
101
+ }
102
+
103
+
104
+
105
+ /**
106
+ * Create new slider by type
107
+ *
108
+ * @since 1.0.0
109
+ */
110
+ public function create_new_slider() {
111
+
112
+ header( "Content-Type: application/json" );
113
+
114
+ // verify nonce
115
+ if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], "msp_panel") ) {
116
+ echo json_encode( array( 'success' => false, 'message' => __("Authorization failed!", MSWP_TEXT_DOMAIN ) ) );
117
+ exit();
118
+ }
119
+
120
+ // ignore the request if the current user doesn't have sufficient permissions
121
+ if ( ! current_user_can( 'create_masterslider' ) && ! current_user_can( 'publish_masterslider' ) ) {
122
+ echo json_encode( array( 'success' => false,
123
+ 'message' => apply_filters( 'masterslider_create_slider_permissions_message', __( "Sorry, You don't have enough permission to create slider!", MSWP_TEXT_DOMAIN ) )
124
+ )
125
+ );
126
+ exit();
127
+ }
128
+
129
+
130
+ /////////////////////////////////////////////////////////////////////////////////////////
131
+
132
+ // Get the slider id
133
+ $slider_type = isset( $_REQUEST['slider_type'] ) ? $_REQUEST['slider_type'] : '';
134
+
135
+
136
+ // Get new slider id
137
+ global $mspdb;
138
+ $slider_id = $mspdb->add_slider( array( 'status' => 'draft', 'type' => $slider_type ) );
139
+
140
+
141
+ // create and output the response
142
+ if( false !== $slider_id )
143
+ $response = json_encode( array( 'success' => true, 'slider_id' => $slider_id , 'redirect' => admin_url( 'admin.php?page='.MSWP_SLUG.'&action=edit&slider_id='.$slider_id.'&slider_type='.$slider_type ), 'message' => __( "Slider Created Successfully.", MSWP_TEXT_DOMAIN ) ) );
144
+ else
145
+ $response = json_encode( array( 'success' => true, 'slider_id' => '' , 'redirect' => '', message => __( "Slider can not be created." , MSWP_TEXT_DOMAIN ) ) );
146
+
147
+ echo $response;
148
+
149
+ exit;// IMPORTANT
150
+ }
151
+
152
+
153
+ }
154
+
155
+ new MSP_Admin_Ajax();
admin/includes/classes/class-msp-admin-assets.php ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Master Slider Admin Scripts Class.
4
+ *
5
+ * @package MasterSlider
6
+ * @author averta [averta.net]
7
+ * @license LICENSE.txt
8
+ * @link http://masterslider.com
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+ /**
13
+ * Class to load and print master slider panel scripts
14
+ */
15
+ class MSP_Admin_Assets {
16
+
17
+
18
+ /**
19
+ * __construct
20
+ */
21
+ function __construct() {
22
+
23
+ }
24
+
25
+
26
+ public function enqueue (){
27
+
28
+ // general assets
29
+ $this->load_general_styles();
30
+ $this->load_panel_styles();
31
+
32
+ $this->add_general_variables();
33
+ $this->add_general_script_localizations();
34
+ $this->load_general_scripts();
35
+
36
+ // panel spesific assets
37
+ if( isset( $_REQUEST['action'] ) && in_array( $_REQUEST['action'], array( 'edit', 'add' ) ) ) {
38
+
39
+ $this->load_panel_scripts();
40
+ $this->add_panel_variables();
41
+ $this->add_panel_script_localizations();
42
+ }
43
+
44
+ }
45
+
46
+
47
+ /**
48
+ * Load scripts for master slider admin panel
49
+ * @return void
50
+ */
51
+ public function load_panel_scripts() {
52
+
53
+ // Load wp media uploader
54
+ wp_enqueue_media();
55
+
56
+ // Master Slider Panel Scripts
57
+ wp_enqueue_script( MSWP_SLUG . '-handlebars' , MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/js/handlebars.min.js', array( 'jquery' ), MSWP_AVERTA_VERSION, true );
58
+ wp_enqueue_script( MSWP_SLUG . '-ember-js' , MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/js/ember.min.js', array( 'jquery' ), MSWP_AVERTA_VERSION, true );
59
+ wp_enqueue_script( MSWP_SLUG . '-ember-model' , MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/js/ember-model.min.js', array( 'jquery' ), MSWP_AVERTA_VERSION, true );
60
+ wp_enqueue_script( MSWP_SLUG . '-msp-required' , MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/js/msp.required.js',
61
+ array(
62
+ 'jquery', 'jquery-ui-core', 'jquery-ui-dialog', 'jquery-ui-draggable',
63
+ 'jquery-ui-sortable', 'jquery-ui-slider', 'jquery-ui-spinner'
64
+ ),
65
+ MSWP_AVERTA_VERSION, true
66
+ );
67
+
68
+ wp_enqueue_script( MSWP_SLUG . '-masterslider-wp', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/js/masterslider.wp.js', array( MSWP_SLUG . '-msp-required' ), MSWP_AVERTA_VERSION, true );
69
+ }
70
+
71
+
72
+ /**
73
+ * Print required variable for master slider panel
74
+ */
75
+ public function add_panel_variables() {
76
+
77
+ $slider_skins = array(
78
+ array( 'class' => 'ms-skin-default', 'label' => 'Default' ),
79
+ array( 'class' => 'ms-skin-light-2', 'label' => 'Light 2' ),
80
+ array( 'class' => 'ms-skin-light-3', 'label' => 'Light 3' ),
81
+ array( 'class' => 'ms-skin-light-4', 'label' => 'Light 4' ),
82
+ array( 'class' => 'ms-skin-light-5', 'label' => 'Light 5' ),
83
+ array( 'class' => 'ms-skin-light-6', 'label' => 'Light 6' ),
84
+ array( 'class' => 'ms-skin-light-6 round-skin', 'label' => 'Light 6 Round' ),
85
+
86
+ array( 'class' => 'ms-skin-contrast', 'label' => 'Contrast' ),
87
+ array( 'class' => 'ms-skin-black-1' , 'label' => 'Black 1' ),
88
+ array( 'class' => 'ms-skin-black-2' , 'label' => 'Black 2' ),
89
+ array( 'class' => 'ms-skin-black-2 round-skin', 'label' => 'Black 2 Round' ),
90
+ array( 'class' => 'ms-skin-metro' , 'label' => 'Metro' )
91
+ );
92
+
93
+ wp_localize_script( 'jquery', '__MSP_SKINS', apply_filters( 'masterslider_skins', $slider_skins ) );
94
+
95
+ // get and print slider id
96
+ if ( isset( $_REQUEST['slider_id'] ) ) {
97
+
98
+ $slider_id = $_REQUEST['slider_id'];
99
+
100
+ } else {
101
+ global $mspdb;
102
+ $slider_id = 0;
103
+
104
+ if ( isset( $_REQUEST['action'] ) && 'add' == $_REQUEST['action'] ) {
105
+ $slider_id = $mspdb->add_slider( array( 'status' => 'draft' ) );
106
+ wp_localize_script( 'jquery', '__MSP_SLIDER_ID', (string) $slider_id );
107
+ }
108
+ }
109
+
110
+ // Get and print panel data
111
+ if ( $slider_id ) {
112
+
113
+ global $mspdb;
114
+ $slider_data = $mspdb->get_slider( $slider_id );
115
+
116
+ $slider_type = isset( $slider_data[ 'type' ] ) ? $slider_data[ 'type' ] : 'custom';
117
+ $slider_type = empty( $slider_type ) ? 'custom' : $slider_type;
118
+
119
+ $msp_data = isset( $slider_data[ 'params' ] ) ? $slider_data[ 'params' ] : NULL;
120
+ $msp_data = empty( $slider_data[ 'params' ] ) ? NULL : $slider_data[ 'params' ];
121
+
122
+ $msp_preset_style = msp_get_option( 'preset_style' , NULL );
123
+ $msp_preset_effect = msp_get_option( 'preset_effect', NULL );
124
+ $msp_buttons_style = msp_get_option( 'buttons_style', NULL );
125
+
126
+ $msp_preset_style = empty( $msp_preset_style ) ? NULL : $msp_preset_style;
127
+ $msp_preset_effect = empty( $msp_preset_effect ) ? NULL : $msp_preset_effect;
128
+ $msp_buttons_style = empty( $msp_buttons_style ) ? NULL : $msp_buttons_style;
129
+
130
+ wp_localize_script( 'jquery', '__MSP_DATA' , $msp_data );
131
+ wp_localize_script( 'jquery', '__MSP_PRESET_STYLE' , $msp_preset_style );
132
+ wp_localize_script( 'jquery', '__MSP_PRESET_EFFECT' , $msp_preset_effect );
133
+ wp_localize_script( 'jquery', '__MSP_TYPE' , $slider_type );
134
+ wp_localize_script( 'jquery', '__MSP_PRESET_BUTTON' , $msp_buttons_style );
135
+ }
136
+
137
+
138
+ // define panel directory path
139
+ wp_localize_script( 'jquery', '__MSP_PATH', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/' );
140
+
141
+ do_action( 'masterslider_admin_add_panel_variables', $slider_type );
142
+ }
143
+
144
+
145
+
146
+
147
+ /**
148
+ * Print required variable for master slider admin page
149
+ */
150
+ public function add_general_variables() {
151
+
152
+ $uploads = wp_upload_dir();
153
+
154
+ // define admin ajax address and master slider page
155
+ wp_localize_script( 'jquery', '__MS', array(
156
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
157
+ 'msp_menu_page' => menu_page_url( MSWP_SLUG, false ),
158
+ 'msp_plugin_url' => MSWP_AVERTA_URL,
159
+ 'upload_dir' => $uploads['baseurl'],
160
+ 'importer' => admin_url( 'admin.php?import=masterslider-importer' )
161
+ ));
162
+ }
163
+
164
+
165
+ /**
166
+ * Add script localizations
167
+ */
168
+ public function add_panel_script_localizations() {
169
+
170
+ wp_localize_script( 'jquery', '__MSP_LAN', apply_filters( 'masterslider_admin_localize', array(
171
+
172
+ // CallbacksController.js
173
+ 'cb_001' => __( 'On slide change start', MSWP_TEXT_DOMAIN ),
174
+ 'cb_002' => __( 'On slide change end', MSWP_TEXT_DOMAIN ),
175
+ 'cb_003' => __( 'On slide timer change', MSWP_TEXT_DOMAIN ),
176
+ 'cb_004' => __( 'On slider resize', MSWP_TEXT_DOMAIN ),
177
+ 'cb_005' => __( 'On Youtube/Vimeo video play', MSWP_TEXT_DOMAIN ),
178
+ 'cb_006' => __( 'On Youtube/Vimeo video close', MSWP_TEXT_DOMAIN ),
179
+ 'cb_007' => __( 'On swipe start', MSWP_TEXT_DOMAIN ),
180
+ 'cb_008' => __( 'On swipe move', MSWP_TEXT_DOMAIN ),
181
+ 'cb_009' => __( 'On swipe end', MSWP_TEXT_DOMAIN ),
182
+ 'cb_010' => __( 'Are you sure you want to remove "%s" callback?', MSWP_TEXT_DOMAIN ),
183
+ 'cb_011' => __( 'On slider Init', MSWP_TEXT_DOMAIN ),
184
+
185
+ // ControlsController.js
186
+ 'cc_001' => __( 'Arrows', MSWP_TEXT_DOMAIN ),
187
+ 'cc_002' => __( 'Line Timer', MSWP_TEXT_DOMAIN ),
188
+ 'cc_003' => __( 'Bullets', MSWP_TEXT_DOMAIN ),
189
+ 'cc_004' => __( 'Circle Timer', MSWP_TEXT_DOMAIN ),
190
+ 'cc_005' => __( 'Scrollbar', MSWP_TEXT_DOMAIN ),
191
+ 'cc_006' => __( 'Slide Info', MSWP_TEXT_DOMAIN ),
192
+ 'cc_007' => __( 'Thumblist/Tabs', MSWP_TEXT_DOMAIN ),
193
+
194
+ // EffectsController
195
+ 'ec_001' => __( 'Please enter name for new preset effect', MSWP_TEXT_DOMAIN ),
196
+ 'ec_002' => __( 'Custom effect', MSWP_TEXT_DOMAIN ),
197
+
198
+ // LayersController.js
199
+ 'lc_001' => __( 'Text Layer', MSWP_TEXT_DOMAIN ),
200
+ 'lc_002' => __( 'Image Layer', MSWP_TEXT_DOMAIN ),
201
+ 'lc_003' => __( 'Video Layer', MSWP_TEXT_DOMAIN ),
202
+ 'lc_004' => __( 'Hotspot', MSWP_TEXT_DOMAIN ),
203
+ 'lc_006' => __( 'Button Layer', MSWP_TEXT_DOMAIN ),
204
+
205
+ // StylesController.js
206
+ 'sc_001' => __( 'Please enter name for new preset style', MSWP_TEXT_DOMAIN ),
207
+ 'sc_002' => __( 'Custom style', MSWP_TEXT_DOMAIN ),
208
+
209
+ //SliderModel.js
210
+ 'sm_001' => __( 'Untitled Slider', MSWP_TEXT_DOMAIN ),
211
+
212
+ // EffectEditorView.js
213
+ 'ee_001' => __( 'Preset Transitions', MSWP_TEXT_DOMAIN ),
214
+ 'ee_002' => __( 'Apply transition', MSWP_TEXT_DOMAIN ),
215
+ 'ee_003' => __( 'Save as preset', MSWP_TEXT_DOMAIN ),
216
+ 'ee_006' => __( 'Transition Editor', MSWP_TEXT_DOMAIN ),
217
+
218
+ // StageView.js
219
+ 'sv_001' => __( 'Align to stage :', MSWP_TEXT_DOMAIN ),
220
+ 'sv_002' => __( 'Snapping :', MSWP_TEXT_DOMAIN ),
221
+ 'sv_003' => __( 'Zoom :', MSWP_TEXT_DOMAIN ),
222
+ 'sv_010' => __( 'Layer position origin : ', MSWP_TEXT_DOMAIN ),
223
+
224
+ //StyleEditorView.js
225
+ 'se_001' => __( 'Apply style', MSWP_TEXT_DOMAIN ),
226
+ 'se_002' => __( 'Save as preset', MSWP_TEXT_DOMAIN ),
227
+ 'se_003' => __( 'Preset Styles', MSWP_TEXT_DOMAIN ),
228
+ 'se_004' => __( 'By deleting preset style it also will be removed from other sliders in your website. Are you sure you want to delete "%s"?', MSWP_TEXT_DOMAIN ),
229
+ 'se_006' => __( 'Style Editor', MSWP_TEXT_DOMAIN ),
230
+
231
+ //TemplatesView.js
232
+ 'tv_001' => __( 'Master Slider Templates', MSWP_TEXT_DOMAIN ),
233
+ 'tv_002' => __( 'Changing template will reset all slider controls and will change some slider settings. Continue?', MSWP_TEXT_DOMAIN),
234
+ //TimelineView.js
235
+ 'tl_001' => __( 'Show/Hide all', MSWP_TEXT_DOMAIN ),
236
+ 'tl_002' => __( 'Solo All', MSWP_TEXT_DOMAIN ),
237
+ 'tl_003' => __( 'Lock/Unlock all', MSWP_TEXT_DOMAIN ),
238
+ 'tl_004' => __( 'Exit preview', MSWP_TEXT_DOMAIN ),
239
+ 'tl_005' => __( 'Preview slide', MSWP_TEXT_DOMAIN ),
240
+ 'tl_006' => __( 'Show/Hide', MSWP_TEXT_DOMAIN ),
241
+ 'tl_007' => __( 'Solo', MSWP_TEXT_DOMAIN ),
242
+ 'tl_008' => __( 'Lock/Unlock', MSWP_TEXT_DOMAIN ),
243
+ 'tl_009' => __( 'Are you sure you want to remove this layer?', MSWP_TEXT_DOMAIN ),
244
+ 'tl_010' => __( 'Start delay :', MSWP_TEXT_DOMAIN ),
245
+ 'tl_011' => __( 'Show duration :', MSWP_TEXT_DOMAIN ),
246
+ 'tl_012' => __( 'Waiting duration :', MSWP_TEXT_DOMAIN ),
247
+ 'tl_013' => __( 'Hide duration :', MSWP_TEXT_DOMAIN ),
248
+
249
+ //UIViews.js
250
+ 'ui_001' => __( 'Show/Hide slide', MSWP_TEXT_DOMAIN ),
251
+ 'ui_002' => __( 'Duplicate slide', MSWP_TEXT_DOMAIN ),
252
+ 'ui_003' => __( 'Remove slide', MSWP_TEXT_DOMAIN ),
253
+ 'ui_004' => __( 'Are you sure you want to delete this slide?', MSWP_TEXT_DOMAIN ),
254
+ 'ui_005' => __( 'Open on the same page', MSWP_TEXT_DOMAIN ),
255
+ 'ui_006' => __( 'Open on new page', MSWP_TEXT_DOMAIN ),
256
+ 'ui_007' => __( 'Open in parent frame', MSWP_TEXT_DOMAIN ),
257
+ 'ui_008' => __( 'Open in main frame', MSWP_TEXT_DOMAIN ),
258
+ 'ui_009' => __( 'Fill', MSWP_TEXT_DOMAIN ),
259
+ 'ui_010' => __( 'Fit', MSWP_TEXT_DOMAIN ),
260
+ 'ui_011' => __( 'Center', MSWP_TEXT_DOMAIN ),
261
+ 'ui_012' => __( 'Stretch', MSWP_TEXT_DOMAIN ),
262
+ 'ui_013' => __( 'Tile', MSWP_TEXT_DOMAIN ),
263
+ 'ui_014' => __( 'None', MSWP_TEXT_DOMAIN ),
264
+ 'ui_015' => __( 'Align top', MSWP_TEXT_DOMAIN ),
265
+ 'ui_016' => __( 'Align vertical center', MSWP_TEXT_DOMAIN ),
266
+ 'ui_017' => __( 'Align bottom', MSWP_TEXT_DOMAIN ),
267
+ 'ui_018' => __( 'Align left', MSWP_TEXT_DOMAIN ),
268
+ 'ui_019' => __( 'Align horizontal center', MSWP_TEXT_DOMAIN ),
269
+ 'ui_020' => __( 'Align right', MSWP_TEXT_DOMAIN ),
270
+
271
+ // ApplicationController.js
272
+ 'ap_001' => __( 'Sending data...', MSWP_TEXT_DOMAIN ),
273
+ 'ap_002' => __( 'An Error accorded, please try again.', MSWP_TEXT_DOMAIN ),
274
+ 'ap_003' => __( 'Data saved successfully.', MSWP_TEXT_DOMAIN ),
275
+
276
+ 'flk_001' => __( 'Photo title', MSWP_TEXT_DOMAIN ),
277
+ 'flk_002' => __( 'Photo owner name', MSWP_TEXT_DOMAIN ),
278
+ 'flk_003' => __( 'Date taken', MSWP_TEXT_DOMAIN ),
279
+ 'flk_004' => __( 'Photo description', MSWP_TEXT_DOMAIN ),
280
+
281
+ 'fb_001' => __( 'Photo name', MSWP_TEXT_DOMAIN ),
282
+ 'fb_002' => __( 'Photo owner name', MSWP_TEXT_DOMAIN ),
283
+ 'fb_003' => __( 'Photo link', MSWP_TEXT_DOMAIN ),
284
+
285
+ 'ui_021' => __( 'Goto next slide', MSWP_TEXT_DOMAIN ),
286
+ 'ui_022' => __( 'Goto previous slide', MSWP_TEXT_DOMAIN ),
287
+ 'ui_022' => __( 'Goto slide', MSWP_TEXT_DOMAIN ),
288
+ 'ui_023' => __( 'Pause timer', MSWP_TEXT_DOMAIN ),
289
+ 'ui_024' => __( 'Resume timer', MSWP_TEXT_DOMAIN ),
290
+
291
+ 'be_001' => __( 'Update Button Style', MSWP_TEXT_DOMAIN ),
292
+ 'be_002' => __( 'Save As New Button', MSWP_TEXT_DOMAIN ),
293
+ 'be_003' => __( 'Are you sure you want to delete this button?', MSWP_TEXT_DOMAIN ),
294
+ 'be_004' => __( 'Buttons', MSWP_TEXT_DOMAIN ),
295
+ 'be_005' => __( 'Button Editor', MSWP_TEXT_DOMAIN ),
296
+ 'be_006' => __( 'By updating a button it will be changed in all of your sliders. Are you sure you want to update this button?', MSWP_TEXT_DOMAIN )
297
+
298
+ ) ) );
299
+
300
+ }
301
+
302
+
303
+
304
+ /**
305
+ * Add general script localizations
306
+ */
307
+ public function add_general_script_localizations() {
308
+
309
+ wp_localize_script( 'jquery', '__MSP_GEN_LAN', apply_filters( 'masterslider_admin_general_localize', array(
310
+
311
+ 'genl_001' => __( 'The changes you made will be lost if you navigate away from this page. To exit preview mode click on close (X) button.', MSWP_TEXT_DOMAIN ),
312
+ 'genl_002' => __( 'Master Slider Preview', MSWP_TEXT_DOMAIN ),
313
+ 'genl_003' => __( 'Loading Slider ..', MSWP_TEXT_DOMAIN ),
314
+ 'genl_004' => __( 'Creating The Slider ..', MSWP_TEXT_DOMAIN ),
315
+ 'genl_005' => __( 'Select a Starter', MSWP_TEXT_DOMAIN ),
316
+ 'genl_006' => __( 'No slider is selected to export.', MSWP_TEXT_DOMAIN ),
317
+ 'genl_007' => __( 'Import', MSWP_TEXT_DOMAIN )
318
+
319
+ ) ) );
320
+
321
+ }
322
+
323
+
324
+
325
+ /**
326
+ * Panel spesific styles
327
+ *
328
+ * @return void
329
+ */
330
+ public function load_panel_styles() {
331
+
332
+ // Master Slider Panel styles
333
+ wp_enqueue_style( MSWP_SLUG .'-reset', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/reset.css', array(), MSWP_AVERTA_VERSION );
334
+ wp_enqueue_style( MSWP_SLUG .'-jq-ui', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/jquery-ui-1.10.4.min.css', array(), MSWP_AVERTA_VERSION );
335
+ wp_enqueue_style( MSWP_SLUG .'-spectrum', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/spectrum.css', array(), MSWP_AVERTA_VERSION );
336
+ wp_enqueue_style( MSWP_SLUG .'-codemirror', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/codemirror.css', array(), MSWP_AVERTA_VERSION );
337
+ wp_enqueue_style( MSWP_SLUG .'-jscrollpane', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/jquery.jscrollpane.css', array(), MSWP_AVERTA_VERSION );
338
+ wp_enqueue_style( MSWP_SLUG .'-main-style', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/msp-style.css', array(), MSWP_AVERTA_VERSION );
339
+ wp_enqueue_style( MSWP_SLUG .'-components', MSWP_AVERTA_ADMIN_URL . '/views/slider-panel/css/msp-components.css', array(), MSWP_AVERTA_VERSION );
340
+
341
+ }
342
+
343
+ /**
344
+ * Master slider general/common styles
345
+ *
346
+ * @return void
347
+ */
348
+ public function load_general_styles() {
349
+ // gnereal styles for masterslider admin page
350
+ wp_enqueue_style( MSWP_SLUG .'-admin-styles', MSWP_AVERTA_ADMIN_URL . '/assets/css/msp-general.css', array(), MSWP_AVERTA_VERSION );
351
+ }
352
+
353
+
354
+ public function load_general_scripts() {
355
+ // disable wp autosave on master slider panel
356
+ wp_dequeue_script( 'autosave' );
357
+ wp_enqueue_script( MSWP_SLUG .'-admin-scripts', MSWP_AVERTA_ADMIN_URL . '/assets/js/admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-dialog'), MSWP_AVERTA_VERSION, true );
358
+ }
359
+
360
+ }
admin/includes/classes/class-msp-importer.php ADDED
@@ -0,0 +1,786 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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@link http://masterslider.com
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+ // no direct access allowed
13
+ if (!defined('ABSPATH')) {
14
+ die();
15
+ }
16
+
17
+ /**
18
+ * Master Slider Import/Export Class.
19
+ *
20
+ * @since 1.2.0
21
+ */
22
+ class MSP_Importer {
23
+
24
+
25
+ var $origin_upload_baseurl = '';
26
+
27
+ var $upload_baseurl = '';
28
+
29
+ var $upload_basedir = '';
30
+
31
+ var $image_import_queue = array();
32
+
33
+ var $import_medias = true;
34
+
35
+ var $last_new_slider_id = null;
36
+
37
+
38
+
39
+ function __construct() {
40
+
41
+ add_action( 'admin_menu', array( $this, 'admin_init' ) );
42
+ }
43
+
44
+
45
+ public function admin_init() {
46
+
47
+ $upload = wp_upload_dir();
48
+ $this->upload_baseurl = $upload['baseurl'];
49
+ $this->upload_basedir = $upload['basedir'];
50
+
51
+ $this->process_export_request();
52
+
53
+ register_importer( 'masterslider-importer', __( 'Master Slider', MSWP_TEXT_DOMAIN ), __( 'Import sliders and images from a Master Slider export file.', MSWP_TEXT_DOMAIN ), array( $this, 'render_importer_page' ) );
54
+ }
55
+
56
+
57
+ public function render_importer_page() {
58
+
59
+ $this->header();
60
+
61
+ $this->process_import_request();
62
+
63
+ $this->footer();
64
+ }
65
+
66
+
67
+ /**
68
+ * Display import page title
69
+ */
70
+ function header() {
71
+ echo '<div class="wrap">';
72
+ screen_icon();
73
+ echo '<h2>' . __( 'Importing Master Slider', 'wordpress-importer' ) . '</h2><br />';
74
+ }
75
+
76
+ /**
77
+ * Close div.wrap
78
+ */
79
+ function footer() {
80
+ echo '</div>';
81
+ ?>
82
+ <script>
83
+ function mspGetParameterByName(name) {
84
+ name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
85
+ var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
86
+ results = regex.exec(location.search);
87
+ return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
88
+ }
89
+ jQuery(window).load(function(){
90
+ if (typeof redirect_link !== 'undefined' && redirect_link !== '' ) {
91
+ window.location.replace( redirect_link );
92
+ } else {
93
+ console.log('redirect link not found');
94
+ }
95
+ });
96
+ </script>
97
+ <?php
98
+ }
99
+
100
+
101
+ /**
102
+ * Decide what the maximum file size for downloaded attachments is.
103
+ * Default is 0 (unlimited), can be filtered via masterslider_import_attachment_size_limit
104
+ *
105
+ * @return int Maximum attachment file size to import
106
+ */
107
+ function max_attachment_size() {
108
+ return apply_filters( 'masterslider_import_attachment_size_limit', 0 );
109
+ }
110
+
111
+
112
+ // if it's relative url, get absolute origin url
113
+ function get_absolute_media_url( $url ){
114
+
115
+ if( $this->is_absolute_url( $url ) || $this->contains_origin_upload_dir( $url ) )
116
+ return $url;
117
+
118
+ return $this->origin_upload_baseurl . $url;
119
+ }
120
+
121
+
122
+ /**
123
+ * Is absolute url?
124
+ * @param string $url the url
125
+ * @return boolean true if the url is absolue and false otherwise
126
+ */
127
+ public function is_absolute_url( $url ){
128
+ return preg_match( "~^(?:f|ht)tps?://~i", $url );
129
+ }
130
+
131
+
132
+ /**
133
+ * Wheather url contains origin_upload_baseurl or not
134
+ * @param string $url the url
135
+ * @return bool TRUE, if url contains origin_upload_baseurl
136
+ */
137
+ public function contains_origin_upload_dir( $url ){
138
+ return strpos( $url, $this->origin_upload_baseurl ) !== false;
139
+ }
140
+
141
+
142
+ /**
143
+ * Process incoming requests for importing sliders
144
+ * @return void
145
+ */
146
+ public function process_import_request(){
147
+
148
+ $step = isset( $_REQUEST['step'] ) && ! empty( $_REQUEST['step'] ) ? (int)$_REQUEST['step'] : 0;
149
+
150
+ if( 2 > $step ) {
151
+
152
+ $bytes = apply_filters( 'masterslider_import_upload_size_limit', wp_max_upload_size() );
153
+ $size = size_format( $bytes );
154
+ ?>
155
+
156
+ <div class="msp-import-wrapper">
157
+
158
+ <form action="<?php echo admin_url( 'admin.php?import=masterslider-importer&step=2' ); ?>" method="post" enctype="multipart/form-data" class="msp-import-form msp-dialog-inner-section">
159
+
160
+ <span class="msp-dialog-section-desc"><?php _e( 'To import sliders select Masterslider Export file that you downloaded before then click import button.', MSWP_TEXT_DOMAIN ) ?></span>
161
+ <br />
162
+ <hr />
163
+ <br />
164
+ <fieldset>
165
+ <?php wp_nonce_field('import-msp-sliders'); ?>
166
+
167
+ <input type="hidden" name="msp-import" value="1">
168
+
169
+ <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
170
+
171
+ <input type="file" name="msp-import-file" class="msp-select-file">
172
+
173
+ <small><?php printf( __( 'Maximum size: %s', MSWP_TEXT_DOMAIN ), $size ); ?></small><br /><br /><br />
174
+
175
+ <input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import', MSWP_TEXT_DOMAIN ); ?>" />
176
+ </fieldset>
177
+
178
+
179
+
180
+ </form>
181
+
182
+ </div>
183
+
184
+ <?php
185
+ }
186
+
187
+ // Import sliders from export file
188
+ if( isset( $_POST['msp-import'] ) ) {
189
+
190
+ if( current_user_can('export_masterslider') ) {
191
+
192
+ if( check_admin_referer('import-msp-sliders') ) {
193
+
194
+ $step = isset( $_REQUEST['step'] ) && ! empty( $_REQUEST['step'] ) ? (int)$_REQUEST['step'] : 0;
195
+
196
+ if( 2 == $step ){
197
+
198
+ if ( $_FILES['msp-import-file']['error'] == UPLOAD_ERR_OK && is_uploaded_file( $_FILES['msp-import-file']['tmp_name'] ) ) {
199
+ // get import file content
200
+ $import_data = file_get_contents( $_FILES['msp-import-file']['tmp_name'] );
201
+ $this->import_data( $import_data );
202
+ }
203
+
204
+ }
205
+ }
206
+
207
+ } else {
208
+ add_action( 'admin_notices', array( $this, 'import_export_notice' ) );
209
+ }
210
+ }
211
+
212
+ // Import slider by starter id
213
+ if( isset( $_REQUEST['starter_id'] ) && ! empty( $_REQUEST['starter_id'] ) ) {
214
+
215
+ if( current_user_can('export_masterslider') || apply_filters( 'masterslider_user_can_import_starter_content', 0 ) ) {
216
+
217
+ if ( $starter_field = msp_get_slider_starter_field( $_REQUEST['starter_id'] ) ) {
218
+
219
+ if ( isset( $starter_field['importdata'] ) && ! empty( $starter_field['importdata'] ) ) {
220
+
221
+ $this->import_data( $starter_field['importdata'] );
222
+ printf( "<script> var redirect_link = '%s';</script>", admin_url( 'admin.php?page='.MSWP_SLUG.'&action=edit&slider_id='.$this->last_new_slider_id. '&fr' ) );
223
+
224
+ } else {
225
+ _e( 'Import data not found ..', MSWP_TEXT_DOMAIN );
226
+ }
227
+
228
+ } else {
229
+ _e( 'Starter ID is not valid.', MSWP_TEXT_DOMAIN );
230
+ }
231
+
232
+ } else {
233
+ add_action( 'admin_notices', array( $this, 'import_export_notice' ) );
234
+ }
235
+
236
+ }
237
+
238
+ }
239
+
240
+
241
+
242
+ public function process_export_request(){
243
+
244
+ // Export sliders
245
+ if( isset( $_POST['msp-export'] ) ) {
246
+
247
+ if( current_user_can('export_masterslider') ) {
248
+
249
+ if( check_admin_referer('export-msp-sliders') ) {
250
+
251
+ $sliders = isset( $_POST['msp-export-sliders'] ) ? $_POST['msp-export-sliders'] : '';
252
+
253
+ if( ! empty( $sliders ) || ! empty( $args ) ) {
254
+ $this->export_slider_data_in_file( $sliders, $args );
255
+ }
256
+ }
257
+
258
+ }else {
259
+ add_action( 'admin_notices', array( $this, 'import_export_notice' ) );
260
+ }
261
+ }
262
+
263
+ }
264
+
265
+
266
+ /**
267
+ * Add admin notice if access to import/export is denied
268
+ * @return void
269
+ */
270
+ public function import_export_notice(){
271
+ printf( '<div class="error" style="display:block;" ><p>%s</p></div>',
272
+ apply_filters( 'masterslider_import_export_access_denied_message', __( "Sorry, You don't have enough permission to import/export sliders.", MSWP_TEXT_DOMAIN ) )
273
+ );
274
+ }
275
+
276
+
277
+
278
+
279
+
280
+
281
+ /**
282
+ * Get slider export data
283
+ *
284
+ * @param int|array $slider_id the slider id(s)
285
+ * @param array The other options that should be included in export data ( preset_styles, preset_effects )
286
+ * @param bool $base64 encode output data to base64 or not
287
+ * @return string the slider export data
288
+ */
289
+ function get_slider_export_data( $slider_ids = array() , $args = null, $base64 = true ){
290
+
291
+ $slider_ids = (array) $slider_ids;
292
+ $args = (array) $args;
293
+
294
+ // stores export data
295
+ $export_data = array();
296
+
297
+ $export_data['sliders_data'] = array();
298
+
299
+ // loop through selected sliders and store in sliders_data
300
+ foreach ( $slider_ids as $slider_id ) {
301
+
302
+ if( is_numeric( $slider_id ) ) {
303
+ global $mspdb;
304
+
305
+ $slider_title = $mspdb->get_slider_field_val( $slider_id, 'title' );
306
+ $slider_params = $mspdb->get_slider_field_val( $slider_id, 'params' );
307
+ $slider_type = $mspdb->get_slider_field_val( $slider_id, 'type' );
308
+ $slides_num = $mspdb->get_slider_field_val( $slider_id, 'slides_num');
309
+
310
+ $export_data['sliders_data'][ $slider_id ] = array(
311
+ 'title' => $slider_title,
312
+ 'params' => $slider_params,
313
+ 'type' => $slider_type,
314
+ 'slides_num' => $slides_num
315
+ );
316
+ }
317
+
318
+ }
319
+
320
+ // add origin_uploads_url to export data - this helps us to fetch images from origin domian
321
+
322
+ // if you need to bundle sample sliders in your theme you can change the origin_uploads_url
323
+ // by default origin_uploads_url is the uploads baseurl on domain you exported the sliders from (e.g www.domain.com/wp-content/uploads)
324
+ // when you decide to import data to new domain, importer will use the origin_uploads_url to fetch images from.
325
+ // you can change origin_uploads_url by using 'masterslider_export_origin_uploads_url' filter
326
+ // if you change origin_uploads_url to something else, importer will import slider images
327
+ // from your custom origin_uploads_url instead of default origin_uploads_url
328
+ $custom_export_origin_uploads_url = apply_filters( 'masterslider_export_origin_uploads_url', null );
329
+
330
+ // if filter passed empty string, origin_uploads_url will be plugins/masterslider/samples folder
331
+ if( '' === $custom_export_origin_uploads_url ) {
332
+ $export_data['origin_uploads_url'] = '{{masterslider}}/samples';
333
+
334
+ // if filter passed a string with our special tags :
335
+ } elseif( false !== strpos( $custom_export_origin_uploads_url, '{{masterslider}}' ) ||
336
+ false !== strpos( $custom_export_origin_uploads_url, '{{theme_dir}}' ) ||
337
+ false !== strpos( $custom_export_origin_uploads_url, '{{child_theme_dir}}' ) ) {
338
+
339
+ $export_data['origin_uploads_url'] = $custom_export_origin_uploads_url;
340
+
341
+ // if filter value not changed use upload baseurl for current domain
342
+ } else {
343
+ $uploads = wp_upload_dir();
344
+ $export_data['origin_uploads_url'] = $uploads['baseurl'];
345
+ }
346
+
347
+
348
+ $export_json_data = json_encode( $export_data );
349
+ $export_b64_data = base64_encode( $export_json_data );
350
+
351
+ if ( $base64 )
352
+ return base64_encode( json_encode( $export_data ) );
353
+
354
+ return $export_data;
355
+ }
356
+
357
+
358
+ /**
359
+ * Print slider export data
360
+ *
361
+ * @param int|array $slider_id the slider id(s)
362
+ * @param array The other options that should be included in export data ( preset_styles, preset_effects )
363
+ * @param bool $base64 encode output data to base64 or not
364
+ * @return void
365
+ */
366
+ function the_slider_export_data ( $slider_id, $args = null, $base64 = true ){
367
+ $export = $this->get_slider_export_data( $slider_id, $args, $base64 );
368
+ axpp( $export );
369
+ }
370
+
371
+
372
+ /**
373
+ * Export slider(s) data to file
374
+ *
375
+ * @param int|array $slider_id slider(s) ID to export
376
+ * @param array The other options that should be included in export data ( preset_style, preset_effect )
377
+ * @return void
378
+ */
379
+ function export_slider_data_in_file( $slider_id, $args = null ){
380
+
381
+ $blogname = str_replace( " ", "", get_option('blogname') );
382
+ $date = date("m-d-Y");
383
+ $export_file_name = $blogname."-".MSWP_SLUG."-".$date;
384
+
385
+ $export_b64_data = $this->get_slider_export_data( $slider_id, $args );
386
+
387
+ header( "Content-Type: application/force-download; charset=" . get_option( 'blog_charset') );
388
+ header( "Content-Disposition: attachment; filename=$export_file_name.json" );
389
+ exit( $export_b64_data );
390
+ }
391
+
392
+
393
+
394
+
395
+
396
+
397
+ /**
398
+ * Import sliders and options by previousely exported data
399
+ *
400
+ * @param string $exported_data the exported string
401
+ * @return bool true on success and false on failure
402
+ */
403
+ function import_data( $exported_data ){
404
+
405
+ if( empty( $exported_data ) )
406
+ return false;
407
+
408
+ $exported_b64_decoded = msp_maybe_base64_decode( $exported_data );
409
+ $export_array = json_decode( $exported_b64_decoded, true );
410
+
411
+ // validate export data
412
+ if ( ! is_array( $export_array ) ){
413
+ echo __( 'Import data is not valid.', MSWP_TEXT_DOMAIN ) . "<br />";
414
+ return false;
415
+ }
416
+
417
+
418
+ // set origin_upload_baseurl
419
+ if( isset( $export_array['origin_uploads_url'] ) && ! empty( $export_array['origin_uploads_url'] ) ) {
420
+
421
+ $this->origin_upload_baseurl = $export_array['origin_uploads_url'];
422
+
423
+ $this->origin_upload_baseurl = str_replace( '{{masterslider}}' , MSWP_AVERTA_URL, $this->origin_upload_baseurl );
424
+ $this->origin_upload_baseurl = str_replace( '{{theme_dir}}' , get_template_directory_uri() , $this->origin_upload_baseurl );
425
+ $this->origin_upload_baseurl = str_replace( '{{child_theme_dir}}', get_stylesheet_directory_uri() , $this->origin_upload_baseurl );
426
+
427
+ // if you need to change "origin_upload_baseurl" while importing content, just define MSWP_IMPORT_FETCH_DIR const
428
+ } elseif( defined( 'MSWP_IMPORT_FETCH_DIR' ) ){
429
+ $this->origin_upload_baseurl = MSWP_IMPORT_FETCH_DIR;
430
+
431
+ } else {
432
+ $this->origin_upload_baseurl = MSWP_AVERTA_URL . '/samples';
433
+ }
434
+
435
+
436
+
437
+ // import preset styles if it's included in export data
438
+ if( isset( $export_array['preset_styles'] ) && ! empty( $export_array['preset_styles'] ) ) {
439
+ msp_update_option( 'preset_style' , $export_array['preset_styles'] );
440
+ echo __( 'Preset styles imported successfully.', MSWP_TEXT_DOMAIN ) . "<br />";
441
+ }
442
+
443
+ // import preset effects if it's included in export data
444
+ if( isset( $export_array['preset_effects'] ) && ! empty( $export_array['preset_effects'] ) ) {
445
+ msp_update_option( 'preset_effect' , $export_array['preset_effects'] );
446
+ echo __( 'Preset transitions imported successfully.', MSWP_TEXT_DOMAIN ) . "<br />";
447
+ }
448
+
449
+ echo __( 'Importing slides ..', MSWP_TEXT_DOMAIN ) . "<br /><br />";
450
+
451
+ // import sliders
452
+ if( isset( $export_array['sliders_data'] ) ) {
453
+ // reset image import queue
454
+ $this->image_import_queue = array();
455
+ $this->last_new_slider_id = null;
456
+ $this->import_add_sliders( $export_array['sliders_data'] );
457
+ }
458
+
459
+ echo "<br />" . __( 'All data imported successfully, have fun :)' ) . "<br />";
460
+
461
+ printf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=' . MSWP_SLUG ), __( 'Back to panel ..', MSWP_TEXT_DOMAIN ) );
462
+
463
+ return true;
464
+ }
465
+
466
+
467
+ /**
468
+ * Import slider(s) by exported data
469
+ *
470
+ * @param string $sliders_data the exported string
471
+ * @return bool true on success and false on failure
472
+ */
473
+ function import_add_sliders( $sliders_data ){
474
+
475
+ if( empty( $sliders_data ) )
476
+ return false;
477
+
478
+ if ( ! is_array( $sliders_data ) ){
479
+ return false;
480
+ }
481
+
482
+ foreach ( $sliders_data as $slider_fields ) {
483
+
484
+ global $mspdb;
485
+
486
+ // do not publish slider if user has not enough permission to publish sliders
487
+ $slider_fields['status'] = current_user_can( 'publish_masterslider' ) ? 'published' : 'draft';
488
+
489
+ // import slider
490
+ $new_slider_id = $mspdb->import_slider( $slider_fields );
491
+ $this->last_new_slider_id = $new_slider_id;
492
+ msp_update_slider_custom_css_and_fonts( $new_slider_id );
493
+
494
+ echo sprintf( 'Slider "%s" created successfully.', $new_slider_id ) . "<br />";
495
+
496
+ // extact and collect images from each slider
497
+ if( $this->import_medias && isset( $slider_fields['params'] ) )
498
+ $this->extract_slider_images( $slider_fields['params'] );
499
+ }
500
+
501
+ if( $this->import_medias )
502
+ $this->fetch_all_medias();
503
+
504
+ return true;
505
+ }
506
+
507
+
508
+
509
+ /**
510
+ * Extract images from slider data and add them to image_import_queue list
511
+ * @param string $slider_params the slider params
512
+ * @return void
513
+ */
514
+ public function extract_slider_images( $slider_params ) {
515
+
516
+ $parser = msp_get_parser();
517
+ $parser->set_data( $slider_params );
518
+ $results = $parser->get_results();
519
+
520
+ // collect slider background image
521
+ $this->image_import_queue[] = $results['setting']['bg_image'];
522
+
523
+ if( isset( $results['setting']['ps_slide_bg'] ) )
524
+ $this->image_import_queue[] = $results['setting']['ps_slide_bg'];
525
+
526
+ // collect slide's images
527
+ if( isset( $results['slides'] ) ) {
528
+
529
+ foreach ( $results['slides'] as $slide ) {
530
+ $this->image_import_queue[] = $slide['src'];
531
+ $this->image_import_queue[] = $slide['thumb'];
532
+ }
533
+ }
534
+
535
+ $this->image_import_queue = apply_filters( 'masterslider_extract_slider_images_to_import', $this->image_import_queue, $results );
536
+ }
537
+
538
+
539
+
540
+ /**
541
+ * Download and save slider images in upload directory
542
+ * @return void
543
+ */
544
+ public function fetch_all_medias(){
545
+
546
+ echo "<br />";
547
+ $this->image_import_queue = array_filter( $this->image_import_queue );
548
+
549
+ foreach ( $this->image_import_queue as $url ) {
550
+ $this->download_media( $url );
551
+ }
552
+ }
553
+
554
+
555
+ public function download_media( $url ){
556
+
557
+ if( ! isset( $url ) || empty( $url ) ) return '';
558
+
559
+ // remove upload directory and get relative url
560
+ if( $this->contains_origin_upload_dir( $url ) ) {
561
+ $url = str_replace( $this->origin_upload_baseurl, '', $url );
562
+ }
563
+
564
+ // skip if url was not internal media url
565
+ if( $this->is_absolute_url( $url ) ) {
566
+ echo "Media already exists.<br />";
567
+ return '';
568
+ }
569
+
570
+
571
+ $relative_url = $url;
572
+
573
+ // extract the file name and extension from the url
574
+ $file_name = basename( $relative_url );
575
+
576
+ // extract upload date
577
+ $upload_date = untrailingslashit( str_replace( $file_name, '', $relative_url ) );
578
+
579
+ // get absolute media url
580
+ $absolute_url = $this->get_absolute_media_url( $relative_url );
581
+
582
+ // printf( "Importing ( %s ) file from ( %s ) .. <br />", $relative_url, $absolute_url );
583
+
584
+ // check if import media already exist
585
+ if( is_file( $this->upload_basedir . $relative_url ) ) {
586
+ echo sprintf( 'Media “%s” already exists.', $file_name ) . "<br />";
587
+ return;
588
+ }
589
+
590
+ printf( "Importing ( %s ) file .. <br />", $relative_url );
591
+
592
+ // printf( "upload date ( %s ) .. <br />", $upload_date ); printf( "absolute url ( %s ) .. <br /><br />", $absolute_url ); return;
593
+
594
+ $upload = $this->fetch_remote_file( $absolute_url, $upload_date );
595
+
596
+
597
+ if( is_wp_error( $upload ) || $upload['error'] ) {
598
+ echo "Failed to import media." . "<br />";
599
+ return $upload;
600
+ }
601
+
602
+
603
+ // Prepare an array of post data for the attachment.
604
+ $attachment = array(
605
+ 'guid' => '',
606
+ 'post_mime_type' => '',
607
+ 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $upload['file'] ) ),
608
+ 'post_content' => '',
609
+ 'post_status' => 'inherit'
610
+ );
611
+
612
+ if ( $info = wp_check_filetype( $upload['file'] ) )
613
+ $attachment['post_mime_type'] = $info['type'];
614
+ else
615
+ return new WP_Error( 'attachment_processing_error', __('Invalid file type', 'wordpress-importer') );
616
+
617
+ $attachment['guid'] = $upload['url'];
618
+
619
+ // as per wp-admin/includes/upload.php
620
+ $attachment_id = wp_insert_attachment( $attachment, $upload['file'] );
621
+
622
+ // Make sure that this file is included, as wp_generate_attachment_metadata() depends on it.
623
+ require_once( ABSPATH . 'wp-admin/includes/image.php' );
624
+
625
+ wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $upload['file'] ) );
626
+
627
+
628
+
629
+ echo sprintf( '<a href="%s" target="_blank" >%s</a> Imported successfully.', $upload['url'], $file_name ) . "<br />";
630
+ }
631
+
632
+
633
+ /**
634
+ * Attempt to download a remote file attachment
635
+ *
636
+ * @param string $url URL of item to fetch
637
+ * @param array $post Attachment details
638
+ * @return array|WP_Error Local file location details on success, WP_Error otherwise
639
+ */
640
+ function fetch_remote_file( $url, $subdir = null ) {
641
+
642
+ add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );
643
+
644
+ // extract the file name and extension from the url
645
+ $file_name = basename( $url );
646
+
647
+ // get placeholder file in the upload dir with a unique, sanitized filename
648
+ $upload = $this->wp_upload_bits( $file_name, '', $subdir );
649
+
650
+ // var_dump( $upload );
651
+ //echo "<br />" . $url . "<br />"; return new WP_Error( 'import_file_error', '' );
652
+
653
+ if ( $upload['error'] )
654
+ return new WP_Error( 'upload_dir_error', $upload['error'] );
655
+
656
+ // fetch the remote url and write it to the placeholder file
657
+ $headers = wp_get_http( $url, $upload['file'] );
658
+
659
+ // request failed
660
+ if ( ! $headers ) {
661
+ @unlink( $upload['file'] );
662
+ return new WP_Error( 'import_file_error', __('Remote server did not respond', 'wordpress-importer') );
663
+ }
664
+
665
+ // make sure the fetch was successful
666
+ if ( $headers['response'] != '200' ) {
667
+ @unlink( $upload['file'] );
668
+ return new WP_Error( 'import_file_error', sprintf( __('Remote server returned error response %1$d %2$s', 'wordpress-importer'), esc_html( $headers['response'] ), get_status_header_desc( $headers['response'] ) ) );
669
+ }
670
+
671
+ $filesize = filesize( $upload['file'] );
672
+
673
+ if ( isset( $headers['content-length'] ) && $filesize != $headers['content-length'] ) {
674
+ @unlink( $upload['file'] );
675
+ return new WP_Error( 'import_file_error', __('Remote file is incorrect size', 'wordpress-importer') );
676
+ }
677
+
678
+ if ( 0 == $filesize ) {
679
+ @unlink( $upload['file'] );
680
+ return new WP_Error( 'import_file_error', __('Zero size file downloaded', 'wordpress-importer') );
681
+ }
682
+
683
+ $max_size = (int) $this->max_attachment_size();
684
+ if ( ! empty( $max_size ) && $filesize > $max_size ) {
685
+ @unlink( $upload['file'] );
686
+ return new WP_Error( 'import_file_error', sprintf(__('Remote file is too large, limit is %s', 'wordpress-importer'), size_format( $max_size ) ) );
687
+ }
688
+
689
+ return $upload;
690
+ }
691
+
692
+
693
+
694
+
695
+
696
+ /**
697
+ * Create a file in the upload folder with given content.
698
+ *
699
+ * If there is an error, then the key 'error' will exist with the error message.
700
+ * If success, then the key 'file' will have the unique file path, the 'url' key
701
+ * will have the link to the new file. and the 'error' key will be set to false.
702
+ *
703
+ * This function will not move an uploaded file to the upload folder. It will
704
+ * create a new file with the content in $bits parameter. If you move the upload
705
+ * file, read the content of the uploaded file, and then you can give the
706
+ * filename and content to this function, which will add it to the upload
707
+ * folder.
708
+ *
709
+ * The permissions will be set on the new file automatically by this function.
710
+ *
711
+ * @param string $name
712
+ * @param mixed $bits File content
713
+ * @param string $subdir Optional. Time formatted in 'yyyy/mm'.
714
+ * @return array
715
+ */
716
+ function wp_upload_bits( $name, $bits, $subdir = '' ) {
717
+
718
+ if ( empty( $name ) )
719
+ return array( 'error' => __( 'Empty filename' ) );
720
+
721
+ $wp_filetype = wp_check_filetype( $name );
722
+
723
+ if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) )
724
+ return array( 'error' => __( 'Invalid file type' ) );
725
+
726
+ $upload = wp_upload_dir();
727
+
728
+ if ( $upload['error'] !== false )
729
+ return $upload;
730
+
731
+
732
+ $upload_path = $upload['basedir'] . $subdir;
733
+
734
+ $filename = wp_unique_filename( $upload_path, $name );
735
+
736
+ $new_file = $upload_path . "/$filename";
737
+
738
+ // echo "file path : {$new_file} <br />";
739
+
740
+
741
+ if ( ! wp_mkdir_p( dirname( $new_file ) ) ) {
742
+ if ( 0 === strpos( $upload['basedir'], ABSPATH ) )
743
+ $error_path = str_replace( ABSPATH, '', $upload['basedir'] ) . $upload['subdir'];
744
+ else
745
+ $error_path = basename( $upload['basedir'] ) . $upload['subdir'];
746
+
747
+ $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), $error_path );
748
+ return array( 'error' => $message );
749
+ }
750
+
751
+ $ifp = @ fopen( $new_file, 'wb' );
752
+ if ( ! $ifp )
753
+ return array( 'error' => sprintf( __( 'Could not write file %s' ), $new_file ) );
754
+
755
+ @fwrite( $ifp, $bits );
756
+ fclose( $ifp );
757
+ clearstatcache();
758
+
759
+ // Set correct file permissions
760
+ $stat = @ stat( dirname( $new_file ) );
761
+ $perms = $stat['mode'] & 0007777;
762
+ $perms = $perms & 0000666;
763
+ @ chmod( $new_file, $perms );
764
+ clearstatcache();
765
+
766
+ // Compute the URL
767
+ $url = $upload['baseurl'] . "$subdir/$filename";
768
+
769
+ return array( 'file' => $new_file, 'url' => $url, 'error' => false );
770
+ }
771
+
772
+
773
+ /**
774
+ * Added to http_request_timeout filter to force timeout at 60 seconds during import
775
+ * @return int 60
776
+ */
777
+ function bump_request_timeout() {
778
+ return 60;
779
+ }
780
+
781
+
782
+
783
+ }
784
+
785
+
786
+ new MSP_Importer();
admin/includes/classes/class-msp-list-table.php ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //
2
+
3
+ class MSP_List_Table extends Axiom_List_Table {
4
+
5
+
6
+ function __construct(){
7
+
8
+ //Set parent defaults
9
+ parent::__construct( array(
10
+ 'singular' => 'slider', // singular name of the listed records
11
+ 'plural' => 'sliders', // plural name of the listed records
12
+ 'ajax' => false // does this table support ajax?
13
+ ) );
14
+
15
+ }
16
+
17
+
18
+ function get_columns(){
19
+ $columns = array(
20
+ 'ID' => 'ID',
21
+ 'title' => 'Name',
22
+ 'shortcode' => 'Shortcode',
23
+ 'slides_num' => 'Slides',
24
+ 'date_modified' => 'Last Modify',
25
+ 'date_created' => 'Date Created',
26
+ 'action' => 'Action'
27
+ );
28
+ return $columns;
29
+ }
30
+
31
+
32
+
33
+ function get_sortable_columns() {
34
+ $sortable_columns = array(
35
+ 'ID' => array('ID',false),
36
+ 'date_created' => array('date_created',false),
37
+ 'date_modified' => array('date_created',false)
38
+ );
39
+ return $sortable_columns;
40
+ }
41
+
42
+
43
+
44
+ function column_title($item) {
45
+ return sprintf('<a href="?page=%s&action=%s&slider_id=%s">%s</a>',$_REQUEST['page'],'edit', $item['ID'], $item['title'] );
46
+ }
47
+
48
+ function column_action( $item ) {
49
+ $paged = $this->get_pagenum();
50
+ $paged_arg = (int)$paged > 1 ? '&paged=' . $paged : '';
51
+
52
+ $buttons = '';
53
+
54
+ if( current_user_can( 'duplicate_masterslider' ) || apply_filters( 'masterslider_admin_display_duplicate_btn', 0 ) )
55
+ $buttons .= sprintf( '<a class="action-duplicate msp-ac-btn msp-btn-gray msp-iconic" href="?page=%s&action=%s&slider_id=%s%s"><span></span>%s</a>',$_REQUEST['page'],'duplicate' ,$item['ID'], $paged_arg, __('duplicate') );
56
+
57
+ if( current_user_can( 'delete_masterslider' ) || apply_filters( 'masterslider_admin_display_delete_btn', 0 ) ) {
58
+ $buttons .= sprintf( '<a class="action-delete msp-ac-btn msp-btn-red msp-iconic" href="?page=%s&action=%s&slider_id=%s%s" onClick="return confirm(\'%s\');" ><span></span>%s</a>', $_REQUEST['page'],'delete' ,$item['ID'],
59
+ $paged_arg, wp_slash( apply_filters( 'masterslider_admin_delete_btn_alert_message', __( 'Are you sure you want to delete this slider?' , MSWP_TEXT_DOMAIN ) ) ),
60
+ __('delete')
61
+ );
62
+ }
63
+
64
+ $buttons .= sprintf( '<a class="action-preview msp-ac-btn msp-btn-blue msp-iconic" href="?page=%s&action=%s&slider_id=%s" onClick="lunchMastersliderPreviewBySliderID(%s);return false;" ><span></span>%s</a>',$_REQUEST['page'],'preview' ,$item['ID'], $item['ID'], __('preview') );
65
+
66
+ return $buttons;
67
+ }
68
+
69
+
70
+
71
+ function process_bulk_action() {
72
+
73
+ $slider_id = isset( $_REQUEST['slider_id'] ) ? $_REQUEST['slider_id'] : '';
74
+
75
+ // check if a delete request recieved
76
+ if( current_user_can( 'delete_masterslider' ) && 'delete' === $this->current_action() ) {
77
+
78
+ global $mspdb;
79
+ $mspdb->delete_slider($slider_id);
80
+ // echo "Slider id ($slider_id) Removed";
81
+
82
+ } else {
83
+ add_action( 'admin_notices', array( $this, 'delete_error_notice' ) );
84
+ }
85
+
86
+ // check if a duplicate request recieved
87
+ if( current_user_can( 'duplicate_masterslider' ) && 'duplicate' === $this->current_action() ) {
88
+
89
+ global $mspdb;
90
+ $mspdb->duplicate_slider($slider_id);
91
+ // echo "Slider id ($slider_id) duplicated";
92
+
93
+ } else {
94
+ add_action( 'admin_notices', array( $this, 'duplicate_error_notice' ) );
95
+ }
96
+
97
+ }
98
+
99
+
100
+ function delete_error_notice () {
101
+ printf( '<div class="error" style="display:block;" ><p>%s</p></div>',
102
+ apply_filters( 'masterslider_delete_insufficient_permissions_notice', __( "Sorry, You don't have enough permission to delete slider.", MSWP_TEXT_DOMAIN ) )
103
+ );
104
+ }
105
+
106
+
107
+ function duplicate_error_notice () {
108
+ printf( '<div class="error" style="display:block;" ><p>%s</p></div>',
109
+ apply_filters( 'masterslider_duplicate_insufficient_permissions_notice', __( "Sorry, You don't have enough permission to duplicate slider.", MSWP_TEXT_DOMAIN ) )
110
+ );
111
+ }
112
+
113
+
114
+ function no_items() {
115
+ _e( 'No slider found.', MSWP_TEXT_DOMAIN );
116
+ }
117
+
118
+
119
+ function column_default( $item, $column_name ) {
120
+ global $mspdb;
121
+
122
+ switch( $column_name ) {
123
+ case 'shortcode':
124
+ return sprintf('[masterslider id="%s"]', $item['ID']);
125
+ case 'date_modified':
126
+
127
+ $orig_time = isset( $item['date_modified'] ) ? strtotime($item['date_modified']) : '';
128
+ $time = date_i18n( 'Y/m/d @ g:i:s A', $orig_time );
129
+ $human = human_time_diff( $orig_time );
130
+ return sprintf( '<abbr title="%s">%s</abbr>', $time, $human . __(' ago', MSWP_TEXT_DOMAIN) ) ;
131
+ case 'date_created':
132
+ $orig_time = isset( $item['date_created'] ) ? strtotime($item['date_created']) : '';
133
+ $date = date_i18n( 'Y/m/d', $orig_time );
134
+ $time = date_i18n( 'Y/m/d @ g:i:s A', $orig_time );
135
+ return sprintf( '<abbr title="%s">%s</abbr>', $time, $date );
136
+ case 'slides_num':
137
+ global $mspdb;
138
+ return $mspdb->get_slider_field_val( $item['ID'], 'slides_num' );
139
+ case 'ID':
140
+ case 'title':
141
+ return $item[ $column_name ];
142
+ default:
143
+ return;
144
+ //return print_r( $item, true ) ; //Show the whole array for troubleshooting purposes
145
+ }
146
+ }
147
+
148
+
149
+ function get_records( $perpage = 20, $paged = 1, $orderby = 'ID', $sort = 'DESC' ){
150
+ global $mspdb;
151
+
152
+ $offset = ( (int)$paged - 1 ) * $perpage;
153
+ $orderby = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] : 'ID';
154
+ $sort = isset( $_REQUEST['order'] ) ? $_REQUEST['order'] : 'ASC';
155
+
156
+ return $mspdb->get_sliders( $perpage, $offset, $orderby, $sort );
157
+ }
158
+
159
+
160
+ function get_total_count(){
161
+ global $mspdb;
162
+ return $mspdb->get_total_sliders_count();
163
+ }
164
+
165
+
166
+
167
+ function prepare_items() {
168
+
169
+ $columns = $this->get_columns();
170
+ $hidden = array();
171
+ $sortable = $this->get_sortable_columns();
172
+
173
+ $this->_column_headers = array( $columns, $hidden, $sortable );
174
+
175
+ $this->process_bulk_action();
176
+
177
+ $perpage = (int) apply_filters( 'masterslider_admin_sliders_per_page', 10 );
178
+ $current_page = $this->get_pagenum();
179
+ $orderby = 'ID';
180
+ $sort = 'DESC';
181
+ $total_items = $this->get_total_count();
182
+
183
+
184
+ $this->items = $this->get_records( $perpage, $current_page, $orderby, $sort );
185
+ // echo '<pre>'; print_r( $this->items ); echo '</pre>';
186
+
187
+ // tell the class the total number of items and how many items to show on a page
188
+ $this->set_pagination_args( array(
189
+ 'total_items' => $total_items,
190
+ 'per_page' => $perpage
191
+ ));
192
+ }
193
+
194
+ }
195
+
196
+
197
+ // global $master_list_table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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Master Slider Data Parser Class.
5
+ *
6
+ * @package MasterSlider
7
+ * @author averta [averta.net]
8
+ * @license LICENSE.txt
9
+ * @link http://masterslider.com
10
+ * @copyright Copyright © 2014 averta
11
+ */
12
+
13
+
14
+ class MSP_Parser {
15
+
16
+
17
+ public $maybe_encoded_data;
18
+
19
+ // ready to parse data
20
+ public $parsable_data ;
21
+
22
+ // recent parsed slider setting
23
+ public $recent_setting;
24
+
25
+ // recent parsed slides
26
+ public $recent_slides ;
27
+
28
+ // recent parsed styles
29
+ public $recent_styles ;
30
+
31
+
32
+ public $current_slider_id;
33
+
34
+ public $join_char = "\n";
35
+ public $tab_char = "\t";
36
+
37
+
38
+
39
+ public function __construct() {
40
+
41
+
42
+ if ( apply_filters( 'masterslider_compress_custom_css' , 1 ) ) {
43
+ $this->join_char = "";
44
+ $this->tab_char = "";
45
+ }
46
+ }
47
+
48
+ public function get_setting() {
49
+
50
+ }
51
+
52
+ public function is_key_true( $array, $key, $default = 'true' ) {
53
+ if( isset( $array[ $key ] ) ) {
54
+ return $array[ $key ] ? 'true' : 'false';
55
+ } else {
56
+ return $default;
57
+ }
58
+ }
59
+
60
+ public function parse_setting( $setting = array() ) {
61
+
62
+ // make sure $setting is not serialized
63
+ $setting = maybe_unserialize( $setting );
64
+
65
+ $setid = isset( $setting['setId'] ) ? (string) $setting['setId'] : '';
66
+
67
+ $post_cats = isset( $setting['postCats'] ) ? (array) $setting['postCats'] : array();
68
+ $post_tags = isset( $setting['postTags'] ) ? (array) $setting['postTags'] : array();
69
+ $tax_term_ids = implode( ',', array_merge( $post_cats, $post_tags ) );
70
+
71
+ // slider options
72
+ return array(
73
+
74
+ 'id' => is_numeric( $this->current_slider_id ) ? $this->current_slider_id : ( isset( $setting['sliderId'] ) ? (string) $setting['sliderId'] : '' ),
75
+ 'uid' => '', // an unique and temporary id
76
+ 'class' => isset( $setting['className'] ) ? (string) $setting['className'] : '', // a class that adds to slider wrapper
77
+ 'margin' => 0,
78
+
79
+ 'inline_style' => isset( $setting['inlineStyle'] ) ? esc_attr( $setting['inlineStyle'] ) : '',
80
+ 'bg_color' => isset( $setting['bgColor'] ) ? (string) $setting['bgColor'] : '',
81
+ 'bg_image' => isset( $setting['bgImage'] ) ? msp_get_the_relative_media_url( $setting['bgImage'] ) : '',
82
+
83
+ 'title' => isset( $setting['name'] ) ? (string) $setting['name'] : __( 'Untitled Slider', MSWP_TEXT_DOMAIN ), // slider name
84
+
85
+ 'slider_type' => isset( $setting['type'] ) ? (string) $setting['type'] : 'custom', // values: custom, express, flickr, post_view
86
+
87
+
88
+ 'width' => isset( $setting['width'] ) ? (int) rtrim($setting['width'] , 'px' ) : 300, // base width of slides. It helps the slider to resize in correct ratio.
89
+ 'height' => isset( $setting['height'] ) ? (int) rtrim($setting['height'], 'px' ) : 150, // base height of slides, It helps the slider to resize in correct ratio.
90
+
91
+ 'start' => isset( $setting['start'] ) ? (int) $setting['start'] : 1,
92
+ 'space' => isset( $setting['space'] ) ? (int) $setting['space'] : 0,
93
+
94
+ 'grab_cursor' => $this->is_key_true( $setting, 'grabCursor', 'true' ), // Whether the slider uses grab mouse cursor
95
+ 'swipe' => $this->is_key_true( $setting, 'swipe', 'true' ), // Whether the drag/swipe navigation is enabled
96
+
97
+ 'wheel' => $this->is_key_true( $setting, 'wheel', 'true' ), // Enables mouse scroll wheel navigation
98
+ 'mouse' => $this->is_key_true( $setting, 'mouse', 'true' ), // Whether the user can use mouse drag navigation
99
+
100
+ 'crop' => $this->is_key_true( $setting, 'autoCrop', 'false' ), // Automatically crop slide images?
101
+
102
+ 'autoplay' => $this->is_key_true( $setting, 'autoplay', 'false' ), // Enables the autoplay slideshow
103
+ 'loop' => $this->is_key_true( $setting, 'loop', 'false' ), //
104
+ 'shuffle' => $this->is_key_true( $setting, 'shuffle', 'false' ), // Enables the shuffle slide order
105
+ 'preload' => isset( $setting['preload'] ) ? $setting['preload'] : 0,
106
+
107
+ 'wrapper_width' => isset( $setting['wrapperWidth'] ) ? (int) $setting['wrapperWidth'] : '',
108
+ 'wrapper_width_unit' => isset( $setting['wrapperWidthUnit'] ) ? $setting['wrapperWidthUnit'] : 'px',
109
+
110
+ 'layout' => isset( $setting['layout'] ) ? (string) $setting['layout'] : 'boxed',
111
+
112
+ 'fullscreen_margin' => isset( $setting['fullscreenMargin'] ) ? (int) $setting['fullscreenMargin'] : 0,
113
+
114
+
115
+ 'height_limit' => 'true', // It force the slide to use max height value as its base specified height value.
116
+ 'auto_height' => $this->is_key_true( $setting, 'autoHeight', 'false' ),
117
+ 'smooth_height' => 'true',
118
+
119
+ 'end_pause' => $this->is_key_true( $setting, 'endPause' , 'false' ),
120
+ 'over_pause' => $this->is_key_true( $setting, 'overPause', 'false' ),
121
+
122
+ 'fill_mode' => apply_filters( 'masterslider_params_default_fill_mode', 'fill' ),
123
+ 'center_controls'=> $this->is_key_true( $setting, 'centerControls', 'true' ),
124
+
125
+ 'speed' => isset( $setting['speed'] ) ? (int) $setting['speed'] : 17,
126
+
127
+ 'skin' => isset( $setting['skin'] ) ? $setting['skin'] : 'ms-skin-default', // slider skin. should be seperated by space
128
+ 'template' => isset( $setting['msTemplate'] ) ? (string) $setting['msTemplate'] : 'custom',
129
+ 'template_class'=> isset( $setting['msTemplateClass'] ) ? (string) $setting['msTemplateClass'] : '',
130
+ 'direction' => isset( $setting['dir'] ) ? (string) $setting['dir'] : 'h',
131
+ 'view' => isset( $setting['trView'] ) ? (string) $setting['trView'] : 'basic',
132
+
133
+ 'gfonts' => isset( $setting['usedFonts'] ) ? (string) $setting['usedFonts'] : '',
134
+
135
+ 'parallax_mode' => isset( $setting['parallaxMode'] ) ? (string) $setting['parallaxMode'] : 'swipe',
136
+
137
+
138
+ 'flickr_key' => isset( $setting['apiKey'] ) ? (string) $setting['apiKey'] : '',
139
+ 'flickr_id' => $setid,
140
+ 'flickr_count' => isset( $setting['imgCount'] ) ? (int) $setting['imgCount'] : 10,
141
+ 'flickr_type' => isset( $setting['setType'] ) ? (string) $setting['setType'] : 'photos',
142
+ 'flickr_size' => isset( $setting['imgSize'] ) ? (string) $setting['imgSize'] : 'c',
143
+ 'flickr_thumb_size' => isset( $setting['thumbSize'] ) ? (string) $setting['thumbSize'] : 'q',
144
+
145
+
146
+ 'ps_post_type' => isset( $setting['postType'] ) ? (string) $setting['postType'] : '',
147
+ 'ps_tax_term_ids' => $tax_term_ids,
148
+ 'ps_post_count' => isset( $setting['postCount'] ) ? (int) $setting['postCount'] : 10,
149
+ 'ps_image_from' => isset( $setting['postImageType'] ) ? (string) $setting['postImageType'] : 'auto',
150
+ 'ps_order' => isset( $setting['postOrder'] ) ? (string) $setting['postOrder'] : 'DESC',
151
+ 'ps_orderby' => isset( $setting['postOrderDir'] ) ? (string) $setting['postOrderDir'] : 'menu_order date',
152
+ 'ps_posts_not_in' => isset( $setting['postExcludeIds'] ) ? (string) $setting['postExcludeIds'] : '',
153
+ 'ps_excerpt_len' => isset( $setting['postExcerptLen'] ) ? (int) $setting['postExcerptLen'] : 100,
154
+ 'ps_offset' => isset( $setting['postOffset'] ) ? (int) $setting['postOffset'] : 0,
155
+ 'ps_link_slide' => isset( $setting['postLinkSlide'] ) ? (boolean) $setting['postLinkSlide'] : false,
156
+ 'ps_link_target' => isset( $setting['postLinkTarget'] ) ? (string) $setting['postLinkTarget'] : '_self',
157
+ 'ps_slide_bg' => isset( $setting['postSlideBg'] ) ? msp_get_the_relative_media_url( $setting['postSlideBg'] ) : '',
158
+
159
+ 'wc_only_featured' => $this->is_key_true( $setting, 'wcOnlyFeatured', 'false' ),
160
+ 'wc_only_instock' => $this->is_key_true( $setting, 'wcOnlyInstock' , 'false' ),
161
+ 'wc_only_onsale' => $this->is_key_true( $setting, 'wcOnlyOnsale' , 'false' ),
162
+
163
+
164
+ 'facebook_username' => isset( $setting['setType'] ) && ( 'photostream' == $setting['setType'] ) ? $setid : '',
165
+ 'facebook_albumid' => isset( $setting['setType'] ) && ( 'album' == $setting['setType'] ) ? $setid : '',
166
+ 'facebook_count' => isset( $setting['imgCount'] ) ? (int) $setting['imgCount'] : 10,
167
+ 'facebook_type' => isset( $setting['setType'] ) ? (string) $setting['setType'] : 'album',
168
+ 'facebook_size' => isset( $setting['imgSize'] ) ? (string) $setting['imgSize'] : 'orginal',
169
+ 'facebook_thumb_size' => isset( $setting['thumbSize'] ) ? (string) $setting['thumbSize'] : '320',
170
+
171
+ 'arrows' => 'false', // display arrows?
172
+ 'arrows_autohide' => 'true', // auto hide arrows?
173
+ 'arrows_overvideo' => 'true', // visible over slide video while playing?
174
+ 'arrows_hideunder' => '',
175
+
176
+ 'bullets' => 'false', // display bullets?
177
+ 'bullets_autohide' => 'true', // auto hide bullets?
178
+ 'bullets_overvideo'=> 'true', // visible over slide video while playing?
179
+ 'bullets_align' => 'bottom',
180
+ 'bullets_margin' => '',
181
+ 'bullets_hideunder'=> '',
182
+
183
+ 'thumbs' => 'false', // display thumbnails?
184
+ 'thumbs_autohide' => 'true', // auto hide thumbs?
185
+ 'thumbs_overvideo' => 'true', // visible over slide video while playing?
186
+ 'thumbs_type' => 'thumbs', // thumb or tabs
187
+ 'thumbs_speed' => 17, // scrolling speed. It accepts float values between 0 and 100
188
+ 'thumbs_inset' => 'true', // insert thumbs inside slider
189
+ 'thumbs_align' => 'bottom',
190
+ 'thumbs_margin' => 0,
191
+ 'thumbs_width' => 100,
192
+ 'thumbs_height' => 80,
193
+ 'thumbs_space' => 5,
194
+ 'thumbs_hideunder' => '',
195
+
196
+ 'scroll' => 'false', // display scrollbar?
197
+ 'scroll_autohide' => 'true', // auto hide scroll?
198
+ 'scroll_overvideo' => 'true', // visible over slide video while playing?
199
+ 'scroll_align' => 'top',
200
+ 'scroll_inset' => 'true',
201
+ 'scroll_margin' => '',
202
+ 'scroll_hideunder' => '',
203
+ 'scroll_color' => '#3D3D3D',
204
+ 'scroll_width' => '',
205
+
206
+
207
+ 'circletimer' => 'false', // display circletimer?
208
+ 'circletimer_autohide' => 'true', // auto hide circletimer?
209
+ 'circletimer_overvideo'=> 'true', // visible over slide video while playing?
210
+ 'circletimer_color' => '#A2A2A2',// color of circle timer
211
+ 'circletimer_radius' => 4, // radius of circle timer in pixels
212
+ 'circletimer_stroke' => 10, // the stroke of circle timer in pixels
213
+ 'circletimer_margin' => '',
214
+ 'circletimer_hideunder'=> '',
215
+
216
+ 'timebar' => 'false', // display timebar?
217
+ 'timebar_autohide' => 'true', // auto hide timebar?
218
+ 'timebar_overvideo'=> 'true', // visible over slide video while playing?
219
+ 'timebar_align' => 'bottom',
220
+ 'timebar_hideunder'=> '',
221
+ 'timebar_color' => '#FFFFFF',
222
+ 'timebar_width' => '',
223
+
224
+
225
+ 'slideinfo' => 'false', // display timebar?
226
+ 'slideinfo_autohide' => 'true', // auto hide timebar?
227
+ 'slideinfo_overvideo'=> 'true', // visible over slide video while playing?
228
+ 'slideinfo_align' => 'bottom',
229
+ 'slideinfo_inset' => 'false',
230
+ 'slideinfo_margin' => '',
231
+ 'slideinfo_hideunder'=> '',
232
+ 'slideinfo_width' => '',
233
+ 'slideinfo_height' => '',
234
+
235
+ 'on_change_start' => '',
236
+ 'on_change_end' => '',
237
+ 'on_waiting' => '',
238
+ 'on_resize' => '',
239
+ 'on_video_play' => '',
240
+ 'on_video_close' => '',
241
+ 'on_swipe_start' => '',
242
+ 'on_swipe_move' => '',
243
+ 'on_swipe_end' => ''
244
+
245
+ );
246
+
247
+
248
+ }
249
+
250
+
251
+ public function parse_slide( $slide = array() ) {
252
+
253
+ // make sure $slide is not serialized
254
+ $slide = maybe_unserialize( $slide );
255
+
256
+ if( empty( $slide ) )
257
+ return $slide;
258
+
259
+ // get slider setting and controls
260
+ $slider_setting = $this->get_slider_setting();
261
+
262
+ // get slide onfo if is set (usage: for tab content if is set)
263
+ $info = isset( $slide['info'] ) ? $slide['info'] : '';
264
+
265
+ if( isset( $slide['bg'] ) ) {
266
+ $slide_src = msp_get_the_absolute_media_url( $slide['bg'] );
267
+
268
+ // generate thumb for master slider panel
269
+ msp_get_the_resized_image_src( $slide_src, 150, 150, true );
270
+ }
271
+
272
+ $thumb = '';
273
+
274
+ // add thumb just if thumblist is added to controls list
275
+ // also always add thumbnail if slider template is gallery
276
+ if( ( 'true' == $slider_setting['thumbs'] && 'thumbs' == $slider_setting['thumbs_type'] ) ||
277
+ 'image-gallery' == $slider_setting['template']
278
+ ){
279
+
280
+ if( isset( $slide['thumb'] ) && ! empty( $slide['thumb'] ) ) {
281
+ $thumb = $slide['thumb'];
282
+ $thumb = msp_get_the_relative_media_url( $thumb );
283
+
284
+ } elseif( isset( $slide['bg'] ) ) {
285
+
286
+ // set custom thumb size if slider template is gallery
287
+ if( 'image-gallery' == $slider_setting['template'] )
288
+ $thumb = msp_get_the_resized_image_src( $slide_src, 175, 140, true );
289
+ else
290
+ $thumb = msp_get_the_resized_image_src( $slide_src, $slider_setting['thumbs_width'], $slider_setting['thumbs_height'], true );
291
+
292
+ $thumb = msp_get_the_relative_media_url( $thumb );
293
+
294
+ } else {
295
+ $thumb = '';
296
+ }
297
+
298
+ }
299
+
300
+
301
+ $slides = array(
302
+
303
+ 'slide_order'=> isset( $slide['order'] ) ? (int) $slide['order'] : 0,
304
+
305
+ 'css_class' => isset( $slide['cssClass'] ) ? (string) $slide['cssClass'] : '',
306
+ 'css_id' => isset( $slide['cssId'] ) ? (string) $slide['cssId'] : '',
307
+
308
+ 'ishide' => $this->is_key_true( $slide, 'ishide', 'false' ),
309
+
310
+ 'src' => isset( $slide['bg'] ) ? esc_attr( msp_get_the_relative_media_url( $slide['bg'] ) ) : '',
311
+ 'src_full' => isset( $slide['bg'] ) ? esc_attr( msp_get_the_relative_media_url( $slide['bg'] ) ) : '',
312
+
313
+ 'title' => '', // image title
314
+ 'alt' => isset( $slide['bgAlt'] ) ? esc_attr($slide['bgAlt']) : '', // image alternative text
315
+ 'link' => isset( $slide['link'] ) ? esc_url( $slide['link'] ) : '',
316
+ 'target' => isset( $slide['linkTarget'] ) ? (string) $slide['linkTarget'] : '',
317
+ 'video' => isset( $slide['video'] ) ? esc_attr( $slide['video'] ) : '', // youtube or vimeo video link
318
+
319
+ 'info' => wp_slash( $info ), // image alternative text
320
+
321
+ 'mp4' => isset( $slide['bgv_mp4'] ) ? esc_attr( $slide['bgv_mp4'] ) : '', // self host video bg
322
+ 'webm' => isset( $slide['bgv_webm'] ) ? esc_attr( $slide['bgv_webm'] ) : '', // self host video bg
323
+ 'ogg' => isset( $slide['bgv_ogg'] ) ? esc_attr( $slide['bgv_ogg'] ) : '', // self host video bg
324
+ 'autopause' => $this->is_key_true( $slide, 'bgv_autopause', 'false' ),
325
+ 'mute' => $this->is_key_true( $slide, 'bgv_mute', 'true' ),
326
+ 'loop' => $this->is_key_true( $slide, 'bgv_loop', 'true' ),
327
+ 'vbgalign' => isset( $slide['bgv_fillmode'] ) ? (string) $slide['bgv_fillmode'] : 'fill',
328
+
329
+ 'thumb' => $thumb,
330
+ 'tab' => 'true' == $slider_setting['thumbs'] && 'tabs' == $slider_setting['thumbs_type'] ? str_replace( '"', '&quote;', $info ) : '',
331
+ 'delay' => isset( $slide['duration'] ) ? (string) $slide['duration'] : '', // data-delay
332
+ 'bgalign' => isset( $slide['fillMode'] ) ? (string) $slide['fillMode'] : 'fill', // data-fill-mode
333
+ 'bgcolor' => isset( $slide['bgColor'] ) ? (string) $slide['bgColor'] : ''
334
+ );
335
+
336
+ return $slides;
337
+ }
338
+
339
+
340
+ public function parse_each_style( $style_obj, $allowed_style_type = array( 'custom' ) ) {
341
+
342
+ // make sure $style_obj is not serialized
343
+ $style_obj = maybe_unserialize( $style_obj );
344
+
345
+ if( empty( $style_obj ) )
346
+ return $style_obj;
347
+
348
+ $allowed_style_type = (array) $allowed_style_type;
349
+
350
+ if( ! isset( $style_obj['type'] ) || ( ! in_array( $style_obj['type'], $allowed_style_type ) ) )
351
+ return '';
352
+
353
+ // the css block selector
354
+ $class_name = isset( $style_obj['className'] ) ? ".". $style_obj['className'] : '';
355
+ // store css styles
356
+ $css = '';
357
+
358
+ $supported_css_props = array(
359
+
360
+ 'backgroundColor' => array('background-color' , '' ),
361
+
362
+ 'paddingTop' => array('padding-top' , 'px'),
363
+ 'paddingRight' => array('padding-right' , 'px'),
364
+ 'paddingBottom' => array('padding-bottom' , 'px'),
365
+ 'paddingLeft' => array('padding-left' , 'px'),
366
+
367
+ 'borderTop' => array('border-top' , 'px'),
368
+ 'borderRight' => array('border-right' , 'px'),
369
+ 'borderBottom' => array('border-bottom' , 'px'),
370
+ 'borderLeft' => array('border-left' , 'px'),
371
+
372
+ 'borderColor' => array('border-color' , '' ),
373
+ 'borderRadius' => array('border-radius' , 'px'),
374
+ 'borderStyle' => array('border-style' , '' ),
375
+
376
+ 'fontFamily' => array('font-family' , '' ),
377
+ 'fontWeight' => array('font-weight' , '' ),
378
+ 'fontSize' => array('font-size' , 'px'),
379
+
380
+ 'textAlign' => array('text-align' , '' ),
381
+ 'letterSpacing' => array('letter-spacing' , 'px'),
382
+ 'lineHeight' => array('line-height' , 'px'),
383
+ 'whiteSpace' => array('white-space' , '' ),
384
+ 'color' => array('color' , '' )
385
+ );
386
+
387
+ foreach ( $supported_css_props as $js_prop => $parse_option ) {
388
+
389
+ if( isset( $style_obj[$js_prop] ) && ! empty( $style_obj[$js_prop] ) ) {
390
+ // if prop is font-family add quote around font name
391
+ if ( 'fontFamily' == $js_prop )
392
+ $css .= sprintf( "%s%s:\"%s\";", $this->tab_char, $parse_option['0'], rtrim( $style_obj[$js_prop] ) ) . $this->join_char;
393
+
394
+ elseif ( 'lineHeight' == $js_prop && 'normal' == $style_obj[$js_prop] )
395
+ $css .= sprintf( "%s%s:%s;", $this->tab_char, $parse_option['0'], rtrim( $style_obj[$js_prop] ) ) . $this->join_char;
396
+
397
+ else
398
+ $css .= sprintf( "%s%s:%s%s;" , $this->tab_char, $parse_option['0'], rtrim( $style_obj[$js_prop], $parse_option['1'] ), $parse_option['1'] ) . $this->join_char;
399
+
400
+ }
401
+ }
402
+
403
+ // add custom styles at the end
404
+ $css .= isset( $style_obj['custom'] ) ? $this->tab_char . $style_obj['custom'] .$this->join_char : '';
405
+ // create css block
406
+ $css_block = $this->join_char.$class_name." { ".$this->join_char.$css." } \n";
407
+ //$css_block = sprintf( "\n%s {\n%s\n} \n", $class_name, $css );
408
+
409
+ return apply_filters( 'msp_parse_each_style', $css_block, $class_name, $css, $supported_css_props );
410
+ }
411
+
412
+
413
+
414
+
415
+
416
+
417
+ // set/store panel raw and parsed data for further use
418
+ public function set_data( $data, $slider_id = null ) {
419
+ $this->reset();
420
+
421
+ $this->maybe_encoded_data = $data;
422
+ $this->current_slider_id = $slider_id;
423
+
424
+ $decoded = msp_maybe_base64_decode( $data );
425
+ $this->parsable_data = json_decode($decoded);
426
+ }
427
+
428
+
429
+ // reset cache data
430
+ public function reset() {
431
+ $this->recent_setting = null;
432
+ $this->recent_slides = null;
433
+ $this->recent_styles = null;
434
+ $this->maybe_encoded_data = null;
435
+ }
436
+
437
+
438
+
439
+ // get decoded and parsable panel data
440
+ public function get_parsable_data() {
441
+ return $this->parsable_data;
442
+ }
443
+
444
+
445
+
446
+
447
+
448
+
449
+ public function get_raw_callbacks(){
450
+ if ( isset( $this->parsable_data->{'MSPanel.Callback'} ) )
451
+ return $this->parsable_data->{'MSPanel.Callback'};
452
+ return array();
453
+ }
454
+
455
+
456
+ public function get_callbacks_params(){
457
+ $callbacks_list = $this->get_raw_callbacks();
458
+
459
+ $callbacks_params = array();
460
+
461
+ foreach ($callbacks_list as $id => $callback_json) {
462
+ $raw_json_decoded_callback = json_decode( $callback_json, true );
463
+ $callback_params = $this->get_callback_params( $raw_json_decoded_callback );
464
+ $callbacks_params = wp_parse_args( $callback_params, $callbacks_params );
465
+ }
466
+
467
+ return $callbacks_params;
468
+ }
469
+
470
+
471
+ public function get_callback_params( $callback ) {
472
+
473
+ $name = isset( $callback['name'] ) ? (string) $callback['name'] : '';
474
+
475
+ switch ( $name ) {
476
+ case 'CHANGE_START':
477
+ return array( 'on_change_start' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
478
+ case 'CHANGE_END':
479
+ return array( 'on_change_end' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
480
+ case 'WAITING':
481
+ return array( 'on_waiting' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
482
+ case 'RESIZE':
483
+ return array( 'on_resize' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
484
+ case 'VIDEO_PLAY':
485
+ return array( 'on_video_play' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
486
+ case 'VIDEO_CLOSE':
487
+ return array( 'on_video_close' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
488
+ case 'SWIPE_START':
489
+ return array( 'on_swipe_start' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
490
+ case 'SWIPE_MOVE':
491
+ return array( 'on_swipe_move' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
492
+ case 'SWIPE_END':
493
+ return array( 'on_swipe_end' => isset( $callback['content'] ) ? base64_encode( $callback['content'] ) : '' );
494
+ default:
495
+ return array();
496
+ }
497
+
498
+ }
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+ public function get_raw_controls(){
508
+ if ( isset( $this->parsable_data->{'MSPanel.Control'} ) )
509
+ return $this->parsable_data->{'MSPanel.Control'};
510
+ return array();
511
+ }
512
+
513
+
514
+ public function get_controls_params(){
515
+ $controls_list = $this->get_raw_controls();
516
+
517
+ $controls_params = array();
518
+
519
+ foreach ($controls_list as $id => $control_json) {
520
+ $raw_json_decoded_control = json_decode( $control_json, true );
521
+ $control_params = $this->get_control_params( $raw_json_decoded_control );
522
+ $controls_params = wp_parse_args( $control_params, $controls_params );
523
+ }
524
+
525
+ return $controls_params;
526
+ }
527
+
528
+
529
+ public function get_control_params( $control ) {
530
+
531
+ $name = isset( $control['name'] ) ? (string) $control['name'] : '';
532
+
533
+ switch ( $name ) {
534
+ case 'thumblist':
535
+ return array(
536
+ 'thumbs' => 'true',
537
+ 'thumbs_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
538
+ 'thumbs_overvideo' => $this->is_key_true( $control, 'overVideo', 'true' ),
539
+ 'thumbs_speed' => isset( $control['speed'] ) ? (int) $control['speed'] : 17,
540
+ 'thumbs_type' => isset( $control['type'] ) ? (string) $control['type'] : 'thumbs',
541
+ 'thumbs_inset' => $this->is_key_true( $control, 'inset', 'false' ),
542
+ 'thumbs_align' => isset( $control['align'] ) ? (string) $control['align'] : 'bottom',
543
+ 'thumbs_margin' => isset( $control['margin'] ) ? (int) $control['margin'] : '',
544
+ 'thumbs_width' => isset( $control['width'] ) ? (int) $control['width'] : 100,
545
+ 'thumbs_height' => isset( $control['height'] ) ? (int) $control['height'] : 80,
546
+ 'thumbs_space' => isset( $control['space'] ) ? (int) $control['space'] : 5,
547
+ 'thumbs_hideunder' => isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : '',
548
+ 'thumbs_fillmode' => isset( $control['fillMode'] ) ? (string) $control['fillMode'] : 'fill'
549
+ );
550
+ case 'bullets':
551
+ return array(
552
+ 'bullets' => 'true',
553
+ 'bullets_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
554
+ 'bullets_overvideo'=> $this->is_key_true( $control, 'overVideo', 'true' ),
555
+ 'bullets_align' => isset( $control['align'] ) ? (string) $control['align'] : 'bottom',
556
+ 'bullets_margin' => isset( $control['margin'] ) ? (int) $control['margin'] : '',
557
+ 'bullets_hideunder' => isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : ''
558
+ );
559
+ case 'scrollbar':
560
+ return array(
561
+ 'scroll' => 'true',
562
+ 'scroll_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
563
+ 'scroll_overvideo' => $this->is_key_true( $control, 'overVideo', 'true' ),
564
+ //'scroll_width' => isset( $control['width'] ) ? (int) $control['width'] : '',
565
+ 'scroll_align' => isset( $control['align'] ) ? (string) $control['align'] : 'top',
566
+ 'scroll_color' => isset( $control['color'] ) ? (string) $control['color'] : '#3D3D3D',
567
+ 'scroll_margin' => isset( $control['margin'] ) ? (int) $control['margin'] : '',
568
+ 'scroll_inset' => $this->is_key_true( $control, 'inset', 'true' ),
569
+ 'scroll_hideunder' => isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : '',
570
+ 'scroll_width' => isset( $control['width'] ) ? (int) $control['width'] : ''
571
+ );
572
+ case 'arrows':
573
+ return array(
574
+ 'arrows' => 'true',
575
+ 'arrows_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
576
+ 'arrows_overvideo' => $this->is_key_true( $control, 'overVideo', 'true' ),
577
+ 'arrows_hideunder' => isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : ''
578
+ );
579
+ case 'timebar':
580
+ return array(
581
+ 'timebar' => 'true',
582
+ 'timebar_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
583
+ 'timebar_overvideo'=> $this->is_key_true( $control, 'overVideo', 'true' ),
584
+ 'timebar_align' => isset( $control['align'] ) ? (string) $control['align'] : 'bottom',
585
+ 'timebar_color' => isset( $control['color'] ) ? (string) $control['color'] : '#FFFFFF',
586
+ 'timebar_hideunder'=> isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : '',
587
+ 'timebar_width' => isset( $control['width'] ) ? (int) $control['width'] : ''
588
+ );
589
+ case 'circletimer':
590
+ return array(
591
+ 'circletimer' => 'true',
592
+ 'circletimer_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
593
+ 'circletimer_overvideo'=> $this->is_key_true( $control, 'overVideo', 'true' ),
594
+ 'circletimer_color' => isset( $control['color'] ) ? (string) $control['color'] : '#A2A2A2',
595
+ 'circletimer_radius' => isset( $control['radius'] ) ? (int) $control['radius'] : 4,
596
+ 'circletimer_stroke' => isset( $control['stroke'] ) ? (int) $control['stroke'] : 10,
597
+ 'circletimer_margin' => isset( $control['margin'] ) ? (int) $control['margin'] : '',
598
+ 'circletimer_hideunder'=> isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : ''
599
+ );
600
+ case 'slideinfo':
601
+ return array(
602
+ 'slideinfo' => 'true',
603
+ 'slideinfo_autohide' => $this->is_key_true( $control, 'autoHide' , 'true' ),
604
+ 'slideinfo_overvideo'=> $this->is_key_true( $control, 'overVideo', 'true' ),
605
+ 'slideinfo_align' => isset( $control['align'] ) ? (string) $control['align'] : 'bottom',
606
+ 'slideinfo_inset' => $this->is_key_true( $control, 'inset', 'false' ),
607
+ 'slideinfo_margin' => isset( $control['margin'] ) ? (int) $control['margin'] : '',
608
+ 'slideinfo_hideunder'=> isset( $control['hideUnder'] ) ? (int) $control['hideUnder'] : '',
609
+ 'slideinfo_width' => isset( $control['width'] ) ? (int) $control['width'] : '',
610
+ 'slideinfo_height' => isset( $control['height'] ) ? (int) $control['height'] : ''
611
+ );
612
+ default:
613
+ return array();
614
+ }
615
+
616
+ }
617
+
618
+
619
+
620
+
621
+
622
+ public function has_raw_setting(){
623
+ if ( isset( $this->parsable_data->{'MSPanel.Settings'} ) && isset( $this->parsable_data->{'MSPanel.Settings'}->{'1'} ) )
624
+ return true;
625
+ return false;
626
+ }
627
+
628
+
629
+ public function get_raw_setting(){
630
+ if ( $this->has_raw_setting() )
631
+ return $this->parsable_data->{'MSPanel.Settings'}->{'1'};
632
+ return null;
633
+ }
634
+
635
+
636
+ public function get_slider_setting( $force_new_parse = false ){
637
+ $raw_setting = $this->get_raw_setting();
638
+
639
+ if( is_null( $raw_setting ) ){
640
+ return $this->parse_setting();
641
+ }
642
+
643
+ if( is_null( $this->recent_setting ) || $force_new_parse ) {
644
+ $raw_json_decoded_setting = json_decode( $raw_setting, true );
645
+ $this->recent_setting = $this->parse_setting( $raw_json_decoded_setting );
646
+ $this->recent_setting = wp_parse_args( $this->get_controls_params() , $this->recent_setting );
647
+ $this->recent_setting = wp_parse_args( $this->get_callbacks_params(), $this->recent_setting );
648
+ }
649
+ return $this->recent_setting;
650
+ }
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+ // is slides data passed in raw panel data?
659
+ public function has_raw_slide() {
660
+ if ( isset( $this->parsable_data->{'MSPanel.Slide'} ) )
661
+ return true;
662
+ return false;
663
+ }
664
+
665
+
666
+ public function get_raw_slides() {
667
+ if ( $this->has_raw_slide() ) {
668
+ return $this->parsable_data->{'MSPanel.Slide'};
669
+ }
670
+ return null;
671
+ }
672
+
673
+
674
+ public function get_parsable_slides() {
675
+
676
+ if( ! $raw_slides = $this->get_raw_slides() ){
677
+ return array();
678
+ }
679
+
680
+ $valid_slides = array();
681
+
682
+ foreach ( $raw_slides as $id => $raw_slide ) {
683
+ $raw_json_decoded_slide = json_decode( $raw_slide, true );
684
+ $valid_slides[ $raw_json_decoded_slide['order'] ] = $raw_json_decoded_slide;
685
+ }
686
+
687
+ ksort( $valid_slides );
688
+ return $valid_slides;
689
+ }
690
+
691
+
692
+ public function get_slides( $force_new_parse = false ) {
693
+
694
+ if( is_null( $this->recent_slides ) || $force_new_parse ) {
695
+
696
+ $parsable_slides = $this->get_parsable_slides();
697
+
698
+ if ( empty( $parsable_slides ) )
699
+ return $parsable_slides;
700
+
701
+ $slides = array();
702
+
703
+ foreach ( $parsable_slides as $slide ) {
704
+ $slides[] = $this->parse_slide( $slide );
705
+ }
706
+
707
+ $this->recent_slides = $slides;
708
+ }
709
+ return $this->recent_slides;
710
+ }
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+ public function has_raw_style() {
719
+ if ( isset( $this->parsable_data->{'MSPanel.Style'} ) )
720
+ return true;
721
+ return false;
722
+ }
723
+
724
+
725
+ public function get_raw_styles() {
726
+ if ( $this->has_raw_style() ) {
727
+ return $this->parsable_data->{'MSPanel.Style'};
728
+ }
729
+ return null;
730
+ }
731
+
732
+
733
+ public function get_parsable_styles() {
734
+
735
+ if( ! $raw_styles = $this->get_raw_styles() ){
736
+ return array();
737
+ }
738
+
739
+ $valid_styles = array();
740
+
741
+ foreach ( $raw_styles as $id => $raw_style ) {
742
+ $raw_json_decoded_style = json_decode( $raw_style, true );
743
+ $valid_styles[] = $raw_json_decoded_style;
744
+ }
745
+
746
+ return $valid_styles;
747
+ }
748
+
749
+
750
+ public function get_styles_list( $force_new_parse = false ) {
751
+
752
+ if( is_null( $this->recent_styles ) || $force_new_parse ) {
753
+
754
+ $parsable_styles = $this->get_parsable_styles();
755
+
756
+ if ( empty( $parsable_styles ) )
757
+ return $parsable_styles;
758
+
759
+ $styles = array();
760
+
761
+ foreach ( $parsable_styles as $id => $style ) {
762
+ $styles[$id] = $this->parse_each_style( $style );
763
+ }
764
+
765
+ $this->recent_styles = $styles;
766
+ }
767
+
768
+ return $this->recent_styles;
769
+ }
770
+
771
+
772
+ public function get_styles( $force_new_parse = false ) {
773
+ $styles_list = $this->get_styles_list();
774
+ return implode( $this->join_char, $styles_list );
775
+ }
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+ private function get_preset_styles_list( $parsable_preset_styles ) {
789
+
790
+ if ( empty( $parsable_preset_styles ) )
791
+ return $parsable_preset_styles;
792
+
793
+ $preset_styles = array();
794
+
795
+ foreach ( $parsable_preset_styles as $id => $preset_style ) {
796
+ $preset_styles[$id] = $this->parse_each_style( $preset_style, 'preset' );
797
+ }
798
+
799
+ return $preset_styles;
800
+ }
801
+
802
+ public function preset_data_to_styles( $raw_preset_styles ){
803
+ $valid_preset_styles = array();
804
+
805
+ foreach ( $raw_preset_styles as $id => $raw_preset_style ) {
806
+ $raw_json_decoded_preset_style = json_decode( $raw_preset_style, true );
807
+ $valid_preset_styles[] = $raw_json_decoded_preset_style;
808
+ }
809
+
810
+ $preset_styles_list = $this->get_preset_styles_list( $valid_preset_styles );
811
+ return implode( $this->join_char, $preset_styles_list );
812
+ }
813
+
814
+ public function get_preset_styles( $raw_preset ) {
815
+
816
+ $b64_decoded = msp_maybe_base64_decode( $raw_preset );
817
+ $preset_data = json_decode( $b64_decoded );
818
+
819
+ if ( ! isset( $preset_data->{'MSPanel.PresetStyle'} ) )
820
+ return '';
821
+
822
+ $raw_preset_styles = $preset_data->{'MSPanel.PresetStyle'};
823
+
824
+ return $this->preset_data_to_styles( $raw_preset_styles );
825
+ }
826
+
827
+
828
+
829
+
830
+
831
+
832
+ private function get_buttons_styles_list( $parsable_buttons_styles ) {
833
+
834
+ if ( empty( $parsable_buttons_styles ) )
835
+ return $parsable_buttons_styles;
836
+
837
+ $buttons_styles = array();
838
+
839
+ foreach ( $parsable_buttons_styles as $id => $button_style ) {
840
+ if( ! isset( $button_style['className'] ) ) continue;
841
+
842
+ if( isset( $button_style['normal'] ) )
843
+ $button_styles[] = sprintf( ".%s{ %s }", $button_style['className'], str_replace("\n", "", $button_style['normal'] ) );
844
+ if( isset( $button_style['hover'] ) )
845
+ $button_styles[] = sprintf( ".%s:hover{ %s }", $button_style['className'], str_replace("\n", "", $button_style['hover'] ) );
846
+ if( isset( $button_style['active'] ) )
847
+ $button_styles[] = sprintf( ".%s:active{ %s }", $button_style['className'], str_replace("\n", "", $button_style['active'] ) );
848
+ }
849
+
850
+ return $button_styles;
851
+ }
852
+
853
+ public function buttons_data_to_styles( $raw_buttons_styles ){
854
+ $valid_buttons_styles = array();
855
+
856
+ foreach ( $raw_buttons_styles as $id => $raw_buttons_style ) {
857
+ $raw_json_decoded_buttons_style = json_decode( $raw_buttons_style, true );
858
+ $valid_buttons_styles[] = $raw_json_decoded_buttons_style;
859
+ }
860
+
861
+ $buttons_styles_list = $this->get_buttons_styles_list( $valid_buttons_styles );
862
+ return implode( $this->join_char. " ", $buttons_styles_list );
863
+ }
864
+
865
+ public function get_buttons_styles( $raw_buttons ) {
866
+
867
+ $b64_decoded = msp_maybe_base64_decode( $raw_buttons );
868
+ $buttons_data = json_decode( $b64_decoded );
869
+
870
+ if ( ! isset( $buttons_data->{'MSPanel.ButtonStyle'} ) )
871
+ return '';
872
+
873
+ $raw_buttons_styles = $buttons_data->{'MSPanel.ButtonStyle'};
874
+ return $this->buttons_data_to_styles( $raw_buttons_styles );
875
+ }
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+ public function parser_slider( $force_new_parse = false ) {
884
+ $this->get_slider_setting( $force_new_parse );
885
+ $this->get_slides( $force_new_parse );
886
+ $this->get_styles( $force_new_parse );
887
+ }
888
+
889
+
890
+ public function get_results( $force_new_parse = false ) {
891
+ $result = array();
892
+
893
+ $result['setting'] = $this->get_slider_setting( $force_new_parse );
894
+ $result['slides'] = $this->get_slides( $force_new_parse );
895
+ $result['styles'] = $this->get_styles( $force_new_parse );
896
+
897
+ return $result;
898
+ }
899
+
900
+
901
+ // pretty human readable print for parsed data
902
+ public function pretty_print() {
903
+ axpp( $this->parsable_data );
904
+ }
905
+
906
+
907
+ }
admin/includes/classes/class-msp-pointers.php ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Master Slider Pointers Class.
4
+ *
5
+ * @package MasterSlider
6
+ * @author averta [averta.net]
7
+ * @license LICENSE.txt
8
+ * @link http://masterslider.com
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+ /**
13
+ *
14
+ */
15
+ class MSP_Pointers {
16
+
17
+ /* */
18
+ public $pointers = array();
19
+ public $seen_ids = array();
20
+ public $not_seen_pointers = array();
21
+ public $version_file = '';
22
+
23
+ /**
24
+ * Set theme or plugine file path to get version from
25
+ * @param string $version_file a path to plugin or theme file to get and compare version with it
26
+ */
27
+ function __construct( $version_file = '' ) {
28
+ $this->version_file = $version_file;
29
+ }
30
+
31
+
32
+
33
+ public function add( $options = array() ){
34
+ // return if no data passed
35
+ if( empty( $options ) || ! is_array( $options ) ) return false;
36
+
37
+ $options = array_merge( $this->default_point(), $options );
38
+ // add pointer to pointers list
39
+ $this->pointers[] = $options;
40
+
41
+ return true;
42
+ }
43
+
44
+
45
+
46
+
47
+ public function init(){
48
+ global $wp_version;
49
+
50
+ if ( version_compare( $wp_version, '3.4', '<' ) )
51
+ return false;
52
+
53
+ if( ! count( $this->pointers) ) return "No Point Available.";
54
+
55
+ add_action( 'admin_enqueue_scripts' , array( $this, 'add_hooks' ) );
56
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_pointer_scripts' ) );
57
+ return true;
58
+ }
59
+
60
+
61
+
62
+
63
+
64
+ public function add_hooks(){
65
+ if ( ! current_user_can( 'manage_options' ) ) return;
66
+
67
+ if( ! count( $this->pointers ) ) return false;
68
+
69
+ $this->seen_ids = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
70
+
71
+ foreach ( $this->pointers as $key => $pointer_data ) {
72
+ if( ! in_array( $pointer_data["id"], $this->seen_ids ) )
73
+ $this->not_seen_pointers[] = $pointer_data;
74
+ }
75
+
76
+ if( count( $this->not_seen_pointers ) ) {
77
+ /* Load wp-pointer scripts and styles */
78
+ wp_enqueue_style ( 'wp-pointer' );
79
+ wp_enqueue_script( 'wp-pointer' );
80
+
81
+ add_action( 'admin_print_footer_scripts', array( $this, 'print_pointer_scripts' ) );
82
+ }
83
+
84
+ return true;
85
+ }
86
+
87
+
88
+
89
+
90
+
91
+
92
+ public function print_pointer_scripts() {
93
+ if ( ! current_user_can( 'manage_options' ) ) return;
94
+
95
+ global $hook_suffix;
96
+
97
+ $info = empty( $this->version_file ) ? wp_get_theme() : get_plugin_data( $this->version_file );
98
+
99
+ foreach ( $this->not_seen_pointers as $key => $pointer_data ) {
100
+ // check if we are on correct page to display pointer
101
+ if( ! empty( $pointer_data["hook_suffix"] ) && $pointer_data["hook_suffix"] != $hook_suffix ) continue;
102
+ // display pointer for specified theme version and above
103
+ if( version_compare( $info["Version"], $pointer_data["version"], '<' ) ) continue;
104
+ ?>
105
+ <script type="text/javascript">
106
+ jQuery(document).ready(function($) {
107
+ if( typeof(jQuery().pointer) != 'undefined' ) {
108
+ $('<?php echo $pointer_data["target"]; ?>').pointer({
109
+ content: '<?php printf('<h3>%s</h3><p>%s</p>', $pointer_data["title"],$pointer_data["content"]); ?>',
110
+ pointerClass: '<?php echo $pointer_data["id"]; ?>',
111
+ pointerWidth: <?php echo isset( $pointer_data["width"] ) ? (int) $pointer_data["width"] : 320; ?>,
112
+ position: {
113
+ edge: '<?php echo $pointer_data["position"]["edge"]; ?>',
114
+ align: '<?php echo $pointer_data["position"]["align"]; ?>'
115
+ },
116
+ close: function() {
117
+ $.post( ajaxurl, {
118
+ pointer: '<?php echo $pointer_data["id"]; ?>',
119
+ action: 'dismiss-wp-pointer'
120
+ });
121
+ }
122
+ }).pointer('open');
123
+ }
124
+ });
125
+ </script>
126
+ <?php
127
+ if( isset( $pointer_data["css"] ) )
128
+ printf( '<style>%s</style>', $pointer_data["css"] );
129
+ }
130
+ }
131
+
132
+
133
+
134
+
135
+ public function default_point(){
136
+ return array(
137
+ 'id' => 'mspo', // Unique id for pointer
138
+ 'hook_suffix'=> '', // Screen hook suffix to show pointer on [empty means display every where on admin] (dashboard : index.php)
139
+ 'target' => '#menu-settings',// CSS selector to hang the pointer to that element
140
+ 'version' => '1', // The theme or plugin version to display tooltip on
141
+ 'title' => '', // Tooltip title
142
+ 'content' => '', // Tooltip description
143
+ 'position' => array(
144
+ 'edge' => 'left', //top, bottom, left, right
145
+ 'align' => 'middle' //top, bottom, left, right, middle
146
+ )
147
+ );
148
+ }
149
+ }
150
+
151
+
152
+ /*-----------------------------------------------------------------------------------*/
153
+ /* Display Admin Pointers
154
+ /*-----------------------------------------------------------------------------------*/
155
+
156
+ function msp_add_custom_pointers(){
157
+
158
+ // admin pointers /////////////////////////////////////////////////////////
159
+ $msp_pointers = new MSP_Pointers( MSWP_AVERTA_DIR . '/' . MSWP_SLUG . '.php' );
160
+ $msp_pointers->add( array(
161
+ 'id' => 'master_1_0_view_help', // Unique id for pointer
162
+ 'hook_suffix'=> 'toplevel_page_masterslider', // Screen hook suffix to show pointer on [empty means display every where on admin] (dashboard : index.php)
163
+ 'target' => '#contextual-help-link', // CSS selector to hang the pointer to that element
164
+ 'version' => '1.0.0', // The theme or plugin version to display tooltip on
165
+ 'title' => __( 'Do you need any help on Master Slider?', MSWP_TEXT_DOMAIN ), // Tooltip title
166
+ 'content' => sprintf( __( 'Please open contextual help panel (click the %s button at top right side of this page)', MSWP_TEXT_DOMAIN ), '<strong style="color:#1D86AC;">'.__( 'Help', MSWP_TEXT_DOMAIN ).'</strong>' ), // Tooltip description
167
+ 'width' => 370,
168
+ 'css' => '.master_1_0_view_help { left:auto !important; right:20px !important; } .master_1_0_view_help .wp-pointer-arrow { left:auto !important; right:25px; }',
169
+ 'position' => array(
170
+ 'edge' => 'top', //top, bottom, left, right
171
+ 'align' => 'middle' //top, bottom, left, right, middle
172
+ )
173
+ )
174
+ );
175
+
176
+ $msp_pointers->init();
177
+
178
+ }
179
+
180
+ // msp_add_custom_pointers();
181
+
182
+ ?>
admin/includes/classes/class-msp-screen-help.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( ! class_exists( 'MSP_Screen_Help' ) ) :
4
+
5
+ /**
6
+ * Class to add help tabs on master slider admin pages
7
+ */
8
+ class MSP_Screen_Help extends Axiom_Screen_Help {
9
+
10
+ /**
11
+ * __construct
12
+ */
13
+ function __construct() {
14
+
15
+ // define tabs data
16
+ $tabs = array (
17
+
18
+ array('id' => 'msp-how-use-tab',
19
+ 'title' => __( 'Display Sliders on pages', MSWP_TEXT_DOMAIN ),
20
+ 'callback' => array( $this, 'display_masterslider' ) // callback to display tab content @km!
21
+ ),
22
+ array('id' => 'msp-supp-tab',
23
+ 'title' => __( 'Master Slider Support', MSWP_TEXT_DOMAIN ),
24
+ 'callback' => array( $this, 'display_support' ) // callback to display tab content @km!
25
+ )
26
+ );
27
+
28
+ parent::__construct( $tabs, msp_get_screen_ids(), 'masterslider_help_tab_' );
29
+ }
30
+
31
+
32
+ public function display_masterslider(){
33
+ ?>
34
+ <h2>How to Display Sliders on Pages</h2>
35
+ <p>You can display Master Slider on your website with using one of the three ways that are explained below.</p>
36
+ <hr />
37
+
38
+ <div class="row-fluid">
39
+
40
+ <div>
41
+ <h3>1 - Inserting the slider with shortcode (Easiest way)</h3>
42
+ <p>You can place your sliders into pages and posts with their shortcodes.</p>
43
+ <p>You can find the shortcode for each slider in Master Slider admin page next to their names in the list view.</p>
44
+
45
+ <img src="<?php echo MSWP_AVERTA_ADMIN_URL. '/assets/images/misc/where-is-ms-shortcode.png'; ?>" />
46
+ <p>To insert the slider, edit a page or post and insert its shortcode into the WordPress text editor like following screenshot. </p>
47
+ <p>In this example the shortcode is <code>[masterslider id="1"]</code></p>
48
+ <img src="<?php echo MSWP_AVERTA_ADMIN_URL. '/assets/images/misc/shortcode-in-editor.png'; ?>" />
49
+ </div>
50
+ </div>
51
+
52
+ <hr>
53
+
54
+ <div class="row-fluid">
55
+ <div >
56
+ <h3>2 - Inserting the slider with the Master Slider WP widget</h3>
57
+ <p>
58
+ MasterSlider WP supports widgets, so you can place your slider in your front-end page just by a drag n' drop. To do that, navigate to the Appearance menu on your left sidebar and select "Widgets". Grab the MasterSlider WP Widget and drop it into one of your widget area.
59
+
60
+ Please note that some themes may not support a widget area what you need. In this case, you can create a new widget area by editing your theme files.
61
+ </p>
62
+ </div>
63
+ </div>
64
+
65
+ <hr>
66
+
67
+ <div class="row-fluid">
68
+ <div>
69
+ <h3>3 - Calling the slider from your theme files (For Advanced users)</h3>
70
+ <p>
71
+ Because a slider can be an integral part of your site, you may want to place it into your theme files. There are some PHP function which you can call for example from the header.php file of your theme and it inserts your slider into your home page or certail other pages. Here they are :
72
+ </p>
73
+ <br />
74
+
75
+ <h5>Description</h5>
76
+ <p>Displays Master Slider markup for specific slider ID</p>
77
+
78
+ <h5>Usage :</h5>
79
+ <p><code>&lt;?php masterslider( $id ); ?&gt;</code></p>It's equal to :
80
+ <p><code>&lt;?php echo get_masterslider( $id ); ?&gt;</code></p>
81
+
82
+ <h5>Parameters :</h5>
83
+ <dl>
84
+ <dt><tt>$id</tt></dt>
85
+ <dd> (int) The slider ID that can be found on the plugin page in the slider list view at the first table column. Default: <i>Null</i></dd>
86
+ </dl><br />
87
+
88
+ <h5>Example :</h5>
89
+ <p>If you've created a slider and the slider ID is equal to <code>1</code> you can use the following code to display the slider on your website.</p>
90
+ <p><code>&lt;?php masterslider ( 1 ); ?&gt;</code></p>OR
91
+ <p><code>&lt;?php echo get_masterslider ( 1 ); ?&gt;</code></p><br />
92
+
93
+ <p><strong>Note</strong>: If you are developer, take a look at our <a href="http://masterslider.com/doc/wp/developer/" target="_blank">developer documentation</a> too.</p>
94
+ <hr>
95
+
96
+ <p>
97
+ It is important when you want to insert a slider to check its ID on the MasterSlider WP slider list page. When you remove some sliders, their IDs won't be re-indexed and the sequence may broke up. This is important to keep persistent your sliders preventing unwanted changes on the already inserted ones.
98
+ </p>
99
+ </div>
100
+ </div>
101
+
102
+ <?php
103
+ }
104
+
105
+ public function display_support(){
106
+ ?>
107
+ <h3><strong>Support</strong></h3>
108
+ <hr>
109
+
110
+ <h4>If you have any questions please follow these steps:</h4>
111
+ <ul>
112
+ <li>1 - Please read item's <a href="http://masterslider.com/doc/wp" target="_blank">Documentation </a> </li>
113
+ <li>2 - Take a look in our <a href="http://support.averta.net/envato/faq/" target="_blank">FAQ</a> page</li>
114
+ <li>3 - Take a look in our <a href="http://support.averta.net/envato/knowledgebase/" target="_blank">Knowledge base</a></li>
115
+ <li>4 - Take a look in <a href="http://support.averta.net/envato/videos/" target="_blank">Video Tutorials</a> page</li>
116
+ <li>5 - Still have questions(s)? <a href="http://support.averta.net/envato/wp-login.php?action=register" target="_blank" rel="nofollow">Create an Account</a> in <a href="http://support.averta.net/envato/support/" rel="nofollow">Support Forums</a> (<a href="http://i44.tinypic.com/311rr4h.jpg" rel="nofollow">Find your “Item Purchase Code”</a>)</li>
117
+ <li>6 - Use search field at the top of support forum for similar topics</li>
118
+ <li>7 - If you still didn't find your answers please post your question(s) in the item’s <a href="http://support.averta.net/envato/support/" target="_blank">support forum</a>
119
+ Our support staff are there to help you as soon as possible.</li>
120
+ </ul>
121
+ <br>
122
+
123
+
124
+ <strong>Why support forum?</strong>
125
+ <ul>
126
+ <li>You can upload images and insert code with code-highlighting.</li>
127
+ <li>It is organized and searchable (that makes support easier and faster)</li>
128
+ </ul>
129
+ <br>
130
+
131
+ <strong>Supporting our Items INCLUDES</strong>:
132
+ <ul>
133
+ <li>Responding to questions or problems regarding our item and its features</li>
134
+ <li>Fixing bugs and reported issues</li>
135
+ <li>Providing updates to ensure compatibility with new software versions</li>
136
+ </ul>
137
+ <br>
138
+
139
+ <strong>Item support does NOT include</strong>:
140
+ <ul>
141
+ <li>Customization and installation services</li>
142
+ <li>Support for third party software and plug-ins</li>
143
+ </ul>
144
+ <br>
145
+
146
+ <p><span class="label label-info">Important Note</span> We <strong>CAN NOT</strong> provide support via email.
147
+ Please ask your support related questions only in our <a href="http://support.averta.net/envato/support/" target="_blank">support forum</a>.
148
+ </p>
149
+
150
+ <br>
151
+ <p><span class="label label-info">Important Note</span> For the fast troubleshooting, please send us detailed informations about the issue and make sure that you don't forget to send us your site url where you are using or want to use the item. Please note, that we cannot troubleshoot from screencast videos or screenshots.</p>
152
+ <?php
153
+ }
154
+
155
+
156
+ }
157
+
158
+ endif;
159
+
160
+ new MSP_Screen_Help();
admin/includes/classes/class-msp-shortcode-factory.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ */
6
+ class MSP_Shortcode_Factory {
7
+
8
+ public $parsed_slider_data = array();
9
+ private $post_id;
10
+ private $post_slider_args = array();
11
+
12
+ function __construct() {
13
+
14
+ }
15
+
16
+ public function set_data( $parsed_data ) {
17
+
18
+ $this->parsed_slider_data = $parsed_data;
19
+ }
20
+
21
+ /**
22
+ * Get generated ms_slider shortcode
23
+ *
24
+ * @return string [ms_slider] shortcode or empty string on error
25
+ */
26
+ public function get_ms_slider_shortcode( $the_content = '' ){
27
+
28
+ if( ! isset( $this->parsed_slider_data['setting'] ) )
29
+ return '';
30
+
31
+ $shortcode_name = 'ms_slider';
32
+
33
+ // get the parsed slider setting
34
+ $setting = $this->parsed_slider_data['setting'];
35
+
36
+ // create ms_slider shortcode
37
+ $attrs = '';
38
+ foreach ( $setting as $attr => $attr_value ) {
39
+ $attrs .= sprintf( '%s="%s" ', $attr, esc_attr( $attr_value ) );
40
+ }
41
+
42
+ // get ms_slides shortcodes(s)
43
+ $the_content = $this->get_ms_slides_shortcode();
44
+
45
+ return sprintf( '[%1$s %2$s]%3$s%4$s[/%1$s]', $shortcode_name, $attrs, "\n", $the_content );
46
+ }
47
+
48
+
49
+
50
+ public function get_ms_slide_shortcode( $slide ){
51
+
52
+ if( ! isset( $slide ) || empty( $slide ) )
53
+ return '';
54
+
55
+ $shortcode_name = 'ms_slide';
56
+
57
+ // stores shortcode attributes
58
+ $attrs = '';
59
+
60
+ foreach ( $slide as $attr => $attr_value ) {
61
+ if( 'layers' == $attr || 'layer_ids' == $attr || 'ishide' == $attr )
62
+ continue;
63
+
64
+ if( 'src' == $attr && in_array( $this->parsed_slider_data['setting']['slider_type'], array( "flickr", "facebook", "instagram" ) ) ) {
65
+ $attrs .= sprintf( '%s="%s" ', $attr, '{{image}}' );
66
+
67
+ } elseif( 'alt' == $attr && in_array( $this->parsed_slider_data['setting']['slider_type'], array( "flickr", "facebook", "instagram" ) ) ) {
68
+ $attrs .= sprintf( '%s="%s" ', $attr, '{{title}}' );
69
+
70
+ } elseif( 'title' == $attr && in_array( $this->parsed_slider_data['setting']['slider_type'], array( "flickr", "facebook", "instagram" ) ) ) {
71
+ $attrs .= sprintf( '%s="%s" ', $attr, '{{title}}' );
72
+
73
+ } elseif( 'thumb' == $attr && ! empty( $attr_value ) && in_array( $this->parsed_slider_data['setting']['slider_type'], array( "flickr", "facebook", "instagram" ) ) ) {
74
+ $attrs .= sprintf( '%s="%s" ', $attr, '{{thumb}}' );
75
+
76
+ } else {
77
+ $attrs .= sprintf( '%s="%s" ', $attr, esc_attr( $attr_value ) );
78
+ }
79
+ }
80
+
81
+ if( 'true' == $this->parsed_slider_data['setting']['crop'] ){
82
+ $attrs .= sprintf( '%s="%s" ', 'crop_width' , esc_attr( $this->parsed_slider_data['setting']['width'] ) );
83
+ $attrs .= sprintf( '%s="%s" ', 'crop_height', esc_attr( $this->parsed_slider_data['setting']['height'] ) );
84
+ }
85
+
86
+ // collect all shortcode output
87
+ $the_content = '';
88
+
89
+ // generate slide_info shortcode if slideinfo control is added
90
+ if( 'image-gallery' == $this->parsed_slider_data['setting']['template'] ||
91
+ ( isset( $this->parsed_slider_data['setting']['slideinfo'] ) && 'true' == $this->parsed_slider_data['setting']['slideinfo'] )
92
+ ){
93
+ if( ! empty( $slide['info'] ) )
94
+ $the_content .= $this->get_ms_slide_info_shortcode( $slide['info'] );
95
+ else
96
+ $the_content .= $this->get_ms_slide_info_shortcode( "&nbsp;" );
97
+ }
98
+
99
+ return sprintf( '[%1$s %2$s]%4$s%3$s[/%1$s]%4$s', $shortcode_name, $attrs, $the_content, "\n" );
100
+ }
101
+
102
+
103
+
104
+ public function get_ms_slides_shortcode() {
105
+
106
+ if( ! isset( $this->parsed_slider_data['slides'] ) )
107
+ return '';
108
+
109
+ $slides = $this->parsed_slider_data['slides'];
110
+
111
+ $shortcodes = '';
112
+
113
+ foreach ( $slides as $slide ) {
114
+ if( 'true' != $slide['ishide'] )
115
+ $shortcodes .= $this->get_ms_slide_shortcode( $slide );
116
+ }
117
+
118
+ return $shortcodes;
119
+ }
120
+
121
+
122
+
123
+ public function get_ms_slide_info_shortcode( $the_content = '' ){
124
+
125
+ if( empty( $the_content ) )
126
+ return '';
127
+
128
+ return sprintf( '[%1$s]%2$s[/%1$s]', 'ms_slide_info', $the_content )."\n";
129
+ }
130
+
131
+
132
+ public function do_template_tag( $matches ){
133
+ if( ! isset( $matches['0'] ) )
134
+ return $matches;
135
+
136
+ $tag_name = preg_replace('/[{}]/', '', $matches['0'] );
137
+ $tag_name = msp_get_template_tag_value( $tag_name, $this->post_id, $this->post_slider_args );
138
+
139
+ return is_array( $tag_name ) ? implode( ',', $tag_name ) : $tag_name;
140
+ }
141
+
142
+ }
admin/includes/classes/msp-admin-templates.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function msp_get_panel_header(){
4
+ ?>
5
+ <div id="msp-header">
6
+ <div class="msp-logo">
7
+ <a href="<?php echo admin_url( 'admin.php?page='.MSWP_SLUG ); ?>">
8
+ <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/views/slider-panel/images/masterslider.gif">
9
+ </a>
10
+ </div>
11
+ </div>
12
+ <?php
13
+ }
admin/includes/index.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // load admin related classes & functions
2
+
3
+ // load admin related functions
4
+ include_once( 'msp-admin-functions.php' );
5
+ include_once( 'msp-admin-templates.php' );
6
+ include_once( 'msp-sample-sliders.php' );
7
+
8
+ // load admin related classes
9
+ include_once( 'classes/class-axiom-list-table.php' );
10
+ include_once( 'classes/class-msp-list-table.php' );
11
+ include_once( 'classes/class-axiom-screen-help.php' );
12
+ include_once( 'classes/class-msp-screen-help.php' );
13
+ include_once( 'classes/class-msp-admin-assets.php' );
14
+ // include_once( 'classes/class-msp-pointers.php' );
15
+ include_once( 'classes/class-msp-importer.php' );
16
+
17
+
18
+ if( isset( $_REQUEST['action'] ) && 'preview' == $_REQUEST['action'] ) {
19
+ $frontend_assets = include_once( MSWP_AVERTA_PUB_DIR.'/includes/class-msp-frontend-assets.php' );
20
+ $frontend_assets->admin_hooks();
21
+ }
22
+
23
+ do_action( 'masterslider_admin_classes_loaded' );
24
+
25
+ // load admin related functions
26
+ include_once( 'msp-compatibility.php' );
27
+ include_once( 'msp-hooks.php' );
admin/includes/msp-admin-functions.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // admin related functions
2
+
3
+
4
+ /**
5
+ * Get all master slider admin screen ids
6
+ *
7
+ * @return array
8
+ */
9
+ function msp_get_screen_ids() {
10
+ $the_screen_id = sanitize_title( MSWP_SLUG );
11
+
12
+ return apply_filters( 'masterslider_admin_screen_ids', array(
13
+ 'toplevel_page_' . $the_screen_id
14
+ ) );
15
+ }
16
+
17
+
18
+
19
+
20
+ function msp_get_sliders_custom_css( $slider_status = 'published' ) {
21
+ global $mspdb;
22
+ $slider_status = sprintf( "status='%s'", $slider_status );
23
+ $sliders_result = $mspdb->get_sliders( 0, 0, 'ID', 'DESC', $slider_status );
24
+
25
+ $sliders_custom_css = array();
26
+
27
+ if( $sliders_result ) {
28
+ foreach ( $sliders_result as $slider ) {
29
+ $sliders_custom_css[] = $slider['custom_styles'];
30
+ $sliders_custom_css[] = msp_get_slider_background_css( $slider['ID'] );
31
+ }
32
+ // remove empty records from array
33
+ $sliders_custom_css = array_filter( $sliders_custom_css );
34
+ }
35
+
36
+ return apply_filters( 'masterslider_get_sliders_custom_css', implode( "\n", $sliders_custom_css ), $sliders_custom_css, $sliders_result );
37
+ }
38
+
39
+
40
+ // get stored slider's custom css code from database
41
+ function msp_get_slider_custom_css( $slider_id ) {
42
+ global $mspdb;
43
+ $slider_custom_css = $mspdb->get_slider_field_val( $slider_id, 'custom_styles' );
44
+ return $slider_custom_css ? $slider_custom_css : '';
45
+ }
46
+
47
+
48
+ function msp_get_slider_background_css( $slider_id ) {
49
+ $slider_data = get_masterslider_parsed_data( $slider_id );
50
+
51
+ $the_slider_bg = empty( $slider_data['setting']['bg_color'] ) ? '' : $slider_data['setting']['bg_color'];
52
+ $the_slider_bg .= empty( $slider_data['setting']['bg_image'] ) ? '' : sprintf( ' url( %s ) repeat top left', msp_get_the_absolute_media_url( $slider_data['setting']['bg_image'] ) );
53
+ $the_slider_bg = empty( $the_slider_bg ) ? '' : 'background:' . $the_slider_bg . ";";
54
+
55
+ return empty( $the_slider_bg ) ? '' : sprintf( ".ms-parent-id-%d > .master-slider{ %s }", $slider_id, $the_slider_bg );
56
+ }
57
+
58
+
59
+ function msp_get_all_custom_css () {
60
+ return apply_filters( 'masterslider_get_all_custom_css', msp_get_sliders_custom_css() );
61
+ }
62
+
63
+
64
+ /*-----------------------------------------------------------------------------------*/
65
+
66
+ /**
67
+ * Get custom styles and store them in custom.css file or use inline css fallback
68
+ * This function will be called by masterslider save handler
69
+ *
70
+ * @return void
71
+ */
72
+ function msp_save_custom_styles() {
73
+
74
+ $css_file = MSWP_AVERTA_DIR . '/assets/custom.css';
75
+
76
+ $css_terms = "/*
77
+ ===============================================================
78
+ #CUSTOM CSS
79
+ - Please do not edit this file. this file is generated from admin area.
80
+ - Every changes here will be overwritten
81
+ ===============================================================*/\n
82
+ ";
83
+ // Get all custom css styles
84
+ $css = msp_get_all_custom_css();
85
+
86
+ // write to custom.css file
87
+ require_once( ABSPATH . 'wp-admin/includes/file.php' );
88
+ WP_Filesystem();
89
+ global $wp_filesystem;
90
+
91
+ if ( ! $wp_filesystem->put_contents( $css_file, $css_terms.$css, 0644 ) ) {
92
+ // if the directory is not writable, try inline css fallback
93
+ msp_update_option( 'custom_inline_style' , $css ); // save css rules as option to print as inline css
94
+ }else {
95
+ $custom_css_ver = get_option( 'masterslider_custom_css_ver', '1.0' );
96
+ $custom_css_ver = (float)$custom_css_ver + 0.1;
97
+ msp_update_option( 'masterslider_custom_css_ver' , $custom_css_ver ); // disable inline css output
98
+ msp_update_option( 'custom_inline_style' , '' );
99
+ }
100
+
101
+ }
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Prints Pretty human-readable information about a variable (developer debug tool)
116
+ * @param mixed The expression to be printed.
117
+ * @param boolean $dump Whether to dump information about a variable or not
118
+ * @param boolean $return When this parameter is set to TRUE, it will return the information rather than print it.
119
+ * @return bool When the return parameter is TRUE, this function will return a string. Otherwise, the return value is TRUE.
120
+ */
121
+ if ( ! function_exists( 'axpp' ) ) {
122
+
123
+ function axpp ( $expression, $dump = false, $return = false ) {
124
+ if ( $return ) {
125
+ return '<pre>' . print_r( $expression , true ) . '</pre>';
126
+ } elseif ( $dump ) {
127
+ echo '<pre>'; var_dump( $expression ); echo '</pre>';
128
+ } else {
129
+ echo '<pre>'; print_r ( $expression ); echo '</pre>';
130
+ }
131
+ return true;
132
+ }
133
+
134
+ }
admin/includes/msp-admin-templates.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function msp_get_panel_header(){
4
+ ?>
5
+ <div id="msp-header">
6
+ <div class="msp-logo">
7
+ <a href="<?php echo admin_url( 'admin.php?page='.MSWP_SLUG ); ?>">
8
+ <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/views/slider-panel/images/masterslider.gif">
9
+ </a>
10
+ </div>
11
+ </div>
12
+ <?php
13
+ }
admin/includes/msp-compatibility.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*----------------------------------------------------------------------------*
4
+ * Members Plugin
5
+ *----------------------------------------------------------------------------*/
6
+
7
+ add_action( 'plugins_loaded', 'msp_on_all_plugins_loaded' );
8
+
9
+ function msp_on_all_plugins_loaded() {
10
+ // Add master slider custom capabilities to members plugin if it's installed
11
+ if ( function_exists( 'members_get_capabilities' ) )
12
+ add_filter( 'members_get_capabilities', 'msp_add_custom_cap_to_members_plugin' );
13
+ }
14
+
15
+
16
+ /**
17
+ * Add master slider custom capabilities to Members plugin if it's installed
18
+ *
19
+ * @since 1.0.0
20
+ */
21
+ function msp_add_custom_cap_to_members_plugin( $caps ) {
22
+ $caps[] = 'access_masterslider' ;
23
+ $caps[] = 'publish_masterslider';
24
+ $caps[] = 'delete_masterslider' ;
25
+ $caps[] = 'create_masterslider' ;
26
+ $caps[] = 'export_masterslider' ;
27
+ $caps[] = 'duplicate_masterslider' ;
28
+ return $caps;
29
+ }
30
+
31
+ /*----------------------------------------------------------------------------*/
admin/includes/msp-hooks.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php
admin/includes/msp-sample-sliders.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function msp_get_slider_starter_sections () {
4
+
5
+ $sections = array(
6
+ array(
7
+ 'id' => 'main_types',
8
+ 'title' => __( 'Slider Types', MSWP_TEXT_DOMAIN ),
9
+ 'desc' => ''
10
+ ),
11
+ array(
12
+ 'id' => 'masterslider_samples_group1',
13
+ 'title' => __( 'Sample Sliders', MSWP_TEXT_DOMAIN ),
14
+ 'desc' => ''
15
+ )
16
+ );
17
+
18
+ return apply_filters( 'masterslider_starter_sections', $sections );
19
+ }
20
+
21
+
22
+ function msp_get_slider_starter_fields () {
23
+
24
+ $starters = array();
25
+
26
+ $starters['main_types'] = array(
27
+
28
+ array(
29
+ 'label' => __( 'Custom Slider', MSWP_TEXT_DOMAIN ),
30
+ 'id' => 'custom-slider',
31
+ 'slidertype'=> 'custom',
32
+ 'importdata'=> '',
33
+ 'image_dir' => '',
34
+ 'selected' => 'true',
35
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/slider-types/pt_custom.png'
36
+ )
37
+
38
+ );
39
+
40
+ $starters['masterslider_samples_group1'] = array(
41
+
42
+ array(
43
+ 'label' => __( 'Slider with Horizontal Thumbnails', MSWP_TEXT_DOMAIN ),
44
+ 'id' => 'slider-with-thumbs-1',
45
+ 'slidertype'=> 'custom',
46
+ 'importdata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3RoZW1lc1wvbG90dXNcL2R1bW15LWFnZW5jeVwvd3AtY29udGVudFwvdXBsb2FkcyJ9',
47
+ 'image_dir' => '',
48
+ 'selected' => '',
49
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/slider-with-horizontal-thumbs.jpg'
50
+ ),
51
+ array(
52
+ 'label' => __( 'Slider Without Thumbnails', MSWP_TEXT_DOMAIN ),
53
+ 'id' => 'slider-without-thumbs-1',
54
+ 'slidertype'=> 'custom',
55
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTMiOnsidGl0bGUiOiJTbGlkZXIgV2l0aG91dCBUaHVtYm5haWxzIiwicGFyYW1zIjoiZXlKdFpYUmhJanA3SWxObGRIUnBibWR6SVdsa2N5STZJakVpTENKVFpYUjBhVzVuY3lGdVpYaDBTV1FpT2pJc0lsTnNhV1JsSVdsa2N5STZJakVzTWl3ekxEUXNOU3cyTERjc09Td3hNaXd4TkNJc0lsTnNhV1JsSVc1bGVIUkpaQ0k2TVRVc0lrTnZiblJ5YjJ3aGFXUnpJam9pTVNJc0lrTnZiblJ5YjJ3aGJtVjRkRWxrSWpvMGZTd2lUVk5RWVc1bGJDNVRaWFIwYVc1bmN5STZleUl4SWpvaWUxd2lhV1JjSWpwY0lqRmNJaXhjSW5OdVlYQndhVzVuWENJNmRISjFaU3hjSW01aGJXVmNJanBjSWxOc2FXUmxjaUJYYVhSb2IzVjBJRlJvZFcxaWJtRnBiSE5jSWl4Y0luZHBaSFJvWENJNk9EQXdMRndpYUdWcFoyaDBYQ0k2TkRnd0xGd2lkM0poY0hCbGNsZHBaSFJvWENJNk9EQXdMRndpZDNKaGNIQmxjbGRwWkhSb1ZXNXBkRndpT2x3aWNIaGNJaXhjSW1GMWRHOURjbTl3WENJNlptRnNjMlVzWENKMGVYQmxYQ0k2WENKamRYTjBiMjFjSWl4Y0luTnNhV1JsY2tsa1hDSTZYQ0kxTTF3aUxGd2liR0Y1YjNWMFhDSTZYQ0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mtkWEpoZEdsdmJsd2lPak1zWENKbWFXeHNUVzlrWlZ3aU9sd2labWxzYkZ3aUxGd2lZbWQyWDJacGJHeHRiMlJsWENJNlhDSm1hV3hzWENJc1hDSmlaM1pmYkc5dmNGd2lPblJ5ZFdVc1hDSmlaM1pmYlhWMFpWd2lPblJ5ZFdVc1hDSmlaM1pmWVhWMGIzQmhkWE5sWENJNlptRnNjMlVzWENKc1lYbGxjbDlwWkhOY0lqcGJYWDBpZlN3aVRWTlFZVzVsYkM1RGIyNTBjbTlzSWpwN0lqRWlPaUo3WENKcFpGd2lPbHdpTVZ3aUxGd2liR0ZpWld4Y0lqcGNJa0Z5Y205M2Mxd2lMRndpYm1GdFpWd2lPbHdpWVhKeWIzZHpYQ0lzWENKaGRYUnZTR2xrWlZ3aU9tWmhiSE5sTEZ3aWIzWmxjbFpwWkdWdlhDSTZkSEoxWlN4Y0ltbHVjMlYwWENJNmRISjFaWDBpZlgwPSIsInR5cGUiOiJjdXN0b20iLCJzbGlkZXNfbnVtIjoiMTAifX0sIm9yaWdpbl91cGxvYWRzX3VybCI6Imh0dHA6XC9cL2RlbW8uYXZlcnRhLm5ldFwvdGhlbWVzXC9sb3R1c1wvZHVtbXktYWdlbmN5XC93cC1jb250ZW50XC91cGxvYWRzIn0=',
56
+ 'image_dir' => '',
57
+ 'selected' => '',
58
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/simple-slider.jpg'
59
+ ),
60
+ array(
61
+ 'label' => __( 'Slider with Vertical Thumbnails', MSWP_TEXT_DOMAIN ),
62
+ 'id' => 'slider-with-thumbs-2',
63
+ 'slidertype'=> 'custom',
64
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTQiOnsidGl0bGUiOiJTbGlkZXIgd2l0aCBWZXJ0aWNhbCBUaHVtYm5haWxzIiwicGFyYW1zIjoiZXlKdFpYUmhJanA3SWxObGRIUnBibWR6SVdsa2N5STZJakVpTENKVFpYUjBhVzVuY3lGdV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9yaWdpbl91cGxvYWRzX3VybCI6Imh0dHA6XC9cL2RlbW8uYXZlcnRhLm5ldFwvdGhlbWVzXC9sb3R1c1wvZHVtbXktYWdlbmN5XC93cC1jb250ZW50XC91cGxvYWRzIn0=',
74
+ 'image_dir' => '',
75
+ 'selected' => '',
76
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/fullwidth-slider.jpg'
77
+ ),
78
+ array(
79
+ 'label' => __( 'Simple Autoplay Slider', MSWP_TEXT_DOMAIN ),
80
+ 'id' => 'slider-autoplay-1',
81
+ 'slidertype'=> 'custom',
82
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTYiOnsidGl0bGUiOiJTaW1wbGUgQXV0b3BsYXkgU2xpZGVyIiwicGFyYW1zIjoiZXlKdFpYUmhJanA3SWxObGRIUnBibWR6SVdsa2N5STZJakVpTENKVFpYUjBhVzVuY3lGdVpYaDBTV1FpT2pJc0lsTnNhV1JsSVdsa2N5STZJakVzTWl3ekxEUXNOU3cyTERjc09Td3hNaXd4TkNJc0lsTnNhV1JsSVc1bGVIUkpaQ0k2TVRVc0lrTnZiblJ5YjJ3aGFXUnpJam9pTVN3MExEVXNOaUlzSWtOdmJuUnliMndoYm1WNGRFbGtJam8zZlN3aVRWTlFZVzVsYkM1VFpYUjBhVzVuY3lJNmV5SXhJam9pZTF3aWFXUmNJanBjSWpGY0lpeGNJbk51WVhCd2FXNW5YQ0k2ZEhKMVpTeGNJbTVoYldWY0lqcGNJbE5wYlhCc1pTQkJkWFJ2Y0d4aGVTQlRiR2xrWlhKY0lpeGNJbmRwWkhSb1hDSTZPREF3TEZ3aWFHVnBaMmgwWENJNk5EZ3dMRndpZDNKaGNIQmxjbGRwWkhSb1hDSTZPREF3TEZ3aWQzSmhjSEJsY2xkcFpIUm9WVzVwZEZ3aU9sd2ljSGhjSWl4Y0ltRjFkRzlEY205d1hDSTZabUZzYzJVc1hDSjBlWEJsWENJNlhDSmpkWE4wYjIxY0l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bG5ibHdpT2x3aVltOTBkRzl0WENJc1hDSnBibk5sZEZ3aU9uUnlkV1Y5SWl3aU5pSTZJbnRjSW1sa1hDSTZOaXhjSW14aFltVnNYQ0k2WENKQ2RXeHNaWFJ6WENJc1hDSnVZVzFsWENJNlhDSmlkV3hzWlhSelhDSXNYQ0poZFhSdlNHbGtaVndpT25SeWRXVXNYQ0p2ZG1WeVZtbGtaVzljSWpwMGNuVmxMRndpYldGeVoybHVYQ0k2TVRBc1hDSmthWEpjSWpwY0ltaGNJaXhjSW1Gc2FXZHVYQ0k2WENKaWIzUjBiMjFjSWl4Y0ltbHVjMlYwWENJNmRISjFaWDBpZlgwPSIsInR5cGUiOiJjdXN0b20iLCJzbGlkZXNfbnVtIjoiMTAifX0sIm9yaWdpbl91cGxvYWRzX3VybCI6Imh0dHA6XC9cL2RlbW8uYXZlcnRhLm5ldFwvdGhlbWVzXC9sb3R1c1wvZHVtbXktYWdlbmN5XC93cC1jb250ZW50XC91cGxvYWRzIn0=',
83
+ 'image_dir' => '',
84
+ 'selected' => '',
85
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/autoplay-slider.jpg'
86
+ ),
87
+ array(
88
+ 'label' => __( 'Fullwidth Slider with Thumbnails', MSWP_TEXT_DOMAIN ),
89
+ 'id' => 'fullwith-with-thumbs-1',
90
+ 'slidertype'=> 'custom',
91
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTciOnsidGl0bGUiOiJGdWxsd2lkdGggU2xpZGVyIHdpdGggVGh1bWJuYWlscyIsInBhcmFtcyI6ImV5SnRaWFJoSWpwN0lsTmxkSFJwYm1keklXbGtjeUk2SWpFaUxDSlRaWFIwYVc1bmN5RnVaWGgwU1dRaU9qSXNJbE5zYVdSbElXbGtjeUk2SWpFc01pd3pMRFFzTlN3MkxEY3NPU3d4TWl3eE5DSXNJbE5zYVdSbElXNWxlSFJKWkNJNk1UVXNJa052Ym5SeWIyd2hhV1J6SWpvaU1Td3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1wvZGVtby5hdmVydGEubmV0XC90aGVtZXNcL2xvdHVzXC9kdW1teS1hZ2VuY3lcL3dwLWNvbnRlbnRcL3VwbG9hZHMifQ==',
92
+ 'image_dir' => '',
93
+ 'selected' => '',
94
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/fullwidth-slider-with-thumbs.jpg'
95
+ ),
96
+ array(
97
+ 'label' => __( 'Slider with Slide Info', MSWP_TEXT_DOMAIN ),
98
+ 'id' => 'slider-with-slideinfo-1',
99
+ 'slidertype'=> 'custom',
100
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTgiOnsidGl0bGUiOiJTaW1wbGUgU2xpZGVyIHdpdGggU2xpZGUgSW5mbyIsInBhcmFtcyI6ImV5SnRaWFJoSWpwN0lsTmxkSFJwYm1keklXbGtjeUk2SWpFaUxDSlRaWFIwYVc1bmN5RnVaWGgwU1dRaU9qSXNJbE5zYVdSbElXbGtjeUk2SWpFc01pd3pMRFFzTlN3MkxEY3NPU3d4TWl3eE5DSXNJbE5zYVdSbElXNWxlSFJKWkNJNk1UVXNJa052Ym5SeWIyd2hhV1J6SWpvaU1TdzBJaXdpUTI5dWRISnZiQ0Z1WlhoMFNXUWlPalY5TENKTlUxQmhibVZzTGxObGRIUnBibWR6SWpwN0lqRWlPaUo3WENKcFpGd2lPbHdpTVZ3aUxGd2ljMjVoY0hCcGJtZGNJanAwY25WbExGd2libUZ0WlZ3aU9sd2lVMmx0Y0d4bElGTnNhV1JsY2lCM2FYUm9JRk5zYVdSbElFbHVabTljSWl4Y0luZHBaSFJvWENJNk9EQXdMRndpYUdWcFoyaDBYQ0k2TkRnd0xGd2lkM0poY0hCbGNsZHBaSFJvWENJNk9EQXdMRndpZDNKaGNIQmxjbGRwWkhSb1ZXNXBkRndpT2x3aWNIaGNJaXhjSW1GMWRHOURjbTl3WENJNlptRnNjMlVzWENKMGVYQmxYQ0k2WENKamRYTjBiMjFjSWl4Y0luTnNhV1JsY2tsa1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WJtRnRaVndpT2x3aVlYSnliM2R6WENJc1hDSmhkWFJ2U0dsa1pWd2lPbVpoYkhObExGd2liM1psY2xacFpHVnZYQ0k2ZEhKMVpTeGNJbWx1YzJWMFhDSTZkSEoxWlgwaUxDSTBJam9pZTF3aWFXUmNJam8wTEZ3aWJHRmlaV3hjSWpwY0lsTnNhV1JsSUVsdVptOWNJaXhjSW01aGJXVmNJanBjSW5Oc2FXUmxhVzVtYjF3aUxGd2lZWFYwYjBocFpHVmNJanBtWVd4elpTeGNJbTkyWlhKV2FXUmxiMXdpT25SeWRXVXNYQ0p0WVhKbmFXNWNJam94TUN4Y0ltRnNhV2R1WENJNlhDSmliM1IwYjIxY0lpeGNJbWx1YzJWMFhDSTZabUZzYzJWOUluMTkiLCJ0eXBlIjoiY3VzdG9tIiwic2xpZGVzX251bSI6IjEwIn19LCJvcmlnaW5fdXBsb2Fkc191cmwiOiJodHRwOlwvXC9kZW1vLmF2ZXJ0YS5uZXRcL3RoZW1lc1wvbG90dXNcL2R1bW15LWFnZW5jeVwvd3AtY29udGVudFwvdXBsb2FkcyJ9',
101
+ 'image_dir' => '',
102
+ 'selected' => '',
103
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/slider-with-slide-info.jpg'
104
+ ),
105
+ array(
106
+ 'label' => __( 'Slider with Slide Info V2', MSWP_TEXT_DOMAIN ),
107
+ 'id' => 'slider-with-slideinfo-2',
108
+ 'slidertype'=> 'custom',
109
+ 'importdata'=> 'eyJzbGlkZXJzX2RhdGEiOnsiNTkiOnsidGl0bGUiOiJTaW1wbGUgU2xpZGVyIHdpdGggU2xpZGUgSW5mbyBWMiIsInBhcmFtcyI6ImV5SnRaWFJoSWpwN0lsTmxkSFJwYm1keklXbGtjeUk2SWpFaUxDSlRaWFIwYVc1bmN5RnVaWGgwU1dRaU9qSXNJbE5zYVdSbElXbGtjeUk2SWpFc01pd3pMRFFzTlN3MkxEY3NPU3d4TWl3eE5DSXNJbE5zYVdSbElX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0lqcGNJaU16UkRORU0wUmNJaXhjSW5kcFpIUm9YQ0k2TkN4Y0ltRnNhV2R1WENJNlhDSjBiM0JjSWl4Y0ltbHVjMlYwWENJNmRISjFaWDBpTENJMklqb2llMXdpYVdSY0lqbzJMRndpYkdGaVpXeGNJanBjSWtKMWJHeGxkSE5jSWl4Y0ltNWhiV1ZjSWpwY0ltSjFiR3hsZEhOY0lpeGNJbUYxZEc5SWFXUmxYQ0k2ZEhKMVpTeGNJbTkyWlhKV2FXUmxiMXdpT25SeWRXVXNYQ0p0WVhKbmFXNWNJam94TUN4Y0ltUnBjbHdpT2x3aWFGd2lMRndpWVd4cFoyNWNJanBjSW1KdmRIUnZiVndpTEZ3aWFXNXpaWFJjSWpwMGNuVmxmU0o5ZlE9PSIsInR5cGUiOiJjdXN0b20iLCJzbGlkZXNfbnVtIjoiMTAifX0sIm9yaWdpbl91cGxvYWRzX3VybCI6Imh0dHA6XC9cL2RlbW8uYXZlcnRhLm5ldFwvdGhlbWVzXC9sb3R1c1wvZHVtbXktYWdlbmN5XC93cC1jb250ZW50XC91cGxvYWRzIn0=',
110
+ 'image_dir' => '',
111
+ 'selected' => '',
112
+ 'screenshot'=> MSWP_AVERTA_ADMIN_URL . '/assets/images/starters/slider-with-slide-info-v2.jpg'
113
+ )
114
+ );
115
+
116
+
117
+ return apply_filters( 'masterslider_starter_fields', $starters );
118
+ }
119
+
120
+
121
+
122
+ function msp_get_slider_starter_field( $field_id ){
123
+ $fields_in_sections = msp_get_slider_starter_fields();
124
+
125
+ foreach ( $fields_in_sections as $fields_in_section ) {
126
+ foreach ($fields_in_section as $the_field ) {
127
+ if ( isset( $the_field['id'] ) && $the_field['id'] == $field_id ){
128
+ return $the_field;
129
+ }
130
+ }
131
+ }
132
+
133
+ return null;
134
+ }
admin/views/index.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Represents the main wrapper for master slider admin page.
4
+ *
5
+ * @package MasterSlider
6
+ * @author averta [averta.net]
7
+ * @license LICENSE.txt
8
+ * @link http://masterslider.com
9
+ * @copyright Copyright © 2014 averta
10
+ */
11
+
12
+ $msp_nonce = wp_create_nonce( 'msp_panel' );
13
+ $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
14
+ $slider_id = isset( $_REQUEST['slider_id'] ) ? $_REQUEST['slider_id'] : '';
15
+ $do = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
16
+
17
+
18
+ function msp_thankyou_footer() {
19
+ $text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
20
+ $text .= sprintf( __(' and using <a href="%s">Master Slider</a> %s', MSWP_TEXT_DOMAIN ), 'https://wordpress.org/plugins/master-slider/', MSWP_AVERTA_VERSION );
21
+
22
+ return '<span id="footer-thankyou">' . $text . '</span>';
23
+ }
24
+ add_filter( 'admin_footer_text', 'msp_thankyou_footer' );
25
+
26
+
27
+ ?>
28
+
29
+ <div id="msp-main-wrapper" class="wrap" data-nonce="<?php echo $msp_nonce; ?>" >
30
+
31
+ <?php
32
+
33
+ // process slider data and generate required thumbnails for slider panel
34
+ // if( ! empty( $slider_id ) && isset( $_REQUEST['fr'] ) )
35
+ // msp_get_ms_slider_shortcode_by_slider_id( $slider_id );
36
+
37
+ // If the requested page is edit page
38
+ if( in_array( $action, array( 'add', 'edit' ) ) ){
39
+
40
+ include( 'slider-panel/index.php' );
41
+
42
+ // If the requested page is preview page
43
+ } elseif( 'preview' == $action ) {
44
+
45
+ include( 'slider-dashboard/preview.php' );
46
+
47
+ // Otherwise display sliders list
48
+ } else {
49
+
50
+ include( 'slider-dashboard/list-sliders.php' );
51
+
52
+ }
53
+
54
+ ?>
55
+
56
+ </div>
admin/views/setting/class-msp-settings.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists('WeDevs_Settings_API' ) )
4
+ require_once ( 'class-settings-api.php' );
5
+
6
+ /**
7
+ * MasterSlider Setting page
8
+ *
9
+ * @author Tareq Hasan
10
+ */
11
+ if ( !class_exists('MSP_Settings' ) ):
12
+
13
+ class MSP_Settings {
14
+
15
+ private $settings_api;
16
+
17
+ function __construct() {
18
+
19
+ $this->settings_api = new WeDevs_Settings_API;
20
+
21
+ add_action( 'admin_init', array( $this, 'admin_init' ) );
22
+ add_action( 'admin_menu', array( $this, 'admin_menu' ), 11 );
23
+ add_action( 'admin_action_msp_envato_license', array( $this, 'envato_license_updated' ) );
24
+
25
+ add_action( 'admin_footer-master-slider_page_masterslider-setting', array( $this, 'print_setting_script' ) );
26
+ add_filter( 'axiom_wedev_setting_section_submit_button', array( $this, 'section_submit_button' ), 10, 2 );
27
+ }
28
+
29
+
30
+ function admin_init() {
31
+
32
+ //set the settings
33
+ $this->settings_api->set_sections( $this->get_settings_sections() );
34
+ $this->settings_api->set_fields ( $this->get_settings_fields() );
35
+
36
+ //initialize settings
37
+ $this->settings_api->admin_init();
38
+ }
39
+
40
+
41
+ function section_submit_button( $button_markup, $section ){
42
+ if( isset( $section['id'] ) && 'msp_envato_license' == $section['id'] ){
43
+ $is_license_actived = get_option( MSWP_SLUG . '_is_license_actived', 0 );
44
+ return sprintf( '<a id="validate_envato_license" class="button button-primary button-large" data-activate="%1$s" data-isactive="%3$d" data-deactivate="%2$s" data-validation="%4$s" >%1$s</a>%5$s',
45
+ __( 'Activate License', MSWP_TEXT_DOMAIN ), __( 'Deactivate License', MSWP_TEXT_DOMAIN ), (int)$is_license_actived,
46
+ __( 'Validating ..', MSWP_TEXT_DOMAIN ), '<div class="msp-msg-nag">is not actived</div>' );
47
+ }
48
+ return $button_markup;
49
+ }
50
+
51
+
52
+ function admin_menu() {
53
+
54
+ add_submenu_page(
55
+ MSWP_SLUG,
56
+ __( 'Settings' , MSWP_TEXT_DOMAIN ),
57
+ __( 'Settings' , MSWP_TEXT_DOMAIN ),
58
+ apply_filters( 'masterslider_setting_capability', 'manage_options' ),
59
+ MSWP_SLUG . '-setting',
60
+ array( $this, 'render_setting_page' )
61
+ );
62
+ }
63
+
64
+ function get_settings_sections() {
65
+ $sections = array(
66
+
67
+ array(
68
+ 'id' => 'msp_general_setting',
69
+ 'title' => __( 'General Settings', MSWP_TEXT_DOMAIN )
70
+ )
71
+ );
72
+
73
+ return $sections;
74
+ }
75
+
76
+ /**
77
+ * Returns all the settings fields
78
+ *
79
+ * @return array settings fields
80
+ */
81
+ function get_settings_fields() {
82
+
83
+ $settings_fields = array();
84
+
85
+ $settings_fields['msp_general_setting'] = array(
86
+ array(
87
+ 'name' => 'hide_info_table',
88
+ 'label' => __( 'Hide info table', MSWP_TEXT_DOMAIN ),
89
+ 'desc' => __( 'If you want to hide "Latest video tutorials" table on master slider admin panel check this field.', MSWP_TEXT_DOMAIN ),
90
+ 'type' => 'checkbox'
91
+ ),
92
+ array(
93
+ 'name' => '_enable_cache',
94
+ 'label' => __( 'Enable cache?', MSWP_TEXT_DOMAIN ),
95
+ 'desc' => __( 'Enable cache to make Masterslider even more faster!', MSWP_TEXT_DOMAIN ),
96
+ 'type' => 'checkbox'
97
+ ),
98
+ array(
99
+ 'name' => '_cache_period',
100
+ 'label' => __( 'Cache period time', MSWP_TEXT_DOMAIN ),
101
+ 'desc' => __( 'The cache refresh time in hours. Cache is also cleared when you click on "Save Changes" in slider panel.', MSWP_TEXT_DOMAIN ),
102
+ 'type' => 'text',
103
+ 'default' => '12',
104
+ 'sanitize_callback' => 'floatval'
105
+ )
106
+ );
107
+
108
+ return $settings_fields;
109
+ }
110
+
111
+ function render_setting_page() {
112
+ echo '<div class="wrap">';
113
+
114
+ $this->settings_api->show_navigation();
115
+ $this->settings_api->show_forms();
116
+
117
+ echo '</div>';
118
+ }
119
+
120
+ /**
121
+ * Get all the pages
122
+ *
123
+ * @return array page names with key value pairs
124
+ */
125
+ function get_pages() {
126
+ $pages = get_pages();
127
+ $pages_options = array();
128
+ if ( $pages ) {
129
+ foreach ($pages as $page) {
130
+ $pages_options[$page->ID] = $page->post_title;
131
+ }
132
+ }
133
+
134
+ return $pages_options;
135
+ }
136
+
137
+
138
+ /**
139
+ * This code uses localstorage for displaying active tabs
140
+ *
141
+ */
142
+ function print_setting_script() {
143
+ ?>
144
+ <script>
145
+ (function($) {
146
+ $(function() {
147
+
148
+ });
149
+ })(jQuery);
150
+ </script>
151
+
152
+ <style>
153
+ .master-slider_page_masterslider-setting .wrap input[disabled] { background-color:#e0e0e0; }
154
+ .msp-msg-nag {
155
+ display: inline-block;
156
+ line-height: 14px;
157
+ padding: 8px 15px;
158
+ font-size: 14px;
159
+ text-align: left;
160
+ margin: 0 20px;
161
+ background-color: #fff;
162
+ border-left: 4px solid #ffba00;
163
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
164
+ box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
165
+ }
166
+ </style>
167
+ <?php
168
+ }
169
+
170
+ }
171
+
172
+ endif;
173
+
174
+ $settings = new MSP_Settings();
admin/views/setting/class-settings-api.php ADDED
@@ -0,0 +1,522 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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API wrapper class
5
+ *
6
+ * @author Tareq Hasan <tareq@weDevs.com>
7
+ * @link http://tareq.weDevs.com Tareq's Planet
8
+ * @example settings-api.php How to use the class
9
+ */
10
+ if ( !class_exists( 'WeDevs_Settings_API' ) ):
11
+
12
+ class WeDevs_Settings_API {
13
+
14
+ /**
15
+ * settings sections array
16
+ *
17
+ * @var array
18
+ */
19
+ private $settings_sections = array();
20
+
21
+ /**
22
+ * Settings fields array
23
+ *
24
+ * @var array
25
+ */
26
+ private $settings_fields = array();
27
+
28
+ /**
29
+ * Singleton instance
30
+ *
31
+ * @var object
32
+ */
33
+ private static $_instance;
34
+
35
+ public function __construct() {
36
+ add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
37
+ }
38
+
39
+ /**
40
+ * Enqueue scripts and styles
41
+ */
42
+ function admin_enqueue_scripts() {
43
+ wp_enqueue_style( 'wp-color-picker' );
44
+ wp_enqueue_style( 'thickbox' );
45
+
46
+ wp_enqueue_script( 'wp-color-picker' );
47
+ wp_enqueue_script( 'jquery' );
48
+ wp_enqueue_script( 'media-upload' );
49
+ wp_enqueue_script( 'thickbox' );
50
+ }
51
+
52
+ /**
53
+ * Set settings sections
54
+ *
55
+ * @param array $sections setting sections array
56
+ */
57
+ function set_sections( $sections ) {
58
+ $this->settings_sections = $sections;
59
+
60
+ return $this;
61
+ }
62
+
63
+ /**
64
+ * Add a single section
65
+ *
66
+ * @param array $section
67
+ */
68
+ function add_section( $section ) {
69
+ $this->settings_sections[] = $section;
70
+
71
+ return $this;
72
+ }
73
+
74
+ /**
75
+ * Set settings fields
76
+ *
77
+ * @param array $fields settings fields array
78
+ */
79
+ function set_fields( $fields ) {
80
+ $this->settings_fields = $fields;
81
+
82
+ return $this;
83
+ }
84
+
85
+ function add_field( $section, $field ) {
86
+ $defaults = array(
87
+ 'name' => '',
88
+ 'label' => '',
89
+ 'desc' => '',
90
+ 'type' => 'text'
91
+ );
92
+
93
+ $arg = wp_parse_args( $field, $defaults );
94
+ $this->settings_fields[$section][] = $arg;
95
+
96
+ return $this;
97
+ }
98
+
99
+ /**
100
+ * Initialize and registers the settings sections and fileds to WordPress
101
+ *
102
+ * Usually this should be called at `admin_init` hook.
103
+ *
104
+ * This function gets the initiated settings sections and fields. Then
105
+ * registers them to WordPress and ready for use.
106
+ */
107
+ function admin_init() {
108
+ //register settings sections
109
+ foreach ( $this->settings_sections as $section ) {
110
+ if ( false == get_option( $section['id'] ) ) {
111
+ add_option( $section['id'] );
112
+ }
113
+
114
+ if ( isset($section['desc']) && !empty($section['desc']) ) {
115
+ $section['desc'] = '<div class="inside">'.$section['desc'].'</div>';
116
+ $callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'<br />";');
117
+ } else {
118
+ $callback = '__return_false';
119
+ }
120
+
121
+ add_settings_section( $section['id'], $section['title'], $callback, $section['id'] );
122
+ }
123
+
124
+ //register settings fields
125
+ foreach ( $this->settings_fields as $section => $field ) {
126
+ foreach ( $field as $option ) {
127
+
128
+ $type = isset( $option['type'] ) ? $option['type'] : 'text';
129
+
130
+ $args = array(
131
+ 'id' => $option['name'],
132
+ 'desc' => isset( $option['desc'] ) ? $option['desc'] : '',
133
+ 'name' => $option['label'],
134
+ 'section' => $section,
135
+ 'size' => isset( $option['size'] ) ? $option['size'] : null,
136
+ 'options' => isset( $option['options'] ) ? $option['options'] : '',
137
+ 'std' => isset( $option['default'] ) ? $option['default'] : '',
138
+ 'sanitize_callback' => isset( $option['sanitize_callback'] ) ? $option['sanitize_callback'] : '',
139
+ );
140
+ add_settings_field( $section . '[' . $option['name'] . ']', $option['label'], array( $this, 'callback_' . $type ), $section, $section, $args );
141
+ }
142
+ }
143
+
144
+ // creates our settings in the options table
145
+ foreach ( $this->settings_sections as $section ) {
146
+ register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Displays a text field for a settings field
152
+ *
153
+ * @param array $args settings field args
154
+ */
155
+ function callback_text( $args ) {
156
+
157
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
158
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
159
+
160
+ $html = sprintf( '<input type="text" class="%1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>', $size, $args['section'], $args['id'], $value );
161
+ $html .= sprintf( '<span class="description"> %s</span>', $args['desc'] );
162
+
163
+ echo $html;
164
+ }
165
+
166
+ /**
167
+ * Displays a checkbox for a settings field
168
+ *
169
+ * @param array $args settings field args
170
+ */
171
+ function callback_checkbox( $args ) {
172
+
173
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
174
+
175
+ $html = sprintf( '<input type="hidden" name="%1$s[%2$s]" value="off" />', $args['section'], $args['id'] );
176
+ $html .= sprintf( '<input type="checkbox" class="checkbox" id="%1$s[%2$s]" name="%1$s[%2$s]" value="on"%4$s />', $args['section'], $args['id'], $value, checked( $value, 'on', false ) );
177
+ $html .= sprintf( '<label for="%1$s[%2$s]"> %3$s</label>', $args['section'], $args['id'], $args['desc'] );
178
+
179
+ echo $html;
180
+ }
181
+
182
+ /**
183
+ * Displays a multicheckbox a settings field
184
+ *
185
+ * @param array $args settings field args
186
+ */
187
+ function callback_multicheck( $args ) {
188
+
189
+ $value = $this->get_option( $args['id'], $args['section'], $args['std'] );
190
+
191
+ $html = '';
192
+ foreach ( $args['options'] as $key => $label ) {
193
+ $checked = isset( $value[$key] ) ? $value[$key] : '0';
194
+ $html .= sprintf( '<input type="checkbox" class="checkbox" id="%1$s[%2$s][%3$s]" name="%1$s[%2$s][%3$s]" value="%3$s"%4$s />', $args['section'], $args['id'], $key, checked( $checked, $key, false ) );
195
+ $html .= sprintf( '<label for="%1$s[%2$s][%4$s]"> %3$s</label><br>', $args['section'], $args['id'], $label, $key );
196
+ }
197
+ $html .= sprintf( '<span class="description"> %s</label>', $args['desc'] );
198
+
199
+ echo $html;
200
+ }
201
+
202
+ /**
203
+ * Displays a multicheckbox a settings field
204
+ *
205
+ * @param array $args settings field args
206
+ */
207
+ function callback_radio( $args ) {
208
+
209
+ $value = $this->get_option( $args['id'], $args['section'], $args['std'] );
210
+
211
+ $html = '';
212
+ foreach ( $args['options'] as $key => $label ) {
213
+ $html .= sprintf( '<input type="radio" class="radio" id="%1$s[%2$s][%3$s]" name="%1$s[%2$s]" value="%3$s"%4$s />', $args['section'], $args['id'], $key, checked( $value, $key, false ) );
214
+ $html .= sprintf( '<label for="%1$s[%2$s][%4$s]"> %3$s</label><br>', $args['section'], $args['id'], $label, $key );
215
+ }
216
+ $html .= sprintf( '<span class="description"> %s</label>', $args['desc'] );
217
+
218
+ echo $html;
219
+ }
220
+
221
+ /**
222
+ * Displays a selectbox for a settings field
223
+ *
224
+ * @param array $args settings field args
225
+ */
226
+ function callback_select( $args ) {
227
+
228
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
229
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
230
+
231
+ $html = sprintf( '<select class="%1$s" name="%2$s[%3$s]" id="%2$s[%3$s]">', $size, $args['section'], $args['id'] );
232
+ foreach ( $args['options'] as $key => $label ) {
233
+ $html .= sprintf( '<option value="%s"%s>%s</option>', $key, selected( $value, $key, false ), $label );
234
+ }
235
+ $html .= sprintf( '</select>' );
236
+ $html .= sprintf( '<span class="description"> %s</span>', $args['desc'] );
237
+
238
+ echo $html;
239
+ }
240
+
241
+ /**
242
+ * Displays a textarea for a settings field
243
+ *
244
+ * @param array $args settings field args
245
+ */
246
+ function callback_textarea( $args ) {
247
+
248
+ $value = esc_textarea( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
249
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
250
+
251
+ $html = sprintf( '<textarea rows="5" cols="55" class="%1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]">%4$s</textarea>', $size, $args['section'], $args['id'], $value );
252
+ $html .= sprintf( '<br><span class="description"> %s</span>', $args['desc'] );
253
+
254
+ echo $html;
255
+ }
256
+
257
+ /**
258
+ * Displays a textarea for a settings field
259
+ *
260
+ * @param array $args settings field args
261
+ */
262
+ function callback_html( $args ) {
263
+ echo $args['desc'];
264
+ }
265
+
266
+ /**
267
+ * Displays a rich text textarea for a settings field
268
+ *
269
+ * @param array $args settings field args
270
+ */
271
+ function callback_wysiwyg( $args ) {
272
+
273
+ $value = wpautop( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
274
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : '500px';
275
+
276
+ echo '<div style="width: ' . $size . ';">';
277
+
278
+ wp_editor( $value, $args['section'] . '[' . $args['id'] . ']', array( 'teeny' => true, 'textarea_rows' => 10 ) );
279
+
280
+ echo '</div>';
281
+
282
+ echo sprintf( '<br><span class="description"> %s</span>', $args['desc'] );
283
+ }
284
+
285
+ /**
286
+ * Displays a file upload field for a settings field
287
+ *
288
+ * @param array $args settings field args
289
+ */
290
+ function callback_file( $args ) {
291
+
292
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
293
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
294
+ $id = $args['section'] . '[' . $args['id'] . ']';
295
+ $js_id = $args['section'] . '\\\\[' . $args['id'] . '\\\\]';
296
+ $html = sprintf( '<input type="text" class="%1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>', $size, $args['section'], $args['id'], $value );
297
+ $html .= '<input type="button" class="button wpsf-browse" id="'. $id .'_button" value="Browse" />
298
+ <script type="text/javascript">
299
+ jQuery(document).ready(function($){
300
+ $("#'. $js_id .'_button").click(function() {
301
+ tb_show("", "media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true");
302
+ window.original_send_to_editor = window.send_to_editor;
303
+ window.send_to_editor = function(html) {
304
+ var url = $(html).attr(\'href\');
305
+ if ( !url ) {
306
+ url = $(html).attr(\'src\');
307
+ };
308
+ $("#'. $js_id .'").val(url);
309
+ tb_remove();
310
+ window.send_to_editor = window.original_send_to_editor;
311
+ };
312
+ return false;
313
+ });
314
+ });
315
+ </script>';
316
+ $html .= sprintf( '<span class="description"> %s</span>', $args['desc'] );
317
+
318
+ echo $html;
319
+ }
320
+
321
+ /**
322
+ * Displays a password field for a settings field
323
+ *
324
+ * @param array $args settings field args
325
+ */
326
+ function callback_password( $args ) {
327
+
328
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
329
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
330
+
331
+ $html = sprintf( '<input type="password" class="%1$s-text" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>', $size, $args['section'], $args['id'], $value );
332
+ $html .= sprintf( '<span class="description"> %s</span>', $args['desc'] );
333
+
334
+ echo $html;
335
+ }
336
+
337
+ /**
338
+ * Displays a color picker field for a settings field
339
+ *
340
+ * @param array $args settings field args
341
+ */
342
+ function callback_color( $args ) {
343
+
344
+ $value = esc_attr( $this->get_option( $args['id'], $args['section'], $args['std'] ) );
345
+ $size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : 'regular';
346
+
347
+ $html = sprintf( '<input type="text" class="%1$s-text wp-color-picker-field" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s" data-default-color="%5$s" />', $size, $args['section'], $args['id'], $value, $args['std'] );
348
+ $html .= sprintf( '<span class="description" style="display:block;"> %s</span>', $args['desc'] );
349
+
350
+ echo $html;
351
+ }
352
+
353
+ /**
354
+ * Sanitize callback for Settings API
355
+ */
356
+ function sanitize_options( $options ) {
357
+ foreach( $options as $option_slug => $option_value ) {
358
+ $sanitize_callback = $this->get_sanitize_callback( $option_slug );
359
+
360
+ // If callback is set, call it
361
+ if ( $sanitize_callback ) {
362
+ $options[ $option_slug ] = call_user_func( $sanitize_callback, $option_value );
363
+ continue;
364
+ }
365
+
366
+ // Treat everything that's not an array as a string
367
+ if ( !is_array( $option_value ) ) {
368
+ $options[ $option_slug ] = sanitize_text_field( $option_value );
369
+ continue;
370
+ }
371
+ }
372
+ return $options;
373
+ }
374
+
375
+ /**
376
+ * Get sanitization callback for given option slug
377
+ *
378
+ * @param string $slug option slug
379
+ *
380
+ * @return mixed string or bool false
381
+ */
382
+ function get_sanitize_callback( $slug = '' ) {
383
+ if ( empty( $slug ) )
384
+ return false;
385
+ // Iterate over registered fields and see if we can find proper callback
386
+ foreach( $this->settings_fields as $section => $options ) {
387
+ foreach ( $options as $option ) {
388
+ if ( $option['name'] != $slug )
389
+ continue;
390
+ // Return the callback name
391
+ return isset( $option['sanitize_callback'] ) && is_callable( $option['sanitize_callback'] ) ? $option['sanitize_callback'] : false;
392
+ }
393
+ }
394
+ return false;
395
+ }
396
+
397
+ /**
398
+ * Get the value of a settings field
399
+ *
400
+ * @param string $option settings field name
401
+ * @param string $section the section name this field belongs to
402
+ * @param string $default default text if it's not found
403
+ * @return string
404
+ */
405
+ function get_option( $option, $section, $default = '' ) {
406
+
407
+ $options = get_option( $section );
408
+
409
+ if ( isset( $options[$option] ) ) {
410
+ return $options[$option];
411
+ }
412
+
413
+ return $default;
414
+ }
415
+
416
+ /**
417
+ * Show navigations as tab
418
+ *
419
+ * Shows all the settings section labels as tab
420
+ */
421
+ function show_navigation() {
422
+ $html = '<h2 class="nav-tab-wrapper">';
423
+
424
+ foreach ( $this->settings_sections as $tab ) {
425
+ $html .= sprintf( '<a href="#%1$s" class="nav-tab" id="%1$s-tab">%2$s</a>', $tab['id'], $tab['title'] );
426
+ }
427
+
428
+ $html .= '</h2>';
429
+
430
+ echo $html;
431
+ }
432
+
433
+ /**
434
+ * Show the section settings forms
435
+ *
436
+ * This function displays every sections in a different form
437
+ */
438
+ function show_forms() {
439
+
440
+ foreach ( $this->settings_sections as $form ) { ?>
441
+ <div id="<?php echo $form['id']; ?>" class="group">
442
+ <form method="post" action="options.php">
443
+
444
+ <?php do_action( 'wsa_form_top_' . $form['id'], $form ); ?>
445
+ <?php settings_fields( $form['id'] ); ?>
446
+ <?php do_settings_sections( $form['id'] ); ?>
447
+ <?php do_action( 'wsa_form_bottom_' . $form['id'], $form ); ?>
448
+
449
+ <div style="padding-left: 10px; padding-top:15px;">
450
+ <?php // get_submit_button returns a submit button, with provided text and appropriate class
451
+ $button_markup = get_submit_button();
452
+ $button_markup = apply_filters( 'axiom_wedev_setting_section_submit_button', $button_markup, $form );
453
+ echo $button_markup;
454
+ ?>
455
+ </div>
456
+ </form>
457
+ </div>
458
+ <?php }
459
+
460
+ $this->script();
461
+ }
462
+
463
+ /**
464
+ * Tabbable JavaScript codes & Initiate Color Picker
465
+ *
466
+ * This code uses localstorage for displaying active tabs
467
+ */
468
+ function script() {
469
+ ?>
470
+ <script>
471
+ jQuery(document).ready(function($) {
472
+ //Initiate Color Picker
473
+ $('.wp-color-picker-field').wpColorPicker();
474
+ // Switches option sections
475
+ $('.group').hide();
476
+ var activetab = '';
477
+ if (typeof(localStorage) != 'undefined' ) {
478
+ activetab = localStorage.getItem("activetab");
479
+ }
480
+ if (activetab !== '' && $(activetab).length ) {
481
+ $(activetab).fadeIn();
482
+ } else {
483
+ $('.group:first').fadeIn();
484
+ }
485
+ $('.group .collapsed').each(function(){
486
+ $(this).find('input:checked').parent().parent().parent().nextAll().each(
487
+ function(){
488
+ if ($(this).hasClass('last')) {
489
+ $(this).removeClass('hidden');
490
+ return false;
491
+ }
492
+ $(this).filter('.hidden').removeClass('hidden');
493
+ });
494
+ });
495
+
496
+ if (activetab !== '' && $(activetab + '-tab').length ) {
497
+ $(activetab + '-tab').addClass('nav-tab-active');
498
+ }
499
+ else {
500
+ $('.nav-tab-wrapper a:first').addClass('nav-tab-active');
501
+ }
502
+ $('.nav-tab-wrapper a').click(function(evt) {
503
+ $('.nav-tab-wrapper a').removeClass('nav-tab-active');
504
+ $(this).addClass('nav-tab-active').blur();
505
+ var clicked_group = $(this).attr('href');
506
+ if (typeof(localStorage) != 'undefined' ) {
507
+ localStorage.setItem("activetab", $(this).attr('href'));
508
+ }
509
+ $('.group').hide();
510
+ $(clicked_group).fadeIn();
511
+ evt.preventDefault();
512
+ });
513
+ });
514
+ </script>
515
+ <style type="text/css">
516
+ .nav-tab-wrapper { margin-bottom:30px; }
517
+ </style>
518
+ <?php
519
+ }
520
+
521
+ }
522
+ endif;
admin/views/slider-dashboard/get-preview.html ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+
6
+ <script>
7
+ // load live preview
8
+ parent.jQuery(function (){
9
+
10
+ parent.MSPanel.pushData();
11
+ var panel_data = parent.B64.encode( JSON.stringify( parent.MSPanel.data ) );
12
+ var preset_styles_data = parent.B64.encode( JSON.stringify( parent.MSPanel.PSData ) );
13
+ var preset_buttons_data = parent.B64.encode( JSON.stringify( parent.MSPanel.PBData ) );
14
+
15
+
16
+ parent.jQuery.post(
17
+ parent.__MS.msp_menu_page + '&action=preview&strip_wp',
18
+ {
19
+ slider_params : panel_data,
20
+ preset_style : preset_styles_data,
21
+ preset_buttons : preset_buttons_data
22
+ },
23
+ function(result){
24
+ document.open().write(result);
25
+ document.close();
26
+ }
27
+ );
28
+ });
29
+ </script>
30
+ </head>
31
+ <body>
32
+
33
+ </body>
34
+ </html>
admin/views/slider-dashboard/list-sliders.php ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  <