Orbit Fox by ThemeIsle - Version 2.0.1

Version Description

  • 2017-08-14
Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Orbit Fox by ThemeIsle
Version 2.0.1
Comparing to
See all releases

Code changes from version 1.0.5 to 2.0.1

Files changed (112) hide show
  1. CHANGELOG.md +18 -0
  2. LICENSE.txt +339 -0
  3. README.md +68 -0
  4. assets/js/widget-media.js +0 -95
  5. class-autoloader.php +219 -0
  6. core/app/abstract/class-orbit-fox-module-abstract.php +575 -0
  7. core/app/class-orbit-fox-admin.php +344 -0
  8. core/app/class-orbit-fox-global-settings.php +106 -0
  9. core/app/class-orbit-fox-module-factory.php +39 -0
  10. core/app/class-orbit-fox-public.php +97 -0
  11. core/app/helpers/class-orbit-fox-render-helper.php +362 -0
  12. core/app/index.php +1 -0
  13. core/app/models/class-orbit-fox-model.php +249 -0
  14. core/app/views/modules-page.php +75 -0
  15. core/app/views/partials/empty-tpl.php +41 -0
  16. core/app/views/partials/module-panel-tpl.php +67 -0
  17. core/app/views/partials/module-tile-tpl.php +46 -0
  18. core/app/views/partials/module-toast-tpl.php +18 -0
  19. core/assets/css/orbit-fox-admin.css +3620 -0
  20. core/assets/js/orbit-fox-admin.js +158 -0
  21. core/includes/class-orbit-fox-activator.php +35 -0
  22. core/includes/class-orbit-fox-deactivator.php +35 -0
  23. core/includes/class-orbit-fox-i18n.php +46 -0
  24. core/includes/class-orbit-fox-loader.php +128 -0
  25. core/includes/class-orbit-fox.php +209 -0
  26. core/includes/index.php +1 -0
  27. docs/MODULE.md +111 -0
  28. images/orbit-fox.png +0 -0
  29. inc/rhea/assets/css/admin-style.css +0 -124
  30. inc/rhea/assets/js/fontawesome.jquery.js +0 -97
  31. inc/rhea/assets/js/icons.js +0 -3790
  32. inc/rhea/rhea-companion.php +0 -70
  33. inc/rhea/widgets/about.widget.php +0 -111
  34. inc/rhea/widgets/contact.widget.php +0 -89
  35. inc/rhea/widgets/hours.widget.php +0 -252
  36. inc/rhea/widgets/icon-box.widget.php +0 -104
  37. inc/widget-clients.php +0 -170
  38. inc/widget-focus.php +0 -237
  39. inc/widget-team.php +0 -387
  40. inc/widget-testimonial.php +0 -244
  41. index.php +1 -0
  42. languages/themeisle-companion.pot +722 -0
  43. obfx_modules/companion-legacy/assets/js/widget-media.js +93 -0
  44. inc/hestia/hestia-functions.php → obfx_modules/companion-legacy/inc/hestia/functions.php +17 -20
  45. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/customizer.php +0 -0
  46. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-features-section.php +0 -0
  47. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-team-section.php +0 -0
  48. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-testimonials-section.php +0 -0
  49. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/import-zerif-content.php +5 -5
  50. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-features-section.php +1 -1
  51. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-team-section.php +0 -0
  52. {inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-testimonials-section.php +0 -0
  53. obfx_modules/companion-legacy/inc/rhea/assets/css/admin-style.css +147 -0
  54. obfx_modules/companion-legacy/inc/rhea/assets/js/fontawesome.jquery.js +97 -0
  55. obfx_modules/companion-legacy/inc/rhea/assets/js/icons.js +3790 -0
  56. obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php +111 -0
  57. obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php +89 -0
  58. {inc → obfx_modules/companion-legacy/inc}/rhea/widgets/features.widget.php +15 -15
  59. obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php +252 -0
  60. obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php +104 -0
  61. {inc → obfx_modules/companion-legacy/inc}/rhea/widgets/progress-bar.widget.php +9 -9
  62. inc/zerif-lite/zerif-lite-functions.php → obfx_modules/companion-legacy/inc/zerif-lite/functions.php +36 -72
  63. {inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-clients.php +15 -10
  64. {inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-focus.php +20 -14
  65. {inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-team.php +47 -35
  66. {inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-testimonial.php +24 -15
  67. obfx_modules/companion-legacy/init.php +250 -0
  68. obfx_modules/social-sharing/css/admin.css +114 -0
  69. obfx_modules/social-sharing/css/public.css +244 -0
  70. obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.ttf +0 -0
  71. obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.woff +0 -0
  72. obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.woff2 +0 -0
  73. obfx_modules/social-sharing/css/vendor/socicon/socicon.css +763 -0
  74. obfx_modules/social-sharing/init.php +385 -0
  75. obfx_modules/social-sharing/js/admin.js +30 -0
  76. obfx_modules/social-sharing/js/public.js +24 -0
  77. obfx_modules/social-sharing/views/hestia-social-sharing-tpl.php +48 -0
  78. obfx_modules/social-sharing/views/social-sharing-tpl.php +51 -0
  79. obfx_modules/stats/css/stats.css +8 -0
  80. obfx_modules/stats/init.php +314 -0
  81. obfx_modules/stats/js/stats.js +63 -0
  82. obfx_modules/stats/js/vendor/chart.min.js +14 -0
  83. obfx_modules/stats/views/dashboard-widget-tpl.php +37 -0
  84. readme.txt +75 -6
  85. themeisle-companion.php +82 -32
  86. uninstall.php +30 -0
  87. vendor/autoload.php +7 -0
  88. vendor/codeinwp/themeisle-sdk/LICENSE +674 -0
  89. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php +470 -0
  90. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-factory.php +50 -0
  91. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-review.php +185 -0
  92. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback.php +90 -0
  93. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php +710 -0
  94. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php +88 -0
  95. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php +211 -0
  96. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-notification-manager.php +119 -0
  97. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php +401 -0
  98. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget-dashboard-blog.php +374 -0
  99. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget.php +50 -0
  100. vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widgets-factory.php +37 -0
  101. vendor/codeinwp/themeisle-sdk/composer.json +24 -0
  102. vendor/codeinwp/themeisle-sdk/index.php +5 -0
  103. vendor/codeinwp/themeisle-sdk/load.php +35 -0
  104. vendor/codeinwp/themeisle-sdk/start.php +35 -0
  105. vendor/composer/ClassLoader.php +413 -0
  106. vendor/composer/LICENSE +21 -0
  107. vendor/composer/autoload_classmap.php +9 -0
  108. vendor/composer/autoload_files.php +11 -0
  109. vendor/composer/autoload_namespaces.php +9 -0
  110. vendor/composer/autoload_psr4.php +9 -0
  111. vendor/composer/autoload_real.php +59 -0
  112. vendor/composer/installed.json +44 -0
CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ### v2.0.1 - 2017-08-15
3
+ **Changes:**
4
+ * updated description
5
+
6
+ ### v2.0.1 - 2017-08-14
7
+ **Changes:**
8
+ * Fixed issues with grey icons in Hestia.
9
+ * Fixed Recommended Actions flags in customizer.
10
+
11
+ ### v2.0.0 - 2017-08-11
12
+ **Changes:**
13
+ * Major code refactor ( TEST before update! )
14
+ * Added sharing feature.
15
+ * Added simple reporting functionality.
16
+ * Added support for upcoming caching, security and analytics feature.
17
+ * Branded to Orbit Fox companion
18
+
LICENSE.txt ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Orbit Fox
2
+ [![Build Status](https://travis-ci.org/Codeinwp/orbit-fox.svg?branch=master)](https://travis-ci.org/Codeinwp/orbit-fox)
3
+ [![Code Climate](https://codeclimate.com/github/Codeinwp/orbit-fox/badges/gpa.svg)](https://codeclimate.com/github/Codeinwp/orbit-fox)
4
+ [![Issue Count](https://codeclimate.com/github/Codeinwp/orbit-fox/badges/issue_count.svg)](https://codeclimate.com/github/Codeinwp/orbit-fox)
5
+ [![Test Coverage](https://codeclimate.com/github/Codeinwp/orbit-fox/badges/coverage.svg)](https://codeclimate.com/github/Codeinwp/orbit-fox/coverage)
6
+
7
+ - **Author URI:** http://themeisle.com
8
+ - **Requires at least:** 3.5
9
+ - **Tested up to:** 4.8
10
+ - **Stable tag:** trunk
11
+ - **License:** GPLv2 or later
12
+ - **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
13
+
14
+ ## Description
15
+ > Orbit Fox is a plugin for WordPress that provides an abstraction layer on top of which you can
16
+ write modules to extend its functionality. The plugin provides some predefined workflows and
17
+ methods that work automagically. This means that you can focus more on the logic of your module
18
+ and less on the loading and display of data or files.
19
+
20
+ ### Goals
21
+ 1. **Provide a framework like environment for writing modules:**
22
+
23
+ Have a predefined set of rules and workflows that work out of the box. This should simplify
24
+ the way a developer interacts with data, views or files.
25
+
26
+ 2. **Accessibility:**
27
+
28
+ Modules should be easy to write and deploy, also allow for loading of modules from third party
29
+ developers.
30
+
31
+ ### Specifications
32
+ Have a plugin that can be extended with modules bundled or built by third party developers inside
33
+ their own plugins. The modules must have an abstract class that defines the implemented methods
34
+ required and utility methods that simplify the module development.
35
+
36
+ ## Installation
37
+ 1. Put the `orbit-fox` folder inside WordPress plugins folder.
38
+ 2. Activate via the Plugins WordPress Dashboard.
39
+
40
+ ## Features
41
+ - Easy extensability via modules
42
+ - Support for third party modules
43
+ - Reusable and Utility Classes for faster development
44
+
45
+ ## Development
46
+ [Module development guidelines](docs/MODULE.md)
47
+
48
+ ## Docs
49
+
50
+ [Read the Project Documentation](https://docs.google.com/a/vertistudio.com/document/d/1fFepVs4if5rEmMqA8TiHUFp2WPnkUCW6JZohnsSNtKE/edit?usp=sharing)
51
+
52
+ ## Frequently Asked Questions
53
+
54
+ // TODO
55
+
56
+ ## Change Log
57
+
58
+ **v.1.0.0a**
59
+ - Basic structure and module loading workflow.
60
+ - Support for 3rd party modules
61
+ - Render Helper
62
+ - Model Helper
63
+ - Automagic classes
64
+
65
+ ### Contributors
66
+ **Bogdan Preda** -- bogdan.themeisle.com
67
+
68
+ **Marius Cristea** -- marius.cristea@vertistudio.com
assets/js/widget-media.js DELETED
@@ -1,95 +0,0 @@
1
- /* global jQuery */
2
- /* global wp */
3
- jQuery(document).ready( function($) {
4
- 'use strict';
5
-
6
- $(document).on('change','.custom_media_url',function() {
7
- var value = $.trim($(this).val());
8
- var image_input = $(this).parent().find('.custom_media_image');
9
- var media_id = $(this).parent().parent().find('.custom_media_id');
10
- if(value.length === 0){
11
- image_input.attr('src','');
12
- image_input.attr('alt','');
13
- media_id.val('');
14
- }
15
- var saveBtn = $(this).closest('.form').find('.widget-control-save');
16
- if (typeof saveBtn !== 'undefined') {
17
- saveBtn.trigger( "click" );
18
- }
19
- });
20
-
21
- function media_upload(button_class) {
22
- var _custom_media = true;
23
-
24
- $('body').on('click', button_class, function() {
25
-
26
- var button_id ='#'+$(this).attr('id');
27
- var media_id = jQuery(this).parent().parent().children('.custom_media_id');
28
- var display_field = jQuery(this).parent().children('input:text');
29
- var display_image = jQuery(this).parent().children('.custom_media_image');
30
- var image_in_customizer = jQuery(this).parent().children('.custom_media_display_in_customizer');
31
-
32
- _custom_media = true;
33
-
34
- wp.media.editor.send.attachment = function(props, attachment) {
35
- if( typeof attachment !== 'undefined' ) {
36
- if ( _custom_media ) {
37
- if ( typeof display_field !== 'undefined' ) {
38
-
39
- if( typeof attachment.id !== 'undefined' ) {
40
- media_id.val(attachment.id);
41
- }
42
-
43
- if ( typeof attachment.sizes !== 'undefined' ) {
44
- if ( typeof attachment.sizes.thumbnail !== 'undefined' ) {
45
- if (typeof(attachment.sizes.thumbnail.url) !== 'undefined') {
46
- display_image.attr('src', attachment.sizes.thumbnail.url).css('display', 'block');
47
- image_in_customizer.val(attachment.sizes.thumbnail.url);
48
- }
49
- }
50
- else {
51
- if( typeof attachment.url !== 'undefined' ) {
52
- display_image.attr('src', attachment.url).css('display', 'block');
53
- image_in_customizer.val(attachment.url);
54
- }
55
- }
56
- }
57
- else {
58
- if ( typeof attachment.url !== 'undefined' ) {
59
- display_image.attr('src', attachment.url).css('display', 'block');
60
- image_in_customizer.val(attachment.url);
61
- }
62
- }
63
-
64
- switch (props.size) {
65
- case 'full':
66
- display_field.val(attachment.sizes.full.url);
67
- break;
68
- case 'medium':
69
- display_field.val(attachment.sizes.medium.url);
70
- break;
71
- case 'thumbnail':
72
- display_field.val(attachment.sizes.thumbnail.url);
73
- break;
74
- default:
75
- display_field.val(attachment.url);
76
- break;
77
- }
78
- display_field.trigger('change');
79
- }
80
- } else {
81
- return wp.media.editor.send.attachment(button_id, [props, attachment]);
82
- }
83
- }
84
- };
85
-
86
- wp.media.editor.open(button_class);
87
- window.send_to_editor = function (html) {
88
-
89
- };
90
- return false;
91
- });
92
- }
93
-
94
- media_upload('.custom_media_button');
95
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
class-autoloader.php ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The file that defines autoload class
4
+ *
5
+ * A simple autoloader that loads class files recursively starting in the directory
6
+ * where this class resides. Additional options can be provided to control the naming
7
+ * convention of the class files.
8
+ *
9
+ * @link https://themeisle.com
10
+ * @copyright Copyright (c) 2017, Bogdan Preda
11
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
12
+ *
13
+ * @since 1.0.0
14
+ * @package Orbit_Fox
15
+ */
16
+
17
+ /**
18
+ * The Autoloader class.
19
+ *
20
+ * @since 1.0.0
21
+ * @package Orbit_Fox
22
+ * @author Themeisle <friends@themeisle.com>
23
+ */
24
+ class Autoloader {
25
+
26
+ /**
27
+ * File extension as a string. Defaults to ".php".
28
+ *
29
+ * @since 1.0.0
30
+ * @access protected
31
+ * @var string $file_ext The file extension to look for.
32
+ */
33
+ protected static $file_ext = '.php';
34
+
35
+ /**
36
+ * The top level directory where recursion will begin. Defaults to the current
37
+ * directory.
38
+ *
39
+ * @since 1.0.0
40
+ * @access protected
41
+ * @var string $path_top The root directory.
42
+ */
43
+ protected static $path_top = __DIR__;
44
+
45
+ /**
46
+ * The plugin directory where recursion will begin. Defaults to empty ( No module will be loaded ).
47
+ *
48
+ * @since 1.0.0
49
+ * @access protected
50
+ * @var string $plugins_path The installation plugins directory.
51
+ */
52
+ protected static $plugins_path = '';
53
+
54
+ /**
55
+ * Holds an array of namespaces to filter in autoloading if set.
56
+ *
57
+ * @since 1.0.0
58
+ * @access protected
59
+ * @var array $namespaces The namespace array, used if not empty on autoloading.
60
+ */
61
+ protected static $namespaces = array();
62
+
63
+ /**
64
+ * An array of files to exclude when looking to autoload.
65
+ *
66
+ * @since 1.0.0
67
+ * @access protected
68
+ * @var array $excluded_files The excluded files list.
69
+ */
70
+ protected static $excluded_files = array();
71
+
72
+ /**
73
+ * A placeholder to hold the file iterator so that directory traversal is only
74
+ * performed once.
75
+ *
76
+ * @since 1.0.0
77
+ * @access protected
78
+ * @var RecursiveIteratorIterator $file_iterator Holds an instance of the iterator class.
79
+ */
80
+ protected static $file_iterator = null;
81
+
82
+ /**
83
+ * Method to check in allowed namespaces.
84
+ *
85
+ * @since 1.0.0
86
+ * @access protected
87
+ * @param string $class_name the class name to check with the namespaces.
88
+ * @return bool
89
+ */
90
+ protected static function check_namespaces( $class_name ) {
91
+ $found = false;
92
+ foreach ( static::$namespaces as $namespace ) {
93
+ if ( substr( $class_name, 0, strlen( $namespace ) ) == $namespace ) {
94
+ $found = true;
95
+ }
96
+ if ( $namespace == 'OBFX_Module' && substr( $class_name, strlen( $namespace ) * (-1), strlen( $namespace ) ) == $namespace ) {
97
+ return static::module_loader( $class_name );
98
+ }
99
+ }
100
+ return $found;
101
+ }
102
+
103
+ /**
104
+ * Autoload function for registration with spl_autoload_register
105
+ *
106
+ * Looks recursively through project directory and loads class files based on
107
+ * filename match.
108
+ *
109
+ * @since 1.0.0
110
+ * @access public
111
+ * @param string $class_name The class name requested.
112
+ * @return mixed
113
+ */
114
+ public static function loader( $class_name ) {
115
+
116
+ if ( ! empty( static::$namespaces ) ) {
117
+ $found = static::check_namespaces( $class_name );
118
+ if ( ! $found ) {
119
+ return $found;
120
+ }
121
+ }
122
+
123
+ $directory = new RecursiveDirectoryIterator( static::$path_top . DIRECTORY_SEPARATOR . 'core', RecursiveDirectoryIterator::SKIP_DOTS );
124
+
125
+ if ( is_null( static::$file_iterator ) ) {
126
+ $Iterator = new RecursiveIteratorIterator( $directory );
127
+ $Regex = new RegexIterator( $Iterator, '/^.+\.php$/i', RecursiveRegexIterator::MATCH );
128
+ static::$file_iterator = iterator_to_array( $Regex, false );
129
+ }
130
+
131
+ $filename = 'class-' . str_replace( '_', '-', strtolower( $class_name ) ) . static::$file_ext;
132
+ foreach ( static::$file_iterator as $file ) {
133
+ if ( strtolower( $file->getFileName() ) === strtolower( $filename ) && is_readable( $file->getPathName() ) ) {
134
+ require( $file->getPathName() );
135
+ return true;
136
+ }
137
+ }
138
+ }
139
+
140
+ /**
141
+ * Method used for loading required module init file.
142
+ *
143
+ * @since 1.0.0
144
+ * @access public
145
+ * @param string $class_name The class name requested.
146
+ * @return bool
147
+ */
148
+ public static function module_loader( $class_name ) {
149
+ $module_name = str_replace( '_', '-', strtolower( str_replace( '_OBFX_Module', '', $class_name ) ) );
150
+ if ( static::$plugins_path != '' ) {
151
+ $directories = glob( static::$plugins_path . '*' . DIRECTORY_SEPARATOR . 'obfx_modules' . DIRECTORY_SEPARATOR . $module_name , GLOB_ONLYDIR );
152
+ foreach ( $directories as $directory ) {
153
+ $filename = $directory . DIRECTORY_SEPARATOR . 'init.php';
154
+ if ( is_readable( $filename ) ) {
155
+ require( $filename );
156
+ return true;
157
+ }
158
+ }
159
+ }
160
+ return false;
161
+ }
162
+
163
+ /**
164
+ * Sets the $file_ext property
165
+ *
166
+ * @since 1.0.0
167
+ * @access public
168
+ * @param string $file_ext The file extension used for class files. Default is "php".
169
+ */
170
+ public static function set_file_ext( $file_ext ) {
171
+ static::$file_ext = $file_ext;
172
+ }
173
+
174
+ /**
175
+ * Sets the $plugins_path property
176
+ *
177
+ * @since 1.0.0
178
+ * @access public
179
+ * @param string $path The path representing the top level where recursion should
180
+ * begin for plugins. Defaults to empty ( does not look in plugins ).
181
+ */
182
+ public static function set_plugins_path( $path ) {
183
+ static::$plugins_path = $path;
184
+ }
185
+
186
+ /**
187
+ * Sets the $path property
188
+ *
189
+ * @since 1.0.0
190
+ * @access public
191
+ * @param string $path The path representing the top level where recursion should
192
+ * begin. Defaults to the current directory.
193
+ */
194
+ public static function set_path( $path ) {
195
+ static::$path_top = $path;
196
+ }
197
+
198
+ /**
199
+ * Adds a new file to the exclusion list.
200
+ *
201
+ * @since 1.0.0
202
+ * @access public
203
+ * @param string $file_name The file name to exclude from autoload.
204
+ */
205
+ public static function exclude_file( $file_name ) {
206
+ static::$excluded_files[] = $file_name;
207
+ }
208
+
209
+ /**
210
+ * Sets the namespaces used in autoloading if any.
211
+ *
212
+ * @since 1.0.0
213
+ * @access public
214
+ * @param array $namespaces The namespaces to use.
215
+ */
216
+ public static function define_namespaces( $namespaces = array() ) {
217
+ static::$namespaces = $namespaces;
218
+ }
219
+ }
core/app/abstract/class-orbit-fox-module-abstract.php ADDED
@@ -0,0 +1,575 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The abstract class for Orbit Fox Modules.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app/abstract
10
+ */
11
+
12
+ /**
13
+ * The class that defines the required methods and variables needed by a OBFX_Module.
14
+ *
15
+ * @package Orbit_Fox
16
+ * @subpackage Orbit_Fox/app/abstract
17
+ * @author Themeisle <friends@themeisle.com>
18
+ */
19
+ abstract class Orbit_Fox_Module_Abstract {
20
+
21
+ /**
22
+ * Holds the module slug.
23
+ *
24
+ * @since 1.0.0
25
+ * @access protected
26
+ * @var string $slug The module slug.
27
+ */
28
+ protected $slug;
29
+
30
+ /**
31
+ * Holds the name of the module
32
+ *
33
+ * @since 1.0.0
34
+ * @access public
35
+ * @var string $name The name of the module.
36
+ */
37
+ public $name;
38
+
39
+ /**
40
+ * Holds the description of the module
41
+ *
42
+ * @since 1.0.0
43
+ * @access public
44
+ * @var string $description The description of the module.
45
+ */
46
+ public $description;
47
+
48
+ /**
49
+ * Stores an array of notices
50
+ *
51
+ * @since 1.0.0
52
+ * @access public
53
+ * @var array $notices Stores an array of notices to be displayed on the admin panel.
54
+ */
55
+ protected $notices = array();
56
+
57
+ /**
58
+ * Flags if module should autoload.
59
+ *
60
+ * @since 1.0.0
61
+ * @access public
62
+ * @var bool $auto The flag for automatic activation.
63
+ */
64
+ public $auto = false;
65
+
66
+ /**
67
+ * Has an instance of the Orbit_Fox_Loader class used for adding actions and filters.
68
+ *
69
+ * @since 1.0.0
70
+ * @access protected
71
+ * @var Orbit_Fox_Loader $loader A instance of Orbit_Fox_Loader.
72
+ */
73
+ protected $loader;
74
+
75
+ /**
76
+ * Has an instance of the Orbit_Fox_Model class used for interacting with DB data.
77
+ *
78
+ * @since 1.0.0
79
+ * @access protected
80
+ * @var Orbit_Fox_Model $model A instance of Orbit_Fox_Model.
81
+ */
82
+ protected $model;
83
+
84
+ /**
85
+ * Stores the curent version of Orbit fox for use during the enqueue.
86
+ *
87
+ * @since 1.0.0
88
+ * @access protected
89
+ * @var string $version The current version of Orbit Fox.
90
+ */
91
+ protected $version;
92
+
93
+ /**
94
+ * Orbit_Fox_Module_Abstract constructor.
95
+ *
96
+ * @since 1.0.0
97
+ * @access public
98
+ */
99
+ public function __construct() {
100
+ $this->slug = str_replace( '_', '-',strtolower( str_replace( '_OBFX_Module', '', get_class( $this ) ) ) );
101
+ }
102
+
103
+ /**
104
+ * Method to return path to child class in a Reflective Way.
105
+ *
106
+ * @codeCoverageIgnore
107
+ *
108
+ * @since 1.0.0
109
+ * @access protected
110
+ * @return string
111
+ */
112
+ protected function get_dir() {
113
+ $reflector = new ReflectionClass( get_class( $this ) );
114
+ return dirname( $reflector->getFileName() );
115
+ }
116
+
117
+ /**
118
+ * Utility method to return active theme dir name.
119
+ *
120
+ * @since 1.0.0
121
+ * @access protected
122
+ * @param boolean $is_child Flag for child themes.
123
+ * @return string
124
+ */
125
+ protected function get_active_theme_dir( $is_child = false ) {
126
+ if ( $is_child ) {
127
+ return basename( get_stylesheet_directory() );
128
+ }
129
+ return basename( get_template_directory() );
130
+ }
131
+
132
+ /**
133
+ * Registers the loader.
134
+ *
135
+ * @codeCoverageIgnore
136
+ *
137
+ * @since 1.0.0
138
+ * @access public
139
+ * @param Orbit_Fox_Loader $loader The loader class used to register action hooks and filters.
140
+ */
141
+ public function register_loader( Orbit_Fox_Loader $loader ) {
142
+ $this->loader = $loader;
143
+ }
144
+
145
+ /**
146
+ * Registers the loader.
147
+ *
148
+ * @codeCoverageIgnore
149
+ *
150
+ * @since 1.0.0
151
+ * @access public
152
+ * @param Orbit_Fox_Model $model The loader class used to register action hooks and filters.
153
+ */
154
+ public function register_model( Orbit_Fox_Model $model ) {
155
+ $this->model = $model;
156
+ }
157
+
158
+ /**
159
+ * Method to return the notices array
160
+ *
161
+ * @since 1.0.0
162
+ * @access public
163
+ * @return array
164
+ */
165
+ public function get_notices() {
166
+ return $this->notices;
167
+ }
168
+
169
+ /**
170
+ * Utility method to updated showed notices array.
171
+ *
172
+ * @since 1.0.0
173
+ * @access public
174
+ */
175
+ public function update_showed_notices() {
176
+ $showed_notices = $this->get_status( 'showed_notices' );
177
+ if ( $showed_notices == false ) {
178
+ $showed_notices = array();
179
+ }
180
+ foreach ( $this->notices as $notice ) {
181
+ if ( $notice['display_always'] == false ) {
182
+ $hash = md5( serialize( $notice ) );
183
+ if ( ! in_array( $hash, $showed_notices ) ) {
184
+ $showed_notices[] = $hash;
185
+ }
186
+ }
187
+ }
188
+ $this->set_status( 'showed_notices', $showed_notices );
189
+ }
190
+
191
+ /**
192
+ * Method to determine if the module is enabled or not.
193
+ *
194
+ * @since 1.0.0
195
+ * @access public
196
+ * @return bool
197
+ */
198
+ public abstract function enable_module();
199
+
200
+ /**
201
+ * The method for the module load logic.
202
+ *
203
+ * @since 1.0.0
204
+ * @access public
205
+ * @return mixed
206
+ */
207
+ public abstract function load();
208
+
209
+ /**
210
+ * Method that returns an array of scripts and styles to be loaded
211
+ * for the front end part.
212
+ *
213
+ * @since 1.0.0
214
+ * @access public
215
+ * @return array
216
+ */
217
+ public abstract function public_enqueue();
218
+
219
+ /**
220
+ * Method that returns an array of scripts and styles to be loaded
221
+ * for the admin part.
222
+ *
223
+ * @since 1.0.0
224
+ * @access public
225
+ * @return array
226
+ */
227
+ public abstract function admin_enqueue();
228
+
229
+ /**
230
+ * Method to define the options fields for the module
231
+ *
232
+ * @since 1.0.0
233
+ * @access public
234
+ * @return array
235
+ */
236
+ public abstract function options();
237
+
238
+ /**
239
+ * Method to define actions and filters needed for the module.
240
+ *
241
+ * @codeCoverageIgnore
242
+ *
243
+ * @since 1.0.0
244
+ * @access public
245
+ */
246
+ public abstract function hooks();
247
+
248
+ /**
249
+ * Method to check if module status is active.
250
+ *
251
+ * @codeCoverageIgnore
252
+ *
253
+ * @since 1.0.0
254
+ * @access public
255
+ * @return bool
256
+ */
257
+ final public function get_is_active() {
258
+ if ( $this->auto == true ) {
259
+ return true;
260
+ }
261
+ return $this->model->get_is_module_active( $this->slug );
262
+ }
263
+
264
+ /**
265
+ * Method to retrieve from model the module status for
266
+ * the provided key.
267
+ *
268
+ * @codeCoverageIgnore
269
+ *
270
+ * @since 1.0.0
271
+ * @access public
272
+ * @param string $key Key to look for.
273
+ * @return bool
274
+ */
275
+ final public function get_status( $key ) {
276
+ return $this->model->get_module_status( $this->slug, $key );
277
+ }
278
+
279
+ /**
280
+ * Method to update in model the module status for
281
+ * the provided key value pair.
282
+ *
283
+ * @codeCoverageIgnore
284
+ *
285
+ * @since 1.0.0
286
+ * @access public
287
+ * @param string $key Key to update.
288
+ * @param string $value The new value.
289
+ * @return mixed
290
+ */
291
+ final public function set_status( $key, $value ) {
292
+ return $this->model->set_module_status( $this->slug, $key, $value );
293
+ }
294
+
295
+ /**
296
+ * Method to retrieve an option value from model.
297
+ *
298
+ * @codeCoverageIgnore
299
+ *
300
+ * @since 1.0.0
301
+ * @access public
302
+ * @param string $key The option key to retrieve.
303
+ * @return bool
304
+ */
305
+ final public function get_option( $key ) {
306
+ $default_options = $this->get_options_defaults();
307
+ $db_option = $this->model->get_module_option( $this->slug, $key );
308
+ $value = $db_option;
309
+ if ( $db_option === false ) {
310
+ $value = $default_options[ $key ];
311
+ }
312
+ return $value;
313
+ }
314
+
315
+ /**
316
+ * Method to update an option key value pair.
317
+ *
318
+ * @codeCoverageIgnore
319
+ *
320
+ * @since 1.0.0
321
+ * @access public
322
+ * @param string $key The key name.
323
+ * @param string $value The new value.
324
+ * @return mixed
325
+ */
326
+ final public function set_option( $key, $value ) {
327
+ return $this->model->set_module_option( $this->slug, $key, $value );
328
+ }
329
+
330
+ /**
331
+ * Method to update a set of options.
332
+ *
333
+ * @codeCoverageIgnore
334
+ *
335
+ * @since 1.0.0
336
+ * @access public
337
+ * @param array $options An associative array of options to be
338
+ * updated. Eg. ( 'key' => 'new_value' ).
339
+ * @return mixed
340
+ */
341
+ final public function set_options( $options ) {
342
+ return $this->model->set_module_options( $this->slug, $options );
343
+ }
344
+
345
+ /**
346
+ * Method to define the default model value for options, based on
347
+ * the options array if not set DB.
348
+ *
349
+ * @codeCoverageIgnore
350
+ *
351
+ * @since 1.0.0
352
+ * @access public
353
+ * @return array
354
+ */
355
+ final public function get_options_defaults() {
356
+ $options = $this->options();
357
+ $defaults = array();
358
+ foreach ( $options as $opt ) {
359
+ if ( ! isset( $opt['default'] ) ) {
360
+ $opt['default'] = '';
361
+ }
362
+ $defaults[ $opt['name'] ] = $opt['default'];
363
+ }
364
+ return $defaults;
365
+ }
366
+
367
+ /**
368
+ * Method to retrieve the options for the module.
369
+ *
370
+ * @codeCoverageIgnore
371
+ *
372
+ * @since 1.0.0
373
+ * @access public
374
+ * @return array
375
+ */
376
+ final public function get_options() {
377
+ $model_options = $this->options();
378
+ $options = array();
379
+ $index = 0;
380
+ foreach ( $model_options as $opt ) {
381
+ $options[ $index ] = $opt;
382
+ $options[ $index ]['value'] = $this->get_option( $opt['name'] );
383
+ $index++;
384
+ }
385
+ return $options;
386
+ }
387
+
388
+ /**
389
+ * Adds the hooks for amdin and public enqueue.
390
+ *
391
+ * @codeCoverageIgnore
392
+ *
393
+ * @since 1.0.0
394
+ * @access public
395
+ * @param string $version The version for the files.
396
+ */
397
+ final public function set_enqueue( $version ) {
398
+ $this->version = $version;
399
+ $this->loader->add_action( 'obfx_admin_enqueue_styles', $this, 'set_admin_styles' );
400
+ $this->loader->add_action( 'obfx_admin_enqueue_scripts', $this, 'set_admin_scripts' );
401
+
402
+ $this->loader->add_action( 'obfx_public_enqueue_styles', $this, 'set_public_styles' );
403
+ $this->loader->add_action( 'obfx_public_enqueue_scripts', $this, 'set_public_scripts' );
404
+ }
405
+
406
+ /**
407
+ * Sets the styles for admin from the module array.
408
+ *
409
+ * @codeCoverageIgnore
410
+ *
411
+ * @since 1.0.0
412
+ * @access public
413
+ */
414
+ public function set_admin_styles() {
415
+ $enqueue = $this->admin_enqueue();
416
+ $module_dir = $this->slug;
417
+ if ( ! empty( $enqueue ) ) {
418
+ if ( isset( $enqueue['css'] ) && ! empty( $enqueue['css'] ) ) {
419
+ $order = 0;
420
+ foreach ( $enqueue['css'] as $file_name => $dependencies ) {
421
+ if ( $dependencies == false ) {
422
+ $dependencies = array();
423
+ }
424
+ $url = filter_var( $file_name, FILTER_SANITIZE_URL );
425
+ $resource = plugin_dir_url( $this->get_dir() ) . $module_dir . '/css/' . $file_name . '.css';
426
+ if ( ! filter_var( $url, FILTER_VALIDATE_URL ) === false ) {
427
+ $resource = $url;
428
+ }
429
+ wp_enqueue_style(
430
+ 'obfx-module-css-' . str_replace( ' ', '-', strtolower( $this->name ) ) . '-' . $order,
431
+ $resource,
432
+ $dependencies,
433
+ $this->version,
434
+ 'all'
435
+ );
436
+ $order++;
437
+ }
438
+ }
439
+ }
440
+ }
441
+
442
+ /**
443
+ * Sets the scripts for admin from the module array.
444
+ *
445
+ * @codeCoverageIgnore
446
+ *
447
+ * @since 1.0.0
448
+ * @access public
449
+ */
450
+ public function set_admin_scripts() {
451
+ $enqueue = $this->admin_enqueue();
452
+ $module_dir = $this->slug;
453
+ if ( ! empty( $enqueue ) ) {
454
+ if ( isset( $enqueue['js'] ) && ! empty( $enqueue['js'] ) ) {
455
+ $order = 0;
456
+ foreach ( $enqueue['js'] as $file_name => $dependencies ) {
457
+ if ( $dependencies == false ) {
458
+ $dependencies = array();
459
+ }
460
+ $url = filter_var( $file_name, FILTER_SANITIZE_URL );
461
+ $resource = plugin_dir_url( $this->get_dir() ) . $module_dir . '/js/' . $file_name . '.js';
462
+ if ( ! filter_var( $url, FILTER_VALIDATE_URL ) === false ) {
463
+ $resource = $url;
464
+ }
465
+ wp_enqueue_script(
466
+ 'obfx-module-js-' . str_replace( ' ', '-', strtolower( $this->name ) ) . '-' . $order,
467
+ $resource,
468
+ $dependencies,
469
+ $this->version,
470
+ false
471
+ );
472
+ $order++;
473
+ }
474
+ }
475
+ }
476
+ }
477
+
478
+ /**
479
+ * Sets the styles for public from the module array.
480
+ *
481
+ * @codeCoverageIgnore
482
+ *
483
+ * @since 1.0.0
484
+ * @access public
485
+ */
486
+ public function set_public_styles() {
487
+ $enqueue = $this->public_enqueue();
488
+ $module_dir = $this->slug;
489
+ if ( ! empty( $enqueue ) ) {
490
+ if ( isset( $enqueue['css'] ) && ! empty( $enqueue['css'] ) ) {
491
+ $order = 0;
492
+ foreach ( $enqueue['css'] as $file_name => $dependencies ) {
493
+ if ( $dependencies == false ) {
494
+ $dependencies = array();
495
+ }
496
+ $url = filter_var( $file_name, FILTER_SANITIZE_URL );
497
+ $resource = plugin_dir_url( $this->get_dir() ) . $module_dir . '/css/' . $file_name . '.css';
498
+ if ( ! filter_var( $url, FILTER_VALIDATE_URL ) === false ) {
499
+ $resource = $url;
500
+ }
501
+ wp_enqueue_style(
502
+ 'obfx-module-pub-css-' . str_replace( ' ', '-', strtolower( $this->name ) ) . '-' . $order,
503
+ $resource,
504
+ $dependencies,
505
+ $this->version,
506
+ 'all'
507
+ );
508
+ $order++;
509
+ }
510
+ }
511
+ }
512
+ }
513
+
514
+ /**
515
+ * Sets the scripts for public from the module array.
516
+ *
517
+ * @codeCoverageIgnore
518
+ *
519
+ * @since 1.0.0
520
+ * @access public
521
+ */
522
+ public function set_public_scripts() {
523
+ $enqueue = $this->public_enqueue();
524
+ $module_dir = $this->slug;
525
+ if ( ! empty( $enqueue ) ) {
526
+ if ( isset( $enqueue['js'] ) && ! empty( $enqueue['js'] ) ) {
527
+ $order = 0;
528
+ foreach ( $enqueue['js'] as $file_name => $dependencies ) {
529
+ if ( $dependencies == false ) {
530
+ $dependencies = array();
531
+ }
532
+ $url = filter_var( $file_name, FILTER_SANITIZE_URL );
533
+ $resource = plugin_dir_url( $this->get_dir() ) . $module_dir . '/js/' . $file_name . '.js';
534
+ if ( ! filter_var( $url, FILTER_VALIDATE_URL ) === false ) {
535
+ $resource = $url;
536
+ }
537
+
538
+ wp_enqueue_script(
539
+ 'obfx-module-pub-js-' . str_replace( ' ', '-', strtolower( $this->name ) ) . '-' . $order,
540
+ $resource,
541
+ $dependencies,
542
+ $this->version,
543
+ false
544
+ );
545
+ $order++;
546
+ }
547
+ }
548
+ }
549
+ }
550
+
551
+ /**
552
+ * Utility method to render a view from module.
553
+ *
554
+ * @codeCoverageIgnore
555
+ *
556
+ * @since 1.0.0
557
+ * @access protected
558
+ * @param string $view_name The view name w/o the `-tpl.php` part.
559
+ * @param array $args An array of arguments to be passed to the view.
560
+ * @return string
561
+ */
562
+ protected function render_view( $view_name, $args = array() ) {
563
+ ob_start();
564
+ $file = $this->get_dir() . '/views/' . $view_name . '-tpl.php';
565
+ if ( ! empty( $args ) ) {
566
+ foreach ( $args as $obfx_rh_name => $obfx_rh_value ) {
567
+ $$obfx_rh_name = $obfx_rh_value;
568
+ }
569
+ }
570
+ if ( file_exists( $file ) ) {
571
+ include $file;
572
+ }
573
+ return ob_get_clean();
574
+ }
575
+ }
core/app/class-orbit-fox-admin.php ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The admin-specific functionality of the plugin.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app
10
+ */
11
+
12
+ /**
13
+ * The admin-specific functionality of the plugin.
14
+ *
15
+ * Defines the plugin name, version, and two examples hooks for how to
16
+ * enqueue the admin-specific stylesheet and JavaScript.
17
+ *
18
+ * @package Orbit_Fox
19
+ * @subpackage Orbit_Fox/app
20
+ * @author Themeisle <friends@themeisle.com>
21
+ */
22
+ class Orbit_Fox_Admin {
23
+
24
+ /**
25
+ * The ID of this plugin.
26
+ *
27
+ * @since 1.0.0
28
+ * @access private
29
+ * @var string $plugin_name The ID of this plugin.
30
+ */
31
+ private $plugin_name;
32
+
33
+ /**
34
+ * The version of this plugin.
35
+ *
36
+ * @since 1.0.0
37
+ * @access private
38
+ * @var string $version The current version of this plugin.
39
+ */
40
+ private $version;
41
+
42
+ /**
43
+ * Initialize the class and set its properties.
44
+ *
45
+ * @since 1.0.0
46
+ * @param string $plugin_name The name of this plugin.
47
+ * @param string $version The version of this plugin.
48
+ */
49
+ public function __construct( $plugin_name, $version ) {
50
+
51
+ $this->plugin_name = $plugin_name;
52
+ $this->version = $version;
53
+
54
+ }
55
+
56
+ /**
57
+ * Register the stylesheets for the admin area.
58
+ *
59
+ * @since 1.0.0
60
+ */
61
+ public function enqueue_styles() {
62
+
63
+ /**
64
+ * This function is provided for demonstration purposes only.
65
+ *
66
+ * An instance of this class should be passed to the run() function
67
+ * defined in Orbit_Fox_Loader as all of the hooks are defined
68
+ * in that particular class.
69
+ *
70
+ * The Orbit_Fox_Loader will then create the relationship
71
+ * between the defined hooks and the functions defined in this
72
+ * class.
73
+ */
74
+
75
+ wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . '../assets/css/orbit-fox-admin.css', array(), $this->version, 'all' );
76
+ do_action( 'obfx_admin_enqueue_styles' );
77
+ }
78
+
79
+ /**
80
+ * Register the JavaScript for the admin area.
81
+ *
82
+ * @since 1.0.0
83
+ */
84
+ public function enqueue_scripts() {
85
+
86
+ /**
87
+ * This function is provided for demonstration purposes only.
88
+ *
89
+ * An instance of this class should be passed to the run() function
90
+ * defined in Orbit_Fox_Loader as all of the hooks are defined
91
+ * in that particular class.
92
+ *
93
+ * The Orbit_Fox_Loader will then create the relationship
94
+ * between the defined hooks and the functions defined in this
95
+ * class.
96
+ */
97
+
98
+ wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . '../assets/js/orbit-fox-admin.js', array( 'jquery' ), $this->version, false );
99
+ do_action( 'obfx_admin_enqueue_scripts' );
100
+ }
101
+
102
+ /**
103
+ * Add admin menu items for orbit-fox.
104
+ *
105
+ * @since 1.0.0
106
+ * @access public
107
+ */
108
+ public function menu_pages() {
109
+ add_management_page(
110
+ __( 'Orbit Fox', 'themeisle-companion' ), __( 'Orbit Fox Companion', 'themeisle-companion' ), 'manage_options', 'obfx_companion',
111
+ array(
112
+ $this,
113
+ 'page_modules_render',
114
+ )
115
+ );
116
+ }
117
+
118
+ /**
119
+ * Calls the orbit_fox_modules hook.
120
+ *
121
+ * @since 1.0.0
122
+ * @access public
123
+ */
124
+ public function load_modules() {
125
+ do_action( 'orbit_fox_modules' );
126
+ }
127
+
128
+ /**
129
+ * A method used for saving module options data
130
+ * and returning a well formatted response as an array.
131
+ *
132
+ * @codeCoverageIgnore
133
+ *
134
+ * @since 1.0.0
135
+ * @access public
136
+ * @param array $data The options data to try and save via the module model.
137
+ * @return array
138
+ */
139
+ public function try_module_save( $data ) {
140
+ $response = array();
141
+ $global_settings = new Orbit_Fox_Global_Settings();
142
+ $modules = $global_settings::$instance->module_objects;
143
+ $response['type'] = 'error';
144
+ $response['message'] = __( 'No module found! No data was updated.', 'themeisle-companion' );
145
+ if ( isset( $modules[ $data['module-slug'] ] ) ) {
146
+ $module = $modules[ $data['module-slug'] ];
147
+ unset( $data['noance'] );
148
+ unset( $data['module-slug'] );
149
+ $response['type'] = 'warning';
150
+ $response['message'] = __( 'Something went wrong, data might not be saved!', 'themeisle-companion' );
151
+ $result = $module->set_options( $data );
152
+ if ( $result ) {
153
+ $response['type'] = 'success';
154
+ $response['message'] = __( 'Options updated, successfully!', 'themeisle-companion' );
155
+ }
156
+ }
157
+ return $response;
158
+ }
159
+
160
+ /**
161
+ * This method is called via AJAX and processes the
162
+ * request for updating module options.
163
+ *
164
+ * @codeCoverageIgnore
165
+ *
166
+ * @since 1.0.0
167
+ * @access public
168
+ */
169
+ public function obfx_update_module_options() {
170
+ $json = stripslashes( str_replace( '&quot;', '"', $_POST['data'] ) );
171
+ $data = json_decode( $json, true );
172
+ $response['type'] = 'error';
173
+ $response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
174
+ if ( isset( $data['noance'] ) && wp_verify_nonce( $data['noance'], 'obfx_update_module_options_' . $data['module-slug'] ) ) {
175
+ $response = $this->try_module_save( $data );
176
+ }
177
+ echo json_encode( $response );
178
+ wp_die();
179
+ }
180
+
181
+ /**
182
+ * A method used for saving module status data
183
+ * and returning a well formatted response as an array.
184
+ *
185
+ * @codeCoverageIgnore
186
+ *
187
+ * @since 1.0.0
188
+ * @access public
189
+ * @param array $data The data to try and update status via the module model.
190
+ * @return array
191
+ */
192
+ public function try_module_activate( $data ) {
193
+ $response = array();
194
+ $global_settings = new Orbit_Fox_Global_Settings();
195
+ $modules = $global_settings::$instance->module_objects;
196
+ $response['type'] = 'error';
197
+ $response['message'] = __( 'No module found!', 'themeisle-companion' );
198
+ if ( isset( $modules[ $data['name'] ] ) ) {
199
+ $module = $modules[ $data['name'] ];
200
+ $response['type'] = 'warning';
201
+ $response['message'] = __( 'Something went wrong, can not change module status!', 'themeisle-companion' );
202
+ $result = $module->set_status( 'active', $data['checked'] );
203
+ if ( $result ) {
204
+ $response['type'] = 'success';
205
+ $response['message'] = __( 'Module status changed!', 'themeisle-companion' );
206
+ }
207
+ }
208
+ return $response;
209
+ }
210
+
211
+ /**
212
+ * This method is called via AJAX and processes the
213
+ * request for updating module options.
214
+ *
215
+ * @codeCoverageIgnore
216
+ *
217
+ * @since 1.0.0
218
+ * @access public
219
+ */
220
+ public function obfx_update_module_active_status() {
221
+ $json = stripslashes( str_replace( '&quot;', '"', $_POST['data'] ) );
222
+ $data = json_decode( $json, true );
223
+ $response['type'] = 'error';
224
+ $response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
225
+ if ( isset( $data['noance'] ) && wp_verify_nonce( $data['noance'], 'obfx_activate_mod_' . $data['name'] ) ) {
226
+ $response = $this->try_module_activate( $data );
227
+ }
228
+ echo json_encode( $response );
229
+ wp_die();
230
+ }
231
+
232
+ /**
233
+ * Method to display modules page.
234
+ *
235
+ * @codeCoverageIgnore
236
+ *
237
+ * @since 1.0.0
238
+ * @access public
239
+ */
240
+ public function page_modules_render() {
241
+ $global_settings = new Orbit_Fox_Global_Settings();
242
+
243
+ $modules = $global_settings::$instance->module_objects;
244
+
245
+ $rdh = new Orbit_Fox_Render_Helper();
246
+ $tiles = '';
247
+ $panels = '';
248
+ $toasts = '';
249
+ $count_modules = 0;
250
+ foreach ( $modules as $slug => $module ) {
251
+ if ( $module->enable_module() ) {
252
+ $notices = $module->get_notices();
253
+ $showed_notices = $module->get_status( 'showed_notices' );
254
+ if ( ! is_array( $showed_notices ) ) {
255
+ $showed_notices = array();
256
+ }
257
+ if ( isset( $showed_notices ) && is_array( $showed_notices ) ) {
258
+ foreach ( $notices as $notice ) {
259
+ $hash = md5( serialize( $notice ) );
260
+ $data = array(
261
+ 'notice' => $notice,
262
+ );
263
+ if ( $notice['display_always'] == false && ! in_array( $hash, $showed_notices ) ) {
264
+ $toasts .= $rdh->get_partial( 'module-toast', $data );
265
+ } elseif ( $notice['display_always'] == true ) {
266
+ $toasts .= $rdh->get_partial( 'module-toast', $data );
267
+ }
268
+ }
269
+ }
270
+
271
+ $module->update_showed_notices();
272
+ if ( $module->auto == false ) {
273
+ $count_modules++;
274
+ $checked = '';
275
+ if ( $module->get_is_active() ) {
276
+ $checked = 'checked';
277
+ }
278
+
279
+ $data = array(
280
+ 'slug' => $slug,
281
+ 'name' => $module->name,
282
+ 'description' => $module->description,
283
+ 'checked' => $checked,
284
+ );
285
+ $tiles .= $rdh->get_partial( 'module-tile', $data );
286
+ $tiles .= '<div class="divider"></div>';
287
+ }
288
+
289
+ $module_options = $module->get_options();
290
+ $options_fields = '';
291
+ if ( ! empty( $module_options ) ) {
292
+ foreach ( $module_options as $option ) {
293
+ $options_fields .= $rdh->render_option( $option );
294
+ }
295
+
296
+ $panels .= $rdh->get_partial(
297
+ 'module-panel',
298
+ array(
299
+ 'slug' => $slug,
300
+ 'name' => $module->name,
301
+ 'active' => $module->get_is_active(),
302
+ 'description' => $module->description,
303
+ 'options_fields' => $options_fields,
304
+ )
305
+ );
306
+ }
307
+ }// End if().
308
+ }// End foreach().
309
+
310
+ $no_modules = false;
311
+ $empty_tpl = '';
312
+ if ( $count_modules == 0 ) {
313
+ $no_modules = true;
314
+ $empty_tpl = $rdh->get_partial(
315
+ 'empty',
316
+ array(
317
+ 'title' => __( 'No modules found.', 'themeisle-companion' ),
318
+ 'sub_title' => __( 'Please contact support for more help.', 'themeisle-companion' ),
319
+ 'show_btn' => true,
320
+ )
321
+ );
322
+ $panels = $rdh->get_partial(
323
+ 'empty',
324
+ array(
325
+ 'title' => __( 'No active modules.', 'themeisle-companion' ),
326
+ 'sub_title' => __( 'Activate a module using the toggles above.', 'themeisle-companion' ),
327
+ 'show_btn' => false,
328
+ )
329
+ );
330
+ }
331
+
332
+ $data = array(
333
+ 'no_modules' => $no_modules,
334
+ 'empty_tpl' => $empty_tpl,
335
+ 'count_modules' => $count_modules,
336
+ 'tiles' => $tiles,
337
+ 'toasts' => $toasts,
338
+ 'panels' => $panels,
339
+ );
340
+ $output = $rdh->get_view( 'modules', $data );
341
+ echo $output;
342
+ }
343
+
344
+ }
core/app/class-orbit-fox-global-settings.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The global settings of the plugin.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app
10
+ */
11
+
12
+ /**
13
+ * The global settings of the plugin.
14
+ *
15
+ * Defines the plugin global settings instance and modules.
16
+ *
17
+ * @package Orbit_Fox
18
+ * @subpackage Orbit_Fox/app
19
+ * @author Themeisle <friends@themeisle.com>
20
+ */
21
+ class Orbit_Fox_Global_Settings {
22
+
23
+ /**
24
+ * The main instance var.
25
+ *
26
+ * @since 1.0.0
27
+ * @access public
28
+ * @var Orbit_Fox_Global_Settings $instance The istance of this class.
29
+ */
30
+ public static $instance;
31
+
32
+ /**
33
+ * Stores the default modules data.
34
+ *
35
+ * @since 1.0.0
36
+ * @access public
37
+ * @var array $modules Modules List.
38
+ */
39
+ public $modules = array();
40
+
41
+ /**
42
+ * Stores an array of module objects.
43
+ *
44
+ * @since 1.0.0
45
+ * @access public
46
+ * @var array $module_objects Stores references to modules Objects.
47
+ */
48
+ public $module_objects = array();
49
+
50
+ /**
51
+ * The instance method for the static class.
52
+ * Defines and returns the instance of the static class.
53
+ *
54
+ * @since 1.0.0
55
+ * @access public
56
+ * @return Orbit_Fox_Global_Settings
57
+ */
58
+ public static function instance() {
59
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Orbit_Fox_Global_Settings ) ) {
60
+ self::$instance = new Orbit_Fox_Global_Settings;
61
+ self::$instance->modules = apply_filters(
62
+ 'obfx_modules',
63
+ array(
64
+ 'stats',
65
+ 'social-sharing',
66
+ 'companion-legacy',
67
+ )
68
+ );
69
+ }// End if().
70
+
71
+ return self::$instance;
72
+ }
73
+
74
+ /**
75
+ * Registers a module object reference in the $module_objects array.
76
+ *
77
+ * @since 1.0.0
78
+ * @access public
79
+ * @param string $name The name of the module from $modules array.
80
+ * @param Orbit_Fox_Module_Abstract $module The module object.
81
+ */
82
+ public function register_module_reference( $name, Orbit_Fox_Module_Abstract $module ) {
83
+ self::$instance->module_objects[ $name ] = $module;
84
+ }
85
+
86
+ /**
87
+ * Method to retrieve instance of modules.
88
+ *
89
+ * @since 1.0.0
90
+ * @access public
91
+ * @return array
92
+ */
93
+ public function get_modules() {
94
+ return self::instance()->modules;
95
+ }
96
+
97
+ /**
98
+ * Method to destroy singleton.
99
+ *
100
+ * @since 1.0.0
101
+ * @access public
102
+ */
103
+ public static function distroy_instance() {
104
+ static::$instance = null;
105
+ }
106
+ }
core/app/class-orbit-fox-module-factory.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The factory logic for creating modules for plugin.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app
10
+ */
11
+
12
+ /**
13
+ * The class responsible for instantiating new OBFX_Module classes.
14
+ *
15
+ * @package Orbit_Fox
16
+ * @subpackage Orbit_Fox/app
17
+ * @author Themeisle <friends@themeisle.com>
18
+ */
19
+ class Orbit_Fox_Module_Factory {
20
+
21
+ /**
22
+ * The build method for creating a new OBFX_Module class.
23
+ *
24
+ * @since 1.0.0
25
+ * @access public
26
+ * @param string $module_name The name of the module to instantiate.
27
+ * @return mixed
28
+ * @throws Exception Thrown if no module class exists for provided $module_name.
29
+ */
30
+ public static function build( $module_name ) {
31
+ $module = str_replace( '-','_', ucwords( $module_name ) ) . '_OBFX_Module';
32
+ if ( class_exists( $module ) ) {
33
+ return new $module;
34
+ }
35
+ // @codeCoverageIgnoreStart
36
+ throw new Exception( 'Invalid module name given.' );
37
+ // @codeCoverageIgnoreEnd
38
+ }
39
+ }
core/app/class-orbit-fox-public.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The public-specific functionality of the plugin.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app
10
+ */
11
+
12
+ /**
13
+ * The public-specific functionality of the plugin.
14
+ *
15
+ * Defines the plugin name, version, and two examples hooks for how to
16
+ * enqueue the public-specific stylesheet and JavaScript.
17
+ *
18
+ * @package Orbit_Fox
19
+ * @subpackage Orbit_Fox/app
20
+ * @author Themeisle <friends@themeisle.com>
21
+ */
22
+ class Orbit_Fox_Public {
23
+
24
+ /**
25
+ * The ID of this plugin.
26
+ *
27
+ * @since 1.0.0
28
+ * @access private
29
+ * @var string $plugin_name The ID of this plugin.
30
+ */
31
+ private $plugin_name;
32
+
33
+ /**
34
+ * The version of this plugin.
35
+ *
36
+ * @since 1.0.0
37
+ * @access private
38
+ * @var string $version The current version of this plugin.
39
+ */
40
+ private $version;
41
+
42
+ /**
43
+ * Initialize the class and set its properties.
44
+ *
45
+ * @since 1.0.0
46
+ * @param string $plugin_name The name of this plugin.
47
+ * @param string $version The version of this plugin.
48
+ */
49
+ public function __construct( $plugin_name, $version ) {
50
+
51
+ $this->plugin_name = $plugin_name;
52
+ $this->version = $version;
53
+
54
+ }
55
+
56
+ /**
57
+ * Register the stylesheets for the admin area.
58
+ *
59
+ * @since 1.0.0
60
+ */
61
+ public function enqueue_styles() {
62
+
63
+ /**
64
+ * This function is provided for demonstration purposes only.
65
+ *
66
+ * An instance of this class should be passed to the run() function
67
+ * defined in Orbit_Fox_Loader as all of the hooks are defined
68
+ * in that particular class.
69
+ *
70
+ * The Orbit_Fox_Loader will then create the relationship
71
+ * between the defined hooks and the functions defined in this
72
+ * class.
73
+ */
74
+ do_action( 'obfx_public_enqueue_styles' );
75
+ }
76
+
77
+ /**
78
+ * Register the JavaScript for the public area.
79
+ *
80
+ * @since 1.0.0
81
+ */
82
+ public function enqueue_scripts() {
83
+
84
+ /**
85
+ * This function is provided for demonstration purposes only.
86
+ *
87
+ * An instance of this class should be passed to the run() function
88
+ * defined in Orbit_Fox_Loader as all of the hooks are defined
89
+ * in that particular class.
90
+ *
91
+ * The Orbit_Fox_Loader will then create the relationship
92
+ * between the defined hooks and the functions defined in this
93
+ * class.
94
+ */
95
+ do_action( 'obfx_public_enqueue_scripts' );
96
+ }
97
+ }
core/app/helpers/class-orbit-fox-render-helper.php ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Helper Class for content rendering.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app/helpers
10
+ */
11
+
12
+ /**
13
+ * The class that contains utility methods to render partials, views or elements.
14
+ *
15
+ * @package Orbit_Fox
16
+ * @subpackage Orbit_Fox/app/helpers
17
+ * @author Themeisle <friends@themeisle.com>
18
+ */
19
+ class Orbit_Fox_Render_Helper {
20
+
21
+ /**
22
+ * Get a partial template and return the output.
23
+ *
24
+ * @since 1.0.0
25
+ * @access public
26
+ * @param string $name The name of the partial w/o '-tpl.php'.
27
+ * @param array $args Optional. An associative array with name and value to be
28
+ * passed to the partial.
29
+ * @return string
30
+ */
31
+ public function get_partial( $name = '', $args = array() ) {
32
+ ob_start();
33
+ $file = OBX_PATH . '/core/app/views/partials/' . $name . '-tpl.php';
34
+ if ( ! empty( $args ) ) {
35
+ foreach ( $args as $obfx_rh_name => $obfx_rh_value ) {
36
+ $$obfx_rh_name = $obfx_rh_value;
37
+ }
38
+ }
39
+ if ( file_exists( $file ) ) {
40
+ include $file;
41
+ }
42
+ return ob_get_clean();
43
+ }
44
+
45
+ /**
46
+ * Get a view template and return the output.
47
+ *
48
+ * @since 1.0.0
49
+ * @access public
50
+ * @param string $name The name of the partial w/o '-page.php'.
51
+ * @param array $args Optional. An associative array with name and value to be
52
+ * passed to the view.
53
+ * @return string
54
+ */
55
+ public function get_view( $name = '', $args = array() ) {
56
+ ob_start();
57
+ $file = OBX_PATH . '/core/app/views/' . $name . '-page.php';
58
+ if ( ! empty( $args ) ) {
59
+ foreach ( $args as $obfx_rh_name => $obfx_rh_value ) {
60
+ $$obfx_rh_name = $obfx_rh_value;
61
+ }
62
+ }
63
+ if ( file_exists( $file ) ) {
64
+ include $file;
65
+ }
66
+ return ob_get_clean();
67
+ }
68
+
69
+ /**
70
+ * Merges specific defaults with general ones.
71
+ *
72
+ * @since 1.0.0
73
+ * @access private
74
+ * @param array $option The specific defaults array.
75
+ * @return array
76
+ */
77
+ private function sanitize_option( $option ) {
78
+ $general_defaults = array(
79
+ 'id' => null,
80
+ 'class' => null,
81
+ 'name' => null,
82
+ 'label' => 'Module Text Label',
83
+ 'title' => false,
84
+ 'description' => false,
85
+ 'type' => null,
86
+ 'value' => '',
87
+ 'default' => '',
88
+ 'placeholder' => 'Add some text',
89
+ 'disabled' => false,
90
+ 'options' => array(),
91
+ );
92
+
93
+ return wp_parse_args( $option, $general_defaults );
94
+ }
95
+
96
+ /**
97
+ * Method to set field value.
98
+ *
99
+ * @since 1.0.0
100
+ * @access private
101
+ * @param array $option The option from the module.
102
+ * @return mixed
103
+ */
104
+ private function set_field_value( $option = array() ) {
105
+ $field_value = $option['default'];
106
+ if ( isset( $option['value'] ) && $option['value'] != '' ) {
107
+ $field_value = $option['value'];
108
+ }
109
+ return $field_value;
110
+ }
111
+
112
+ /**
113
+ * Method to return a title for element if needed.
114
+ *
115
+ * @since 1.0.0
116
+ * @access private
117
+ * @param string $element_id The option id field.
118
+ * @param string $title The option title field.
119
+ * @return string
120
+ */
121
+ private function get_title( $element_id, $title ) {
122
+ $display_title = '';
123
+ if ( $title ) {
124
+ $display_title = '<label class="form-label" for="' . $element_id . '">' . $title . '</label>';
125
+ }
126
+ return $display_title;
127
+ }
128
+
129
+ /**
130
+ * Method to return a description for element if needed.
131
+ *
132
+ * @since 1.0.0
133
+ * @access private
134
+ * @param string $description The option description field.
135
+ * @return string
136
+ */
137
+ private function get_description( $description ) {
138
+ $display_description = '';
139
+ if ( $description ) {
140
+ $display_description = '<p><small>' . $description . '</small></p>';
141
+ }
142
+ return $display_description;
143
+ }
144
+
145
+ /**
146
+ * Utility method to wrap an element with proper blocks.
147
+ *
148
+ * @since 1.0.0
149
+ * @access private
150
+ * @param array $option The option array.
151
+ * @param string $element The element we want to wrap.
152
+ * @return string
153
+ */
154
+ private function wrap_element( $option, $element ) {
155
+ $title = $this->get_title( $option['id'], $option['title'] );
156
+ $description = $this->get_description( $option['description'] );
157
+
158
+ $before_wrap = '';
159
+ if ( isset( $option['before_wrap'] ) ) {
160
+ $before_wrap = wp_kses_post( $option['before_wrap'] ); // @codeCoverageIgnore
161
+ }
162
+
163
+ $after_wrap = '';
164
+ if ( isset( $option['after_wrap'] ) ) {
165
+ $after_wrap = wp_kses_post( $option['after_wrap'] ); // @codeCoverageIgnore
166
+ }
167
+
168
+ return '
169
+ ' . $before_wrap . '
170
+ <div class="form-group ' . $option['class'] . '">
171
+ ' . $title . '
172
+ ' . $element . '
173
+ ' . $description . '
174
+ </div>
175
+ ' . $after_wrap . '
176
+ ';
177
+ }
178
+
179
+ /**
180
+ * DRY method to generate checkbox or radio field types
181
+ *
182
+ * @since 1.0.0
183
+ * @access private
184
+ * @param string $type The field type ( checkbox | radio ).
185
+ * @param string $field_value The field value.
186
+ * @param string $checked The checked flag.
187
+ * @param string $label The option label.
188
+ * @param array $option The option from the module.
189
+ * @return string
190
+ */
191
+ private function generate_check_type( $type = 'radio', $field_value, $checked, $label, $option = array() ) {
192
+ return '
193
+ <label class="form-' . $type . ' ' . $option['class'] . '">
194
+ <input type="' . $type . '" name="' . $option['name'] . '" value="' . $field_value . '" ' . $checked . ' />
195
+ <i class="form-icon"></i> ' . $label . '
196
+ </label>
197
+ ';
198
+ }
199
+
200
+ /**
201
+ * Render an input text field.
202
+ *
203
+ * @since 1.0.0
204
+ * @access private
205
+ * @param array $option The option from the module.
206
+ * @return mixed
207
+ */
208
+ private function field_text( $option = array() ) {
209
+ $field_value = $this->set_field_value( $option );
210
+ $field = '<input class="form-input ' . $option['class'] . '" type="text" id="' . $option['id'] . '" name="' . $option['name'] . '" placeholder="' . $option['placeholder'] . '" value="' . $field_value . '">';
211
+ $field = $this->wrap_element( $option, $field );
212
+
213
+ return $field;
214
+ }
215
+
216
+ /**
217
+ * Render a textarea field.
218
+ *
219
+ * @since 1.0.0
220
+ * @access private
221
+ * @param array $option The option from the module.
222
+ * @return mixed
223
+ */
224
+ private function field_textarea( $option = array() ) {
225
+ $field_value = $this->set_field_value( $option );
226
+ $field = '<textarea class="form-input ' . $option['class'] . '" id="' . $option['id'] . '" name="' . $option['name'] . '" placeholder="' . $option['placeholder'] . '" rows="3">' . $field_value . '</textarea>';
227
+ $field = $this->wrap_element( $option, $field );
228
+
229
+ return $field;
230
+ }
231
+
232
+ /**
233
+ * Render a select field.
234
+ *
235
+ * @since 1.0.0
236
+ * @access private
237
+ * @param array $option The option from the module.
238
+ * @return mixed
239
+ */
240
+ private function field_select( $option = array() ) {
241
+ $field_value = $this->set_field_value( $option );
242
+ $select_options = '';
243
+ foreach ( $option['options'] as $value => $label ) {
244
+ $is_selected = '';
245
+ if ( $field_value == $value ) {
246
+ $is_selected = 'selected';
247
+ }
248
+ $select_options .= '<option value="' . $value . '" ' . $is_selected . '>' . $label . '</option>';
249
+ }
250
+ $field = '
251
+ <select class="form-select ' . $option['class'] . '" id="' . $option['id'] . '" name="' . $option['name'] . '" placeholder="' . $option['placeholder'] . '">
252
+ ' . $select_options . '
253
+ </select>';
254
+ $field = $this->wrap_element( $option, $field );
255
+
256
+ return $field;
257
+ }
258
+
259
+ /**
260
+ * Render a radio field.
261
+ *
262
+ * @since 1.0.0
263
+ * @access private
264
+ * @param array $option The option from the module.
265
+ * @return mixed
266
+ */
267
+ private function field_radio( $option = array() ) {
268
+ $field_value = $this->set_field_value( $option );
269
+ $select_options = '';
270
+ foreach ( $option['options'] as $value => $label ) {
271
+ $checked = '';
272
+ if ( $value == $field_value ) {
273
+ $checked = 'checked';
274
+ }
275
+ $select_options .= $this->generate_check_type( 'radio', $value, $checked, $label, $option );
276
+ }
277
+ $field = $this->wrap_element( $option, $select_options );
278
+
279
+ return $field;
280
+ }
281
+
282
+ /**
283
+ * Render a checkbox field.
284
+ *
285
+ * @since 1.0.0
286
+ * @access private
287
+ * @param array $option The option from the module.
288
+ * @return mixed
289
+ */
290
+ private function field_checkbox( $option = array() ) {
291
+ $field_value = $this->set_field_value( $option );
292
+ $checked = '';
293
+ if ( $field_value ) {
294
+ $checked = 'checked';
295
+ }
296
+ $select_options = $this->generate_check_type( 'checkbox', 1, $checked, $option['label'], $option );
297
+ $field = $this->wrap_element( $option, $select_options );
298
+
299
+ return $field;
300
+ }
301
+
302
+ /**
303
+ * Render a toggle field.
304
+ *
305
+ * @since 1.0.0
306
+ * @access private
307
+ * @param array $option The option from the module.
308
+ * @return mixed
309
+ */
310
+ private function field_toggle( $option = array() ) {
311
+ $field_value = $this->set_field_value( $option );
312
+ $checked = '';
313
+ if ( $field_value ) {
314
+ $checked = 'checked';
315
+ }
316
+ $field = '
317
+ <label class="form-switch ' . $option['class'] . '">
318
+ <input type="checkbox" name="' . $option['name'] . '" value="1" ' . $checked . ' />
319
+ <i class="form-icon"></i> ' . $option['label'] . '
320
+ </label>';
321
+ $field = $this->wrap_element( $option, $field );
322
+
323
+ return $field;
324
+ }
325
+
326
+ /**
327
+ * Method to render option to a field.
328
+ *
329
+ * @since 1.0.0
330
+ * @access public
331
+ * @param array $option The option from the module.
332
+ * @return mixed
333
+ */
334
+ public function render_option( $option = array() ) {
335
+ $option = $this->sanitize_option( $option );
336
+ switch ( $option['type'] ) {
337
+ case 'text':
338
+ return $this->field_text( $option );
339
+ break;
340
+ case 'textarea':
341
+ return $this->field_textarea( $option );
342
+ break;
343
+ case 'select':
344
+ return $this->field_select( $option );
345
+ break;
346
+ case 'radio':
347
+ return $this->field_radio( $option );
348
+ break;
349
+ case 'checkbox':
350
+ return $this->field_checkbox( $option );
351
+ break;
352
+ case 'toggle':
353
+ return $this->field_toggle( $option );
354
+ break;
355
+ default:
356
+ return __( 'No option found for provided type', 'themeisle-companion' );
357
+ break;
358
+ }
359
+ }
360
+
361
+
362
+ }
core/app/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
core/app/models/class-orbit-fox-model.php ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The core model class for Orbit Fox.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app/models
10
+ */
11
+
12
+ /**
13
+ * The class that defines a model for interacting with data.
14
+ * Provides utility methods for saving and retrieving data.
15
+ *
16
+ * @package Orbit_Fox
17
+ * @subpackage Orbit_Fox/app/models
18
+ * @author Themeisle <friends@themeisle.com>
19
+ */
20
+ class Orbit_Fox_Model {
21
+
22
+ /**
23
+ * The model namespace.
24
+ *
25
+ * @since 1.0.0
26
+ * @access private
27
+ * @var string $namespace The model namespace.
28
+ */
29
+ private $namespace = 'obfx_data';
30
+
31
+ /**
32
+ * Holds the core settings.
33
+ *
34
+ * @since 1.0.0
35
+ * @access private
36
+ * @var array $core_settings Stores the core settings.
37
+ */
38
+ private $core_settings;
39
+
40
+ /**
41
+ * Holds all enabled modules statuses.
42
+ *
43
+ * @since 1.0.0
44
+ * @access private
45
+ * @var array $module_status Stores the modules statuses.
46
+ */
47
+ private $module_status;
48
+
49
+ /**
50
+ * Holds all enabled modules options.
51
+ *
52
+ * @since 1.0.0
53
+ * @access private
54
+ * @var array $module_settings Stores the modules options.
55
+ */
56
+ private $module_settings;
57
+
58
+ /**
59
+ * Orbit_Fox_Model constructor.
60
+ *
61
+ * @since 1.0.0
62
+ * @access public
63
+ */
64
+ public function __construct() {
65
+ $this->core_settings = array();
66
+ }
67
+
68
+ /**
69
+ * Defines the modules data.
70
+ *
71
+ * @since 1.0.0
72
+ * @access public
73
+ * @param array $modules The modules array passed by Orbit_Fox.
74
+ */
75
+ public function register_modules_data( $modules = array() ) {
76
+ $module_status = array();
77
+ $module_settings = array();
78
+ if ( ! empty( $modules ) ) {
79
+ foreach ( $modules as $slug => $module ) {
80
+ $is_enabled = $module->enable_module();
81
+ $is_auto = $module->auto;
82
+ $active = false;
83
+ $showed_notices = array();
84
+
85
+ $module_status[ $slug ] = array(
86
+ 'enabled' => $is_enabled,
87
+ 'autoload' => $is_auto,
88
+ 'showed_notices' => $showed_notices,
89
+ 'active' => $active,
90
+ );
91
+
92
+ $module_settings[ $slug ] = $module->get_options_defaults();
93
+ }
94
+ }
95
+
96
+ $this->module_status = $module_status;
97
+ $this->module_settings = $module_settings;
98
+
99
+ }
100
+
101
+ /**
102
+ * Defines a default data array.
103
+ *
104
+ * @since 1.0.0
105
+ * @access public
106
+ * @return array
107
+ */
108
+ public function default_data() {
109
+ $data = array(
110
+ 'core_settings' => $this->core_settings,
111
+ 'module_status' => $this->module_status,
112
+ 'module_settings' => $this->module_settings,
113
+ );
114
+
115
+ return $data;
116
+ }
117
+
118
+ /**
119
+ * Utility method to return the active status of a module.
120
+ *
121
+ * @since 1.0.0
122
+ * @access public
123
+ * @param string $slug The module slug.
124
+ * @return bool
125
+ */
126
+ public function get_is_module_active( $slug ) {
127
+ $data = $this->get();
128
+ if ( isset( $data['module_status'][ $slug ]['active'] ) ) {
129
+ return $data['module_status'][ $slug ]['active'];
130
+ }
131
+ return false; // @codeCoverageIgnore
132
+ }
133
+
134
+ /**
135
+ * Utility method to retrieve a module option.
136
+ *
137
+ * @since 1.0.0
138
+ * @access public
139
+ * @param string $slug The module slug.
140
+ * @param string $key Key to lookup.
141
+ * @return bool
142
+ */
143
+ public function get_module_option( $slug, $key ) {
144
+ $data = $this->get();
145
+ if ( isset( $data['module_settings'][ $slug ][ $key ] ) ) {
146
+ return $data['module_settings'][ $slug ][ $key ];
147
+ }
148
+ return false; // @codeCoverageIgnore
149
+ }
150
+
151
+ /**
152
+ * Utility method to set a module option.
153
+ *
154
+ * @since 1.0.0
155
+ * @access public
156
+ * @param string $slug The module slug.
157
+ * @param string $key Key to lookup.
158
+ * @param mixed $value The new value.
159
+ * @return mixed
160
+ */
161
+ public function set_module_option( $slug, $key, $value ) {
162
+ $new = array();
163
+ $new['module_settings'][ $slug ][ $key ] = $value;
164
+ return $this->save( $new );
165
+ }
166
+
167
+ /**
168
+ * Utility method to set batch module options.
169
+ *
170
+ * @since 1.0.0
171
+ * @access public
172
+ * @param string $slug The module slug.
173
+ * @param array $options The associative options array.
174
+ * @return mixed
175
+ */
176
+ public function set_module_options( $slug, $options = array() ) {
177
+ $new['module_settings'][ $slug ] = $options;
178
+ return $this->save( $new );
179
+ }
180
+
181
+ /**
182
+ * Utility method to get a module status value.
183
+ *
184
+ * @since 1.0.0
185
+ * @access public
186
+ * @param string $slug The module slug.
187
+ * @param string $key Key to lookup.
188
+ * @return bool
189
+ */
190
+ public function get_module_status( $slug, $key ) {
191
+ $data = $this->get();
192
+ if ( isset( $data['module_status'][ $slug ][ $key ] ) ) {
193
+ return $data['module_status'][ $slug ][ $key ];
194
+ }
195
+ return false; // @codeCoverageIgnore
196
+ }
197
+
198
+ /**
199
+ * Utility method to set a module status.
200
+ *
201
+ * @since 1.0.0
202
+ * @access public
203
+ * @param string $slug The module slug.
204
+ * @param string $key Key to lookup.
205
+ * @param mixed $value The new value.
206
+ * @return mixed
207
+ */
208
+ public function set_module_status( $slug, $key, $value ) {
209
+ $new = array();
210
+ $new['module_status'][ $slug ][ $key ] = $value;
211
+ return $this->save( $new );
212
+ }
213
+
214
+ /**
215
+ * Base model method to save data to DB.
216
+ *
217
+ * @since 1.0.0
218
+ * @access public
219
+ * @param array $new The new data array to be saved.
220
+ * @return mixed
221
+ */
222
+ public function save( $new = array() ) {
223
+ $old_data = $this->get();
224
+ $new_data = array_replace_recursive( $old_data, $new );
225
+ return update_option( $this->namespace, $new_data );
226
+ }
227
+
228
+ /**
229
+ * Base model method to retrieve data from DB.
230
+ *
231
+ * @since 1.0.0
232
+ * @access public
233
+ * @return mixed
234
+ */
235
+ public function get() {
236
+ return get_option( $this->namespace, $this->default_data() );
237
+ }
238
+
239
+ /**
240
+ * Method used for resetting model and clearing the DB.
241
+ *
242
+ * @since 1.0.0
243
+ * @access public
244
+ * @return mixed
245
+ */
246
+ public function distroy_model() {
247
+ return delete_option( $this->namespace );
248
+ }
249
+ }
core/app/views/modules-page.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The View Page for Orbit Fox Modules.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/app/views
10
+ * @codeCoverageIgnore
11
+ */
12
+
13
+ if ( ! isset( $no_modules ) ) {
14
+ $no_modules = true;
15
+ }
16
+
17
+ if ( ! isset( $empty_tpl ) ) {
18
+ $empty_tpl = '';
19
+ }
20
+
21
+ if ( ! isset( $count_modules ) ) {
22
+ $count_modules = 0;
23
+ }
24
+
25
+ if ( ! isset( $tiles ) ) {
26
+ $tiles = '';
27
+ }
28
+
29
+ if ( ! isset( $toasts ) ) {
30
+ $toasts = '';
31
+ }
32
+
33
+ if ( ! isset( $panels ) ) {
34
+ $panels = '';
35
+ }
36
+ ?>
37
+ <div class="obfx-wrapper obfx-header">
38
+ <div class="obfx-header-content">
39
+ <img src="<?php echo OBFX_URL; ?>/images/orbit-fox.png" title="Orbit Fox" class="obfx-logo"/>
40
+ <h1><?php echo __( 'Orbit Fox Companion', 'themeisle-companion' ); ?></h1><span class="powered"> by <a
41
+ href="https://themeisle.com" target="_blank"><b>ThemeIsle</b></a></span>
42
+ </div>
43
+ </div>
44
+ <div id="obfx-wrapper" style="padding: 0; margin-top: 10px; margin-bottom: 5px;">
45
+ <?php
46
+ echo $toasts;
47
+ ?>
48
+ </div>
49
+ <div class="obfx-wrapper" id="obfx-modules-wrapper">
50
+ <?php
51
+ if ( $no_modules ) {
52
+ echo $empty_tpl;
53
+ } else {
54
+ ?>
55
+ <div class="panel">
56
+ <div class="panel-header text-center">
57
+ <div class="panel-title mt-10"><?php echo __( 'Available Modules', 'themeisle-companion' ); ?></div>
58
+ </div>
59
+ <div class="panel-body">
60
+ <?php echo $tiles; ?>
61
+ </div>
62
+ <div class="panel-footer">
63
+ <!-- buttons or inputs -->
64
+ </div>
65
+ </div>
66
+ <div class="panel">
67
+ <div class="panel-header text-center">
68
+ <div class="panel-title mt-10"><?php echo __( 'Activated Modules Options', 'themeisle-companion' ); ?></div>
69
+ </div>
70
+ <?php echo ( $panels == '' ) ? '<p class="text-center">' . __( 'No modules activated.', 'themeisle-companion' ) . '</p>' : $panels; ?>
71
+ </div>
72
+ <?php
73
+ }
74
+ ?>
75
+ </div>
core/app/views/partials/empty-tpl.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Empty modules template.
4
+ * Imported via the Orbit_Fox_Render_Helper.
5
+ *
6
+ * @link https://themeisle.com
7
+ * @since 1.0.0
8
+ *
9
+ * @package Orbit_Fox
10
+ * @subpackage Orbit_Fox/app/views/partials
11
+ */
12
+
13
+ if ( ! isset( $title ) ) {
14
+ $title = __( 'There are no modules for the Fox!', 'themeisle-companion' );
15
+ }
16
+
17
+ if ( ! isset( $btn_text ) ) {
18
+ $btn_text = __( 'Contact support', 'themeisle-companion' );
19
+ }
20
+
21
+ if ( ! isset( $show_btn ) ) {
22
+ $show_btn = true;
23
+ }
24
+
25
+ ?>
26
+ <div class="empty">
27
+ <div class="empty-icon">
28
+ <i class="dashicons dashicons-warning" style="width: 48px; height: 48px; font-size: 48px; "></i>
29
+ </div>
30
+ <h4 class="empty-title"><?php echo $title; ?></h4>
31
+ <?php echo ( isset( $sub_title ) ) ? '<p class="empty-subtitle">' . $sub_title . '</p>' : ''; ?>
32
+ <?php
33
+ if ( $show_btn ) {
34
+ ?>
35
+ <div class="empty-action">
36
+ <button class="btn btn-primary"><?php echo $btn_text; ?></button>
37
+ </div>
38
+ <?php
39
+ }
40
+ ?>
41
+ </div>
core/app/views/partials/module-panel-tpl.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Panel modules template.
4
+ * Imported via the Orbit_Fox_Render_Helper.
5
+ *
6
+ * @link https://themeisle.com
7
+ * @since 1.0.0
8
+ *
9
+ * @package Orbit_Fox
10
+ * @subpackage Orbit_Fox/app/views/partials
11
+ */
12
+
13
+ if ( ! isset( $slug ) ) {
14
+ $slug = '';
15
+ }
16
+ $noance = wp_create_nonce( 'obfx_update_module_options_' . $slug );
17
+
18
+ if ( ! isset( $active ) ) {
19
+ $active = false;
20
+ }
21
+
22
+ if ( ! isset( $name ) ) {
23
+ $name = __( 'The Module Name', 'themeisle-companion' );
24
+ }
25
+
26
+ if ( ! isset( $description ) ) {
27
+ $description = __( 'The Module Description ...', 'themeisle-companion' );
28
+ }
29
+
30
+ if ( ! isset( $options_fields ) ) {
31
+ $options_fields = __( 'No options provided.', 'themeisle-companion' );
32
+ }
33
+
34
+ $display = '';
35
+ $disabled_fields = '';
36
+ if ( ! $active ) {
37
+ $display = 'style="display: none;"';
38
+ $disabled_fields = 'disabled';
39
+ }
40
+ ?>
41
+ <div id="obfx-mod-<?php echo $slug; ?>" class="panel options" <?php echo $display; ?>>
42
+ <div class="panel-header">
43
+ <button class="btn btn-action circle btn-expand" style="float: right; margin-right: 10px;">
44
+ <i class="dashicons dashicons-arrow-down-alt2"></i>
45
+ </button>
46
+ <div class="panel-title"><?php echo $name; ?></div>
47
+ <div class="panel-subtitle"><?php echo $description; ?></div>
48
+ <div class="obfx-mod-toast toast" style="display: none;">
49
+ <button class="obfx-toast-dismiss btn btn-clear float-right"></button>
50
+ <span>Mock text for Toast Element</span>
51
+ </div>
52
+ </div>
53
+ <form id="obfx-module-form-<?php echo $slug; ?>" class="obfx-module-form">
54
+ <fieldset <?php echo $disabled_fields; ?> >
55
+ <input type="hidden" name="module-slug" value="<?php echo $slug; ?>">
56
+ <input type="hidden" name="noance" value="<?php echo $noance; ?>">
57
+ <div class="panel-body">
58
+ <?php echo $options_fields; ?>
59
+ <div class="divider"></div>
60
+ </div>
61
+ <div class="panel-footer text-right">
62
+ <button class="btn obfx-mod-btn-cancel" disabled>Cancel</button>
63
+ <button class="btn btn-primary obfx-mod-btn-save" disabled>Save</button>
64
+ </div>
65
+ </fieldset>
66
+ </form>
67
+ </div>
core/app/views/partials/module-tile-tpl.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Tile modules template.
4
+ * Imported via the Orbit_Fox_Render_Helper.
5
+ *
6
+ * @link https://themeisle.com
7
+ * @since 1.0.0
8
+ *
9
+ * @package Orbit_Fox
10
+ * @subpackage Orbit_Fox/app/views/partials
11
+ */
12
+
13
+ if ( ! isset( $name ) ) {
14
+ $name = __( 'Module Name', 'themeisle-companion' );
15
+ }
16
+
17
+ if ( ! isset( $description ) ) {
18
+ $description = __( 'Module Description ...', 'themeisle-companion' );
19
+ }
20
+
21
+ if ( ! isset( $checked ) ) {
22
+ $checked = '';
23
+ }
24
+
25
+ $noance = wp_create_nonce( 'obfx_activate_mod_' . $slug );
26
+
27
+ ?>
28
+ <div class="tile">
29
+ <div class="tile-icon">
30
+ <div class="example-tile-icon">
31
+ <i class="dashicons dashicons-admin-plugins centered"></i>
32
+ </div>
33
+ </div>
34
+ <div class="tile-content">
35
+ <p class="tile-title"><?php echo $name; ?></p>
36
+ <p class="tile-subtitle"><?php echo $description; ?></p>
37
+ </div>
38
+ <div class="tile-action">
39
+ <div class="form-group">
40
+ <label class="form-switch">
41
+ <input class="obfx-mod-switch" type="checkbox" name="<?php echo $slug; ?>" value="<?php echo $noance; ?>" <?php echo $checked; ?> >
42
+ <i class="form-icon"></i><?php echo __( 'Activate', 'themeisle-companion' ); ?>
43
+ </label>
44
+ </div>
45
+ </div>
46
+ </div>
core/app/views/partials/module-toast-tpl.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Toast modules template.
4
+ * Imported via the Orbit_Fox_Render_Helper.
5
+ *
6
+ * @link https://themeisle.com
7
+ * @since 1.0.0
8
+ *
9
+ * @package Orbit_Fox
10
+ * @subpackage Orbit_Fox/app/views/partials
11
+ */
12
+
13
+ ?>
14
+ <div class="obfx-mod-toast toast toast-<?php echo $notice['type']; ?>">
15
+ <button class="obfx-toast-dismiss btn btn-clear float-right"></button>
16
+ <b><?php echo $notice['title']; ?></b><br/>
17
+ <span><?php echo $notice['message']; ?></span>
18
+ </div>
core/assets/css/orbit-fox-admin.css ADDED
@@ -0,0 +1,3620 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Orbit Fox Admin Style
3
+ *
4
+ * @since 1.0.0
5
+ * @package Orbit_Fox/assets
6
+ *
7
+ * @author ThemeIsle
8
+ * Extends Spectre.css Library
9
+ */
10
+ /*
11
+ Version: 2.0.1
12
+ */
13
+
14
+ /* Document
15
+ ========================================================================== */
16
+ html {
17
+ font-size: 62.5%;
18
+ }
19
+
20
+ .obfx-wrapper {
21
+ font-family: sans-serif;
22
+ /* 1 */
23
+ line-height: 1.15;
24
+ /* 3 */
25
+
26
+ -webkit-text-size-adjust: 100%;
27
+ /* 2 */
28
+ -ms-text-size-adjust: 100%;
29
+ /* 3 */
30
+ }
31
+
32
+ /* Sections
33
+ ========================================================================== */
34
+
35
+ /**
36
+ * Add the correct display in IE 9-.
37
+ */
38
+ .obfx-wrapper article,
39
+ .obfx-wrapper aside,
40
+ .obfx-wrapper footer,
41
+ .obfx-wrapper header,
42
+ .obfx-wrapper nav,
43
+ .obfx-wrapper section {
44
+ display: block;
45
+ }
46
+
47
+ /**
48
+ * Correct the font size and margin on `h1` elements within `section` and
49
+ * `article` contexts in Chrome, Firefox, and Safari.
50
+ */
51
+ .obfx-wrapper h1 {
52
+ margin: 0.67em 0;
53
+ font-size: 2em;
54
+ }
55
+
56
+ /* Grouping content
57
+ ========================================================================== */
58
+ /**
59
+ * Add the correct display in IE 9-.
60
+ * 1. Add the correct display in IE.
61
+ */
62
+ .obfx-wrapper figcaption,
63
+ .obfx-wrapper figure,
64
+ .obfx-wrapper main {
65
+ /* 1 */
66
+ display: block;
67
+ }
68
+
69
+ /**
70
+ * Add the correct margin in IE 8 (removed).
71
+ */
72
+ /**
73
+ * 1. Add the correct box sizing in Firefox.
74
+ * 2. Show the overflow in Edge and IE.
75
+ */
76
+ .obfx-wrapper hr {
77
+ /* 1 */
78
+ overflow: visible;
79
+ -webkit-box-sizing: content-box;
80
+ box-sizing: content-box;
81
+ /* 1 */
82
+ height: 0;
83
+ /* 2 */
84
+ }
85
+
86
+ /**
87
+ * 1. Correct the inheritance and scaling of font size in all browsers. (removed)
88
+ * 2. Correct the odd `em` font sizing in all browsers.
89
+ */
90
+ /* Text-level semantics
91
+ ========================================================================== */
92
+ /**
93
+ * 1. Remove the gray background on active links in IE 10.
94
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
95
+ */
96
+ .obfx-wrapper a {
97
+ background-color: transparent;
98
+ /* 1 */
99
+
100
+ -webkit-text-decoration-skip: objects;
101
+ /* 2 */
102
+ }
103
+
104
+ /**
105
+ * Remove the outline on focused links when they are also active or hovered
106
+ * in all browsers (opinionated).
107
+ */
108
+ .obfx-wrapper a:active,
109
+ .obfx-wrapper a:hover {
110
+ outline-width: 0;
111
+ }
112
+
113
+ /**
114
+ * 1. Remove the bottom border in Firefox 39-.
115
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. (removed)
116
+ */
117
+ /**
118
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
119
+ */
120
+ .obfx-wrapper b,
121
+ .obfx-wrapper strong {
122
+ font-weight: inherit;
123
+ }
124
+
125
+ /**
126
+ * Add the correct font weight in Chrome, Edge, and Safari.
127
+ */
128
+ .obfx-wrapper b,
129
+ .obfx-wrapper strong {
130
+ font-weight: bolder;
131
+ }
132
+
133
+ /**
134
+ * 1. Correct the inheritance and scaling of font size in all browsers.
135
+ * 2. Correct the odd `em` font sizing in all browsers.
136
+ */
137
+ .obfx-wrapper code,
138
+ .obfx-wrapper kbd,
139
+ .obfx-wrapper pre,
140
+ .obfx-wrapper samp {
141
+ font-family: monospace, monospace;
142
+ /* 1 */
143
+ font-size: 1em;
144
+ /* 2 */
145
+ }
146
+
147
+ /**
148
+ * Add the correct font style in Android 4.3-.
149
+ */
150
+ .obfx-wrapper dfn {
151
+ font-style: italic;
152
+ }
153
+
154
+ /**
155
+ * Add the correct background and color in IE 9-. (Removed)
156
+ */
157
+ /**
158
+ * Add the correct font size in all browsers.
159
+ */
160
+ .obfx-wrapper small {
161
+ font-size: 80%;
162
+ }
163
+
164
+ /**
165
+ * Prevent `sub` and `sup` elements from affecting the line height in
166
+ * all browsers.
167
+ */
168
+ .obfx-wrapper sub,
169
+ .obfx-wrapper sup {
170
+ position: relative;
171
+ font-size: 75%;
172
+ line-height: 0;
173
+ vertical-align: baseline;
174
+ }
175
+
176
+ .obfx-wrapper sub {
177
+ bottom: -0.25em;
178
+ }
179
+
180
+ .obfx-wrapper sup {
181
+ top: -0.5em;
182
+ }
183
+
184
+ /* Embedded content
185
+ ========================================================================== */
186
+ /**
187
+ * Add the correct display in IE 9-.
188
+ */
189
+ .obfx-wrapper audio,
190
+ .obfx-wrapper video {
191
+ display: inline-block;
192
+ }
193
+
194
+ /**
195
+ * Add the correct display in iOS 4-7.
196
+ */
197
+ .obfx-wrapper audio:not([controls]) {
198
+ display: none;
199
+ height: 0;
200
+ }
201
+
202
+ /**
203
+ * Remove the border on images inside links in IE 10-.
204
+ */
205
+ .obfx-wrapper img {
206
+ border-style: none;
207
+ }
208
+
209
+ /**
210
+ * Hide the overflow in IE.
211
+ */
212
+ .obfx-wrapper svg:not(:root) {
213
+ overflow: hidden;
214
+ }
215
+
216
+ /* Forms
217
+ ========================================================================== */
218
+ /**
219
+ * 1. Change the font styles in all browsers (opinionated).
220
+ * 2. Remove the margin in Firefox and Safari.
221
+ */
222
+ .obfx-wrapper button,
223
+ .obfx-wrapper input,
224
+ .obfx-wrapper optgroup,
225
+ .obfx-wrapper select,
226
+ .obfx-wrapper textarea {
227
+ margin: 0;
228
+ font-family: inherit;
229
+ font-size: inherit;
230
+ line-height: inherit;
231
+ }
232
+
233
+ /**
234
+ * Show the overflow in IE.
235
+ * 1. Show the overflow in Edge.
236
+ */
237
+ .obfx-wrapper button,
238
+ .obfx-wrapper input {
239
+ overflow: visible;
240
+ }
241
+
242
+ /**
243
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
244
+ * 1. Remove the inheritance of text transform in Firefox.
245
+ */
246
+ .obfx-wrapper button,
247
+ .obfx-wrapper select {
248
+ text-transform: none;
249
+ }
250
+
251
+ /**
252
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
253
+ * controls in Android 4.
254
+ * 2. Correct the inability to style clickable types in iOS and Safari.
255
+ */
256
+ .obfx-wrapper button,
257
+ .obfx-wrapper [type="button"],
258
+ .obfx-wrapper [type="reset"],
259
+ .obfx-wrapper [type="submit"] {
260
+ -webkit-appearance: button;
261
+ }
262
+
263
+ /**
264
+ * Remove the inner border and padding in Firefox.
265
+ */
266
+ .obfx-wrapper button::-moz-focus-inner,
267
+ .obfx-wrapper [type="button"]::-moz-focus-inner,
268
+ .obfx-wrapper [type="reset"]::-moz-focus-inner,
269
+ .obfx-wrapper [type="submit"]::-moz-focus-inner {
270
+ padding: 0;
271
+ border-style: none;
272
+ }
273
+
274
+ /**
275
+ * Restore the focus styles unset by the previous rule (removed).
276
+ */
277
+ /**
278
+ * Change the border, margin, and padding in all browsers (opinionated) (changed).
279
+ */
280
+ .obfx-wrapper fieldset {
281
+ margin: 0;
282
+ padding: 0;
283
+ border: 0;
284
+ }
285
+
286
+ /**
287
+ * 1. Correct the text wrapping in Edge and IE.
288
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
289
+ * 3. Remove the padding so developers are not caught out when they zero out
290
+ * `fieldset` elements in all browsers.
291
+ */
292
+ .obfx-wrapper legend {
293
+ display: table;
294
+ -webkit-box-sizing: border-box;
295
+ box-sizing: border-box;
296
+ max-width: 100%;
297
+ padding: 0;
298
+ color: inherit;
299
+ white-space: normal;
300
+ }
301
+
302
+ /**
303
+ * 1. Add the correct display in IE 9-.
304
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
305
+ */
306
+ .obfx-wrapper progress {
307
+ display: inline-block;
308
+ /* 1 */
309
+ vertical-align: baseline;
310
+ /* 2 */
311
+ }
312
+
313
+ /**
314
+ * Remove the default vertical scrollbar in IE.
315
+ */
316
+ .obfx-wrapper textarea {
317
+ overflow: auto;
318
+ }
319
+
320
+ /**
321
+ * 1. Add the correct box sizing in IE 10-.
322
+ * 2. Remove the padding in IE 10-.
323
+ */
324
+ .obfx-wrapper [type="checkbox"],
325
+ .obfx-wrapper [type="radio"] {
326
+ -webkit-box-sizing: border-box;
327
+ box-sizing: border-box;
328
+ /* 1 */
329
+ padding: 0;
330
+ /* 2 */
331
+ }
332
+
333
+ /**
334
+ * Correct the cursor style of increment and decrement buttons in Chrome.
335
+ */
336
+ .obfx-wrapper [type="number"]::-webkit-inner-spin-button,
337
+ .obfx-wrapper [type="number"]::-webkit-outer-spin-button {
338
+ height: auto;
339
+ }
340
+
341
+ /**
342
+ * 1. Correct the odd appearance in Chrome and Safari.
343
+ * 2. Correct the outline style in Safari.
344
+ */
345
+ .obfx-wrapper [type="search"] {
346
+ /* 1 */
347
+ outline-offset: -2px;
348
+
349
+ -webkit-appearance: textfield;
350
+ /* 2 */
351
+ }
352
+
353
+ /**
354
+ * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
355
+ */
356
+ .obfx-wrapper [type="search"]::-webkit-search-cancel-button,
357
+ .obfx-wrapper [type="search"]::-webkit-search-decoration {
358
+ -webkit-appearance: none;
359
+ }
360
+
361
+ /**
362
+ * 1. Correct the inability to style clickable types in iOS and Safari.
363
+ * 2. Change font properties to `inherit` in Safari.
364
+ */
365
+ .obfx-wrapper ::-webkit-file-upload-button {
366
+ /* 1 */
367
+ font: inherit;
368
+
369
+ -webkit-appearance: button;
370
+ /* 2 */
371
+ }
372
+
373
+ /* Interactive
374
+ ========================================================================== */
375
+ /*
376
+ * Add the correct display in IE 9-.
377
+ * 1. Add the correct display in Edge, IE, and Firefox.
378
+ */
379
+ .obfx-wrapper details,
380
+ .obfx-wrapper menu {
381
+ display: block;
382
+ }
383
+
384
+ /*
385
+ * Add the correct display in all browsers.
386
+ */
387
+ .obfx-wrapper summary {
388
+ display: list-item;
389
+ }
390
+
391
+ /* Scripting
392
+ ========================================================================== */
393
+ /**
394
+ * Add the correct display in IE 9-.
395
+ */
396
+ .obfx-wrapper canvas {
397
+ display: inline-block;
398
+ }
399
+
400
+ /**
401
+ * Add the correct display in IE.
402
+ */
403
+ .obfx-wrapper template {
404
+ display: none;
405
+ }
406
+
407
+ /* Hidden
408
+ ========================================================================== */
409
+ /**
410
+ * Add the correct display in IE 10-.
411
+ */
412
+ .obfx-wrapper [hidden] {
413
+ display: none;
414
+ }
415
+
416
+ .obfx-wrapper *,
417
+ .obfx-wrapper *::before,
418
+ .obfx-wrapper *::after {
419
+ -webkit-box-sizing: inherit;
420
+ box-sizing: inherit;
421
+ }
422
+
423
+ .obfx-wrapper {
424
+ -webkit-box-sizing: border-box;
425
+ box-sizing: border-box;
426
+ font-size: 10px;
427
+ line-height: 1.42857143;
428
+
429
+ -webkit-tap-highlight-color: transparent;
430
+ }
431
+
432
+ .obfx-wrapper {
433
+ overflow-x: hidden;
434
+ margin-top: 40px;
435
+ margin-right: 20px;
436
+ padding: 16px;
437
+ color: #50596c;
438
+ background: #fff;
439
+ font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
440
+ font-size: 1.4rem;
441
+ text-rendering: optimizeLegibility;
442
+ }
443
+
444
+ .obfx-wrapper a {
445
+ outline: none;
446
+ color: #5764c6;
447
+ text-decoration: none;
448
+ }
449
+
450
+ .obfx-wrapper a:focus {
451
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
452
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
453
+ }
454
+
455
+ .obfx-wrapper a:focus,
456
+ .obfx-wrapper a:hover,
457
+ .obfx-wrapper a:active,
458
+ .obfx-wrapper a.active {
459
+ color: #3b49af;
460
+ text-decoration: underline;
461
+ }
462
+
463
+ .obfx-wrapper h1,
464
+ .obfx-wrapper h2,
465
+ .obfx-wrapper h3,
466
+ .obfx-wrapper h4,
467
+ .obfx-wrapper h5,
468
+ .obfx-wrapper h6 {
469
+ margin-top: 0;
470
+ margin-bottom: 1.5rem;
471
+ color: inherit;
472
+ font-weight: 300;
473
+ line-height: 1.2;
474
+ }
475
+
476
+ .obfx-wrapper h1 {
477
+ display: inline-block;
478
+ font-size: 5rem;
479
+ vertical-align: top;
480
+ }
481
+
482
+ .obfx-wrapper h2 {
483
+ font-size: 4rem;
484
+ }
485
+
486
+ .obfx-wrapper h3 {
487
+ font-size: 3rem;
488
+ }
489
+
490
+ .obfx-wrapper h4 {
491
+ font-size: 2.4rem;
492
+ }
493
+
494
+ .obfx-wrapper h5 {
495
+ font-size: 2rem;
496
+ }
497
+
498
+ .obfx-wrapper h6 {
499
+ font-size: 1.6rem;
500
+ }
501
+
502
+ .obfx-wrapper .powered {
503
+ display: inline-block;
504
+ margin-bottom: 10px;
505
+ margin-left: 10px;
506
+ font-style: italic;
507
+ vertical-align: bottom;
508
+ }
509
+
510
+ .obfx-wrapper p {
511
+ margin: 0 0 1rem;
512
+ line-height: 2.4rem;
513
+ }
514
+
515
+ .obfx-wrapper a,
516
+ .obfx-wrapper ins,
517
+ .obfx-wrapper u {
518
+ -webkit-text-decoration-skip: ink edges;
519
+ text-decoration-skip: ink edges;
520
+ }
521
+
522
+ .obfx-wrapper blockquote {
523
+ margin-left: 0;
524
+ padding: 1rem 2rem;
525
+ border-left: 0.2rem solid #f0f1f4;
526
+ }
527
+
528
+ .obfx-wrapper blockquote p:last-child {
529
+ margin-bottom: 0;
530
+ }
531
+
532
+ .obfx-wrapper blockquote cite {
533
+ color: #acb3c2;
534
+ }
535
+
536
+ .obfx-wrapper ul,
537
+ .obfx-wrapper ol {
538
+ margin: 2rem 0 2rem 2rem;
539
+ padding: 0;
540
+ }
541
+
542
+ .obfx-wrapper ul ul,
543
+ .obfx-wrapper ol ul,
544
+ .obfx-wrapper ul ol,
545
+ .obfx-wrapper ol ol {
546
+ margin: 1.5rem 0 1.5rem 2rem;
547
+ }
548
+
549
+ .obfx-wrapper ul li,
550
+ .obfx-wrapper ol li {
551
+ margin-top: 1rem;
552
+ }
553
+
554
+ .obfx-wrapper ul {
555
+ list-style: disc inside;
556
+ }
557
+
558
+ .obfx-wrapper ul ul {
559
+ list-style-type: circle;
560
+ }
561
+
562
+ .obfx-wrapper ol {
563
+ list-style: decimal inside;
564
+ }
565
+
566
+ .obfx-wrapper ol ol {
567
+ list-style-type: lower-alpha;
568
+ }
569
+
570
+ .obfx-wrapper dl dt {
571
+ font-weight: bold;
572
+ }
573
+
574
+ .obfx-wrapper dl dd {
575
+ margin: 0.5rem 0 1.5rem 0;
576
+ }
577
+
578
+ .obfx-wrapper mark {
579
+ display: inline-block;
580
+ padding: 0.3rem 0.4rem;
581
+ border-radius: 0.2rem;
582
+ color: #50596c;
583
+ background: #ffe9b3;
584
+ line-height: 1;
585
+ vertical-align: baseline;
586
+ }
587
+
588
+ .obfx-wrapper kbd {
589
+ display: inline-block;
590
+ padding: 0.3rem 0.4rem;
591
+ border-radius: 0.2rem;
592
+ color: #fff;
593
+ background: #454d5d;
594
+ line-height: 1;
595
+ vertical-align: baseline;
596
+ }
597
+
598
+ .obfx-wrapper abbr[title] {
599
+ border-bottom: 0.1rem dotted;
600
+ text-decoration: none;
601
+ cursor: help;
602
+ }
603
+
604
+ .obfx-wrapper .table {
605
+ width: 100%;
606
+ border-spacing: 0;
607
+ border-collapse: collapse;
608
+ text-align: left;
609
+ }
610
+
611
+ .obfx-wrapper .table.table-striped tbody tr:nth-of-type(odd) {
612
+ background: #f8f9fa;
613
+ }
614
+
615
+ .obfx-wrapper .table.table-hover tbody tr:hover {
616
+ background: #f0f1f4;
617
+ }
618
+
619
+ .obfx-wrapper .table tbody tr.active,
620
+ .obfx-wrapper .table.table-striped tbody tr.active {
621
+ background: #f0f1f4;
622
+ }
623
+
624
+ .obfx-wrapper .table td {
625
+ padding: 1.5rem 1rem;
626
+ border-bottom: 0.1rem solid #f0f1f4;
627
+ }
628
+
629
+ .obfx-wrapper .table th {
630
+ padding: 1.5rem 1rem;
631
+ border-bottom: 0.1rem solid #727e96;
632
+ }
633
+
634
+ .obfx-wrapper .btn {
635
+ display: inline-block;
636
+ height: 3.2rem;
637
+ padding: 0.5rem 0.8rem;
638
+ border: 0.1rem solid #5764c6;
639
+ border-radius: 0.2rem;
640
+ outline: none;
641
+ color: #5764c6;
642
+ background: #fff;
643
+ font-size: 1.4rem;
644
+ line-height: 2rem;
645
+ text-align: center;
646
+ vertical-align: middle;
647
+ white-space: nowrap;
648
+ text-decoration: none;
649
+ cursor: pointer;
650
+ -webkit-user-select: none;
651
+ -moz-user-select: none;
652
+ -ms-user-select: none;
653
+ user-select: none;
654
+ -webkit-transition: all 0.2s ease;
655
+ transition: all 0.2s ease;
656
+
657
+ -webkit-appearance: none;
658
+ -moz-appearance: none;
659
+ appearance: none;
660
+ }
661
+
662
+ .obfx-wrapper .btn:focus {
663
+ background: #fbfbfe;
664
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
665
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
666
+ text-decoration: none;
667
+ }
668
+
669
+ .obfx-wrapper .btn:hover {
670
+ border-color: #4c59c2;
671
+ color: #fff;
672
+ background: #5764c6;
673
+ text-decoration: none;
674
+ }
675
+
676
+ .obfx-wrapper .btn:active,
677
+ .obfx-wrapper .btn.active {
678
+ border-color: #3e4cb6;
679
+ color: #fff;
680
+ background: #4c59c2;
681
+ text-decoration: none;
682
+ }
683
+
684
+ .obfx-wrapper .btn[disabled],
685
+ .obfx-wrapper .btn:disabled,
686
+ .obfx-wrapper .btn.disabled {
687
+ opacity: 0.5;
688
+ cursor: default;
689
+ pointer-events: none;
690
+ }
691
+
692
+ .obfx-wrapper .btn.btn-primary {
693
+ border-color: #4c59c2;
694
+ color: #fff;
695
+ background: #5764c6;
696
+ }
697
+
698
+ .obfx-wrapper .btn.btn-primary:focus,
699
+ .obfx-wrapper .btn.btn-primary:hover {
700
+ border-color: #3e4cb6;
701
+ color: #fff;
702
+ background: #4452c0;
703
+ }
704
+
705
+ .obfx-wrapper .btn.btn-primary:active,
706
+ .obfx-wrapper .btn.btn-primary.active {
707
+ border-color: #3b49af;
708
+ color: #fff;
709
+ background: #3f4eba;
710
+ }
711
+
712
+ .obfx-wrapper .btn.btn-primary.loading::after {
713
+ border-bottom-color: #fff;
714
+ border-left-color: #fff;
715
+ }
716
+
717
+ .obfx-wrapper .btn.btn-link {
718
+ border-color: transparent;
719
+ color: #5764c6;
720
+ background: transparent;
721
+ }
722
+
723
+ .obfx-wrapper .btn.btn-link:focus,
724
+ .obfx-wrapper .btn.btn-link:hover,
725
+ .obfx-wrapper .btn.btn-link:active,
726
+ .obfx-wrapper .btn.btn-link.active {
727
+ color: #3b49af;
728
+ }
729
+
730
+ .obfx-wrapper .btn.btn-sm {
731
+ height: 2.4rem;
732
+ padding: 0.1rem 0.8rem;
733
+ font-size: 1.2rem;
734
+ }
735
+
736
+ .obfx-wrapper .btn.btn-lg {
737
+ height: 4rem;
738
+ padding: 0.9rem 0.8rem;
739
+ font-size: 1.6rem;
740
+ }
741
+
742
+ .obfx-wrapper .btn.btn-block {
743
+ display: block;
744
+ width: 100%;
745
+ }
746
+
747
+ .obfx-wrapper .btn.btn-action {
748
+ width: 3.2rem;
749
+ padding-right: 0;
750
+ padding-left: 0;
751
+ }
752
+
753
+ .obfx-wrapper .btn.btn-action.btn-sm {
754
+ width: 2.4rem;
755
+ }
756
+
757
+ .obfx-wrapper .btn.btn-action.btn-lg {
758
+ width: 4rem;
759
+ }
760
+
761
+ .obfx-wrapper .btn.btn-clear {
762
+ width: 1.6rem;
763
+ height: 1.6rem;
764
+ margin-right: -0.2rem;
765
+ margin-left: 0.4rem;
766
+ padding: 0 0.2rem;
767
+ border: 0;
768
+ opacity: 0.45;
769
+ color: currentColor;
770
+ background: transparent;
771
+ line-height: 1.6rem;
772
+ text-decoration: none;
773
+ }
774
+
775
+ .obfx-wrapper .btn.btn-clear:hover {
776
+ opacity: 0.85;
777
+ }
778
+
779
+ .obfx-wrapper .btn.btn-clear::before {
780
+ content: "\2715";
781
+ }
782
+
783
+ .obfx-wrapper .btn-group {
784
+ display: -webkit-inline-box;
785
+ display: inline-flex;
786
+ display: -ms-inline-flexbox;
787
+ display: -webkit-inline-flex;
788
+
789
+ -webkit-flex-wrap: wrap;
790
+ -ms-flex-wrap: wrap;
791
+ flex-wrap: wrap;
792
+ }
793
+
794
+ .obfx-wrapper .btn-group .btn {
795
+ -webkit-box-flex: 1;
796
+ -webkit-flex: 1 0 auto;
797
+ -ms-flex: 1 0 auto;
798
+ flex: 1 0 auto;
799
+ }
800
+
801
+ .obfx-wrapper .btn-group .btn:first-child:not(:last-child) {
802
+ border-top-right-radius: 0;
803
+ border-bottom-right-radius: 0;
804
+ }
805
+
806
+ .obfx-wrapper .btn-group .btn:not(:first-child):not(:last-child) {
807
+ margin-left: -0.1rem;
808
+ border-radius: 0;
809
+ }
810
+
811
+ .obfx-wrapper .btn-group .btn:last-child:not(:first-child) {
812
+ margin-left: -0.1rem;
813
+ border-top-left-radius: 0;
814
+ border-bottom-left-radius: 0;
815
+ }
816
+
817
+ .obfx-wrapper .btn-group .btn:focus,
818
+ .obfx-wrapper .btn-group .btn:hover,
819
+ .obfx-wrapper .btn-group .btn:active,
820
+ .obfx-wrapper .btn-group .btn.active {
821
+ z-index: 1;
822
+ }
823
+
824
+ .obfx-wrapper .btn-group.btn-group-block {
825
+ display: -webkit-box;
826
+ display: flex;
827
+ display: -ms-flexbox;
828
+ display: -webkit-flex;
829
+ }
830
+
831
+ .obfx-wrapper .btn-group.btn-group-block .btn {
832
+ -webkit-box-flex: 1;
833
+ -webkit-flex: 1 0 0;
834
+ -ms-flex: 1 0 0;
835
+ flex: 1 0 0;
836
+ }
837
+
838
+ .obfx-wrapper .form-group:not(:last-child) {
839
+ margin-bottom: 1rem;
840
+ }
841
+
842
+ .obfx-wrapper .form-label {
843
+ display: block;
844
+ padding: 0.6rem 0;
845
+ }
846
+
847
+ .obfx-wrapper .form-label.label-sm {
848
+ padding: 0.2rem 0;
849
+ }
850
+
851
+ .obfx-wrapper .form-label.label-lg {
852
+ padding: 1rem 0;
853
+ }
854
+
855
+ .obfx-wrapper .form-input {
856
+ display: block;
857
+ position: relative;
858
+ width: 100%;
859
+ max-width: 100%;
860
+ height: 3.2rem;
861
+ padding: 0.5rem 0.8rem;
862
+ border: 0.1rem solid #c4c9d3;
863
+ border-radius: 0.2rem;
864
+ outline: none;
865
+ color: #50596c;
866
+ background: #fff;
867
+ background-image: none;
868
+ font-size: 1.4rem;
869
+ line-height: 2rem;
870
+ -webkit-transition: all 0.2s ease;
871
+ transition: all 0.2s ease;
872
+
873
+ -webkit-appearance: none;
874
+ -moz-appearance: none;
875
+ appearance: none;
876
+ }
877
+
878
+ .obfx-wrapper .form-input:focus {
879
+ border-color: #5764c6;
880
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
881
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
882
+ }
883
+
884
+ .obfx-wrapper .form-input::-webkit-input-placeholder {
885
+ color: #acb3c2;
886
+ }
887
+
888
+ .obfx-wrapper .form-input::-moz-placeholder {
889
+ color: #acb3c2;
890
+ }
891
+
892
+ .obfx-wrapper .form-input:-ms-input-placeholder {
893
+ color: #acb3c2;
894
+ }
895
+
896
+ .obfx-wrapper .form-input::placeholder {
897
+ color: #acb3c2;
898
+ }
899
+
900
+ .obfx-wrapper .form-input.input-sm {
901
+ height: 2.4rem;
902
+ padding: 0.1rem 0.8rem;
903
+ font-size: 1.2rem;
904
+ }
905
+
906
+ .obfx-wrapper .form-input.input-lg {
907
+ height: 4rem;
908
+ padding: 0.9rem 0.8rem;
909
+ font-size: 1.6rem;
910
+ }
911
+
912
+ .obfx-wrapper .form-input.input-inline {
913
+ display: inline-block;
914
+ width: auto;
915
+ vertical-align: middle;
916
+ }
917
+
918
+ .obfx-wrapper textarea.form-input {
919
+ height: auto;
920
+ }
921
+
922
+ .obfx-wrapper .form-input[type="file"] {
923
+ height: auto;
924
+ }
925
+
926
+ .obfx-wrapper .form-input-hint {
927
+ margin-top: 0.4rem;
928
+ color: #acb3c2;
929
+ }
930
+
931
+ .obfx-wrapper .has-success .form-input-hint,
932
+ .obfx-wrapper .is-success + .form-input-hint {
933
+ color: #32b643;
934
+ }
935
+
936
+ .obfx-wrapper .has-error .form-input-hint,
937
+ .obfx-wrapper .is-error + .form-input-hint {
938
+ color: #e85600;
939
+ }
940
+
941
+ .obfx-wrapper .form-select {
942
+ width: 100%;
943
+ padding: 0.5rem 0.8rem;
944
+ border: 0.1rem solid #c4c9d3;
945
+ border-radius: 0.2rem;
946
+ outline: none;
947
+ color: inherit;
948
+ font-size: 1.4rem;
949
+ line-height: 2rem;
950
+ vertical-align: middle;
951
+
952
+ -webkit-appearance: none;
953
+ -moz-appearance: none;
954
+ appearance: none;
955
+ }
956
+
957
+ .obfx-wrapper .form-select[multiple] option {
958
+ padding: 0.2rem 0.4rem;
959
+ }
960
+
961
+ .obfx-wrapper .form-select:not([multiple]) {
962
+ height: 3.2rem;
963
+ padding-right: 2.4rem;
964
+ background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23667189' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 0.8rem 1rem;
965
+ }
966
+
967
+ .obfx-wrapper .form-select:focus {
968
+ border-color: #5764c6;
969
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
970
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
971
+ }
972
+
973
+ .obfx-wrapper .form-select::-ms-expand {
974
+ display: none;
975
+ }
976
+
977
+ .obfx-wrapper .form-select.select-sm {
978
+ height: 2.4rem;
979
+ padding: 0.1rem 2rem 0.1rem 0.6rem;
980
+ font-size: 1.2rem;
981
+ }
982
+
983
+ .obfx-wrapper .form-select.select-lg {
984
+ height: 4rem;
985
+ padding: 0.9rem 2.4rem 0.9rem 0.8rem;
986
+ font-size: 1.6rem;
987
+ }
988
+
989
+ .obfx-wrapper .has-success .form-input,
990
+ .obfx-wrapper .has-success .form-select,
991
+ .obfx-wrapper .form-input.is-success,
992
+ .obfx-wrapper .form-select.is-success {
993
+ border-color: #32b643;
994
+ }
995
+
996
+ .obfx-wrapper .has-success .form-input:focus,
997
+ .obfx-wrapper .has-success .form-select:focus,
998
+ .obfx-wrapper .form-input.is-success:focus,
999
+ .obfx-wrapper .form-select.is-success:focus {
1000
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(50, 182, 67, 0.15);
1001
+ box-shadow: 0 0 0 0.2rem rgba(50, 182, 67, 0.15);
1002
+ }
1003
+
1004
+ .obfx-wrapper .has-error .form-input,
1005
+ .obfx-wrapper .has-error .form-select,
1006
+ .obfx-wrapper .form-input.is-error,
1007
+ .obfx-wrapper .form-select.is-error {
1008
+ border-color: #e85600;
1009
+ }
1010
+
1011
+ .obfx-wrapper .has-error .form-input:focus,
1012
+ .obfx-wrapper .has-error .form-select:focus,
1013
+ .obfx-wrapper .form-input.is-error:focus,
1014
+ .obfx-wrapper .form-select.is-error:focus {
1015
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(232, 86, 0, 0.15);
1016
+ box-shadow: 0 0 0 0.2rem rgba(232, 86, 0, 0.15);
1017
+ }
1018
+
1019
+ .obfx-wrapper .form-input:not(:placeholder-shown):invalid {
1020
+ border-color: #e85600;
1021
+ }
1022
+
1023
+ .obfx-wrapper .form-input:not(:placeholder-shown):invalid:focus {
1024
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(232, 86, 0, 0.15);
1025
+ box-shadow: 0 0 0 0.2rem rgba(232, 86, 0, 0.15);
1026
+ }
1027
+
1028
+ .obfx-wrapper .form-input:not(:placeholder-shown):invalid + .form-input-hint {
1029
+ color: #e85600;
1030
+ }
1031
+
1032
+ .obfx-wrapper .has-icon-left,
1033
+ .obfx-wrapper .has-icon-right {
1034
+ position: relative;
1035
+ }
1036
+
1037
+ .obfx-wrapper .has-icon-left .form-icon,
1038
+ .obfx-wrapper .has-icon-right .form-icon {
1039
+ position: absolute;
1040
+ top: 50%;
1041
+ min-width: 1.4rem;
1042
+ margin: 0 0.8rem;
1043
+ -webkit-transform: translateY(-50%);
1044
+ -ms-transform: translateY(-50%);
1045
+ transform: translateY(-50%);
1046
+ }
1047
+
1048
+ .obfx-wrapper .has-icon-left .form-icon {
1049
+ left: 0;
1050
+ }
1051
+
1052
+ .obfx-wrapper .has-icon-left .form-input {
1053
+ padding-left: 3rem;
1054
+ }
1055
+
1056
+ .obfx-wrapper .has-icon-right .form-icon {
1057
+ right: 0;
1058
+ }
1059
+
1060
+ .obfx-wrapper .has-icon-right .form-input {
1061
+ padding-right: 3rem;
1062
+ }
1063
+
1064
+ .obfx-wrapper .form-checkbox,
1065
+ .obfx-wrapper .form-radio,
1066
+ .obfx-wrapper .form-switch {
1067
+ display: inline-block;
1068
+ position: relative;
1069
+ line-height: 2rem;
1070
+ }
1071
+
1072
+ .obfx-wrapper .form-checkbox input,
1073
+ .obfx-wrapper .form-radio input,
1074
+ .obfx-wrapper .form-switch input {
1075
+ overflow: hidden;
1076
+ clip: rect(0, 0, 0, 0);
1077
+ position: absolute;
1078
+ width: 0.1rem;
1079
+ height: 0.1rem;
1080
+ margin: -0.1rem;
1081
+ }
1082
+
1083
+ .obfx-wrapper .form-checkbox input:focus + .form-icon,
1084
+ .obfx-wrapper .form-radio input:focus + .form-icon,
1085
+ .obfx-wrapper .form-switch input:focus + .form-icon {
1086
+ border-color: #5764c6;
1087
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
1088
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
1089
+ }
1090
+
1091
+ .obfx-wrapper .form-checkbox input:checked + .form-icon,
1092
+ .obfx-wrapper .form-radio input:checked + .form-icon,
1093
+ .obfx-wrapper .form-switch input:checked + .form-icon {
1094
+ border-color: #5764c6;
1095
+ background: #5764c6;
1096
+ }
1097
+
1098
+ .obfx-wrapper .form-checkbox .form-icon,
1099
+ .obfx-wrapper .form-radio .form-icon,
1100
+ .obfx-wrapper .form-switch .form-icon {
1101
+ display: inline-block;
1102
+ position: absolute;
1103
+ border: 0.1rem solid #c4c9d3;
1104
+ cursor: pointer;
1105
+ -webkit-transition: all 0.2s ease;
1106
+ transition: all 0.2s ease;
1107
+ }
1108
+
1109
+ .obfx-wrapper .form-checkbox,
1110
+ .obfx-wrapper .form-radio {
1111
+ padding: 0.2rem 2rem;
1112
+ }
1113
+
1114
+ .obfx-wrapper .form-checkbox .form-icon,
1115
+ .obfx-wrapper .form-radio .form-icon {
1116
+ top: 0.5rem;
1117
+ left: 0;
1118
+ width: 1.4rem;
1119
+ height: 1.4rem;
1120
+ background: #fff;
1121
+ }
1122
+
1123
+ .obfx-wrapper .form-checkbox input:active + .form-icon,
1124
+ .obfx-wrapper .form-radio input:active + .form-icon {
1125
+ background: #f0f1f4;
1126
+ }
1127
+
1128
+ .obfx-wrapper .form-checkbox .form-icon {
1129
+ border-radius: 0.2rem;
1130
+ }
1131
+
1132
+ .obfx-wrapper .form-checkbox input:checked + .form-icon::before {
1133
+ position: absolute;
1134
+ top: 50%;
1135
+ left: 50%;
1136
+ width: 0.6rem;
1137
+ height: 1rem;
1138
+ margin-top: -0.6rem;
1139
+ margin-left: -0.3rem;
1140
+ border: 0.2rem solid #fff;
1141
+ border-top-width: 0;
1142
+ border-left-width: 0;
1143
+ background-clip: padding-box;
1144
+ content: "";
1145
+ -webkit-transform: rotate(45deg);
1146
+ -ms-transform: rotate(45deg);
1147
+ transform: rotate(45deg);
1148
+ }
1149
+
1150
+ .obfx-wrapper .form-checkbox input:indeterminate + .form-icon {
1151
+ border-color: #5764c6;
1152
+ background: #5764c6;
1153
+ }
1154
+
1155
+ .obfx-wrapper .form-checkbox input:indeterminate + .form-icon::before {
1156
+ position: absolute;
1157
+ top: 50%;
1158
+ left: 50%;
1159
+ width: 1rem;
1160
+ height: 0.2rem;
1161
+ margin-top: -0.1rem;
1162
+ margin-left: -0.5rem;
1163
+ background: #fff;
1164
+ content: "";
1165
+ }
1166
+
1167
+ .obfx-wrapper .form-radio .form-icon {
1168
+ border-radius: 0.7rem;
1169
+ }
1170
+
1171
+ .obfx-wrapper .form-radio input:checked + .form-icon::before {
1172
+ position: absolute;
1173
+ top: 50%;
1174
+ left: 50%;
1175
+ width: 0.4rem;
1176
+ height: 0.4rem;
1177
+ margin-top: -0.2rem;
1178
+ margin-left: -0.2rem;
1179
+ border-radius: 0.2rem;
1180
+ background: #fff;
1181
+ content: "";
1182
+ }
1183
+
1184
+ .obfx-wrapper .form-switch {
1185
+ padding: 0.2rem 2rem 0.2rem 3.6rem;
1186
+ }
1187
+
1188
+ .obfx-wrapper .form-switch .form-icon {
1189
+ top: 0.3rem;
1190
+ left: 0;
1191
+ width: 3rem;
1192
+ height: 1.8rem;
1193
+ border-radius: 0.9rem;
1194
+ background: #e7e9ed;
1195
+ background-clip: padding-box;
1196
+ }
1197
+
1198
+ .obfx-wrapper .form-switch .form-icon::before {
1199
+ display: block;
1200
+ position: absolute;
1201
+ top: 0;
1202
+ left: 0;
1203
+ width: 1.6rem;
1204
+ height: 1.6rem;
1205
+ border-radius: 0.8rem;
1206
+ background: #fff;
1207
+ content: "";
1208
+ -webkit-transition: all 0.2s ease;
1209
+ transition: all 0.2s ease;
1210
+ }
1211
+
1212
+ .obfx-wrapper .form-switch input:checked + .form-icon::before {
1213
+ left: 1.2rem;
1214
+ }
1215
+
1216
+ .obfx-wrapper .form-switch input:active + .form-icon::before {
1217
+ background: #f8f9fa;
1218
+ }
1219
+
1220
+ .obfx-wrapper .input-group {
1221
+ display: -webkit-box;
1222
+ display: flex;
1223
+ display: -ms-flexbox;
1224
+ display: -webkit-flex;
1225
+ }
1226
+
1227
+ .obfx-wrapper .input-group .input-group-addon {
1228
+ padding: 0.5rem 0.8rem;
1229
+ border: 0.1rem solid #c4c9d3;
1230
+ border-radius: 0.2rem;
1231
+ background: #f8f9fa;
1232
+ line-height: 2rem;
1233
+ }
1234
+
1235
+ .obfx-wrapper .input-group .input-group-addon.addon-sm {
1236
+ padding: 0.1rem 0.8rem;
1237
+ font-size: 1.2rem;
1238
+ }
1239
+
1240
+ .obfx-wrapper .input-group .input-group-addon.addon-lg {
1241
+ padding: 0.9rem 0.8rem;
1242
+ font-size: 1.6rem;
1243
+ }
1244
+
1245
+ .obfx-wrapper .input-group .input-group-addon,
1246
+ .obfx-wrapper .input-group .input-group-btn {
1247
+ -webkit-box-flex: 1;
1248
+ -webkit-flex: 1 0 auto;
1249
+ -ms-flex: 1 0 auto;
1250
+ flex: 1 0 auto;
1251
+ }
1252
+
1253
+ .obfx-wrapper .input-group .form-input:first-child:not(:last-child),
1254
+ .obfx-wrapper .input-group .form-select:first-child:not(:last-child),
1255
+ .obfx-wrapper .input-group .input-group-addon:first-child:not(:last-child),
1256
+ .obfx-wrapper .input-group .input-group-btn:first-child:not(:last-child) {
1257
+ border-top-right-radius: 0;
1258
+ border-bottom-right-radius: 0;
1259
+ }
1260
+
1261
+ .obfx-wrapper .input-group .form-input:not(:first-child):not(:last-child),
1262
+ .obfx-wrapper .input-group .form-select:not(:first-child):not(:last-child),
1263
+ .obfx-wrapper .input-group .input-group-addon:not(:first-child):not(:last-child),
1264
+ .obfx-wrapper .input-group .input-group-btn:not(:first-child):not(:last-child) {
1265
+ margin-left: -0.1rem;
1266
+ border-radius: 0;
1267
+ }
1268
+
1269
+ .obfx-wrapper .input-group .form-input:last-child:not(:first-child),
1270
+ .obfx-wrapper .input-group .form-select:last-child:not(:first-child),
1271
+ .obfx-wrapper .input-group .input-group-addon:last-child:not(:first-child),
1272
+ .obfx-wrapper .input-group .input-group-btn:last-child:not(:first-child) {
1273
+ margin-left: -0.1rem;
1274
+ border-top-left-radius: 0;
1275
+ border-bottom-left-radius: 0;
1276
+ }
1277
+
1278
+ .obfx-wrapper .input-group .form-input:focus,
1279
+ .obfx-wrapper .input-group .form-select:focus,
1280
+ .obfx-wrapper .input-group .input-group-addon:focus,
1281
+ .obfx-wrapper .input-group .input-group-btn:focus {
1282
+ z-index: 1;
1283
+ }
1284
+
1285
+ .obfx-wrapper .input-group .form-select {
1286
+ width: auto;
1287
+ }
1288
+
1289
+ .obfx-wrapper .input-group.input-inline {
1290
+ display: -webkit-inline-box;
1291
+ display: inline-flex;
1292
+ display: -ms-inline-flexbox;
1293
+ display: -webkit-inline-flex;
1294
+ }
1295
+
1296
+ .obfx-wrapper .form-input:disabled,
1297
+ .obfx-wrapper .form-select:disabled,
1298
+ .obfx-wrapper .form-input.disabled,
1299
+ .obfx-wrapper .form-select.disabled {
1300
+ opacity: 0.5;
1301
+ background-color: #f0f1f4;
1302
+ cursor: not-allowed;
1303
+ }
1304
+
1305
+ .obfx-wrapper .form-input[readonly] {
1306
+ background-color: #f8f9fa;
1307
+ }
1308
+
1309
+ .obfx-wrapper input:disabled + .form-icon,
1310
+ .obfx-wrapper input.disabled + .form-icon {
1311
+ opacity: 0.5;
1312
+ background: #f0f1f4;
1313
+ cursor: not-allowed;
1314
+ }
1315
+
1316
+ .obfx-wrapper .form-switch input:disabled + .form-icon::before,
1317
+ .obfx-wrapper .form-switch input.disabled + .form-icon::before {
1318
+ background: #fff;
1319
+ }
1320
+
1321
+ .obfx-wrapper .form-horizontal {
1322
+ padding: 1rem;
1323
+ }
1324
+
1325
+ .obfx-wrapper .form-horizontal .form-group {
1326
+ display: -webkit-box;
1327
+ display: flex;
1328
+ display: -ms-flexbox;
1329
+ display: -webkit-flex;
1330
+ }
1331
+
1332
+ .obfx-wrapper .form-horizontal .form-checkbox,
1333
+ .obfx-wrapper .form-horizontal .form-radio,
1334
+ .obfx-wrapper .form-horizontal .form-switch {
1335
+ margin: 0.4rem 0;
1336
+ }
1337
+
1338
+ .obfx-wrapper .label {
1339
+ display: inline-block;
1340
+ padding: 0.3rem 0.4rem;
1341
+ border-radius: 0.2rem;
1342
+ color: #5b657a;
1343
+ background: #f8f9fa;
1344
+ line-height: 1;
1345
+ vertical-align: baseline;
1346
+ }
1347
+
1348
+ .obfx-wrapper .label.label-primary {
1349
+ color: #fff;
1350
+ background: #5764c6;
1351
+ }
1352
+
1353
+ .obfx-wrapper .label.label-success {
1354
+ color: #fff;
1355
+ background: #32b643;
1356
+ }
1357
+
1358
+ .obfx-wrapper .label.label-warning {
1359
+ color: #fff;
1360
+ background: #ffb700;
1361
+ }
1362
+
1363
+ .obfx-wrapper .label.label-error {
1364
+ color: #fff;
1365
+ background: #e85600;
1366
+ }
1367
+
1368
+ .obfx-wrapper code {
1369
+ display: inline-block;
1370
+ padding: 0.3rem 0.4rem;
1371
+ border-radius: 0.2rem;
1372
+ color: #e06870;
1373
+ background: #fdf4f4;
1374
+ line-height: 1;
1375
+ vertical-align: baseline;
1376
+ }
1377
+
1378
+ .obfx-wrapper .code {
1379
+ position: relative;
1380
+ border-radius: 0.2rem;
1381
+ color: #50596c;
1382
+ line-height: 2rem;
1383
+ }
1384
+
1385
+ .obfx-wrapper .code::before {
1386
+ position: absolute;
1387
+ top: 0.2rem;
1388
+ right: 1rem;
1389
+ color: #acb3c2;
1390
+ font-size: 1.2rem;
1391
+ content: attr(data-lang);
1392
+ }
1393
+
1394
+ .obfx-wrapper .code code {
1395
+ display: block;
1396
+ overflow-x: auto;
1397
+ width: 100%;
1398
+ padding: 2rem;
1399
+ color: inherit;
1400
+ background: #f8f9fa;
1401
+ line-height: inherit;
1402
+ }
1403
+
1404
+ .obfx-wrapper .img-responsive {
1405
+ display: block;
1406
+ max-width: 100%;
1407
+ height: auto;
1408
+ }
1409
+
1410
+ .obfx-wrapper .img-fit-cover {
1411
+ object-fit: cover;
1412
+ }
1413
+
1414
+ .obfx-wrapper .img-fit-contain {
1415
+ object-fit: contain;
1416
+ }
1417
+
1418
+ .obfx-wrapper .video-responsive {
1419
+ display: block;
1420
+ overflow: hidden;
1421
+ position: relative;
1422
+ width: 100%;
1423
+ padding: 0;
1424
+ }
1425
+
1426
+ .obfx-wrapper .video-responsive::before {
1427
+ display: block;
1428
+ padding-bottom: 56.25%;
1429
+ content: "";
1430
+ }
1431
+
1432
+ .obfx-wrapper .video-responsive iframe,
1433
+ .obfx-wrapper .video-responsive object,
1434
+ .obfx-wrapper .video-responsive embed {
1435
+ position: absolute;
1436
+ top: 0;
1437
+ right: 0;
1438
+ bottom: 0;
1439
+ left: 0;
1440
+ width: 100%;
1441
+ height: 100%;
1442
+ }
1443
+
1444
+ .obfx-wrapper .video-responsive video {
1445
+ width: 100%;
1446
+ max-width: 100%;
1447
+ height: auto;
1448
+ }
1449
+
1450
+ .obfx-wrapper .video-responsive-4-3::before {
1451
+ padding-bottom: 75%;
1452
+ }
1453
+
1454
+ .obfx-wrapper .video-responsive-1-1::before {
1455
+ padding-bottom: 100%;
1456
+ }
1457
+
1458
+ .obfx-wrapper .figure {
1459
+ margin: 0 0 1rem 0;
1460
+ }
1461
+
1462
+ .obfx-wrapper .figure .figure-caption {
1463
+ margin-top: 1rem;
1464
+ color: #727e96;
1465
+ }
1466
+
1467
+ .obfx-wrapper .container {
1468
+ width: 100%;
1469
+ margin-right: auto;
1470
+ margin-left: auto;
1471
+ padding-right: 1rem;
1472
+ padding-left: 1rem;
1473
+ }
1474
+
1475
+ .obfx-wrapper .container.grid-1280 {
1476
+ max-width: 130rem;
1477
+ }
1478
+
1479
+ .obfx-wrapper .container.grid-960 {
1480
+ max-width: 98rem;
1481
+ }
1482
+
1483
+ .obfx-wrapper .container.grid-480 {
1484
+ max-width: 50rem;
1485
+ }
1486
+
1487
+ .obfx-wrapper .columns {
1488
+ display: -webkit-box;
1489
+ display: flex;
1490
+ display: -ms-flexbox;
1491
+ display: -webkit-flex;
1492
+ margin-right: -1rem;
1493
+ margin-left: -1rem;
1494
+
1495
+ -webkit-flex-wrap: wrap;
1496
+ -ms-flex-wrap: wrap;
1497
+ flex-wrap: wrap;
1498
+ }
1499
+
1500
+ .obfx-wrapper .columns.col-gapless {
1501
+ margin-right: 0;
1502
+ margin-left: 0;
1503
+ }
1504
+
1505
+ .obfx-wrapper .columns.col-gapless .column {
1506
+ padding-right: 0;
1507
+ padding-left: 0;
1508
+ }
1509
+
1510
+ .obfx-wrapper .columns.col-oneline {
1511
+ overflow-x: auto;
1512
+
1513
+ -webkit-flex-wrap: nowrap;
1514
+ -ms-flex-wrap: nowrap;
1515
+ flex-wrap: nowrap;
1516
+ }
1517
+
1518
+ .obfx-wrapper .column {
1519
+ max-width: 100%;
1520
+ padding: 1rem;
1521
+
1522
+ -webkit-box-flex: 1;
1523
+ -webkit-flex: 1;
1524
+ -ms-flex: 1;
1525
+ flex: 1;
1526
+ }
1527
+
1528
+ .obfx-wrapper .column.col-12,
1529
+ .obfx-wrapper .column.col-11,
1530
+ .obfx-wrapper .column.col-10,
1531
+ .obfx-wrapper .column.col-9,
1532
+ .obfx-wrapper .column.col-8,
1533
+ .obfx-wrapper .column.col-7,
1534
+ .obfx-wrapper .column.col-6,
1535
+ .obfx-wrapper .column.col-5,
1536
+ .obfx-wrapper .column.col-4,
1537
+ .obfx-wrapper .column.col-3,
1538
+ .obfx-wrapper .column.col-2,
1539
+ .obfx-wrapper .column.col-1 {
1540
+ -webkit-box-flex: 0;
1541
+ -webkit-flex: none;
1542
+ -ms-flex: none;
1543
+ flex: none;
1544
+ }
1545
+
1546
+ .obfx-wrapper .col-12 {
1547
+ width: 100%;
1548
+ }
1549
+
1550
+ .obfx-wrapper .col-11 {
1551
+ width: 91.66666667%;
1552
+ }
1553
+
1554
+ .obfx-wrapper .col-10 {
1555
+ width: 83.33333333%;
1556
+ }
1557
+
1558
+ .obfx-wrapper .col-9 {
1559
+ width: 75%;
1560
+ }
1561
+
1562
+ .obfx-wrapper .col-8 {
1563
+ width: 66.66666667%;
1564
+ }
1565
+
1566
+ .obfx-wrapper .col-7 {
1567
+ width: 58.33333333%;
1568
+ }
1569
+
1570
+ .obfx-wrapper .col-6 {
1571
+ width: 50%;
1572
+ }
1573
+
1574
+ .obfx-wrapper .col-5 {
1575
+ width: 41.66666667%;
1576
+ }
1577
+
1578
+ .obfx-wrapper .col-4 {
1579
+ width: 33.33333333%;
1580
+ }
1581
+
1582
+ .obfx-wrapper .col-3 {
1583
+ width: 25%;
1584
+ }
1585
+
1586
+ .obfx-wrapper .col-2 {
1587
+ width: 16.66666667%;
1588
+ }
1589
+
1590
+ .obfx-wrapper .col-1 {
1591
+ width: 8.33333333%;
1592
+ }
1593
+
1594
+ .obfx-header {
1595
+ border-top: 4px solid #5764c6;
1596
+ }
1597
+
1598
+ .obfx-logo {
1599
+ margin-right: 10px;
1600
+ }
1601
+
1602
+ .obfx-header h1 {
1603
+ letter-spacing: -0.025em;
1604
+ margin-bottom: 0 !important;
1605
+ }
1606
+
1607
+ @media screen and (max-width: 1280px) {
1608
+ .obfx-wrapper .col-xl-12,
1609
+ .obfx-wrapper .col-xl-11,
1610
+ .obfx-wrapper .col-xl-10,
1611
+ .obfx-wrapper .col-xl-9,
1612
+ .obfx-wrapper .col-xl-8,
1613
+ .obfx-wrapper .col-xl-7,
1614
+ .obfx-wrapper .col-xl-6,
1615
+ .obfx-wrapper .col-xl-5,
1616
+ .obfx-wrapper .col-xl-4,
1617
+ .obfx-wrapper .col-xl-3,
1618
+ .obfx-wrapper .col-xl-2,
1619
+ .obfx-wrapper .col-xl-1 {
1620
+ -webkit-box-flex: 0;
1621
+ -webkit-flex: none;
1622
+ -ms-flex: none;
1623
+ flex: none;
1624
+ }
1625
+
1626
+ .obfx-wrapper .col-xl-12 {
1627
+ width: 100%;
1628
+ }
1629
+
1630
+ .obfx-wrapper .col-xl-11 {
1631
+ width: 91.66666667%;
1632
+ }
1633
+
1634
+ .obfx-wrapper .col-xl-10 {
1635
+ width: 83.33333333%;
1636
+ }
1637
+
1638
+ .obfx-wrapper .col-xl-9 {
1639
+ width: 75%;
1640
+ }
1641
+
1642
+ .obfx-wrapper .col-xl-8 {
1643
+ width: 66.66666667%;
1644
+ }
1645
+
1646
+ .obfx-wrapper .col-xl-7 {
1647
+ width: 58.33333333%;
1648
+ }
1649
+
1650
+ .obfx-wrapper .col-xl-6 {
1651
+ width: 50%;
1652
+ }
1653
+
1654
+ .obfx-wrapper .col-xl-5 {
1655
+ width: 41.66666667%;
1656
+ }
1657
+
1658
+ .obfx-wrapper .col-xl-4 {
1659
+ width: 33.33333333%;
1660
+ }
1661
+
1662
+ .obfx-wrapper .col-xl-3 {
1663
+ width: 25%;
1664
+ }
1665
+
1666
+ .obfx-wrapper .col-xl-2 {
1667
+ width: 16.66666667%;
1668
+ }
1669
+
1670
+ .obfx-wrapper .col-xl-1 {
1671
+ width: 8.33333333%;
1672
+ }
1673
+ }
1674
+
1675
+ @media screen and (max-width: 960px) {
1676
+ .obfx-wrapper .col-lg-12,
1677
+ .obfx-wrapper .col-lg-11,
1678
+ .obfx-wrapper .col-lg-10,
1679
+ .obfx-wrapper .col-lg-9,
1680
+ .obfx-wrapper .col-lg-8,
1681
+ .obfx-wrapper .col-lg-7,
1682
+ .obfx-wrapper .col-lg-6,
1683
+ .obfx-wrapper .col-lg-5,
1684
+ .obfx-wrapper .col-lg-4,
1685
+ .obfx-wrapper .col-lg-3,
1686
+ .obfx-wrapper .col-lg-2,
1687
+ .obfx-wrapper .col-lg-1 {
1688
+ -webkit-box-flex: 0;
1689
+ -webkit-flex: none;
1690
+ -ms-flex: none;
1691
+ flex: none;
1692
+ }
1693
+
1694
+ .obfx-wrapper .col-lg-12 {
1695
+ width: 100%;
1696
+ }
1697
+
1698
+ .obfx-wrapper .col-lg-11 {
1699
+ width: 91.66666667%;
1700
+ }
1701
+
1702
+ .obfx-wrapper .col-lg-10 {
1703
+ width: 83.33333333%;
1704
+ }
1705
+
1706
+ .obfx-wrapper .col-lg-9 {
1707
+ width: 75%;
1708
+ }
1709
+
1710
+ .obfx-wrapper .col-lg-8 {
1711
+ width: 66.66666667%;
1712
+ }
1713
+
1714
+ .obfx-wrapper .col-lg-7 {
1715
+ width: 58.33333333%;
1716
+ }
1717
+
1718
+ .obfx-wrapper .col-lg-6 {
1719
+ width: 50%;
1720
+ }
1721
+
1722
+ .obfx-wrapper .col-lg-5 {
1723
+ width: 41.66666667%;
1724
+ }
1725
+
1726
+ .obfx-wrapper .col-lg-4 {
1727
+ width: 33.33333333%;
1728
+ }
1729
+
1730
+ .obfx-wrapper .col-lg-3 {
1731
+ width: 25%;
1732
+ }
1733
+
1734
+ .obfx-wrapper .col-lg-2 {
1735
+ width: 16.66666667%;
1736
+ }
1737
+
1738
+ .obfx-wrapper .col-lg-1 {
1739
+ width: 8.33333333%;
1740
+ }
1741
+ }
1742
+
1743
+ @media screen and (max-width: 840px) {
1744
+ .obfx-wrapper .col-md-12,
1745
+ .obfx-wrapper .col-md-11,
1746
+ .obfx-wrapper .col-md-10,
1747
+ .obfx-wrapper .col-md-9,
1748
+ .obfx-wrapper .col-md-8,
1749
+ .obfx-wrapper .col-md-7,
1750
+ .obfx-wrapper .col-md-6,
1751
+ .obfx-wrapper .col-md-5,
1752
+ .obfx-wrapper .col-md-4,
1753
+ .obfx-wrapper .col-md-3,
1754
+ .obfx-wrapper .col-md-2,
1755
+ .obfx-wrapper .col-md-1 {
1756
+ -webkit-box-flex: 0;
1757
+ -webkit-flex: none;
1758
+ -ms-flex: none;
1759
+ flex: none;
1760
+ }
1761
+
1762
+ .obfx-wrapper .col-md-12 {
1763
+ width: 100%;
1764
+ }
1765
+
1766
+ .obfx-wrapper .col-md-11 {
1767
+ width: 91.66666667%;
1768
+ }
1769
+
1770
+ .obfx-wrapper .col-md-10 {
1771
+ width: 83.33333333%;
1772
+ }
1773
+
1774
+ .obfx-wrapper .col-md-9 {
1775
+ width: 75%;
1776
+ }
1777
+
1778
+ .obfx-wrapper .col-md-8 {
1779
+ width: 66.66666667%;
1780
+ }
1781
+
1782
+ .obfx-wrapper .col-md-7 {
1783
+ width: 58.33333333%;
1784
+ }
1785
+
1786
+ .obfx-wrapper .col-md-6 {
1787
+ width: 50%;
1788
+ }
1789
+
1790
+ .obfx-wrapper .col-md-5 {
1791
+ width: 41.66666667%;
1792
+ }
1793
+
1794
+ .obfx-wrapper .col-md-4 {
1795
+ width: 33.33333333%;
1796
+ }
1797
+
1798
+ .obfx-wrapper .col-md-3 {
1799
+ width: 25%;
1800
+ }
1801
+
1802
+ .obfx-wrapper .col-md-2 {
1803
+ width: 16.66666667%;
1804
+ }
1805
+
1806
+ .obfx-wrapper .col-md-1 {
1807
+ width: 8.33333333%;
1808
+ }
1809
+ }
1810
+
1811
+ @media screen and (max-width: 600px) {
1812
+ .obfx-wrapper .col-sm-12,
1813
+ .obfx-wrapper .col-sm-11,
1814
+ .obfx-wrapper .col-sm-10,
1815
+ .obfx-wrapper .col-sm-9,
1816
+ .obfx-wrapper .col-sm-8,
1817
+ .obfx-wrapper .col-sm-7,
1818
+ .obfx-wrapper .col-sm-6,
1819
+ .obfx-wrapper .col-sm-5,
1820
+ .obfx-wrapper .col-sm-4,
1821
+ .obfx-wrapper .col-sm-3,
1822
+ .obfx-wrapper .col-sm-2,
1823
+ .obfx-wrapper .col-sm-1 {
1824
+ -webkit-box-flex: 0;
1825
+ -webkit-flex: none;
1826
+ -ms-flex: none;
1827
+ flex: none;
1828
+ }
1829
+
1830
+ .obfx-wrapper .col-sm-12 {
1831
+ width: 100%;
1832
+ }
1833
+
1834
+ .obfx-wrapper .col-sm-11 {
1835
+ width: 91.66666667%;
1836
+ }
1837
+
1838
+ .obfx-wrapper .col-sm-10 {
1839
+ width: 83.33333333%;
1840
+ }
1841
+
1842
+ .obfx-wrapper .col-sm-9 {
1843
+ width: 75%;
1844
+ }
1845
+
1846
+ .obfx-wrapper .col-sm-8 {
1847
+ width: 66.66666667%;
1848
+ }
1849
+
1850
+ .obfx-wrapper .col-sm-7 {
1851
+ width: 58.33333333%;
1852
+ }
1853
+
1854
+ .obfx-wrapper .col-sm-6 {
1855
+ width: 50%;
1856
+ }
1857
+
1858
+ .obfx-wrapper .col-sm-5 {
1859
+ width: 41.66666667%;
1860
+ }
1861
+
1862
+ .obfx-wrapper .col-sm-4 {
1863
+ width: 33.33333333%;
1864
+ }
1865
+
1866
+ .obfx-wrapper .col-sm-3 {
1867
+ width: 25%;
1868
+ }
1869
+
1870
+ .obfx-wrapper .col-sm-2 {
1871
+ width: 16.66666667%;
1872
+ }
1873
+
1874
+ .obfx-wrapper .col-sm-1 {
1875
+ width: 8.33333333%;
1876
+ }
1877
+ }
1878
+
1879
+ @media screen and (max-width: 480px) {
1880
+ .obfx-wrapper .col-xs-12,
1881
+ .obfx-wrapper .col-xs-11,
1882
+ .obfx-wrapper .col-xs-10,
1883
+ .obfx-wrapper .col-xs-9,
1884
+ .obfx-wrapper .col-xs-8,
1885
+ .obfx-wrapper .col-xs-7,
1886
+ .obfx-wrapper .col-xs-6,
1887
+ .obfx-wrapper .col-xs-5,
1888
+ .obfx-wrapper .col-xs-4,
1889
+ .obfx-wrapper .col-xs-3,
1890
+ .obfx-wrapper .col-xs-2,
1891
+ .obfx-wrapper .col-xs-1 {
1892
+ -webkit-box-flex: 0;
1893
+ -webkit-flex: none;
1894
+ -ms-flex: none;
1895
+ flex: none;
1896
+ }
1897
+
1898
+ .obfx-wrapper .col-xs-12 {
1899
+ width: 100%;
1900
+ }
1901
+
1902
+ .obfx-wrapper .col-xs-11 {
1903
+ width: 91.66666667%;
1904
+ }
1905
+
1906
+ .obfx-wrapper .col-xs-10 {
1907
+ width: 83.33333333%;
1908
+ }
1909
+
1910
+ .obfx-wrapper .col-xs-9 {
1911
+ width: 75%;
1912
+ }
1913
+
1914
+ .obfx-wrapper .col-xs-8 {
1915
+ width: 66.66666667%;
1916
+ }
1917
+
1918
+ .obfx-wrapper .col-xs-7 {
1919
+ width: 58.33333333%;
1920
+ }
1921
+
1922
+ .obfx-wrapper .col-xs-6 {
1923
+ width: 50%;
1924
+ }
1925
+
1926
+ .obfx-wrapper .col-xs-5 {
1927
+ width: 41.66666667%;
1928
+ }
1929
+
1930
+ .obfx-wrapper .col-xs-4 {
1931
+ width: 33.33333333%;
1932
+ }
1933
+
1934
+ .obfx-wrapper .col-xs-3 {
1935
+ width: 25%;
1936
+ }
1937
+
1938
+ .obfx-wrapper .col-xs-2 {
1939
+ width: 16.66666667%;
1940
+ }
1941
+
1942
+ .obfx-wrapper .col-xs-1 {
1943
+ width: 8.33333333%;
1944
+ }
1945
+ }
1946
+
1947
+ .obfx-wrapper .show-xs,
1948
+ .obfx-wrapper .show-sm,
1949
+ .obfx-wrapper .show-md,
1950
+ .obfx-wrapper .show-lg,
1951
+ .obfx-wrapper .show-xl {
1952
+ display: none !important;
1953
+ }
1954
+
1955
+ @media screen and (max-width: 480px) {
1956
+ .obfx-wrapper .hide-xs {
1957
+ display: none !important;
1958
+ }
1959
+
1960
+ .obfx-wrapper .show-xs {
1961
+ display: block !important;
1962
+ }
1963
+ }
1964
+
1965
+ @media screen and (max-width: 600px) {
1966
+ .obfx-wrapper .hide-sm {
1967
+ display: none !important;
1968
+ }
1969
+
1970
+ .obfx-wrapper .show-sm {
1971
+ display: block !important;
1972
+ }
1973
+ }
1974
+
1975
+ @media screen and (max-width: 840px) {
1976
+ .obfx-wrapper .hide-md {
1977
+ display: none !important;
1978
+ }
1979
+
1980
+ .obfx-wrapper .show-md {
1981
+ display: block !important;
1982
+ }
1983
+ }
1984
+
1985
+ @media screen and (max-width: 960px) {
1986
+ .obfx-wrapper .hide-lg {
1987
+ display: none !important;
1988
+ }
1989
+
1990
+ .obfx-wrapper .show-lg {
1991
+ display: block !important;
1992
+ }
1993
+ }
1994
+
1995
+ @media screen and (max-width: 1280px) {
1996
+ .obfx-wrapper .hide-xl {
1997
+ display: none !important;
1998
+ }
1999
+
2000
+ .obfx-wrapper .show-xl {
2001
+ display: block !important;
2002
+ }
2003
+ }
2004
+
2005
+ .obfx-wrapper .navbar {
2006
+ display: -webkit-box;
2007
+ display: flex;
2008
+ display: -ms-flexbox;
2009
+ display: -webkit-flex;
2010
+
2011
+ -webkit-align-items: stretch;
2012
+ align-items: stretch;
2013
+ -webkit-box-align: stretch;
2014
+ -webkit-box-pack: justify;
2015
+ -ms-flex-align: stretch;
2016
+ -ms-flex-pack: justify;
2017
+ -webkit-flex-wrap: wrap;
2018
+ -ms-flex-wrap: wrap;
2019
+ flex-wrap: wrap;
2020
+ -webkit-justify-content: space-between;
2021
+ justify-content: space-between;
2022
+ }
2023
+
2024
+ .obfx-wrapper .navbar .navbar-section {
2025
+ display: -webkit-box;
2026
+ display: flex;
2027
+ display: -ms-flexbox;
2028
+ display: -webkit-flex;
2029
+
2030
+ -webkit-align-items: center;
2031
+ align-items: center;
2032
+ -webkit-box-align: center;
2033
+ -webkit-box-flex: 1;
2034
+ -webkit-flex: 1 0 0;
2035
+ -ms-flex: 1 0 0;
2036
+ flex: 1 0 0;
2037
+ -ms-flex-align: center;
2038
+ }
2039
+
2040
+ .obfx-wrapper .navbar .navbar-section:last-child {
2041
+ -webkit-box-pack: end;
2042
+ -ms-flex-pack: end;
2043
+ -webkit-justify-content: flex-end;
2044
+ justify-content: flex-end;
2045
+ }
2046
+
2047
+ .obfx-wrapper .navbar .navbar-center {
2048
+ display: -webkit-box;
2049
+ display: flex;
2050
+ display: -ms-flexbox;
2051
+ display: -webkit-flex;
2052
+
2053
+ -webkit-align-items: center;
2054
+ align-items: center;
2055
+ -webkit-box-align: center;
2056
+ -webkit-box-flex: 0;
2057
+ -webkit-flex: 0 0 auto;
2058
+ -ms-flex: 0 0 auto;
2059
+ flex: 0 0 auto;
2060
+ -ms-flex-align: center;
2061
+ }
2062
+
2063
+ .obfx-wrapper .navbar .navbar-brand {
2064
+ font-size: 1.6rem;
2065
+ font-weight: 500;
2066
+ text-decoration: none;
2067
+ }
2068
+
2069
+ .obfx-wrapper .panel {
2070
+ display: -webkit-box;
2071
+ display: flex;
2072
+ display: -ms-flexbox;
2073
+ display: -webkit-flex;
2074
+ flex-direction: column;
2075
+ border: 0.1rem solid #f0f1f4;
2076
+ border-radius: 0.2rem;
2077
+
2078
+ -webkit-box-direction: normal;
2079
+ -webkit-box-orient: vertical;
2080
+ -webkit-flex-direction: column;
2081
+ -ms-flex-direction: column;
2082
+ }
2083
+
2084
+ .obfx-wrapper .panel .panel-header,
2085
+ .obfx-wrapper .panel .panel-footer {
2086
+ padding: 1.5rem;
2087
+
2088
+ -webkit-box-flex: 0;
2089
+ -webkit-flex: 0 0 auto;
2090
+ -ms-flex: 0 0 auto;
2091
+ flex: 0 0 auto;
2092
+ }
2093
+
2094
+ .obfx-wrapper .panel .panel-nav {
2095
+ -webkit-box-flex: 0;
2096
+ -webkit-flex: 0 0 auto;
2097
+ -ms-flex: 0 0 auto;
2098
+ flex: 0 0 auto;
2099
+ }
2100
+
2101
+ .obfx-wrapper .panel .panel-body {
2102
+ overflow-y: auto;
2103
+ padding: 0 1.5rem;
2104
+
2105
+ -webkit-box-flex: 1;
2106
+ -webkit-flex: 1 1 auto;
2107
+ -ms-flex: 1 1 auto;
2108
+ flex: 1 1 auto;
2109
+ }
2110
+
2111
+ .obfx-wrapper .panel .panel-title {
2112
+ font-size: 2rem;
2113
+ }
2114
+
2115
+ .obfx-wrapper .panel .panel-subtitle {
2116
+ color: #bbc1cd;
2117
+ }
2118
+
2119
+ .obfx-wrapper .empty {
2120
+ padding: 4rem;
2121
+ border-radius: 0.2rem;
2122
+ color: #727e96;
2123
+ background: #f8f9fa;
2124
+ text-align: center;
2125
+ }
2126
+
2127
+ .obfx-wrapper .empty .empty-title,
2128
+ .obfx-wrapper .empty .empty-subtitle {
2129
+ margin: 1rem auto;
2130
+ }
2131
+
2132
+ .obfx-wrapper .empty .empty-subtitle {
2133
+ color: #bbc1cd;
2134
+ }
2135
+
2136
+ .obfx-wrapper .empty .empty-action {
2137
+ margin-top: 1.5rem;
2138
+ }
2139
+
2140
+ .obfx-wrapper .form-autocomplete {
2141
+ position: relative;
2142
+ }
2143
+
2144
+ .obfx-wrapper .form-autocomplete .form-autocomplete-input {
2145
+ display: -webkit-box;
2146
+ display: flex;
2147
+ display: -ms-flexbox;
2148
+ display: -webkit-flex;
2149
+ height: auto;
2150
+ min-height: 3.2rem;
2151
+ padding: 0.1rem 0 0 0.1rem;
2152
+
2153
+ -webkit-align-content: flex-start;
2154
+ align-content: flex-start;
2155
+ -ms-flex-line-pack: start;
2156
+ -webkit-flex-wrap: wrap;
2157
+ -ms-flex-wrap: wrap;
2158
+ flex-wrap: wrap;
2159
+ }
2160
+
2161
+ .obfx-wrapper .form-autocomplete .form-autocomplete-input.is-focused {
2162
+ border-color: #5764c6;
2163
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
2164
+ box-shadow: 0 0 0 0.2rem rgba(87, 100, 198, 0.15);
2165
+ }
2166
+
2167
+ .obfx-wrapper .form-autocomplete .form-autocomplete-input .form-input {
2168
+ display: inline-block;
2169
+ width: auto;
2170
+ height: 2.8rem;
2171
+ padding: 0.3rem 0.8rem;
2172
+ border-color: transparent;
2173
+ -webkit-box-shadow: none;
2174
+ box-shadow: none;
2175
+
2176
+ -webkit-box-flex: 1;
2177
+ -webkit-flex: 1 0 auto;
2178
+ -ms-flex: 1 0 auto;
2179
+ flex: 1 0 auto;
2180
+ }
2181
+
2182
+ .obfx-wrapper .form-autocomplete mark {
2183
+ padding: 0.1em 0;
2184
+ font-size: 1em;
2185
+ }
2186
+
2187
+ .obfx-wrapper .form-autocomplete .menu {
2188
+ position: absolute;
2189
+ top: 100%;
2190
+ left: 0;
2191
+ width: 100%;
2192
+ }
2193
+
2194
+ .obfx-wrapper .avatar {
2195
+ display: inline-block;
2196
+ position: relative;
2197
+ width: 3.2rem;
2198
+ height: 3.2rem;
2199
+ margin: 0;
2200
+ border-radius: 50%;
2201
+ color: rgba(255, 255, 255, 0.85);
2202
+ background: #5764c6;
2203
+ font-size: 1.4rem;
2204
+ font-weight: 300;
2205
+ line-height: 1;
2206
+ vertical-align: middle;
2207
+ }
2208
+
2209
+ .obfx-wrapper .avatar.avatar-xs {
2210
+ width: 1.6rem;
2211
+ height: 1.6rem;
2212
+ font-size: 0.8rem;
2213
+ }
2214
+
2215
+ .obfx-wrapper .avatar.avatar-sm {
2216
+ width: 2.4rem;
2217
+ height: 2.4rem;
2218
+ font-size: 1rem;
2219
+ }
2220
+
2221
+ .obfx-wrapper .avatar.avatar-lg {
2222
+ width: 4.8rem;
2223
+ height: 4.8rem;
2224
+ font-size: 2rem;
2225
+ }
2226
+
2227
+ .obfx-wrapper .avatar.avatar-xl {
2228
+ width: 6.4rem;
2229
+ height: 6.4rem;
2230
+ font-size: 2.6rem;
2231
+ }
2232
+
2233
+ .obfx-wrapper .avatar img {
2234
+ position: relative;
2235
+ z-index: 100;
2236
+ width: 100%;
2237
+ height: 100%;
2238
+ border-radius: 50%;
2239
+ }
2240
+
2241
+ .obfx-wrapper .avatar .avatar-icon {
2242
+ position: absolute;
2243
+ right: 14.64%;
2244
+ bottom: 14.64%;
2245
+ width: 50%;
2246
+ height: 50%;
2247
+ padding: 0.2rem;
2248
+ background: #fff;
2249
+ -webkit-transform: translate(50%, 50%);
2250
+ -ms-transform: translate(50%, 50%);
2251
+ transform: translate(50%, 50%);
2252
+ }
2253
+
2254
+ .obfx-wrapper .avatar[data-initial]::before {
2255
+ position: absolute;
2256
+ z-index: 1;
2257
+ top: 50%;
2258
+ left: 50%;
2259
+ color: currentColor;
2260
+ content: attr(data-initial);
2261
+ -webkit-transform: translate(-50%, -50%);
2262
+ -ms-transform: translate(-50%, -50%);
2263
+ transform: translate(-50%, -50%);
2264
+ }
2265
+
2266
+ .obfx-wrapper .badge {
2267
+ position: relative;
2268
+ white-space: nowrap;
2269
+ }
2270
+
2271
+ .obfx-wrapper .badge[data-badge]::after,
2272
+ .obfx-wrapper .badge:not([data-badge])::after {
2273
+ display: inline-block;
2274
+ border-radius: 1rem;
2275
+ color: #fff;
2276
+ background: #5764c6;
2277
+ background-clip: padding-box;
2278
+ -webkit-box-shadow: 0 0 0 0.2rem #fff;
2279
+ box-shadow: 0 0 0 0.2rem #fff;
2280
+ content: attr(data-badge);
2281
+ -webkit-transform: translate(-0.2rem, -1rem);
2282
+ -ms-transform: translate(-0.2rem, -1rem);
2283
+ transform: translate(-0.2rem, -1rem);
2284
+ }
2285
+
2286
+ .obfx-wrapper .badge[data-badge]::after {
2287
+ min-width: 1.8rem;
2288
+ height: 1.8rem;
2289
+ padding: 0.3rem 0.5rem;
2290
+ font-size: 1.2rem;
2291
+ line-height: 1;
2292
+ text-align: center;
2293
+ white-space: nowrap;
2294
+ }
2295
+
2296
+ .obfx-wrapper .badge:not([data-badge])::after,
2297
+ .obfx-wrapper .badge[data-badge=""]::after {
2298
+ width: 0.6rem;
2299
+ min-width: 0.6rem;
2300
+ height: 0.6rem;
2301
+ padding: 0;
2302
+ }
2303
+
2304
+ .obfx-wrapper .badge.btn::after {
2305
+ position: absolute;
2306
+ top: 0;
2307
+ right: 0;
2308
+ -webkit-transform: translate(50%, -50%);
2309
+ -ms-transform: translate(50%, -50%);
2310
+ transform: translate(50%, -50%);
2311
+ }
2312
+
2313
+ .obfx-wrapper .badge.avatar::after {
2314
+ position: absolute;
2315
+ z-index: 100;
2316
+ top: 14.64%;
2317
+ right: 14.64%;
2318
+ -webkit-transform: translate(50%, -50%);
2319
+ -ms-transform: translate(50%, -50%);
2320
+ transform: translate(50%, -50%);
2321
+ }
2322
+
2323
+ .obfx-wrapper .badge.avatar-xs::after {
2324
+ width: 0.8rem;
2325
+ min-width: 0.8rem;
2326
+ height: 0.8rem;
2327
+ padding: 0;
2328
+ content: "";
2329
+ }
2330
+
2331
+ .obfx-wrapper .bar {
2332
+ display: -webkit-box;
2333
+ display: flex;
2334
+ display: -ms-flexbox;
2335
+ display: -webkit-flex;
2336
+ width: 100%;
2337
+ height: 1.6rem;
2338
+ border-radius: 0.2rem;
2339
+ background: #f0f1f4;
2340
+
2341
+ -webkit-flex-wrap: nowrap;
2342
+ -ms-flex-wrap: nowrap;
2343
+ flex-wrap: nowrap;
2344
+ }
2345
+
2346
+ .obfx-wrapper .bar.bar-sm {
2347
+ height: 0.4rem;
2348
+ }
2349
+
2350
+ .obfx-wrapper .bar .bar-item {
2351
+ display: block;
2352
+ position: relative;
2353
+ width: 0;
2354
+ height: 100%;
2355
+ padding: 0.2rem 0;
2356
+ color: #fff;
2357
+ background: #5764c6;
2358
+ font-size: 1.2rem;
2359
+ line-height: 1;
2360
+ text-align: center;
2361
+
2362
+ -ms-flex-negative: 0;
2363
+ -webkit-flex-shrink: 0;
2364
+ flex-shrink: 0;
2365
+ }
2366
+
2367
+ .obfx-wrapper .bar .bar-item:first-child {
2368
+ border-top-left-radius: 0.2rem;
2369
+ border-bottom-left-radius: 0.2rem;
2370
+ }
2371
+
2372
+ .obfx-wrapper .bar .bar-item:last-child {
2373
+ border-top-right-radius: 0.2rem;
2374
+ border-bottom-right-radius: 0.2rem;
2375
+
2376
+ -ms-flex-negative: 1;
2377
+ -webkit-flex-shrink: 1;
2378
+ flex-shrink: 1;
2379
+ }
2380
+
2381
+ .obfx-wrapper .bar-slider {
2382
+ position: relative;
2383
+ height: 0.2rem;
2384
+ margin: 1rem 0;
2385
+ }
2386
+
2387
+ .obfx-wrapper .bar-slider .bar-item {
2388
+ position: absolute;
2389
+ left: 0;
2390
+ padding: 0;
2391
+ }
2392
+
2393
+ .obfx-wrapper .bar-slider .bar-item:not(:last-child):first-child {
2394
+ z-index: 1;
2395
+ background: #f0f1f4;
2396
+ }
2397
+
2398
+ .obfx-wrapper .bar-slider .bar-slider-btn {
2399
+ position: absolute;
2400
+ top: 50%;
2401
+ right: 0;
2402
+ width: 1.2rem;
2403
+ height: 1.2rem;
2404
+ padding: 0;
2405
+ border: 0;
2406
+ border-radius: 50%;
2407
+ background: #5764c6;
2408
+ -webkit-transform: translate(50%, -50%);
2409
+ -ms-transform: translate(50%, -50%);
2410
+ transform: translate(50%, -50%);
2411
+ }
2412
+
2413
+ .obfx-wrapper .bar-slider .bar-slider-btn:active {
2414
+ -webkit-box-shadow: 0 0 0 0.2rem #5764c6;
2415
+ box-shadow: 0 0 0 0.2rem #5764c6;
2416
+ }
2417
+
2418
+ .obfx-wrapper .card {
2419
+ display: block;
2420
+ border: 0.1rem solid #f0f1f4;
2421
+ border-radius: 0.2rem;
2422
+ background: #fff;
2423
+ }
2424
+
2425
+ .obfx-wrapper .card .card-header,
2426
+ .obfx-wrapper .card .card-body,
2427
+ .obfx-wrapper .card .card-footer {
2428
+ padding: 1.5rem;
2429
+ padding-bottom: 0;
2430
+ }
2431
+
2432
+ .obfx-wrapper .card .card-header:last-child,
2433
+ .obfx-wrapper .card .card-body:last-child,
2434
+ .obfx-wrapper .card .card-footer:last-child {
2435
+ padding-bottom: 1.5rem;
2436
+ }
2437
+
2438
+ .obfx-wrapper .card .card-image {
2439
+ padding-top: 1.5rem;
2440
+ }
2441
+
2442
+ .obfx-wrapper .card .card-image:first-child {
2443
+ padding-top: 0;
2444
+ }
2445
+
2446
+ .obfx-wrapper .card .card-image:first-child img {
2447
+ border-top-left-radius: 0.2rem;
2448
+ border-top-right-radius: 0.2rem;
2449
+ }
2450
+
2451
+ .obfx-wrapper .card .card-image:last-child img {
2452
+ border-bottom-right-radius: 0.2rem;
2453
+ border-bottom-left-radius: 0.2rem;
2454
+ }
2455
+
2456
+ .obfx-wrapper .card .card-title {
2457
+ font-size: 2rem;
2458
+ }
2459
+
2460
+ .obfx-wrapper .card .card-subtitle {
2461
+ color: #bbc1cd;
2462
+ font-size: 1.2rem;
2463
+ }
2464
+
2465
+ .obfx-wrapper .chip {
2466
+ display: -ms-inline-flexbox;
2467
+ display: -webkit-inline-box;
2468
+ display: inline-flex;
2469
+ display: -webkit-inline-flex;
2470
+ max-width: 100%;
2471
+ height: 2.8rem;
2472
+ margin: 0 0.1rem 0.1rem 0;
2473
+ padding: 0.1rem 0.8rem;
2474
+ border-radius: 0.2rem;
2475
+ color: #727e96;
2476
+ background: #f0f1f4;
2477
+ vertical-align: middle;
2478
+ text-decoration: none;
2479
+
2480
+ -webkit-align-items: center;
2481
+ align-items: center;
2482
+ -webkit-box-align: center;
2483
+ -ms-flex-align: center;
2484
+ }
2485
+
2486
+ .obfx-wrapper .chip.active {
2487
+ color: #fff;
2488
+ background: #5764c6;
2489
+ }
2490
+
2491
+ .obfx-wrapper .chip .avatar {
2492
+ margin-right: 0.4rem;
2493
+ margin-left: -0.4rem;
2494
+ }
2495
+
2496
+ .obfx-wrapper .dropdown {
2497
+ display: inline-block;
2498
+ position: relative;
2499
+ }
2500
+
2501
+ .obfx-wrapper .dropdown .menu {
2502
+ display: none;
2503
+ position: absolute;
2504
+ top: 100%;
2505
+ left: 0;
2506
+ -webkit-animation: slide-down 0.2s ease 1;
2507
+ animation: slide-down 0.2s ease 1;
2508
+ }
2509
+
2510
+ .obfx-wrapper .dropdown.dropdown-right .menu {
2511
+ right: 0;
2512
+ left: auto;
2513
+ }
2514
+
2515
+ .obfx-wrapper .dropdown.active .menu,
2516
+ .obfx-wrapper .dropdown .dropdown-toggle:focus + .menu,
2517
+ .obfx-wrapper .dropdown .menu:hover {
2518
+ display: block;
2519
+ }
2520
+
2521
+ .obfx-wrapper .dropdown .btn-group .dropdown-toggle:nth-last-child(2) {
2522
+ border-top-right-radius: 0.2rem;
2523
+ border-bottom-right-radius: 0.2rem;
2524
+ }
2525
+
2526
+ .obfx-wrapper .menu {
2527
+ z-index: 100;
2528
+ min-width: 18rem;
2529
+ margin: 0;
2530
+ padding: 1rem;
2531
+ border-radius: 0.2rem;
2532
+ background: #fff;
2533
+ -webkit-box-shadow: 0 0.1rem 0.4rem rgba(69, 77, 93, 0.3);
2534
+ box-shadow: 0 0.1rem 0.4rem rgba(69, 77, 93, 0.3);
2535
+ list-style: none;
2536
+ -webkit-transform: translateY(0.5rem);
2537
+ -ms-transform: translateY(0.5rem);
2538
+ transform: translateY(0.5rem);
2539
+ }
2540
+
2541
+ .obfx-wrapper .menu .menu-item {
2542
+ margin-top: 0;
2543
+ padding: 0 0.8rem;
2544
+ text-decoration: none;
2545
+ -webkit-user-select: none;
2546
+ -moz-user-select: none;
2547
+ -ms-user-select: none;
2548
+ user-select: none;
2549
+ }
2550
+
2551
+ .obfx-wrapper .menu .menu-item > a {
2552
+ display: block;
2553
+ margin: 0 -0.8rem;
2554
+ padding: 0.6rem 0.8rem;
2555
+ border-radius: 0.2rem;
2556
+ color: inherit;
2557
+ text-decoration: none;
2558
+ }
2559
+
2560
+ .obfx-wrapper .menu .menu-item > a:focus,
2561
+ .obfx-wrapper .menu .menu-item > a:hover {
2562
+ color: #5764c6;
2563
+ }
2564
+
2565
+ .obfx-wrapper .menu .menu-item > a:active,
2566
+ .obfx-wrapper .menu .menu-item > a.active {
2567
+ color: #5764c6;
2568
+ background: #fbfbfe;
2569
+ }
2570
+
2571
+ .obfx-wrapper .menu .menu-badge {
2572
+ float: right;
2573
+ padding: 0.6rem 0;
2574
+ }
2575
+
2576
+ .obfx-wrapper .menu .menu-badge .btn {
2577
+ margin-top: -0.2rem;
2578
+ }
2579
+
2580
+ .obfx-wrapper .modal {
2581
+ display: none;
2582
+ overflow: hidden;
2583
+ position: fixed;
2584
+ top: 0;
2585
+ right: 0;
2586
+ bottom: 0;
2587
+ left: 0;
2588
+ padding: 1rem;
2589
+ opacity: 0;
2590
+
2591
+ -webkit-align-items: center;
2592
+ align-items: center;
2593
+ -webkit-box-align: center;
2594
+ -webkit-box-pack: center;
2595
+ -ms-flex-align: center;
2596
+ -ms-flex-pack: center;
2597
+ -webkit-justify-content: center;
2598
+ justify-content: center;
2599
+ }
2600
+
2601
+ .obfx-wrapper .modal:target,
2602
+ .obfx-wrapper .modal.active {
2603
+ display: -webkit-box;
2604
+ display: flex;
2605
+ display: -ms-flexbox;
2606
+ display: -webkit-flex;
2607
+ z-index: 400;
2608
+ opacity: 1;
2609
+ }
2610
+
2611
+ .obfx-wrapper .modal:target .modal-overlay,
2612
+ .obfx-wrapper .modal.active .modal-overlay {
2613
+ display: block;
2614
+ position: absolute;
2615
+ top: 0;
2616
+ right: 0;
2617
+ bottom: 0;
2618
+ left: 0;
2619
+ background: rgba(69, 77, 93, 0.5);
2620
+ cursor: default;
2621
+ }
2622
+
2623
+ .obfx-wrapper .modal:target .modal-container,
2624
+ .obfx-wrapper .modal.active .modal-container {
2625
+ z-index: 1;
2626
+ max-width: 64rem;
2627
+ -webkit-animation: slide-down 0.2s ease 1;
2628
+ animation: slide-down 0.2s ease 1;
2629
+ }
2630
+
2631
+ .obfx-wrapper .modal.modal-sm .modal-container {
2632
+ max-width: 32rem;
2633
+ }
2634
+
2635
+ .obfx-wrapper .modal-container {
2636
+ display: block;
2637
+ padding: 0;
2638
+ border-radius: 0.2rem;
2639
+ background: #fff;
2640
+ -webkit-box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
2641
+ box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
2642
+ text-align: left;
2643
+ }
2644
+
2645
+ .obfx-wrapper .modal-container .modal-header {
2646
+ padding: 1.5rem;
2647
+ }
2648
+
2649
+ .obfx-wrapper .modal-container .modal-header .modal-title {
2650
+ margin: 0;
2651
+ font-size: 1.6rem;
2652
+ }
2653
+
2654
+ .obfx-wrapper .modal-container .modal-body {
2655
+ overflow-y: auto;
2656
+ position: relative;
2657
+ max-height: 50vh;
2658
+ padding: 1.5rem;
2659
+ }
2660
+
2661
+ .obfx-wrapper .modal-container .modal-footer {
2662
+ padding: 1.5rem;
2663
+ text-align: right;
2664
+ }
2665
+
2666
+ .obfx-wrapper .breadcrumb,
2667
+ .obfx-wrapper .tab,
2668
+ .obfx-wrapper .pagination,
2669
+ .obfx-wrapper .nav {
2670
+ margin: 0.5rem 0;
2671
+ list-style: none;
2672
+ }
2673
+
2674
+ .obfx-wrapper .breadcrumb {
2675
+ padding: 1.2rem;
2676
+ }
2677
+
2678
+ .obfx-wrapper .breadcrumb .breadcrumb-item {
2679
+ display: inline-block;
2680
+ margin: 0;
2681
+ }
2682
+
2683
+ .obfx-wrapper .breadcrumb .breadcrumb-item:last-child {
2684
+ color: #acb3c2;
2685
+ }
2686
+
2687
+ .obfx-wrapper .breadcrumb .breadcrumb-item:not(:first-child)::before {
2688
+ padding: 0 0.4rem;
2689
+ color: #e7e9ed;
2690
+ content: "/";
2691
+ }
2692
+
2693
+ .obfx-wrapper .tab {
2694
+ display: -webkit-box;
2695
+ display: flex;
2696
+ display: -ms-flexbox;
2697
+ display: -webkit-flex;
2698
+
2699
+ -webkit-align-items: center;
2700
+ align-items: center;
2701
+ -webkit-box-align: center;
2702
+ -ms-flex-align: center;
2703
+ -webkit-flex-wrap: wrap;
2704
+ -ms-flex-wrap: wrap;
2705
+ flex-wrap: wrap;
2706
+ }
2707
+
2708
+ .obfx-wrapper .tab .tab-item {
2709
+ margin-top: 0;
2710
+ }
2711
+
2712
+ .obfx-wrapper .tab .tab-item.tab-action {
2713
+ text-align: right;
2714
+
2715
+ -webkit-box-flex: 1;
2716
+ -webkit-flex: 1 0 auto;
2717
+ -ms-flex: 1 0 auto;
2718
+ flex: 1 0 auto;
2719
+ }
2720
+
2721
+ .obfx-wrapper .tab .tab-item a {
2722
+ display: block;
2723
+ margin-top: 0;
2724
+ padding: 0.6rem 1.2rem 0.4rem 1.2rem;
2725
+ border-bottom: 0.2rem solid transparent;
2726
+ color: inherit;
2727
+ text-decoration: none;
2728
+ }
2729
+
2730
+ .obfx-wrapper .tab .tab-item a:focus,
2731
+ .obfx-wrapper .tab .tab-item a:hover {
2732
+ color: #5764c6;
2733
+ }
2734
+
2735
+ .obfx-wrapper .tab .tab-item.active a,
2736
+ .obfx-wrapper .tab .tab-item a.active {
2737
+ border-bottom-color: #5764c6;
2738
+ color: #5764c6;
2739
+ }
2740
+
2741
+ .obfx-wrapper .tab.tab-block .tab-item {
2742
+ text-align: center;
2743
+
2744
+ -webkit-box-flex: 1;
2745
+ -webkit-flex: 1 0 0;
2746
+ -ms-flex: 1 0 0;
2747
+ flex: 1 0 0;
2748
+ }
2749
+
2750
+ .obfx-wrapper .tab.tab-block .tab-item .badge[data-badge]::after {
2751
+ position: absolute;
2752
+ top: -0.4rem;
2753
+ right: -0.4rem;
2754
+ -webkit-transform: translate(0, 0);
2755
+ -ms-transform: translate(0, 0);
2756
+ transform: translate(0, 0);
2757
+ }
2758
+
2759
+ .obfx-wrapper .tab:not(.tab-block) .badge {
2760
+ padding-right: 0.2rem;
2761
+ }
2762
+
2763
+ .obfx-wrapper .pagination {
2764
+ display: -webkit-box;
2765
+ display: flex;
2766
+ display: -ms-flexbox;
2767
+ display: -webkit-flex;
2768
+ }
2769
+
2770
+ .obfx-wrapper .pagination .page-item {
2771
+ margin: 1rem 0.1rem;
2772
+ }
2773
+
2774
+ .obfx-wrapper .pagination .page-item span {
2775
+ display: inline-block;
2776
+ padding: 0.6rem 0.4rem;
2777
+ }
2778
+
2779
+ .obfx-wrapper .pagination .page-item a {
2780
+ display: inline-block;
2781
+ padding: 0.6rem 0.8rem;
2782
+ border-radius: 0.2rem;
2783
+ color: #727e96;
2784
+ text-decoration: none;
2785
+ }
2786
+
2787
+ .obfx-wrapper .pagination .page-item a:focus,
2788
+ .obfx-wrapper .pagination .page-item a:hover {
2789
+ color: #5764c6;
2790
+ }
2791
+
2792
+ .obfx-wrapper .pagination .page-item a[disabled],
2793
+ .obfx-wrapper .pagination .page-item a.disabled {
2794
+ opacity: 0.5;
2795
+ cursor: default;
2796
+ pointer-events: none;
2797
+ }
2798
+
2799
+ .obfx-wrapper .pagination .page-item.active a {
2800
+ color: #fff;
2801
+ background: #5764c6;
2802
+ }
2803
+
2804
+ .obfx-wrapper .pagination .page-item.page-prev,
2805
+ .obfx-wrapper .pagination .page-item.page-next {
2806
+ -webkit-box-flex: 1;
2807
+ -webkit-flex: 1 0 50%;
2808
+ -ms-flex: 1 0 50%;
2809
+ flex: 1 0 50%;
2810
+ }
2811
+
2812
+ .obfx-wrapper .pagination .page-item.page-next {
2813
+ text-align: right;
2814
+ }
2815
+
2816
+ .obfx-wrapper .pagination .page-item .page-item-title {
2817
+ margin: 0;
2818
+ }
2819
+
2820
+ .obfx-wrapper .pagination .page-item .page-item-subtitle {
2821
+ margin: 0;
2822
+ opacity: 0.5;
2823
+ }
2824
+
2825
+ .obfx-wrapper .nav {
2826
+ display: -webkit-box;
2827
+ display: flex;
2828
+ display: -ms-flexbox;
2829
+ display: -webkit-flex;
2830
+ flex-direction: column;
2831
+
2832
+ -webkit-box-direction: normal;
2833
+ -webkit-box-orient: vertical;
2834
+ -webkit-flex-direction: column;
2835
+ -ms-flex-direction: column;
2836
+ }
2837
+
2838
+ .obfx-wrapper .nav .nav-item a {
2839
+ padding: 0.6rem 0.8rem;
2840
+ color: #727e96;
2841
+ text-decoration: none;
2842
+ }
2843
+
2844
+ .obfx-wrapper .nav .nav-item a:focus,
2845
+ .obfx-wrapper .nav .nav-item a:hover {
2846
+ color: #5764c6;
2847
+ }
2848
+
2849
+ .obfx-wrapper .nav .nav-item.active > a {
2850
+ font-weight: bold;
2851
+ }
2852
+
2853
+ .obfx-wrapper .nav .nav-item.active > a:focus,
2854
+ .obfx-wrapper .nav .nav-item.active > a:hover {
2855
+ color: #5764c6;
2856
+ }
2857
+
2858
+ .obfx-wrapper .nav .nav {
2859
+ margin-bottom: 1rem;
2860
+ margin-left: 2rem;
2861
+ }
2862
+
2863
+ .obfx-wrapper .nav .nav a {
2864
+ color: #acb3c2;
2865
+ }
2866
+
2867
+ .obfx-wrapper .popover {
2868
+ display: inline-block;
2869
+ position: relative;
2870
+ }
2871
+
2872
+ .obfx-wrapper .popover .popover-container {
2873
+ position: absolute;
2874
+ z-index: 400;
2875
+ top: 0;
2876
+ left: 50%;
2877
+ width: 32rem;
2878
+ padding: 1rem;
2879
+ opacity: 0;
2880
+ content: attr(data-tooltip);
2881
+ -webkit-transition: -webkit-transform 0.2s ease;
2882
+ transition: transform 0.2s ease, -webkit-transform 0.2s ease;
2883
+ transition: transform 0.2s ease;
2884
+ transition: -webkit-transform 0.2s ease;
2885
+ -webkit-transform: translate(-50%, -50%) scale(0);
2886
+ -ms-transform: translate(-50%, -50%) scale(0);
2887
+ transform: translate(-50%, -50%) scale(0);
2888
+ }
2889
+
2890
+ .obfx-wrapper .popover :focus + .popover-container,
2891
+ .obfx-wrapper .popover:hover .popover-container,
2892
+ .obfx-wrapper .popover .popover-container:hover {
2893
+ display: block;
2894
+ opacity: 1;
2895
+ -webkit-transform: translate(-50%, -100%) scale(1);
2896
+ -ms-transform: translate(-50%, -100%) scale(1);
2897
+ transform: translate(-50%, -100%) scale(1);
2898
+ }
2899
+
2900
+ .obfx-wrapper .popover.popover-right .popover-container {
2901
+ top: 50%;
2902
+ left: 100%;
2903
+ }
2904
+
2905
+ .obfx-wrapper .popover.popover-right :focus + .popover-container,
2906
+ .obfx-wrapper .popover.popover-right:hover .popover-container,
2907
+ .obfx-wrapper .popover.popover-right .popover-container:hover {
2908
+ -webkit-transform: translate(0, -50%) scale(1);
2909
+ -ms-transform: translate(0, -50%) scale(1);
2910
+ transform: translate(0, -50%) scale(1);
2911
+ }
2912
+
2913
+ .obfx-wrapper .popover.popover-bottom .popover-container {
2914
+ top: 100%;
2915
+ left: 50%;
2916
+ }
2917
+
2918
+ .obfx-wrapper .popover.popover-bottom :focus + .popover-container,
2919
+ .obfx-wrapper .popover.popover-bottom:hover .popover-container,
2920
+ .obfx-wrapper .popover.popover-bottom .popover-container:hover {
2921
+ -webkit-transform: translate(-50%, 0) scale(1);
2922
+ -ms-transform: translate(-50%, 0) scale(1);
2923
+ transform: translate(-50%, 0) scale(1);
2924
+ }
2925
+
2926
+ .obfx-wrapper .popover.popover-left .popover-container {
2927
+ top: 50%;
2928
+ left: 0;
2929
+ }
2930
+
2931
+ .obfx-wrapper .popover.popover-left :focus + .popover-container,
2932
+ .obfx-wrapper .popover.popover-left:hover .popover-container,
2933
+ .obfx-wrapper .popover.popover-left .popover-container:hover {
2934
+ -webkit-transform: translate(-100%, -50%) scale(1);
2935
+ -ms-transform: translate(-100%, -50%) scale(1);
2936
+ transform: translate(-100%, -50%) scale(1);
2937
+ }
2938
+
2939
+ .obfx-wrapper .popover .card {
2940
+ border: 0;
2941
+ -webkit-box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
2942
+ box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
2943
+ }
2944
+
2945
+ .obfx-wrapper .step {
2946
+ display: -webkit-box;
2947
+ display: flex;
2948
+ display: -ms-flexbox;
2949
+ display: -webkit-flex;
2950
+ width: 100%;
2951
+ margin: 0.5rem 0;
2952
+ list-style: none;
2953
+
2954
+ -webkit-flex-wrap: nowrap;
2955
+ -ms-flex-wrap: nowrap;
2956
+ flex-wrap: nowrap;
2957
+ }
2958
+
2959
+ .obfx-wrapper .step .step-item {
2960
+ position: relative;
2961
+ min-height: 2rem;
2962
+ margin-top: 0;
2963
+ text-align: center;
2964
+
2965
+ -webkit-box-flex: 1;
2966
+ -webkit-flex: 1 1 0;
2967
+ -ms-flex: 1 1 0;
2968
+ flex: 1 1 0;
2969
+ }
2970
+
2971
+ .obfx-wrapper .step .step-item:not(:first-child)::before {
2972
+ position: absolute;
2973
+ top: 0.9rem;
2974
+ left: -50%;
2975
+ width: 100%;
2976
+ height: 0.2rem;
2977
+ background: #5764c6;
2978
+ content: "";
2979
+ }
2980
+
2981
+ .obfx-wrapper .step .step-item a {
2982
+ display: inline-block;
2983
+ padding: 2rem 1rem 0;
2984
+ color: #acb3c2;
2985
+ text-decoration: none;
2986
+ }
2987
+
2988
+ .obfx-wrapper .step .step-item a::before {
2989
+ display: block;
2990
+ position: absolute;
2991
+ z-index: 1;
2992
+ top: 0.4rem;
2993
+ left: 50%;
2994
+ width: 1.2rem;
2995
+ height: 1.2rem;
2996
+ border: 0.2rem solid #fff;
2997
+ border-radius: 50%;
2998
+ background: #5764c6;
2999
+ content: "";
3000
+ -webkit-transform: translateX(-50%);
3001
+ -ms-transform: translateX(-50%);
3002
+ transform: translateX(-50%);
3003
+ }
3004
+
3005
+ .obfx-wrapper .step .step-item.active a::before {
3006
+ border: 0.2rem solid #5764c6;
3007
+ background: #fff;
3008
+ }
3009
+
3010
+ .obfx-wrapper .step .step-item.active ~ .step-item::before {
3011
+ background: #f0f1f4;
3012
+ }
3013
+
3014
+ .obfx-wrapper .step .step-item.active ~ .step-item a::before {
3015
+ background: #e7e9ed;
3016
+ }
3017
+
3018
+ .obfx-wrapper .tile {
3019
+ display: -webkit-box;
3020
+ display: flex;
3021
+ display: -ms-flexbox;
3022
+ display: -webkit-flex;
3023
+
3024
+ -webkit-align-content: space-between;
3025
+ align-content: space-between;
3026
+ -webkit-align-items: flex-start;
3027
+ align-items: flex-start;
3028
+ -webkit-box-align: start;
3029
+ -ms-flex-align: start;
3030
+ -ms-flex-line-pack: justify;
3031
+ }
3032
+
3033
+ .obfx-wrapper .tile .tile-icon,
3034
+ .obfx-wrapper .tile .tile-action {
3035
+ -webkit-box-flex: 0;
3036
+ -webkit-flex: 0 0 auto;
3037
+ -ms-flex: 0 0 auto;
3038
+ flex: 0 0 auto;
3039
+ }
3040
+
3041
+ .obfx-wrapper .tile .tile-content {
3042
+ -webkit-box-flex: 1;
3043
+ -webkit-flex: 1 1 auto;
3044
+ -ms-flex: 1 1 auto;
3045
+ flex: 1 1 auto;
3046
+ }
3047
+
3048
+ .obfx-wrapper .tile .tile-content:not(:first-child) {
3049
+ padding-left: 1rem;
3050
+ }
3051
+
3052
+ .obfx-wrapper .tile .tile-content:not(:last-child) {
3053
+ padding-right: 1rem;
3054
+ }
3055
+
3056
+ .obfx-wrapper .tile .tile-title {
3057
+ line-height: 2rem;
3058
+ }
3059
+
3060
+ .obfx-wrapper .tile .tile-subtitle {
3061
+ color: #bbc1cd;
3062
+ line-height: 2rem;
3063
+ }
3064
+
3065
+ .obfx-wrapper .tile.tile-centered {
3066
+ -webkit-align-items: center;
3067
+ align-items: center;
3068
+ -webkit-box-align: center;
3069
+ -ms-flex-align: center;
3070
+ }
3071
+
3072
+ .obfx-wrapper .tile.tile-centered .tile-content {
3073
+ overflow: hidden;
3074
+ }
3075
+
3076
+ .obfx-wrapper .tile.tile-centered .tile-title,
3077
+ .obfx-wrapper .tile.tile-centered .tile-subtitle {
3078
+ overflow: hidden;
3079
+ margin-bottom: 0;
3080
+ white-space: nowrap;
3081
+ text-overflow: ellipsis;
3082
+ }
3083
+
3084
+ .obfx-wrapper .toast {
3085
+ display: block;
3086
+ width: 100%;
3087
+ padding: 1rem;
3088
+ border: 0.1rem solid #454d5d;
3089
+ border-color: #454d5d;
3090
+ border-radius: 0.2rem;
3091
+ color: #fff;
3092
+ background: rgba(69, 77, 93, 0.9);
3093
+ }
3094
+
3095
+ .obfx-wrapper .toast.toast-primary {
3096
+ border-color: #5764c6;
3097
+ background: rgba(87, 100, 198, 0.9);
3098
+ }
3099
+
3100
+ .obfx-wrapper .toast.toast-success {
3101
+ border-color: #32b643;
3102
+ background: rgba(50, 182, 67, 0.9);
3103
+ }
3104
+
3105
+ .obfx-wrapper .toast.toast-warning {
3106
+ border-color: #ffb700;
3107
+ background: rgba(255, 183, 0, 0.9);
3108
+ }
3109
+
3110
+ .obfx-wrapper .toast.toast-error {
3111
+ border-color: #e85600;
3112
+ background: rgba(232, 86, 0, 0.9);
3113
+ }
3114
+
3115
+ .obfx-wrapper .toast a {
3116
+ color: #fff;
3117
+ text-decoration: underline;
3118
+ }
3119
+
3120
+ .obfx-wrapper .toast a:focus,
3121
+ .obfx-wrapper .toast a:hover,
3122
+ .obfx-wrapper .toast a:active,
3123
+ .obfx-wrapper .toast a.active {
3124
+ opacity: 0.75;
3125
+ }
3126
+
3127
+ .obfx-wrapper .tooltip {
3128
+ position: relative;
3129
+ }
3130
+
3131
+ .obfx-wrapper .tooltip::after {
3132
+ display: block;
3133
+ overflow: hidden;
3134
+ position: absolute;
3135
+ z-index: 200;
3136
+ bottom: 100%;
3137
+ left: 50%;
3138
+ max-width: 32rem;
3139
+ padding: 0.4rem 0.8rem;
3140
+ border-radius: 0.2rem;
3141
+ opacity: 0;
3142
+ color: #fff;
3143
+ background: rgba(69, 77, 93, 0.9);
3144
+ font-size: 1.2rem;
3145
+ white-space: nowrap;
3146
+ text-overflow: ellipsis;
3147
+ content: attr(data-tooltip);
3148
+ -webkit-transition: all 0.2s ease;
3149
+ transition: all 0.2s ease;
3150
+ -webkit-transform: translate(-50%, 1rem);
3151
+ -ms-transform: translate(-50%, 1rem);
3152
+ transform: translate(-50%, 1rem);
3153
+ pointer-events: none;
3154
+ }
3155
+
3156
+ .obfx-wrapper .tooltip:focus::after,
3157
+ .obfx-wrapper .tooltip:hover::after {
3158
+ opacity: 1;
3159
+ -webkit-transform: translate(-50%, -0.5rem);
3160
+ -ms-transform: translate(-50%, -0.5rem);
3161
+ transform: translate(-50%, -0.5rem);
3162
+ }
3163
+
3164
+ .obfx-wrapper .tooltip[disabled],
3165
+ .obfx-wrapper .tooltip.disabled {
3166
+ pointer-events: auto;
3167
+ }
3168
+
3169
+ .obfx-wrapper .tooltip.tooltip-right::after {
3170
+ bottom: 50%;
3171
+ left: 100%;
3172
+ -webkit-transform: translate(-1rem, 50%);
3173
+ -ms-transform: translate(-1rem, 50%);
3174
+ transform: translate(-1rem, 50%);
3175
+ }
3176
+
3177
+ .obfx-wrapper .tooltip.tooltip-right:focus::after,
3178
+ .obfx-wrapper .tooltip.tooltip-right:hover::after {
3179
+ -webkit-transform: translate(0.5rem, 50%);
3180
+ -ms-transform: translate(0.5rem, 50%);
3181
+ transform: translate(0.5rem, 50%);
3182
+ }
3183
+
3184
+ .obfx-wrapper .tooltip.tooltip-bottom::after {
3185
+ top: 100%;
3186
+ bottom: auto;
3187
+ -webkit-transform: translate(-50%, -1rem);
3188
+ -ms-transform: translate(-50%, -1rem);
3189
+ transform: translate(-50%, -1rem);
3190
+ }
3191
+
3192
+ .obfx-wrapper .tooltip.tooltip-bottom:focus::after,
3193
+ .obfx-wrapper .tooltip.tooltip-bottom:hover::after {
3194
+ -webkit-transform: translate(-50%, 0.5rem);
3195
+ -ms-transform: translate(-50%, 0.5rem);
3196
+ transform: translate(-50%, 0.5rem);
3197
+ }
3198
+
3199
+ .obfx-wrapper .tooltip.tooltip-left::after {
3200
+ right: 100%;
3201
+ bottom: 50%;
3202
+ left: auto;
3203
+ -webkit-transform: translate(1rem, 50%);
3204
+ -ms-transform: translate(1rem, 50%);
3205
+ transform: translate(1rem, 50%);
3206
+ }
3207
+
3208
+ .obfx-wrapper .tooltip.tooltip-left:focus::after,
3209
+ .obfx-wrapper .tooltip.tooltip-left:hover::after {
3210
+ -webkit-transform: translate(-0.5rem, 50%);
3211
+ -ms-transform: translate(-0.5rem, 50%);
3212
+ transform: translate(-0.5rem, 50%);
3213
+ }
3214
+
3215
+ @-webkit-keyframes loading {
3216
+ 0% {
3217
+ -webkit-transform: rotate(0deg);
3218
+ transform: rotate(0deg);
3219
+ }
3220
+
3221
+ 100% {
3222
+ -webkit-transform: rotate(360deg);
3223
+ transform: rotate(360deg);
3224
+ }
3225
+ }
3226
+
3227
+ @keyframes loading {
3228
+ 0% {
3229
+ -webkit-transform: rotate(0deg);
3230
+ transform: rotate(0deg);
3231
+ }
3232
+
3233
+ 100% {
3234
+ -webkit-transform: rotate(360deg);
3235
+ transform: rotate(360deg);
3236
+ }
3237
+ }
3238
+
3239
+ @-webkit-keyframes slide-down {
3240
+ 0% {
3241
+ opacity: 0;
3242
+ -webkit-transform: translateY(-3rem);
3243
+ transform: translateY(-3rem);
3244
+ }
3245
+
3246
+ 100% {
3247
+ opacity: 1;
3248
+ -webkit-transform: translateY(0);
3249
+ transform: translateY(0);
3250
+ }
3251
+ }
3252
+
3253
+ @keyframes slide-down {
3254
+ 0% {
3255
+ opacity: 0;
3256
+ -webkit-transform: translateY(-3rem);
3257
+ transform: translateY(-3rem);
3258
+ }
3259
+
3260
+ 100% {
3261
+ opacity: 1;
3262
+ -webkit-transform: translateY(0);
3263
+ transform: translateY(0);
3264
+ }
3265
+ }
3266
+
3267
+ .obfx-wrapper .divider,
3268
+ .obfx-wrapper .divider-vert {
3269
+ display: block;
3270
+ position: relative;
3271
+ }
3272
+
3273
+ .obfx-wrapper .divider[data-content]::after,
3274
+ .obfx-wrapper .divider-vert[data-content]::after {
3275
+ display: inline-block;
3276
+ padding: 0 0.8rem;
3277
+ color: #e7e9ed;
3278
+ background: #fff;
3279
+ font-size: 1.2rem;
3280
+ content: attr(data-content);
3281
+ -webkit-transform: translateY(-1.1rem);
3282
+ -ms-transform: translateY(-1.1rem);
3283
+ transform: translateY(-1.1rem);
3284
+ }
3285
+
3286
+ .obfx-wrapper .divider {
3287
+ height: 0.1rem;
3288
+ margin: 1rem 0;
3289
+ border-top: 0.1rem solid #f0f1f4;
3290
+ }
3291
+
3292
+ .obfx-wrapper .divider-vert {
3293
+ display: block;
3294
+ padding: 1rem;
3295
+ }
3296
+
3297
+ .obfx-wrapper .divider-vert::before {
3298
+ display: block;
3299
+ position: absolute;
3300
+ top: 1rem;
3301
+ bottom: 1rem;
3302
+ left: 50%;
3303
+ border-left: 0.1rem solid #f0f1f4;
3304
+ content: "";
3305
+ -webkit-transform: translateX(-50%);
3306
+ -ms-transform: translateX(-50%);
3307
+ transform: translateX(-50%);
3308
+ }
3309
+
3310
+ .obfx-wrapper .divider-vert[data-content]::after {
3311
+ position: absolute;
3312
+ top: 50%;
3313
+ left: 50%;
3314
+ padding: 0.4rem 0;
3315
+ -webkit-transform: translate(-50%, -50%);
3316
+ -ms-transform: translate(-50%, -50%);
3317
+ transform: translate(-50%, -50%);
3318
+ }
3319
+
3320
+ .obfx-wrapper .loading {
3321
+ position: relative;
3322
+ min-height: 1.6rem;
3323
+ color: transparent !important;
3324
+ pointer-events: none;
3325
+ }
3326
+
3327
+ .obfx-wrapper .loading::after {
3328
+ display: block;
3329
+ position: absolute;
3330
+ z-index: 1;
3331
+ top: 50%;
3332
+ left: 50%;
3333
+ width: 1.6rem;
3334
+ height: 1.6rem;
3335
+ margin-top: -0.8rem;
3336
+ margin-left: -0.8rem;
3337
+ border: 0.2rem solid #5764c6;
3338
+ border-top-color: transparent;
3339
+ border-right-color: transparent;
3340
+ border-radius: 0.8rem;
3341
+ content: "";
3342
+ -webkit-animation: loading 500ms infinite linear;
3343
+ animation: loading 500ms infinite linear;
3344
+ }
3345
+
3346
+ .obfx-wrapper .clearfix::after,
3347
+ .obfx-wrapper .container::after {
3348
+ display: table;
3349
+ clear: both;
3350
+ content: "";
3351
+ }
3352
+
3353
+ .obfx-wrapper .float-left {
3354
+ float: left !important;
3355
+ }
3356
+
3357
+ .obfx-wrapper .float-right {
3358
+ float: right !important;
3359
+ }
3360
+
3361
+ .obfx-wrapper .rel {
3362
+ position: relative;
3363
+ }
3364
+
3365
+ .obfx-wrapper .abs {
3366
+ position: absolute;
3367
+ }
3368
+
3369
+ .obfx-wrapper .fixed {
3370
+ position: fixed;
3371
+ }
3372
+
3373
+ .obfx-wrapper .centered {
3374
+ display: block;
3375
+ float: none;
3376
+ margin-right: auto;
3377
+ margin-left: auto;
3378
+ }
3379
+
3380
+ .obfx-wrapper .mt-10 {
3381
+ margin-top: 1rem;
3382
+ }
3383
+
3384
+ .obfx-wrapper .mr-10 {
3385
+ margin-right: 1rem;
3386
+ }
3387
+
3388
+ .obfx-wrapper .mb-10 {
3389
+ margin-bottom: 1rem;
3390
+ }
3391
+
3392
+ .obfx-wrapper .ml-10 {
3393
+ margin-left: 1rem;
3394
+ }
3395
+
3396
+ .obfx-wrapper .mt-5 {
3397
+ margin-top: 0.5rem;
3398
+ }
3399
+
3400
+ .obfx-wrapper .mr-5 {
3401
+ margin-right: 0.5rem;
3402
+ }
3403
+
3404
+ .obfx-wrapper .mb-5 {
3405
+ margin-bottom: 0.5rem;
3406
+ }
3407
+
3408
+ .obfx-wrapper .ml-5 {
3409
+ margin-left: 0.5rem;
3410
+ }
3411
+
3412
+ .obfx-wrapper .pt-10 {
3413
+ padding-top: 1rem;
3414
+ }
3415
+
3416
+ .obfx-wrapper .pr-10 {
3417
+ padding-right: 1rem;
3418
+ }
3419
+
3420
+ .obfx-wrapper .pb-10 {
3421
+ padding-bottom: 1rem;
3422
+ }
3423
+
3424
+ .obfx-wrapper .pl-10 {
3425
+ padding-left: 1rem;
3426
+ }
3427
+
3428
+ .obfx-wrapper .pt-5 {
3429
+ padding-top: 0.5rem;
3430
+ }
3431
+
3432
+ .obfx-wrapper .pr-5 {
3433
+ padding-right: 0.5rem;
3434
+ }
3435
+
3436
+ .obfx-wrapper .pb-5 {
3437
+ padding-bottom: 0.5rem;
3438
+ }
3439
+
3440
+ .obfx-wrapper .pl-5 {
3441
+ padding-left: 0.5rem;
3442
+ }
3443
+
3444
+ .obfx-wrapper .block {
3445
+ display: block;
3446
+ }
3447
+
3448
+ .obfx-wrapper .inline {
3449
+ display: inline;
3450
+ }
3451
+
3452
+ .obfx-wrapper .inline-block {
3453
+ display: inline-block;
3454
+ }
3455
+
3456
+ .obfx-wrapper .flex {
3457
+ display: -webkit-box;
3458
+ display: flex;
3459
+ display: -ms-flexbox;
3460
+ display: -webkit-flex;
3461
+ }
3462
+
3463
+ .obfx-wrapper .inline-flex {
3464
+ display: -webkit-inline-box;
3465
+ display: inline-flex;
3466
+ display: -ms-inline-flexbox;
3467
+ display: -webkit-inline-flex;
3468
+ }
3469
+
3470
+ .obfx-wrapper .hide {
3471
+ display: none !important;
3472
+ }
3473
+
3474
+ .obfx-wrapper .visible {
3475
+ visibility: visible;
3476
+ }
3477
+
3478
+ .obfx-wrapper .invisible {
3479
+ visibility: hidden;
3480
+ }
3481
+
3482
+ .obfx-wrapper .text-hide {
3483
+ border: 0;
3484
+ color: transparent;
3485
+ background: transparent;
3486
+ text-shadow: none;
3487
+ font-size: 0;
3488
+ line-height: 0;
3489
+ }
3490
+
3491
+ .obfx-wrapper .text-assistive {
3492
+ overflow: hidden;
3493
+ clip: rect(0, 0, 0, 0);
3494
+ position: absolute;
3495
+ width: 0.1rem;
3496
+ height: 0.1rem;
3497
+ margin: -0.1rem;
3498
+ padding: 0;
3499
+ border: 0;
3500
+ }
3501
+
3502
+ .obfx-wrapper .text-left {
3503
+ text-align: left;
3504
+ }
3505
+
3506
+ .obfx-wrapper .text-right {
3507
+ text-align: right;
3508
+ }
3509
+
3510
+ .obfx-wrapper .text-center {
3511
+ text-align: center;
3512
+ }
3513
+
3514
+ .obfx-wrapper .text-justify {
3515
+ text-align: justify;
3516
+ }
3517
+
3518
+ .obfx-wrapper .text-lowercase {
3519
+ text-transform: lowercase;
3520
+ }
3521
+
3522
+ .obfx-wrapper .text-uppercase {
3523
+ text-transform: uppercase;
3524
+ }
3525
+
3526
+ .obfx-wrapper .text-capitalize {
3527
+ text-transform: capitalize;
3528
+ }
3529
+
3530
+ .obfx-wrapper .text-normal {
3531
+ font-weight: normal;
3532
+ }
3533
+
3534
+ .obfx-wrapper .text-bold {
3535
+ font-weight: bold;
3536
+ }
3537
+
3538
+ .obfx-wrapper .text-italic {
3539
+ font-style: italic;
3540
+ }
3541
+
3542
+ .obfx-wrapper .text-large {
3543
+ font-size: 1.2em;
3544
+ }
3545
+
3546
+ .obfx-wrapper .text-ellipsis {
3547
+ overflow: hidden;
3548
+ white-space: nowrap;
3549
+ text-overflow: ellipsis;
3550
+ }
3551
+
3552
+ .obfx-wrapper .text-clip {
3553
+ overflow: hidden;
3554
+ white-space: nowrap;
3555
+ text-overflow: clip;
3556
+ }
3557
+
3558
+ .obfx-wrapper .text-break {
3559
+ word-wrap: break-word;
3560
+ word-break: break-word;
3561
+ -webkit-hyphens: auto;
3562
+ hyphens: auto;
3563
+
3564
+ -ms-hyphens: auto;
3565
+ }
3566
+
3567
+ .obfx-wrapper .hand {
3568
+ cursor: pointer;
3569
+ }
3570
+
3571
+ .obfx-wrapper .shadow-0 {
3572
+ -webkit-box-shadow: 0 0 0.2rem rgba(69, 77, 93, 0.3);
3573
+ box-shadow: 0 0 0.2rem rgba(69, 77, 93, 0.3);
3574
+ }
3575
+
3576
+ .obfx-wrapper .shadow-1 {
3577
+ -webkit-box-shadow: 0 0.1rem 0.4rem rgba(69, 77, 93, 0.3);
3578
+ box-shadow: 0 0.1rem 0.4rem rgba(69, 77, 93, 0.3);
3579
+ }
3580
+
3581
+ .obfx-wrapper .shadow-2 {
3582
+ -webkit-box-shadow: 0 0.2rem 0.6rem rgba(69, 77, 93, 0.3);
3583
+ box-shadow: 0 0.2rem 0.6rem rgba(69, 77, 93, 0.3);
3584
+ }
3585
+
3586
+ .obfx-wrapper .shadow-3 {
3587
+ -webkit-box-shadow: 0 0.3rem 0.8rem rgba(69, 77, 93, 0.3);
3588
+ box-shadow: 0 0.3rem 0.8rem rgba(69, 77, 93, 0.3);
3589
+ }
3590
+
3591
+ .obfx-wrapper .shadow-4 {
3592
+ -webkit-box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
3593
+ box-shadow: 0 0.4rem 1rem rgba(69, 77, 93, 0.3);
3594
+ }
3595
+
3596
+ .obfx-wrapper .rounded {
3597
+ border-radius: 0.2rem;
3598
+ }
3599
+
3600
+ .obfx-wrapper .circle {
3601
+ border-radius: 50%;
3602
+ }
3603
+
3604
+ .obfx-wrapper .panel .btn-expand.active {
3605
+ -webkit-transition: transform 0.5s ease;
3606
+ -webkit-transition: -webkit-transform 0.5s ease;
3607
+ transition: -webkit-transform 0.5s ease;
3608
+ transition: transform 0.5s ease;
3609
+ transition: transform 0.5s ease, -webkit-transform 0.5s ease;
3610
+ -webkit-transform: rotate( 180deg );
3611
+ -ms-transform: rotate( 180deg );
3612
+ transform: rotate( 180deg );
3613
+ }
3614
+
3615
+ .obfx-wrapper .panel.options {
3616
+ overflow: hidden;
3617
+ height: 75px;
3618
+ -webkit-transition: height 1s;
3619
+ transition: height 1s;
3620
+ }
core/assets/js/orbit-fox-admin.js ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * The admin-specific functionality of the plugin.
3
+ *
4
+ * @link https://themeisle.com
5
+ * @since 1.0.0
6
+ *
7
+ * @package Orbit_Fox
8
+ * @subpackage Orbit_Fox/admin/js
9
+ */
10
+
11
+ var obfx_admin = function( $ ) {
12
+ 'use strict';
13
+ /**
14
+ * All of the code for your admin-facing JavaScript source
15
+ * should reside in this file.
16
+ *
17
+ * Note: It has been assumed you will write jQuery code here, so the
18
+ * $ function reference has been prepared for usage within the scope
19
+ * of this function.
20
+ *
21
+ * This enables you to define handlers, for when the DOM is ready:
22
+ *
23
+ * $(function() {
24
+ *
25
+ * });
26
+ *
27
+ * When the window is loaded:
28
+ *
29
+ * $( window ).load(function() {
30
+ *
31
+ * });
32
+ *
33
+ * ...and/or other possibilities.
34
+ *
35
+ * Ideally, it is not considered best practise to attach more than a
36
+ * single DOM-ready or window-load handler for a particular page.
37
+ * Although scripts in the WordPress core, Plugins and Themes may be
38
+ * practising this, we should strive to set a better example in our own work.
39
+ */
40
+ $( function() {
41
+ // if ( $( '#toplevel_page_jetpack' ).length ) {
42
+ // var obfx_menu = $( '#toplevel_page_obfx_menu' ).clone().wrap( '<p/>' ).parent().html();
43
+ // $( '#toplevel_page_obfx_menu' ).remove();
44
+ // $( '#toplevel_page_jetpack' ).before( obfx_menu );
45
+ // }
46
+ } );
47
+
48
+ $( function() {
49
+ $( '.obfx-mod-switch' ).on( 'click', function() {
50
+ var switch_ref = $( this );
51
+ var checked = switch_ref.is( ':checked' );
52
+ var name = switch_ref.attr( 'name' );
53
+ var noance = switch_ref.val();
54
+
55
+ var post_data = {
56
+ noance: noance,
57
+ name: name,
58
+ checked: checked
59
+ };
60
+ var json_data = JSON.stringify( post_data );
61
+
62
+ var ajax_data = {
63
+ 'action': 'obfx_update_module_active_status',
64
+ 'data': json_data
65
+ };
66
+
67
+ $.post( 'admin-ajax.php', ajax_data, function( response ) {
68
+ if ( response.type === 'success' ) {
69
+ if ( checked ) {
70
+ $( '#obfx-mod-' + name ).slideDown();
71
+ $( '#obfx-mod-' + name ).find( 'fieldset' ).removeAttr( 'disabled' );
72
+ } else {
73
+ $( '#obfx-mod-' + name ).hide();
74
+ $( '#obfx-mod-' + name ).find( 'fieldset' ).attr( 'disabled', true );
75
+ }
76
+ } else {
77
+ switch_ref.attr( 'checked', ! switch_ref.attr( 'checked' ) );
78
+ }
79
+ }, 'json');
80
+ } );
81
+
82
+ $( '.obfx-toast-dismiss' ).on( 'click', function() {
83
+ $( this ).closest( '.obfx-mod-toast' ).slideUp( 400, function() {
84
+ $( this ).removeClass( 'toast-success' );
85
+ $( this ).removeClass( 'toast-error' );
86
+ $( this ).removeClass( 'toast-warning' );
87
+ } );
88
+ } );
89
+
90
+ $( '.btn-expand' ).on( 'click', function() {
91
+ if ( $( this ).hasClass( 'active' ) ) {
92
+ $( this ).removeClass( 'active' );
93
+ $( this ).closest( '.panel-header' ).siblings( '.obfx-module-form' ).removeClass( 'active' );
94
+ $( this ).closest( '.panel.options' ).css( 'height', '75px' );
95
+ } else {
96
+ $( this ).addClass( 'active' );
97
+ $( this ).closest( '.panel-header' ).siblings( '.obfx-module-form' ).addClass( 'active' );
98
+ $( this ).closest( '.panel.options' ).css( 'height', $( this ).closest( '.panel-header' ).siblings( '.obfx-module-form' ).height() + 'px' );
99
+ }
100
+ } );
101
+
102
+ $( '.obfx-module-form' ).on( 'submit', function (e) {
103
+ e.preventDefault();
104
+ } );
105
+
106
+ $( '.obfx-module-form' ).on( 'keyup change', 'input, select, textarea', function () {
107
+ $( this ).closest( 'form' ).find( '[class*="obfx-mod-btn"]:disabled' ).removeAttr( 'disabled' );
108
+ } );
109
+
110
+ $( '.obfx-mod-btn-cancel' ).on( 'click', function () {
111
+ $( this ).closest( 'form' ).trigger( 'reset' );
112
+ $( this ).closest( 'form' ).find( '[class*="obfx-mod-btn"]' ).attr( 'disabled', true );
113
+ } );
114
+
115
+ $( '.obfx-mod-btn-save' ).on( 'click', function () {
116
+ var module_form = $( this ).closest( 'form' );
117
+ module_form.find( '[class*="obfx-mod-btn"]' ).attr( 'disabled', true );
118
+ module_form.find( '.obfx-mod-btn-save' ).addClass( 'loading' );
119
+ module_form.find( $( 'input:checkbox:not(:checked)' ) ).each( function() {
120
+ var input = $( '<input />' );
121
+ input.attr( 'type', 'hidden' );
122
+ input.attr( 'name', $( this ).attr( 'name' ) );
123
+ input.attr( 'value', '0' );
124
+ var form = $( this )[0].form;
125
+ $( form ).append( input );
126
+ } );
127
+ var form_data = module_form.serializeArray();
128
+ var maped_array = {};
129
+ $.each( form_data, function( i, elem ) {
130
+ maped_array[ elem.name ] = elem.value;
131
+ } );
132
+
133
+ form_data = JSON.stringify( maped_array );
134
+
135
+ var ajax_data = {
136
+ 'action': 'obfx_update_module_options',
137
+ 'data': form_data
138
+ };
139
+
140
+ $.post( 'admin-ajax.php', ajax_data, function( response ) {
141
+ module_form.find( '.obfx-mod-btn-save' ).removeClass( 'loading' );
142
+ if ( response.type ) {
143
+ module_form.closest( '.panel' ).find( '.obfx-mod-toast' ).addClass( 'toast-' + response.type );
144
+ module_form.closest( '.panel' ).find( '.obfx-mod-toast span' ).html( response.message );
145
+ module_form.closest( '.panel' ).find( '.obfx-mod-toast' ).show();
146
+ setTimeout( function() {
147
+ module_form.closest( '.panel' ).find( '.obfx-toast-dismiss' ).trigger( 'click' );
148
+ }, 2000 );
149
+ }
150
+ }, 'json');
151
+
152
+ } );
153
+
154
+ } );
155
+
156
+ };
157
+
158
+ obfx_admin( jQuery );
core/includes/class-orbit-fox-activator.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired during plugin activation
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/includes
10
+ */
11
+
12
+ /**
13
+ * Fired during plugin activation.
14
+ *
15
+ * This class defines all code necessary to run during the plugin's activation.
16
+ *
17
+ * @since 1.0.0
18
+ * @package Orbit_Fox
19
+ * @subpackage Orbit_Fox/includes
20
+ * @author Themeisle <friends@themeisle.com>
21
+ */
22
+ class Orbit_Fox_Activator {
23
+
24
+ /**
25
+ * Short Description. (use period)
26
+ *
27
+ * Long Description.
28
+ *
29
+ * @since 1.0.0
30
+ */
31
+ public static function activate() {
32
+
33
+ }
34
+
35
+ }
core/includes/class-orbit-fox-deactivator.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired during plugin deactivation
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/includes
10
+ */
11
+
12
+ /**
13
+ * Fired during plugin deactivation.
14
+ *
15
+ * This class defines all code necessary to run during the plugin's deactivation.
16
+ *
17
+ * @since 1.0.0
18
+ * @package Orbit_Fox
19
+ * @subpackage Orbit_Fox/includes
20
+ * @author Themeisle <friends@themeisle.com>
21
+ */
22
+ class Orbit_Fox_Deactivator {
23
+
24
+ /**
25
+ * Short Description. (use period)
26
+ *
27
+ * Long Description.
28
+ *
29
+ * @since 1.0.0
30
+ */
31
+ public static function deactivate() {
32
+
33
+ }
34
+
35
+ }
core/includes/class-orbit-fox-i18n.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Define the internationalization functionality
4
+ *
5
+ * Loads and defines the internationalization files for this plugin
6
+ * so that it is ready for translation.
7
+ *
8
+ * @link https://themeisle.com
9
+ * @since 1.0.0
10
+ *
11
+ * @package Orbit_Fox
12
+ * @subpackage Orbit_Fox/includes
13
+ */
14
+
15
+ /**
16
+ * Define the internationalization functionality.
17
+ *
18
+ * Loads and defines the internationalization files for this plugin
19
+ * so that it is ready for translation.
20
+ *
21
+ * @since 1.0.0
22
+ * @package Orbit_Fox
23
+ * @subpackage Orbit_Fox/includes
24
+ * @author Themeisle <friends@themeisle.com>
25
+ */
26
+ class Orbit_Fox_I18n {
27
+
28
+
29
+ /**
30
+ * Load the plugin text domain for translation.
31
+ *
32
+ * @since 1.0.0
33
+ */
34
+ public function load_plugin_textdomain() {
35
+
36
+ load_plugin_textdomain(
37
+ 'themeisle-companion',
38
+ false,
39
+ OBX_PATH . '/languages/'
40
+ );
41
+
42
+ }
43
+
44
+
45
+
46
+ }
core/includes/class-orbit-fox-loader.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Register all actions and filters for the plugin
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox
9
+ * @subpackage Orbit_Fox/includes
10
+ */
11
+
12
+ /**
13
+ * Register all actions and filters for the plugin.
14
+ *
15
+ * Maintain a list of all hooks that are registered throughout
16
+ * the plugin, and register them with the WordPress API. Call the
17
+ * run function to execute the list of actions and filters.
18
+ *
19
+ * @package Orbit_Fox
20
+ * @subpackage Orbit_Fox/includes
21
+ * @author Themeisle <friends@themeisle.com>
22
+ */
23
+ class Orbit_Fox_Loader {
24
+
25
+ /**
26
+ * The array of actions registered with WordPress.
27
+ *
28
+ * @since 1.0.0
29
+ * @access protected
30
+ * @var array $actions The actions registered with WordPress to fire when the plugin loads.
31
+ */
32
+ protected $actions;
33
+
34
+ /**
35
+ * The array of filters registered with WordPress.
36
+ *
37
+ * @since 1.0.0
38
+ * @access protected
39
+ * @var array $filters The filters registered with WordPress to fire when the plugin loads.
40
+ */
41
+ protected $filters;
42
+
43
+ /**
44
+ * Initialize the collections used to maintain the actions and filters.
45
+ *
46
+ * @since 1.0.0
47
+ */
48
+ public function __construct() {
49
+
50
+ $this->actions = array();
51
+ $this->filters = array();
52
+
53
+ }
54
+
55
+ /**
56
+ * Add a new action to the collection to be registered with WordPress.
57
+ *
58
+ * @since 1.0.0
59
+ * @param string $hook The name of the WordPress action that is being registered.
60
+ * @param object $component A reference to the instance of the object on which the action is defined.
61
+ * @param string $callback The name of the function definition on the $component.
62
+ * @param int $priority Optional. he priority at which the function should be fired. Default is 10.
63
+ * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1.
64
+ */
65
+ public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
66
+ $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
67
+ }
68
+
69
+ /**
70
+ * Add a new filter to the collection to be registered with WordPress.
71
+ *
72
+ * @since 1.0.0
73
+ * @param string $hook The name of the WordPress filter that is being registered.
74
+ * @param object $component A reference to the instance of the object on which the filter is defined.
75
+ * @param string $callback The name of the function definition on the $component.
76
+ * @param int $priority Optional. he priority at which the function should be fired. Default is 10.
77
+ * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1.
78
+ */
79
+ public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
80
+ $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
81
+ }
82
+
83
+ /**
84
+ * A utility function that is used to register the actions and hooks into a single
85
+ * collection.
86
+ *
87
+ * @since 1.0.0
88
+ * @access private
89
+ * @param array $hooks The collection of hooks that is being registered (that is, actions or filters).
90
+ * @param string $hook The name of the WordPress filter that is being registered.
91
+ * @param object $component A reference to the instance of the object on which the filter is defined.
92
+ * @param string $callback The name of the function definition on the $component.
93
+ * @param int $priority The priority at which the function should be fired.
94
+ * @param int $accepted_args The number of arguments that should be passed to the $callback.
95
+ * @return array The collection of actions and filters registered with WordPress.
96
+ */
97
+ private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
98
+
99
+ $hooks[] = array(
100
+ 'hook' => $hook,
101
+ 'component' => $component,
102
+ 'callback' => $callback,
103
+ 'priority' => $priority,
104
+ 'accepted_args' => $accepted_args,
105
+ );
106
+
107
+ return $hooks;
108
+
109
+ }
110
+
111
+ /**
112
+ * Register the filters and actions with WordPress.
113
+ *
114
+ * @since 1.0.0
115
+ */
116
+ public function run() {
117
+
118
+ foreach ( $this->filters as $hook ) {
119
+ add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
120
+ }
121
+
122
+ foreach ( $this->actions as $hook ) {
123
+ add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
124
+ }
125
+
126
+ }
127
+
128
+ }
core/includes/class-orbit-fox.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The file that defines the core plugin class
4
+ *
5
+ * A class definition that includes attributes and functions used across both the
6
+ * public-facing side of the site and the admin area.
7
+ *
8
+ * @link https://themeisle.com
9
+ * @since 1.0.0
10
+ *
11
+ * @package Orbit_Fox
12
+ * @subpackage Orbit_Fox/includes
13
+ */
14
+
15
+ /**
16
+ * The core plugin class.
17
+ *
18
+ * This is used to define internationalization, admin-specific hooks, and
19
+ * public-facing site hooks.
20
+ *
21
+ * Also maintains the unique identifier of this plugin as well as the current
22
+ * version of the plugin.
23
+ *
24
+ * @since 1.0.0
25
+ * @package Orbit_Fox
26
+ * @subpackage Orbit_Fox/includes
27
+ * @author Themeisle <friends@themeisle.com>
28
+ */
29
+ class Orbit_Fox {
30
+
31
+ /**
32
+ * The loader that's responsible for maintaining and registering all hooks that power
33
+ * the plugin.
34
+ *
35
+ * @since 1.0.0
36
+ * @access protected
37
+ * @var Orbit_Fox_Loader $loader Maintains and registers all hooks for the plugin.
38
+ */
39
+ protected $loader;
40
+
41
+ /**
42
+ * The unique identifier of this plugin.
43
+ *
44
+ * @since 1.0.0
45
+ * @access protected
46
+ * @var string $plugin_name The string used to uniquely identify this plugin.
47
+ */
48
+ protected $plugin_name;
49
+
50
+ /**
51
+ * The current version of the plugin.
52
+ *
53
+ * @since 1.0.0
54
+ * @access protected
55
+ * @var string $version The current version of the plugin.
56
+ */
57
+ protected $version;
58
+
59
+ /**
60
+ * Define the core functionality of the plugin.
61
+ *
62
+ * Set the plugin name and the plugin version that can be used throughout the plugin.
63
+ * Load the dependencies, define the locale, and set the hooks for the admin area and
64
+ * the public-facing side of the site.
65
+ *
66
+ * @since 1.0.0
67
+ */
68
+ public function __construct() {
69
+
70
+ $this->plugin_name = 'orbit-fox';
71
+ $this->version = '2.0.1';
72
+
73
+ $this->load_dependencies();
74
+ $this->set_locale();
75
+ $this->prepare_modules();
76
+ $this->define_hooks();
77
+
78
+ }
79
+
80
+ /**
81
+ * Load the required dependencies for this plugin.
82
+ *
83
+ * Include the following files that make up the plugin:
84
+ *
85
+ * - Orbit_Fox_Loader. Orchestrates the hooks of the plugin.
86
+ * - Orbit_Fox_i18n. Defines internationalization functionality.
87
+ * - Orbit_Fox_Admin. Defines all hooks for the admin area.
88
+ * - Orbit_Fox_Public. Defines all hooks for the public side of the site.
89
+ *
90
+ * Create an instance of the loader which will be used to register the hooks
91
+ * with WordPress.
92
+ *
93
+ * @since 1.0.0
94
+ * @access private
95
+ */
96
+ private function load_dependencies() {
97
+ $this->loader = new Orbit_Fox_Loader();
98
+ }
99
+
100
+ /**
101
+ * Define the locale for this plugin for internationalization.
102
+ *
103
+ * Uses the Orbit_Fox_i18n class in order to set the domain and to register the hook
104
+ * with WordPress.
105
+ *
106
+ * @since 1.0.0
107
+ * @access private
108
+ */
109
+ private function set_locale() {
110
+
111
+ $plugin_i18n = new Orbit_Fox_I18n();
112
+
113
+ $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
114
+
115
+ }
116
+
117
+ /**
118
+ * Check Modules and register them.
119
+ *
120
+ * @since 1.0.0
121
+ * @access private
122
+ */
123
+ private function prepare_modules() {
124
+ $global_settings = new Orbit_Fox_Global_Settings();
125
+ $modules_to_load = $global_settings->instance()->get_modules();
126
+ $obfx_model = new Orbit_Fox_Model();
127
+
128
+ $module_factory = new Orbit_Fox_Module_Factory();
129
+ foreach ( $modules_to_load as $module_name ) {
130
+ $module = $module_factory::build( $module_name );
131
+ $global_settings->register_module_reference( $module_name, $module );
132
+ if ( $module->enable_module() ) {
133
+ $module->register_loader( $this->get_loader() );
134
+ $module->register_model( $obfx_model );
135
+ if ( $module->get_is_active() ) {
136
+ $module->set_enqueue( $this->get_version() ); // @codeCoverageIgnore
137
+ $module->hooks(); // @codeCoverageIgnore
138
+ }
139
+ $this->loader->add_action( 'orbit_fox_modules', $module, 'load' );
140
+ }
141
+ }
142
+ }
143
+
144
+ /**
145
+ * Register all of the hooks related to the functionality
146
+ * of the plugin.
147
+ *
148
+ * @since 1.0.0
149
+ * @access private
150
+ */
151
+ private function define_hooks() {
152
+
153
+ $plugin_admin = new Orbit_Fox_Admin( $this->get_plugin_name(), $this->get_version() );
154
+
155
+ $this->loader->add_action( 'admin_init', $plugin_admin, 'load_modules' );
156
+ $this->loader->add_action( 'admin_menu', $plugin_admin, 'menu_pages' );
157
+ $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
158
+ $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
159
+ $this->loader->add_action( 'wp_ajax_obfx_update_module_options', $plugin_admin, 'obfx_update_module_options' );
160
+ $this->loader->add_action( 'wp_ajax_obfx_update_module_active_status', $plugin_admin, 'obfx_update_module_active_status' );
161
+
162
+ $plugin_public = new Orbit_Fox_Public( $this->get_plugin_name(), $this->get_version() );
163
+
164
+ $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
165
+ $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
166
+
167
+ }
168
+
169
+ /**
170
+ * Run the loader to execute all of the hooks with WordPress.
171
+ *
172
+ * @since 1.0.0
173
+ */
174
+ public function run() {
175
+ $this->loader->run();
176
+ }
177
+
178
+ /**
179
+ * The name of the plugin used to uniquely identify it within the context of
180
+ * WordPress and to define internationalization functionality.
181
+ *
182
+ * @since 1.0.0
183
+ * @return string The name of the plugin.
184
+ */
185
+ public function get_plugin_name() {
186
+ return $this->plugin_name;
187
+ }
188
+
189
+ /**
190
+ * The reference to the class that orchestrates the hooks with the plugin.
191
+ *
192
+ * @since 1.0.0
193
+ * @return Orbit_Fox_Loader Orchestrates the hooks of the plugin.
194
+ */
195
+ public function get_loader() {
196
+ return $this->loader;
197
+ }
198
+
199
+ /**
200
+ * Retrieve the version number of the plugin.
201
+ *
202
+ * @since 1.0.0
203
+ * @return string The version number of the plugin.
204
+ */
205
+ public function get_version() {
206
+ return $this->version;
207
+ }
208
+
209
+ }
core/includes/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
docs/MODULE.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Orbit Fox
2
+
3
+ [Home](../README.md)
4
+
5
+ ## Module developing guidelines
6
+
7
+ ### File Structure
8
+
9
+ All modules reside inside a folder called `obfx_modules`. Inside this folder, each module
10
+ resides in a folder with the same name as the module slug.
11
+
12
+ The module folder can have the following structure:
13
+ ```$bash
14
+ module_slug/
15
+ |-- css/
16
+ | |_ ... # files that contain the css for the module
17
+ |
18
+ |-- js/
19
+ | |_ ... # files that contain the js for the module
20
+ |
21
+ |-- views/
22
+ | |_ ... # files that contain the display for the module
23
+ |
24
+ |_ init.php # entry point to plugin
25
+ ```
26
+ In addition you can extend and add to this structure as need, but this is the minimum required
27
+ file structure for a module to be considered by Orbit Fox.
28
+
29
+ The entry point `init.php` must define a class that respects the following namespace pattern
30
+ `Module_Slug_OBFX_Module` and must extend `Orbit_Fox_Module_Abstract`.
31
+
32
+ ### Required Methods
33
+
34
+ By extending the `Orbit_Fox_Module_Abstract` class you benefit from Orbit Fox’s automagic
35
+ methods that make it easy for you to write modules also enforces the required methods for
36
+ the module to work.
37
+
38
+ The methods need for the module to work are as follows:
39
+
40
+ - `enable_module()` - This method should return true or false and its purpose is to signal
41
+ to Orbit Fox if this method should be listed or not. Is applicable to the current install
42
+ or not. (**Eg.** *A specific theme or plugin exists, needed for the module to be valid.*)
43
+
44
+ - `load()` - This method contains logic needed for the module to load. A hook is registered
45
+ with WordPress for the init action that calls for this method. Use it as needed. No return
46
+ type is specified.
47
+
48
+ - `hooks()` - This method is invoked to register actions and filters defined here via
49
+ the `$this->loader` class variable inherited from the abstract class `Orbit_Fox_Module_Abstract`.
50
+ An example would be:
51
+ ```$php
52
+ public function hooks() {
53
+ ...
54
+ $this->loader->add_action( 'wordpress_action_name', $this, 'module_public_method' );
55
+ $this->loader->add_filter( 'wordpress_filter_name', $this, 'module_public_method', 10, 2 );
56
+ ...
57
+ }
58
+ ```
59
+
60
+ - `public_enqueue()` and `admin_enqueue()` - This methods are similar, they both return an array
61
+ of resources that Orbit Fox should enqueue. The difference is that one is used for the front end
62
+ and the latter is used for the admin. Example of the returned array:
63
+ ```$php
64
+ array(
65
+ 'js' => array(
66
+ 'vendor/lib' => array( 'jquery' ), // ../js/vendor/lib.js
67
+ 'script' => array( 'jquery' ), // ../js/script.js
68
+ ),
69
+ 'css' => array(
70
+ 'style' => false, // ../css/style.css
71
+ ),
72
+ );
73
+ ```
74
+
75
+ - `options()` - This method returns an array of options needed by the module. Options defined here
76
+ also build form elements inside Orbit Fox Admin area for setting defined Module Options.
77
+ Example of returned array:
78
+ ```$php
79
+ array(
80
+ ...
81
+ array(
82
+ 'id' => 'option_id', // id for the input element
83
+ 'name' => 'option_name', // the name to store in DB
84
+ 'title' => 'Mod Option Title', // title for the form element
85
+ 'description' => 'Mod Option Description ...', // Description
86
+ 'type' => 'text', // type of element: (text, textarea, select, radio etc.)
87
+ 'default' => '', // a default value if needed
88
+ 'placeholder' => 'Add some text', // placeholder (* optional)
89
+ ),
90
+ ...
91
+ );
92
+ ```
93
+
94
+ In addition you can assign values inside the `__construct()` method to the predefined class vars:
95
+
96
+ - `$name` - The name of the module. Is displayed inside Orbit Fox Modules.
97
+ - `$description` - A short description for the module. Is displayed inside Orbit Fox Modules.
98
+ - `$auto` - Flag for autoloading Module.
99
+
100
+ **NOTE:** Remember to also have a call to `parent::__construct();` so that you can inherit
101
+ required functionality from the base model.
102
+
103
+ ## Registering the module
104
+
105
+ **If your module is part of the core deployment of Orbit Fox** just add the module slug inside
106
+ the Global Settings **$modules** array.
107
+
108
+ **If your module is third party**, you need to register a filter `obfx_modules` to append your
109
+ module slug to the Global Settings **$modules** array.
110
+
111
+
images/orbit-fox.png ADDED
Binary file
inc/rhea/assets/css/admin-style.css DELETED
@@ -1,124 +0,0 @@
1
- #fontawesome-popup {
2
- display: none;
3
- height: 520px;
4
- }
5
- #fontawesome-popup:after {
6
- display: block;
7
- content: "";
8
- clear: both;
9
- }
10
- .ui-widget-overlay {
11
- position: fixed;
12
- z-index: 999998;
13
- background: rgba( 0,0,0,.4 );
14
- width: 100%;
15
- height: 100%;
16
- top: 0;
17
- }
18
- .rhea-fontawesome-dialog {
19
- z-index: 999999;
20
- -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.7);
21
- box-shadow: 0 5px 15px rgba(0,0,0,.7);
22
- background: #fcfcfc;
23
- }
24
- .rhea-fontawesome-dialog .ui-dialog-titlebar {
25
- padding: 0 15px;
26
- font-size: 22px;
27
- line-height: 50px;
28
- margin: 0;
29
- color: #23282d;
30
- border-bottom: 1px solid #ddd;
31
- font-weight: 600;
32
- }
33
- .rhea-fontawesome-dialog .ui-dialog-titlebar .ui-button {
34
- float: right;
35
- }
36
- #fontawesome-popup .left-side {
37
- float: left;
38
- width: 20%;
39
- box-sizing: border-box;
40
- padding: 15px;
41
- }
42
- #fontawesome-popup .right-side {
43
- float: left;
44
- width: 80%;
45
- box-sizing: border-box;
46
- padding: 15px;
47
- background: #fff;
48
- border-left: 1px solid #ccc;
49
- height: 507px;
50
- overflow-y: scroll;
51
- }
52
- .ui-dialog.rhea-fontawesome-dialog .ui-dialog-titlebar-close {
53
- background: transparent;
54
- box-shadow: none;
55
- border: 0 none;
56
- margin: 14px 0;
57
- padding-right: 0;
58
- cursor: pointer;
59
- }
60
- .ui-dialog.rhea-fontawesome-dialog .ui-button-icon-only .ui-icon:after {
61
- content: "\f158";
62
- font-family: "dashicons";
63
- font-size: 20px;
64
- color: #23282d;
65
- display: block;
66
- left: 0;
67
- top: 0;
68
- width: 20px;
69
- height: 20px;
70
- text-indent: 1px;
71
- }
72
- .ui-dialog.rhea-fontawesome-dialog .ui-button-text {
73
- display: none;
74
- }
75
- .filter-icons li {
76
- cursor: pointer;
77
- }
78
- .filter-icons li.active {
79
- font-weight: bold;
80
- }
81
- a.rhea-fontawesome-icon {
82
- width: 5%;
83
- display: inline-block;
84
- font-size: 20px;
85
- text-align: center;
86
- margin-bottom: 10px;
87
- padding: 5px 0;
88
- }
89
- a.rhea-fontawesome-icon:hover {
90
- background-color: #ccc;
91
- color: #fff;
92
- }
93
-
94
- /* Style Input */
95
- .icon-holder p {
96
- padding: 20px 0;
97
- text-align: center;
98
- border: 1px dashed #ccc;
99
- color: rgba( 0,0,0,.6 );
100
- margin:0;
101
- }
102
- .empty-icon .change-icon-button,
103
- .empty-icon .remove-icon-button,
104
- .icon-holder p,
105
- .empty-icon i,
106
- .wp-core-ui .actions .button.add-icon-button {
107
- display: none;
108
- }
109
- .empty-icon .icon-holder p {
110
- display: block;
111
- }
112
- .wp-core-ui .empty-icon .actions .button.add-icon-button {
113
- display: inline-block;
114
- }
115
- .fontawesome-icon-container .actions {
116
- text-align: right;
117
- }
118
- .icon-holder {
119
- margin: 20px 0;
120
- text-align: center;
121
- }
122
- .icon-holder i {
123
- font-size: 50px;
124
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/assets/js/fontawesome.jquery.js DELETED
@@ -1,97 +0,0 @@
1
- jQuery(document).ready(function($){
2
-
3
- var currentCategories = [];
4
-
5
- $.each( icons.icons, function(index,el){
6
-
7
- var currentIconCategories = '';
8
-
9
- // collect all icons' categories
10
- $.each(el.categories, function(c_index,category){
11
- var aux = category.toLowerCase();
12
- aux = aux.replace(/\s+/g, '-');
13
- currentIconCategories = currentIconCategories+aux+' ';
14
- if ( $.inArray(category, currentCategories) < 0 ) {
15
- currentCategories.push(category);
16
- }
17
- });
18
-
19
- if ( el.filter != undefined ) {
20
- var search = el.filter;
21
- search.push(el.name);
22
- search = search.join(' ');
23
- }else{
24
- var search = el.name;
25
- }
26
-
27
- var css_class = 'fa fa-'+el.id;
28
- var icon_html = '<a href="#" data-search="'+search+'" data-class="'+css_class+'" class="'+currentIconCategories+'rhea-fontawesome-icon"><i class="'+css_class+'"></i></a>';
29
- $('#fontawesome-popup .right-side').append(icon_html);
30
-
31
- });
32
-
33
- currentCategories.sort();
34
-
35
- $.each(currentCategories, function( index, category ){
36
- var aux = category.toLowerCase();
37
- aux = aux.replace(/\s+/g, '-');
38
- $('.filter-icons').append('<li data-filter="'+aux+'">'+category+'</li>');
39
- });
40
-
41
- $('#fontawesome-popup .filter-icons li').live('click', function(){
42
- $('#fontawesome-popup .filter-icons li.active').removeClass('active');
43
- $(this).addClass('active');
44
- var filter = $(this).data('filter');
45
- if ( filter != 'all' ) {
46
- $('#fontawesome-popup .rhea-fontawesome-icon.'+filter).show();
47
- $('#fontawesome-popup .rhea-fontawesome-icon').not('.'+filter).hide();
48
- }else{
49
- $('#fontawesome-popup .rhea-fontawesome-icon').show();
50
- }
51
- });
52
-
53
- var Rhea_FP = {'element':''};
54
-
55
- Rhea_FP.open = function( element ){
56
- Rhea_FP.element = element;
57
- $( "#fontawesome-popup" ).dialog({
58
- title: "Select Icon",
59
- resizable: false,
60
- minHeight: 520,
61
- width: 980,
62
- modal: true,
63
- closeOnEscape: true,
64
- dialogClass: 'rhea-fontawesome-dialog',
65
- });
66
- };
67
-
68
- Rhea_FP.close = function(){
69
- Rhea_FP.element = '';
70
- $( "#fontawesome-popup" ).dialog( "close" );
71
- };
72
-
73
- $('.add-icon-button').live('click', function(){
74
- var parent = $(this).parent().parent();
75
- Rhea_FP.open(parent);
76
- });
77
-
78
- $('.rhea-fontawesome-icon').live('click', function( evt ){
79
- evt.preventDefault();
80
- var icon = $(this).data('class');
81
- Rhea_FP.element.removeClass('empty-icon');
82
- Rhea_FP.element.find('input').val(icon);
83
- Rhea_FP.element.find('.icon-holder i').attr('class', icon);
84
- Rhea_FP.close();
85
- });
86
-
87
- $('.change-icon-button').live('click', function(){
88
- var parent = $(this).parent().parent();
89
- Rhea_FP.open(parent);
90
- });
91
-
92
- $('.remove-icon-button').live('click', function(){
93
- $(this).parent().parent().addClass('empty-icon');
94
- $(this).parent().parent().find('input').val('');
95
- });
96
-
97
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/assets/js/icons.js DELETED
@@ -1,3790 +0,0 @@
1
- var icons = { icons:
2
- [ { name: 'Glass',
3
- id: 'glass',
4
- unicode: 'f000',
5
- created: 1,
6
- filter: [ 'martini', 'drink', 'bar', 'alcohol', 'liquor' ],
7
- categories: [ 'Web Application Icons' ] },
8
- { name: 'Music',
9
- id: 'music',
10
- unicode: 'f001',
11
- created: 1,
12
- filter: [ 'note', 'sound' ],
13
- categories: [ 'Web Application Icons' ] },
14
- { name: 'Search',
15
- id: 'search',
16
- unicode: 'f002',
17
- created: 1,
18
- filter: [ 'magnify', 'zoom', 'enlarge', 'bigger' ],
19
- categories: [ 'Web Application Icons' ] },
20
- { name: 'Envelope Outlined',
21
- id: 'envelope-o',
22
- unicode: 'f003',
23
- created: 1,
24
- filter: [ 'email', 'support', 'e-mail', 'letter', 'mail', 'notification' ],
25
- categories: [ 'Web Application Icons' ] },
26
- { name: 'Heart',
27
- id: 'heart',
28
- unicode: 'f004',
29
- created: 1,
30
- filter: [ 'love', 'like', 'favorite' ],
31
- categories: [ 'Web Application Icons', 'Medical Icons' ] },
32
- { name: 'Star',
33
- id: 'star',
34
- unicode: 'f005',
35
- created: 1,
36
- filter: [ 'award', 'achievement', 'night', 'rating', 'score', 'favorite' ],
37
- categories: [ 'Web Application Icons' ] },
38
- { name: 'Star Outlined',
39
- id: 'star-o',
40
- unicode: 'f006',
41
- created: 1,
42
- filter: [ 'award', 'achievement', 'night', 'rating', 'score', 'favorite' ],
43
- categories: [ 'Web Application Icons' ] },
44
- { name: 'User',
45
- id: 'user',
46
- unicode: 'f007',
47
- created: 1,
48
- filter: [ 'person', 'man', 'head', 'profile' ],
49
- categories: [ 'Web Application Icons' ] },
50
- { name: 'Film',
51
- id: 'film',
52
- unicode: 'f008',
53
- created: 1,
54
- filter: [ 'movie' ],
55
- categories: [ 'Web Application Icons' ] },
56
- { name: 'th-large',
57
- id: 'th-large',
58
- unicode: 'f009',
59
- created: 1,
60
- filter: [ 'blocks', 'squares', 'boxes', 'grid' ],
61
- categories: [ 'Text Editor Icons' ] },
62
- { name: 'th',
63
- id: 'th',
64
- unicode: 'f00a',
65
- created: 1,
66
- filter: [ 'blocks', 'squares', 'boxes', 'grid' ],
67
- categories: [ 'Text Editor Icons' ] },
68
- { name: 'th-list',
69
- id: 'th-list',
70
- unicode: 'f00b',
71
- created: 1,
72
- filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
73
- categories: [ 'Text Editor Icons' ] },
74
- { name: 'Check',
75
- id: 'check',
76
- unicode: 'f00c',
77
- created: 1,
78
- filter:
79
- [ 'checkmark',
80
- 'done',
81
- 'todo',
82
- 'agree',
83
- 'accept',
84
- 'confirm',
85
- 'tick',
86
- 'ok' ],
87
- categories: [ 'Web Application Icons' ] },
88
- { name: 'Times',
89
- id: 'times',
90
- unicode: 'f00d',
91
- created: 1,
92
- aliases: [ 'remove', 'close' ],
93
- filter: [ 'close', 'exit', 'x', 'cross' ],
94
- categories: [ 'Web Application Icons' ] },
95
- { name: 'Search Plus',
96
- id: 'search-plus',
97
- unicode: 'f00e',
98
- created: 1,
99
- filter: [ 'magnify', 'zoom', 'enlarge', 'bigger' ],
100
- categories: [ 'Web Application Icons' ] },
101
- { name: 'Search Minus',
102
- id: 'search-minus',
103
- unicode: 'f010',
104
- created: 1,
105
- filter: [ 'magnify', 'minify', 'zoom', 'smaller' ],
106
- categories: [ 'Web Application Icons' ] },
107
- { name: 'Power Off',
108
- id: 'power-off',
109
- unicode: 'f011',
110
- created: 1,
111
- filter: [ 'on' ],
112
- categories: [ 'Web Application Icons' ] },
113
- { name: 'signal',
114
- id: 'signal',
115
- unicode: 'f012',
116
- created: 1,
117
- filter: [ 'graph', 'bars' ],
118
- categories: [ 'Web Application Icons' ] },
119
- { name: 'cog',
120
- id: 'cog',
121
- unicode: 'f013',
122
- created: 1,
123
- filter: [ 'settings' ],
124
- aliases: [ 'gear' ],
125
- categories: [ 'Web Application Icons', 'Spinner Icons' ] },
126
- { name: 'Trash Outlined',
127
- id: 'trash-o',
128
- unicode: 'f014',
129
- created: 1,
130
- filter: [ 'garbage', 'delete', 'remove', 'trash', 'hide' ],
131
- categories: [ 'Web Application Icons' ] },
132
- { name: 'home',
133
- id: 'home',
134
- unicode: 'f015',
135
- created: 1,
136
- filter: [ 'main', 'house' ],
137
- categories: [ 'Web Application Icons' ] },
138
- { name: 'File Outlined',
139
- id: 'file-o',
140
- unicode: 'f016',
141
- created: 1,
142
- filter: [ 'new', 'page', 'pdf', 'document' ],
143
- categories: [ 'Text Editor Icons', 'File Type Icons' ] },
144
- { name: 'Clock Outlined',
145
- id: 'clock-o',
146
- unicode: 'f017',
147
- created: 1,
148
- filter: [ 'watch', 'timer', 'late', 'timestamp' ],
149
- categories: [ 'Web Application Icons' ] },
150
- { name: 'road',
151
- id: 'road',
152
- unicode: 'f018',
153
- created: 1,
154
- filter: [ 'street' ],
155
- categories: [ 'Web Application Icons' ] },
156
- { name: 'Download',
157
- id: 'download',
158
- unicode: 'f019',
159
- created: 1,
160
- filter: [ 'import' ],
161
- categories: [ 'Web Application Icons' ] },
162
- { name: 'Arrow Circle Outlined Down',
163
- id: 'arrow-circle-o-down',
164
- unicode: 'f01a',
165
- created: 1,
166
- filter: [ 'download' ],
167
- categories: [ 'Directional Icons' ] },
168
- { name: 'Arrow Circle Outlined Up',
169
- id: 'arrow-circle-o-up',
170
- unicode: 'f01b',
171
- created: 1,
172
- categories: [ 'Directional Icons' ] },
173
- { name: 'inbox',
174
- id: 'inbox',
175
- unicode: 'f01c',
176
- created: 1,
177
- categories: [ 'Web Application Icons' ] },
178
- { name: 'Play Circle Outlined',
179
- id: 'play-circle-o',
180
- unicode: 'f01d',
181
- created: 1,
182
- categories: [ 'Video Player Icons' ] },
183
- { name: 'Repeat',
184
- id: 'repeat',
185
- unicode: 'f01e',
186
- created: 1,
187
- filter: [ 'redo', 'forward' ],
188
- aliases: [ 'rotate-right' ],
189
- categories: [ 'Text Editor Icons' ] },
190
- { name: 'refresh',
191
- id: 'refresh',
192
- unicode: 'f021',
193
- created: 1,
194
- filter: [ 'reload', 'sync' ],
195
- categories: [ 'Web Application Icons', 'Spinner Icons' ] },
196
- { name: 'list-alt',
197
- id: 'list-alt',
198
- unicode: 'f022',
199
- created: 1,
200
- filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
201
- categories: [ 'Text Editor Icons' ] },
202
- { name: 'lock',
203
- id: 'lock',
204
- unicode: 'f023',
205
- created: 1,
206
- filter: [ 'protect', 'admin' ],
207
- categories: [ 'Web Application Icons' ] },
208
- { name: 'flag',
209
- id: 'flag',
210
- unicode: 'f024',
211
- created: 1,
212
- filter: [ 'report', 'notification', 'notify' ],
213
- categories: [ 'Web Application Icons' ] },
214
- { name: 'headphones',
215
- id: 'headphones',
216
- unicode: 'f025',
217
- created: 1,
218
- filter: [ 'sound', 'listen', 'music', 'audio' ],
219
- categories: [ 'Web Application Icons' ] },
220
- { name: 'volume-off',
221
- id: 'volume-off',
222
- unicode: 'f026',
223
- created: 1,
224
- filter: [ 'audio', 'mute', 'sound', 'music' ],
225
- categories: [ 'Web Application Icons' ] },
226
- { name: 'volume-down',
227
- id: 'volume-down',
228
- unicode: 'f027',
229
- created: 1,
230
- filter: [ 'audio', 'lower', 'quieter', 'sound', 'music' ],
231
- categories: [ 'Web Application Icons' ] },
232
- { name: 'volume-up',
233
- id: 'volume-up',
234
- unicode: 'f028',
235
- created: 1,
236
- filter: [ 'audio', 'higher', 'louder', 'sound', 'music' ],
237
- categories: [ 'Web Application Icons' ] },
238
- { name: 'qrcode',
239
- id: 'qrcode',
240
- unicode: 'f029',
241
- created: 1,
242
- filter: [ 'scan' ],
243
- categories: [ 'Web Application Icons' ] },
244
- { name: 'barcode',
245
- id: 'barcode',
246
- unicode: 'f02a',
247
- created: 1,
248
- filter: [ 'scan' ],
249
- categories: [ 'Web Application Icons' ] },
250
- { name: 'tag',
251
- id: 'tag',
252
- unicode: 'f02b',
253
- created: 1,
254
- filter: [ 'label' ],
255
- categories: [ 'Web Application Icons' ] },
256
- { name: 'tags',
257
- id: 'tags',
258
- unicode: 'f02c',
259
- created: 1,
260
- filter: [ 'labels' ],
261
- categories: [ 'Web Application Icons' ] },
262
- { name: 'book',
263
- id: 'book',
264
- unicode: 'f02d',
265
- created: 1,
266
- filter: [ 'read', 'documentation' ],
267
- categories: [ 'Web Application Icons' ] },
268
- { name: 'bookmark',
269
- id: 'bookmark',
270
- unicode: 'f02e',
271
- created: 1,
272
- filter: [ 'save' ],
273
- categories: [ 'Web Application Icons' ] },
274
- { name: 'print',
275
- id: 'print',
276
- unicode: 'f02f',
277
- created: 1,
278
- categories: [ 'Web Application Icons' ] },
279
- { name: 'camera',
280
- id: 'camera',
281
- unicode: 'f030',
282
- created: 1,
283
- filter: [ 'photo', 'picture', 'record' ],
284
- categories: [ 'Web Application Icons' ] },
285
- { name: 'font',
286
- id: 'font',
287
- unicode: 'f031',
288
- created: 1,
289
- filter: [ 'text' ],
290
- categories: [ 'Text Editor Icons' ] },
291
- { name: 'bold',
292
- id: 'bold',
293
- unicode: 'f032',
294
- created: 1,
295
- categories: [ 'Text Editor Icons' ] },
296
- { name: 'italic',
297
- id: 'italic',
298
- unicode: 'f033',
299
- created: 1,
300
- filter: [ 'italics' ],
301
- categories: [ 'Text Editor Icons' ] },
302
- { name: 'text-height',
303
- id: 'text-height',
304
- unicode: 'f034',
305
- created: 1,
306
- categories: [ 'Text Editor Icons' ] },
307
- { name: 'text-width',
308
- id: 'text-width',
309
- unicode: 'f035',
310
- created: 1,
311
- categories: [ 'Text Editor Icons' ] },
312
- { name: 'align-left',
313
- id: 'align-left',
314
- unicode: 'f036',
315
- created: 1,
316
- filter: [ 'text' ],
317
- categories: [ 'Text Editor Icons' ] },
318
- { name: 'align-center',
319
- id: 'align-center',
320
- unicode: 'f037',
321
- created: 1,
322
- filter: [ 'middle', 'text' ],
323
- categories: [ 'Text Editor Icons' ] },
324
- { name: 'align-right',
325
- id: 'align-right',
326
- unicode: 'f038',
327
- created: 1,
328
- filter: [ 'text' ],
329
- categories: [ 'Text Editor Icons' ] },
330
- { name: 'align-justify',
331
- id: 'align-justify',
332
- unicode: 'f039',
333
- created: 1,
334
- filter: [ 'text' ],
335
- categories: [ 'Text Editor Icons' ] },
336
- { name: 'list',
337
- id: 'list',
338
- unicode: 'f03a',
339
- created: 1,
340
- filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
341
- categories: [ 'Text Editor Icons' ] },
342
- { name: 'Outdent',
343
- id: 'outdent',
344
- unicode: 'f03b',
345
- created: 1,
346
- aliases: [ 'dedent' ],
347
- categories: [ 'Text Editor Icons' ] },
348
- { name: 'Indent',
349
- id: 'indent',
350
- unicode: 'f03c',
351
- created: 1,
352
- categories: [ 'Text Editor Icons' ] },
353
- { name: 'Video Camera',
354
- id: 'video-camera',
355
- unicode: 'f03d',
356
- created: 1,
357
- filter: [ 'film', 'movie', 'record' ],
358
- categories: [ 'Web Application Icons' ] },
359
- { name: 'Picture Outlined',
360
- id: 'picture-o',
361
- unicode: 'f03e',
362
- created: 1,
363
- aliases: [ 'photo', 'image' ],
364
- categories: [ 'Web Application Icons' ] },
365
- { name: 'pencil',
366
- id: 'pencil',
367
- unicode: 'f040',
368
- created: 1,
369
- filter: [ 'write', 'edit', 'update' ],
370
- categories: [ 'Web Application Icons' ] },
371
- { name: 'map-marker',
372
- id: 'map-marker',
373
- unicode: 'f041',
374
- created: 1,
375
- filter:
376
- [ 'map',
377
- 'pin',
378
- 'location',
379
- 'coordinates',
380
- 'localize',
381
- 'address',
382
- 'travel',
383
- 'where',
384
- 'place' ],
385
- categories: [ 'Web Application Icons' ] },
386
- { name: 'adjust',
387
- id: 'adjust',
388
- unicode: 'f042',
389
- created: 1,
390
- filter: [ 'contrast' ],
391
- categories: [ 'Web Application Icons' ] },
392
- { name: 'tint',
393
- id: 'tint',
394
- unicode: 'f043',
395
- created: 1,
396
- filter: [ 'raindrop', 'waterdrop', 'drop', 'droplet' ],
397
- categories: [ 'Web Application Icons' ] },
398
- { name: 'Pencil Square Outlined',
399
- id: 'pencil-square-o',
400
- unicode: 'f044',
401
- created: 1,
402
- filter: [ 'write', 'edit', 'update' ],
403
- aliases: [ 'edit' ],
404
- categories: [ 'Web Application Icons' ] },
405
- { name: 'Share Square Outlined',
406
- id: 'share-square-o',
407
- unicode: 'f045',
408
- created: 1,
409
- filter: [ 'social', 'send', 'arrow' ],
410
- categories: [ 'Web Application Icons' ] },
411
- { name: 'Check Square Outlined',
412
- id: 'check-square-o',
413
- unicode: 'f046',
414
- created: 1,
415
- filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
416
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
417
- { name: 'Arrows',
418
- id: 'arrows',
419
- unicode: 'f047',
420
- created: 1,
421
- filter: [ 'move', 'reorder', 'resize' ],
422
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
423
- { name: 'step-backward',
424
- id: 'step-backward',
425
- unicode: 'f048',
426
- created: 1,
427
- filter: [ 'rewind', 'previous', 'beginning', 'start', 'first' ],
428
- categories: [ 'Video Player Icons' ] },
429
- { name: 'fast-backward',
430
- id: 'fast-backward',
431
- unicode: 'f049',
432
- created: 1,
433
- filter: [ 'rewind', 'previous', 'beginning', 'start', 'first' ],
434
- categories: [ 'Video Player Icons' ] },
435
- { name: 'backward',
436
- id: 'backward',
437
- unicode: 'f04a',
438
- created: 1,
439
- filter: [ 'rewind', 'previous' ],
440
- categories: [ 'Video Player Icons' ] },
441
- { name: 'play',
442
- id: 'play',
443
- unicode: 'f04b',
444
- created: 1,
445
- filter: [ 'start', 'playing', 'music', 'sound' ],
446
- categories: [ 'Video Player Icons' ] },
447
- { name: 'pause',
448
- id: 'pause',
449
- unicode: 'f04c',
450
- created: 1,
451
- filter: [ 'wait' ],
452
- categories: [ 'Video Player Icons' ] },
453
- { name: 'stop',
454
- id: 'stop',
455
- unicode: 'f04d',
456
- created: 1,
457
- filter: [ 'block', 'box', 'square' ],
458
- categories: [ 'Video Player Icons' ] },
459
- { name: 'forward',
460
- id: 'forward',
461
- unicode: 'f04e',
462
- created: 1,
463
- filter: [ 'forward', 'next' ],
464
- categories: [ 'Video Player Icons' ] },
465
- { name: 'fast-forward',
466
- id: 'fast-forward',
467
- unicode: 'f050',
468
- created: 1,
469
- filter: [ 'next', 'end', 'last' ],
470
- categories: [ 'Video Player Icons' ] },
471
- { name: 'step-forward',
472
- id: 'step-forward',
473
- unicode: 'f051',
474
- created: 1,
475
- filter: [ 'next', 'end', 'last' ],
476
- categories: [ 'Video Player Icons' ] },
477
- { name: 'eject',
478
- id: 'eject',
479
- unicode: 'f052',
480
- created: 1,
481
- categories: [ 'Video Player Icons' ] },
482
- { name: 'chevron-left',
483
- id: 'chevron-left',
484
- unicode: 'f053',
485
- created: 1,
486
- filter: [ 'bracket', 'previous', 'back' ],
487
- categories: [ 'Directional Icons' ] },
488
- { name: 'chevron-right',
489
- id: 'chevron-right',
490
- unicode: 'f054',
491
- created: 1,
492
- filter: [ 'bracket', 'next', 'forward' ],
493
- categories: [ 'Directional Icons' ] },
494
- { name: 'Plus Circle',
495
- id: 'plus-circle',
496
- unicode: 'f055',
497
- created: 1,
498
- filter: [ 'add', 'new', 'create', 'expand' ],
499
- categories: [ 'Web Application Icons' ] },
500
- { name: 'Minus Circle',
501
- id: 'minus-circle',
502
- unicode: 'f056',
503
- created: 1,
504
- filter: [ 'delete', 'remove', 'trash', 'hide' ],
505
- categories: [ 'Web Application Icons' ] },
506
- { name: 'Times Circle',
507
- id: 'times-circle',
508
- unicode: 'f057',
509
- created: 1,
510
- filter: [ 'close', 'exit', 'x' ],
511
- categories: [ 'Web Application Icons' ] },
512
- { name: 'Check Circle',
513
- id: 'check-circle',
514
- unicode: 'f058',
515
- created: 1,
516
- filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
517
- categories: [ 'Web Application Icons' ] },
518
- { name: 'Question Circle',
519
- id: 'question-circle',
520
- unicode: 'f059',
521
- filter: [ 'help', 'information', 'unknown', 'support' ],
522
- created: 1,
523
- categories: [ 'Web Application Icons' ] },
524
- { name: 'Info Circle',
525
- id: 'info-circle',
526
- unicode: 'f05a',
527
- created: 1,
528
- filter: [ 'help', 'information', 'more', 'details' ],
529
- categories: [ 'Web Application Icons' ] },
530
- { name: 'Crosshairs',
531
- id: 'crosshairs',
532
- unicode: 'f05b',
533
- created: 1,
534
- filter: [ 'picker' ],
535
- categories: [ 'Web Application Icons' ] },
536
- { name: 'Times Circle Outlined',
537
- id: 'times-circle-o',
538
- unicode: 'f05c',
539
- created: 1,
540
- filter: [ 'close', 'exit', 'x' ],
541
- categories: [ 'Web Application Icons' ] },
542
- { name: 'Check Circle Outlined',
543
- id: 'check-circle-o',
544
- unicode: 'f05d',
545
- created: 1,
546
- filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
547
- categories: [ 'Web Application Icons' ] },
548
- { name: 'ban',
549
- id: 'ban',
550
- unicode: 'f05e',
551
- created: 1,
552
- filter:
553
- [ 'delete',
554
- 'remove',
555
- 'trash',
556
- 'hide',
557
- 'block',
558
- 'stop',
559
- 'abort',
560
- 'cancel' ],
561
- categories: [ 'Web Application Icons' ] },
562
- { name: 'arrow-left',
563
- id: 'arrow-left',
564
- unicode: 'f060',
565
- created: 1,
566
- filter: [ 'previous', 'back' ],
567
- categories: [ 'Directional Icons' ] },
568
- { name: 'arrow-right',
569
- id: 'arrow-right',
570
- unicode: 'f061',
571
- created: 1,
572
- filter: [ 'next', 'forward' ],
573
- categories: [ 'Directional Icons' ] },
574
- { name: 'arrow-up',
575
- id: 'arrow-up',
576
- unicode: 'f062',
577
- created: 1,
578
- categories: [ 'Directional Icons' ] },
579
- { name: 'arrow-down',
580
- id: 'arrow-down',
581
- unicode: 'f063',
582
- created: 1,
583
- filter: [ 'download' ],
584
- categories: [ 'Directional Icons' ] },
585
- { name: 'Share',
586
- id: 'share',
587
- unicode: 'f064',
588
- created: 1,
589
- aliases: [ 'mail-forward' ],
590
- categories: [ 'Web Application Icons' ] },
591
- { name: 'Expand',
592
- id: 'expand',
593
- unicode: 'f065',
594
- created: 1,
595
- filter: [ 'enlarge', 'bigger', 'resize' ],
596
- categories: [ 'Video Player Icons' ] },
597
- { name: 'Compress',
598
- id: 'compress',
599
- unicode: 'f066',
600
- created: 1,
601
- filter: [ 'collapse', 'combine', 'contract', 'merge', 'smaller' ],
602
- categories: [ 'Video Player Icons' ] },
603
- { name: 'plus',
604
- id: 'plus',
605
- unicode: 'f067',
606
- created: 1,
607
- filter: [ 'add', 'new', 'create', 'expand' ],
608
- categories: [ 'Web Application Icons' ] },
609
- { name: 'minus',
610
- id: 'minus',
611
- unicode: 'f068',
612
- created: 1,
613
- filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
614
- categories: [ 'Web Application Icons' ] },
615
- { name: 'asterisk',
616
- id: 'asterisk',
617
- unicode: 'f069',
618
- created: 1,
619
- filter: [ 'details' ],
620
- categories: [ 'Web Application Icons' ] },
621
- { name: 'Exclamation Circle',
622
- id: 'exclamation-circle',
623
- unicode: 'f06a',
624
- created: 1,
625
- filter: [ 'warning', 'error', 'problem', 'notification', 'alert' ],
626
- categories: [ 'Web Application Icons' ] },
627
- { name: 'gift',
628
- id: 'gift',
629
- unicode: 'f06b',
630
- created: 1,
631
- filter: [ 'present' ],
632
- categories: [ 'Web Application Icons' ] },
633
- { name: 'leaf',
634
- id: 'leaf',
635
- unicode: 'f06c',
636
- created: 1,
637
- filter: [ 'eco', 'nature', 'plant' ],
638
- categories: [ 'Web Application Icons' ] },
639
- { name: 'fire',
640
- id: 'fire',
641
- unicode: 'f06d',
642
- created: 1,
643
- filter: [ 'flame', 'hot', 'popular' ],
644
- categories: [ 'Web Application Icons' ] },
645
- { name: 'Eye',
646
- id: 'eye',
647
- unicode: 'f06e',
648
- created: 1,
649
- filter: [ 'show', 'visible', 'views' ],
650
- categories: [ 'Web Application Icons' ] },
651
- { name: 'Eye Slash',
652
- id: 'eye-slash',
653
- unicode: 'f070',
654
- created: 1,
655
- filter: [ 'toggle', 'show', 'hide', 'visible', 'visiblity', 'views' ],
656
- categories: [ 'Web Application Icons' ] },
657
- { name: 'Exclamation Triangle',
658
- id: 'exclamation-triangle',
659
- unicode: 'f071',
660
- created: 1,
661
- filter: [ 'warning', 'error', 'problem', 'notification', 'alert' ],
662
- aliases: [ 'warning' ],
663
- categories: [ 'Web Application Icons' ] },
664
- { name: 'plane',
665
- id: 'plane',
666
- unicode: 'f072',
667
- created: 1,
668
- filter:
669
- [ 'travel',
670
- 'trip',
671
- 'location',
672
- 'destination',
673
- 'airplane',
674
- 'fly',
675
- 'mode' ],
676
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
677
- { name: 'calendar',
678
- id: 'calendar',
679
- unicode: 'f073',
680
- created: 1,
681
- filter: [ 'date', 'time', 'when', 'event' ],
682
- categories: [ 'Web Application Icons' ] },
683
- { name: 'random',
684
- id: 'random',
685
- unicode: 'f074',
686
- created: 1,
687
- filter: [ 'sort', 'shuffle' ],
688
- categories: [ 'Web Application Icons', 'Video Player Icons' ] },
689
- { name: 'comment',
690
- id: 'comment',
691
- unicode: 'f075',
692
- created: 1,
693
- filter:
694
- [ 'speech',
695
- 'notification',
696
- 'note',
697
- 'chat',
698
- 'bubble',
699
- 'feedback',
700
- 'message',
701
- 'texting',
702
- 'sms',
703
- 'conversation' ],
704
- categories: [ 'Web Application Icons' ] },
705
- { name: 'magnet',
706
- id: 'magnet',
707
- unicode: 'f076',
708
- created: 1,
709
- categories: [ 'Web Application Icons' ] },
710
- { name: 'chevron-up',
711
- id: 'chevron-up',
712
- unicode: 'f077',
713
- created: 1,
714
- categories: [ 'Directional Icons' ] },
715
- { name: 'chevron-down',
716
- id: 'chevron-down',
717
- unicode: 'f078',
718
- created: 1,
719
- categories: [ 'Directional Icons' ] },
720
- { name: 'retweet',
721
- id: 'retweet',
722
- unicode: 'f079',
723
- created: 1,
724
- filter: [ 'refresh', 'reload', 'share' ],
725
- categories: [ 'Web Application Icons' ] },
726
- { name: 'shopping-cart',
727
- id: 'shopping-cart',
728
- unicode: 'f07a',
729
- created: 1,
730
- filter: [ 'checkout', 'buy', 'purchase', 'payment' ],
731
- categories: [ 'Web Application Icons' ] },
732
- { name: 'Folder',
733
- id: 'folder',
734
- unicode: 'f07b',
735
- created: 1,
736
- categories: [ 'Web Application Icons' ] },
737
- { name: 'Folder Open',
738
- id: 'folder-open',
739
- unicode: 'f07c',
740
- created: 1,
741
- categories: [ 'Web Application Icons' ] },
742
- { name: 'Arrows Vertical',
743
- id: 'arrows-v',
744
- unicode: 'f07d',
745
- created: 1,
746
- filter: [ 'resize' ],
747
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
748
- { name: 'Arrows Horizontal',
749
- id: 'arrows-h',
750
- unicode: 'f07e',
751
- created: 1,
752
- filter: [ 'resize' ],
753
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
754
- { name: 'Bar Chart',
755
- id: 'bar-chart',
756
- unicode: 'f080',
757
- created: 1,
758
- aliases: [ 'bar-chart-o' ],
759
- filter: [ 'graph', 'analytics' ],
760
- categories: [ 'Web Application Icons', 'Chart Icons' ] },
761
- { name: 'Twitter Square',
762
- id: 'twitter-square',
763
- unicode: 'f081',
764
- created: 1,
765
- filter: [ 'tweet', 'social network' ],
766
- categories: [ 'Brand Icons' ] },
767
- { name: 'Facebook Square',
768
- id: 'facebook-square',
769
- unicode: 'f082',
770
- created: 1,
771
- filter: [ 'social network' ],
772
- categories: [ 'Brand Icons' ] },
773
- { name: 'camera-retro',
774
- id: 'camera-retro',
775
- unicode: 'f083',
776
- created: 1,
777
- filter: [ 'photo', 'picture', 'record' ],
778
- categories: [ 'Web Application Icons' ] },
779
- { name: 'key',
780
- id: 'key',
781
- unicode: 'f084',
782
- created: 1,
783
- filter: [ 'unlock', 'password' ],
784
- categories: [ 'Web Application Icons' ] },
785
- { name: 'cogs',
786
- id: 'cogs',
787
- unicode: 'f085',
788
- created: 1,
789
- aliases: [ 'gears' ],
790
- filter: [ 'settings' ],
791
- categories: [ 'Web Application Icons' ] },
792
- { name: 'comments',
793
- id: 'comments',
794
- unicode: 'f086',
795
- created: 1,
796
- filter:
797
- [ 'speech',
798
- 'notification',
799
- 'note',
800
- 'chat',
801
- 'bubble',
802
- 'feedback',
803
- 'message',
804
- 'texting',
805
- 'sms',
806
- 'conversation' ],
807
- categories: [ 'Web Application Icons' ] },
808
- { name: 'Thumbs Up Outlined',
809
- id: 'thumbs-o-up',
810
- unicode: 'f087',
811
- created: 1,
812
- filter: [ 'like', 'approve', 'favorite', 'agree', 'hand' ],
813
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
814
- { name: 'Thumbs Down Outlined',
815
- id: 'thumbs-o-down',
816
- unicode: 'f088',
817
- created: 1,
818
- filter: [ 'dislike', 'disapprove', 'disagree', 'hand' ],
819
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
820
- { name: 'star-half',
821
- id: 'star-half',
822
- unicode: 'f089',
823
- created: 1,
824
- filter: [ 'award', 'achievement', 'rating', 'score' ],
825
- categories: [ 'Web Application Icons' ] },
826
- { name: 'Heart Outlined',
827
- id: 'heart-o',
828
- unicode: 'f08a',
829
- created: 1,
830
- filter: [ 'love', 'like', 'favorite' ],
831
- categories: [ 'Web Application Icons', 'Medical Icons' ] },
832
- { name: 'Sign Out',
833
- id: 'sign-out',
834
- unicode: 'f08b',
835
- created: 1,
836
- filter: [ 'log out', 'logout', 'leave', 'exit', 'arrow' ],
837
- categories: [ 'Web Application Icons' ] },
838
- { name: 'LinkedIn Square',
839
- id: 'linkedin-square',
840
- unicode: 'f08c',
841
- created: 1,
842
- categories: [ 'Brand Icons' ] },
843
- { name: 'Thumb Tack',
844
- id: 'thumb-tack',
845
- unicode: 'f08d',
846
- created: 1,
847
- filter: [ 'marker', 'pin', 'location', 'coordinates' ],
848
- categories: [ 'Web Application Icons' ] },
849
- { name: 'External Link',
850
- id: 'external-link',
851
- unicode: 'f08e',
852
- created: 1,
853
- filter: [ 'open', 'new' ],
854
- categories: [ 'Web Application Icons' ] },
855
- { name: 'Sign In',
856
- id: 'sign-in',
857
- unicode: 'f090',
858
- created: 1,
859
- filter:
860
- [ 'enter',
861
- 'join',
862
- 'log in',
863
- 'login',
864
- 'sign up',
865
- 'sign in',
866
- 'signin',
867
- 'signup',
868
- 'arrow' ],
869
- categories: [ 'Web Application Icons' ] },
870
- { name: 'trophy',
871
- id: 'trophy',
872
- unicode: 'f091',
873
- created: 1,
874
- filter: [ 'award', 'achievement', 'winner', 'game' ],
875
- categories: [ 'Web Application Icons' ] },
876
- { name: 'GitHub Square',
877
- id: 'github-square',
878
- unicode: 'f092',
879
- created: 1,
880
- url: 'github.com/logos',
881
- filter: [ 'octocat' ],
882
- categories: [ 'Brand Icons' ] },
883
- { name: 'Upload',
884
- id: 'upload',
885
- unicode: 'f093',
886
- created: 1,
887
- filter: [ 'import' ],
888
- categories: [ 'Web Application Icons' ] },
889
- { name: 'Lemon Outlined',
890
- id: 'lemon-o',
891
- unicode: 'f094',
892
- created: 1,
893
- filter: [ 'food' ],
894
- categories: [ 'Web Application Icons' ] },
895
- { name: 'Phone',
896
- id: 'phone',
897
- unicode: 'f095',
898
- created: 2,
899
- filter: [ 'call', 'voice', 'number', 'support', 'earphone', 'telephone' ],
900
- categories: [ 'Web Application Icons' ] },
901
- { name: 'Square Outlined',
902
- id: 'square-o',
903
- unicode: 'f096',
904
- created: 2,
905
- filter: [ 'block', 'square', 'box' ],
906
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
907
- { name: 'Bookmark Outlined',
908
- id: 'bookmark-o',
909
- unicode: 'f097',
910
- created: 2,
911
- filter: [ 'save' ],
912
- categories: [ 'Web Application Icons' ] },
913
- { name: 'Phone Square',
914
- id: 'phone-square',
915
- unicode: 'f098',
916
- created: 2,
917
- filter: [ 'call', 'voice', 'number', 'support', 'telephone' ],
918
- categories: [ 'Web Application Icons' ] },
919
- { name: 'Twitter',
920
- id: 'twitter',
921
- unicode: 'f099',
922
- created: 2,
923
- filter: [ 'tweet', 'social network' ],
924
- categories: [ 'Brand Icons' ] },
925
- { name: 'Facebook',
926
- id: 'facebook',
927
- unicode: 'f09a',
928
- created: 2,
929
- aliases: [ 'facebook-f' ],
930
- filter: [ 'social network' ],
931
- categories: [ 'Brand Icons' ] },
932
- { name: 'GitHub',
933
- id: 'github',
934
- unicode: 'f09b',
935
- created: 2,
936
- url: 'github.com/logos',
937
- filter: [ 'octocat' ],
938
- categories: [ 'Brand Icons' ] },
939
- { name: 'unlock',
940
- id: 'unlock',
941
- unicode: 'f09c',
942
- created: 2,
943
- filter: [ 'protect', 'admin', 'password', 'lock' ],
944
- categories: [ 'Web Application Icons' ] },
945
- { name: 'credit-card',
946
- id: 'credit-card',
947
- unicode: 'f09d',
948
- created: 2,
949
- filter: [ 'money', 'buy', 'debit', 'checkout', 'purchase', 'payment' ],
950
- categories: [ 'Web Application Icons', 'Payment Icons' ] },
951
- { name: 'rss',
952
- id: 'rss',
953
- unicode: 'f09e',
954
- created: 2,
955
- filter: [ 'blog' ],
956
- aliases: [ 'feed' ],
957
- categories: [ 'Web Application Icons' ] },
958
- { name: 'HDD',
959
- id: 'hdd-o',
960
- unicode: 'f0a0',
961
- created: 2,
962
- filter: [ 'harddrive', 'hard drive', 'storage', 'save' ],
963
- categories: [ 'Web Application Icons' ] },
964
- { name: 'bullhorn',
965
- id: 'bullhorn',
966
- unicode: 'f0a1',
967
- created: 2,
968
- filter: [ 'announcement', 'share', 'broadcast', 'louder', 'megaphone' ],
969
- categories: [ 'Web Application Icons' ] },
970
- { name: 'bell',
971
- id: 'bell',
972
- unicode: 'f0f3',
973
- created: 2,
974
- filter: [ 'alert', 'reminder', 'notification' ],
975
- categories: [ 'Web Application Icons' ] },
976
- { name: 'certificate',
977
- id: 'certificate',
978
- unicode: 'f0a3',
979
- created: 2,
980
- filter: [ 'badge', 'star' ],
981
- categories: [ 'Web Application Icons' ] },
982
- { name: 'Hand Outlined Right',
983
- id: 'hand-o-right',
984
- unicode: 'f0a4',
985
- created: 2,
986
- filter: [ 'point', 'right', 'next', 'forward', 'finger' ],
987
- categories: [ 'Directional Icons', 'Hand Icons' ] },
988
- { name: 'Hand Outlined Left',
989
- id: 'hand-o-left',
990
- unicode: 'f0a5',
991
- created: 2,
992
- filter: [ 'point', 'left', 'previous', 'back', 'finger' ],
993
- categories: [ 'Directional Icons', 'Hand Icons' ] },
994
- { name: 'Hand Outlined Up',
995
- id: 'hand-o-up',
996
- unicode: 'f0a6',
997
- created: 2,
998
- filter: [ 'point', 'finger' ],
999
- categories: [ 'Directional Icons', 'Hand Icons' ] },
1000
- { name: 'Hand Outlined Down',
1001
- id: 'hand-o-down',
1002
- unicode: 'f0a7',
1003
- created: 2,
1004
- filter: [ 'point', 'finger' ],
1005
- categories: [ 'Directional Icons', 'Hand Icons' ] },
1006
- { name: 'Arrow Circle Left',
1007
- id: 'arrow-circle-left',
1008
- unicode: 'f0a8',
1009
- created: 2,
1010
- filter: [ 'previous', 'back' ],
1011
- categories: [ 'Directional Icons' ] },
1012
- { name: 'Arrow Circle Right',
1013
- id: 'arrow-circle-right',
1014
- unicode: 'f0a9',
1015
- created: 2,
1016
- filter: [ 'next', 'forward' ],
1017
- categories: [ 'Directional Icons' ] },
1018
- { name: 'Arrow Circle Up',
1019
- id: 'arrow-circle-up',
1020
- unicode: 'f0aa',
1021
- created: 2,
1022
- categories: [ 'Directional Icons' ] },
1023
- { name: 'Arrow Circle Down',
1024
- id: 'arrow-circle-down',
1025
- unicode: 'f0ab',
1026
- created: 2,
1027
- filter: [ 'download' ],
1028
- categories: [ 'Directional Icons' ] },
1029
- { name: 'Globe',
1030
- id: 'globe',
1031
- unicode: 'f0ac',
1032
- created: 2,
1033
- filter:
1034
- [ 'world',
1035
- 'planet',
1036
- 'map',
1037
- 'place',
1038
- 'travel',
1039
- 'earth',
1040
- 'global',
1041
- 'translate',
1042
- 'all',
1043
- 'language',
1044
- 'localize',
1045
- 'location',
1046
- 'coordinates',
1047
- 'country' ],
1048
- categories: [ 'Web Application Icons' ] },
1049
- { name: 'Wrench',
1050
- id: 'wrench',
1051
- unicode: 'f0ad',
1052
- created: 2,
1053
- filter: [ 'settings', 'fix', 'update' ],
1054
- categories: [ 'Web Application Icons' ] },
1055
- { name: 'Tasks',
1056
- id: 'tasks',
1057
- unicode: 'f0ae',
1058
- created: 2,
1059
- filter: [ 'progress', 'loading', 'downloading', 'downloads', 'settings' ],
1060
- categories: [ 'Web Application Icons' ] },
1061
- { name: 'Filter',
1062
- id: 'filter',
1063
- unicode: 'f0b0',
1064
- created: 2,
1065
- filter: [ 'funnel', 'options' ],
1066
- categories: [ 'Web Application Icons' ] },
1067
- { name: 'Briefcase',
1068
- id: 'briefcase',
1069
- unicode: 'f0b1',
1070
- created: 2,
1071
- filter: [ 'work', 'business', 'office', 'luggage', 'bag' ],
1072
- categories: [ 'Web Application Icons' ] },
1073
- { name: 'Arrows Alt',
1074
- id: 'arrows-alt',
1075
- unicode: 'f0b2',
1076
- created: 2,
1077
- filter:
1078
- [ 'expand',
1079
- 'enlarge',
1080
- 'fullscreen',
1081
- 'bigger',
1082
- 'move',
1083
- 'reorder',
1084
- 'resize',
1085
- 'arrow' ],
1086
- categories: [ 'Video Player Icons', 'Directional Icons' ] },
1087
- { name: 'Users',
1088
- id: 'users',
1089
- unicode: 'f0c0',
1090
- created: 2,
1091
- filter: [ 'people', 'profiles', 'persons' ],
1092
- aliases: [ 'group' ],
1093
- categories: [ 'Web Application Icons' ] },
1094
- { name: 'Link',
1095
- id: 'link',
1096
- unicode: 'f0c1',
1097
- created: 2,
1098
- filter: [ 'chain' ],
1099
- aliases: [ 'chain' ],
1100
- categories: [ 'Text Editor Icons' ] },
1101
- { name: 'Cloud',
1102
- id: 'cloud',
1103
- filter: [ 'save' ],
1104
- unicode: 'f0c2',
1105
- created: 2,
1106
- categories: [ 'Web Application Icons' ] },
1107
- { name: 'Flask',
1108
- id: 'flask',
1109
- unicode: 'f0c3',
1110
- created: 2,
1111
- filter: [ 'science', 'beaker', 'experimental', 'labs' ],
1112
- categories: [ 'Web Application Icons' ] },
1113
- { name: 'Scissors',
1114
- id: 'scissors',
1115
- unicode: 'f0c4',
1116
- created: 2,
1117
- aliases: [ 'cut' ],
1118
- categories: [ 'Text Editor Icons' ] },
1119
- { name: 'Files Outlined',
1120
- id: 'files-o',
1121
- unicode: 'f0c5',
1122
- created: 2,
1123
- filter: [ 'duplicate', 'clone', 'copy' ],
1124
- aliases: [ 'copy' ],
1125
- categories: [ 'Text Editor Icons' ] },
1126
- { name: 'Paperclip',
1127
- id: 'paperclip',
1128
- unicode: 'f0c6',
1129
- created: 2,
1130
- filter: [ 'attachment' ],
1131
- categories: [ 'Text Editor Icons' ] },
1132
- { name: 'Floppy Outlined',
1133
- id: 'floppy-o',
1134
- unicode: 'f0c7',
1135
- created: 2,
1136
- aliases: [ 'save' ],
1137
- categories: [ 'Text Editor Icons' ] },
1138
- { name: 'Square',
1139
- id: 'square',
1140
- unicode: 'f0c8',
1141
- created: 2,
1142
- filter: [ 'block', 'box' ],
1143
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1144
- { name: 'Bars',
1145
- id: 'bars',
1146
- unicode: 'f0c9',
1147
- created: 2,
1148
- aliases: [ 'navicon', 'reorder' ],
1149
- filter:
1150
- [ 'menu',
1151
- 'drag',
1152
- 'reorder',
1153
- 'settings',
1154
- 'list',
1155
- 'ul',
1156
- 'ol',
1157
- 'checklist',
1158
- 'todo',
1159
- 'list',
1160
- 'hamburger' ],
1161
- categories: [ 'Web Application Icons' ] },
1162
- { name: 'list-ul',
1163
- id: 'list-ul',
1164
- unicode: 'f0ca',
1165
- created: 2,
1166
- filter: [ 'ul', 'ol', 'checklist', 'todo', 'list' ],
1167
- categories: [ 'Text Editor Icons' ] },
1168
- { name: 'list-ol',
1169
- id: 'list-ol',
1170
- unicode: 'f0cb',
1171
- created: 2,
1172
- filter: [ 'ul', 'ol', 'checklist', 'list', 'todo', 'list', 'numbers' ],
1173
- categories: [ 'Text Editor Icons' ] },
1174
- { name: 'Strikethrough',
1175
- id: 'strikethrough',
1176
- unicode: 'f0cc',
1177
- created: 2,
1178
- categories: [ 'Text Editor Icons' ] },
1179
- { name: 'Underline',
1180
- id: 'underline',
1181
- unicode: 'f0cd',
1182
- created: 2,
1183
- categories: [ 'Text Editor Icons' ] },
1184
- { name: 'table',
1185
- id: 'table',
1186
- unicode: 'f0ce',
1187
- created: 2,
1188
- filter: [ 'data', 'excel', 'spreadsheet' ],
1189
- categories: [ 'Text Editor Icons' ] },
1190
- { name: 'magic',
1191
- id: 'magic',
1192
- unicode: 'f0d0',
1193
- created: 2,
1194
- filter: [ 'wizard', 'automatic', 'autocomplete' ],
1195
- categories: [ 'Web Application Icons' ] },
1196
- { name: 'truck',
1197
- id: 'truck',
1198
- unicode: 'f0d1',
1199
- created: 2,
1200
- filter: [ 'shipping' ],
1201
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1202
- { name: 'Pinterest',
1203
- id: 'pinterest',
1204
- unicode: 'f0d2',
1205
- created: 2,
1206
- categories: [ 'Brand Icons' ] },
1207
- { name: 'Pinterest Square',
1208
- id: 'pinterest-square',
1209
- unicode: 'f0d3',
1210
- created: 2,
1211
- categories: [ 'Brand Icons' ] },
1212
- { name: 'Google Plus Square',
1213
- id: 'google-plus-square',
1214
- unicode: 'f0d4',
1215
- created: 2,
1216
- filter: [ 'social network' ],
1217
- categories: [ 'Brand Icons' ] },
1218
- { name: 'Google Plus',
1219
- id: 'google-plus',
1220
- unicode: 'f0d5',
1221
- created: 2,
1222
- filter: [ 'social network' ],
1223
- categories: [ 'Brand Icons' ] },
1224
- { name: 'Money',
1225
- id: 'money',
1226
- unicode: 'f0d6',
1227
- created: 2,
1228
- filter: [ 'cash', 'money', 'buy', 'checkout', 'purchase', 'payment' ],
1229
- categories: [ 'Web Application Icons', 'Currency Icons' ] },
1230
- { name: 'Caret Down',
1231
- id: 'caret-down',
1232
- unicode: 'f0d7',
1233
- created: 2,
1234
- filter: [ 'more', 'dropdown', 'menu', 'triangle down', 'arrow' ],
1235
- categories: [ 'Directional Icons' ] },
1236
- { name: 'Caret Up',
1237
- id: 'caret-up',
1238
- unicode: 'f0d8',
1239
- created: 2,
1240
- filter: [ 'triangle up', 'arrow' ],
1241
- categories: [ 'Directional Icons' ] },
1242
- { name: 'Caret Left',
1243
- id: 'caret-left',
1244
- unicode: 'f0d9',
1245
- created: 2,
1246
- filter: [ 'previous', 'back', 'triangle left', 'arrow' ],
1247
- categories: [ 'Directional Icons' ] },
1248
- { name: 'Caret Right',
1249
- id: 'caret-right',
1250
- unicode: 'f0da',
1251
- created: 2,
1252
- filter: [ 'next', 'forward', 'triangle right', 'arrow' ],
1253
- categories: [ 'Directional Icons' ] },
1254
- { name: 'Columns',
1255
- id: 'columns',
1256
- unicode: 'f0db',
1257
- created: 2,
1258
- filter: [ 'split', 'panes' ],
1259
- categories: [ 'Text Editor Icons' ] },
1260
- { name: 'Sort',
1261
- id: 'sort',
1262
- unicode: 'f0dc',
1263
- created: 2,
1264
- filter: [ 'order' ],
1265
- aliases: [ 'unsorted' ],
1266
- categories: [ 'Web Application Icons' ] },
1267
- { name: 'Sort Descending',
1268
- id: 'sort-desc',
1269
- unicode: 'f0dd',
1270
- created: 2,
1271
- filter: [ 'dropdown', 'more', 'menu', 'arrow' ],
1272
- aliases: [ 'sort-down' ],
1273
- categories: [ 'Web Application Icons' ] },
1274
- { name: 'Sort Ascending',
1275
- id: 'sort-asc',
1276
- unicode: 'f0de',
1277
- created: 2,
1278
- aliases: [ 'sort-up' ],
1279
- filter: [ 'arrow' ],
1280
- categories: [ 'Web Application Icons' ] },
1281
- { name: 'Envelope',
1282
- id: 'envelope',
1283
- unicode: 'f0e0',
1284
- created: 2,
1285
- filter: [ 'email', 'e-mail', 'letter', 'support', 'mail', 'notification' ],
1286
- categories: [ 'Web Application Icons' ] },
1287
- { name: 'LinkedIn',
1288
- id: 'linkedin',
1289
- unicode: 'f0e1',
1290
- created: 2,
1291
- categories: [ 'Brand Icons' ] },
1292
- { name: 'Undo',
1293
- id: 'undo',
1294
- unicode: 'f0e2',
1295
- created: 2,
1296
- filter: [ 'back' ],
1297
- aliases: [ 'rotate-left' ],
1298
- categories: [ 'Text Editor Icons' ] },
1299
- { name: 'Gavel',
1300
- id: 'gavel',
1301
- unicode: 'f0e3',
1302
- created: 2,
1303
- label: [ 'judge', 'lawyer', 'opinion' ],
1304
- aliases: [ 'legal' ],
1305
- categories: [ 'Web Application Icons' ] },
1306
- { name: 'Tachometer',
1307
- id: 'tachometer',
1308
- unicode: 'f0e4',
1309
- created: 2,
1310
- label: [ 'speedometer', 'fast' ],
1311
- aliases: [ 'dashboard' ],
1312
- categories: [ 'Web Application Icons' ] },
1313
- { name: 'comment-o',
1314
- id: 'comment-o',
1315
- unicode: 'f0e5',
1316
- created: 2,
1317
- filter:
1318
- [ 'speech',
1319
- 'notification',
1320
- 'note',
1321
- 'chat',
1322
- 'bubble',
1323
- 'feedback',
1324
- 'message',
1325
- 'texting',
1326
- 'sms',
1327
- 'conversation' ],
1328
- categories: [ 'Web Application Icons' ] },
1329
- { name: 'comments-o',
1330
- id: 'comments-o',
1331
- unicode: 'f0e6',
1332
- created: 2,
1333
- filter:
1334
- [ 'speech',
1335
- 'notification',
1336
- 'note',
1337
- 'chat',
1338
- 'bubble',
1339
- 'feedback',
1340
- 'message',
1341
- 'texting',
1342
- 'sms',
1343
- 'conversation' ],
1344
- categories: [ 'Web Application Icons' ] },
1345
- { name: 'Lightning Bolt',
1346
- id: 'bolt',
1347
- unicode: 'f0e7',
1348
- created: 2,
1349
- filter: [ 'lightning', 'weather' ],
1350
- aliases: [ 'flash' ],
1351
- categories: [ 'Web Application Icons' ] },
1352
- { name: 'Sitemap',
1353
- id: 'sitemap',
1354
- unicode: 'f0e8',
1355
- created: 2,
1356
- filter: [ 'directory', 'hierarchy', 'organization' ],
1357
- categories: [ 'Web Application Icons' ] },
1358
- { name: 'Umbrella',
1359
- id: 'umbrella',
1360
- unicode: 'f0e9',
1361
- created: 2,
1362
- categories: [ 'Web Application Icons' ] },
1363
- { name: 'Clipboard',
1364
- id: 'clipboard',
1365
- unicode: 'f0ea',
1366
- created: 2,
1367
- filter: [ 'copy' ],
1368
- aliases: [ 'paste' ],
1369
- categories: [ 'Text Editor Icons' ] },
1370
- { name: 'Lightbulb Outlined',
1371
- id: 'lightbulb-o',
1372
- unicode: 'f0eb',
1373
- created: 3,
1374
- filter: [ 'idea', 'inspiration' ],
1375
- categories: [ 'Web Application Icons' ] },
1376
- { name: 'Exchange',
1377
- id: 'exchange',
1378
- unicode: 'f0ec',
1379
- created: 3,
1380
- filter: [ 'transfer', 'arrows', 'arrow' ],
1381
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
1382
- { name: 'Cloud Download',
1383
- id: 'cloud-download',
1384
- unicode: 'f0ed',
1385
- created: 3,
1386
- filter: [ 'import' ],
1387
- categories: [ 'Web Application Icons' ] },
1388
- { name: 'Cloud Upload',
1389
- id: 'cloud-upload',
1390
- unicode: 'f0ee',
1391
- created: 3,
1392
- filter: [ 'import' ],
1393
- categories: [ 'Web Application Icons' ] },
1394
- { name: 'user-md',
1395
- id: 'user-md',
1396
- unicode: 'f0f0',
1397
- created: 2,
1398
- filter: [ 'doctor', 'profile', 'medical', 'nurse' ],
1399
- categories: [ 'Medical Icons' ] },
1400
- { name: 'Stethoscope',
1401
- id: 'stethoscope',
1402
- unicode: 'f0f1',
1403
- created: 3,
1404
- categories: [ 'Medical Icons' ] },
1405
- { name: 'Suitcase',
1406
- id: 'suitcase',
1407
- unicode: 'f0f2',
1408
- created: 3,
1409
- filter: [ 'trip', 'luggage', 'travel', 'move', 'baggage' ],
1410
- categories: [ 'Web Application Icons' ] },
1411
- { name: 'Bell Outlined',
1412
- id: 'bell-o',
1413
- unicode: 'f0a2',
1414
- created: 3,
1415
- filter: [ 'alert', 'reminder', 'notification' ],
1416
- categories: [ 'Web Application Icons' ] },
1417
- { name: 'Coffee',
1418
- id: 'coffee',
1419
- unicode: 'f0f4',
1420
- created: 3,
1421
- filter: [ 'morning', 'mug', 'breakfast', 'tea', 'drink', 'cafe' ],
1422
- categories: [ 'Web Application Icons' ] },
1423
- { name: 'Cutlery',
1424
- id: 'cutlery',
1425
- unicode: 'f0f5',
1426
- created: 3,
1427
- filter: [ 'food', 'restaurant', 'spoon', 'knife', 'dinner', 'eat' ],
1428
- categories: [ 'Web Application Icons' ] },
1429
- { name: 'File Text Outlined',
1430
- id: 'file-text-o',
1431
- unicode: 'f0f6',
1432
- created: 3,
1433
- filter: [ 'new', 'page', 'pdf', 'document' ],
1434
- categories: [ 'Text Editor Icons', 'File Type Icons' ] },
1435
- { name: 'Building Outlined',
1436
- id: 'building-o',
1437
- unicode: 'f0f7',
1438
- created: 3,
1439
- filter: [ 'work', 'business', 'apartment', 'office', 'company' ],
1440
- categories: [ 'Web Application Icons' ] },
1441
- { name: 'hospital Outlined',
1442
- id: 'hospital-o',
1443
- unicode: 'f0f8',
1444
- created: 3,
1445
- filter: [ 'building' ],
1446
- categories: [ 'Medical Icons' ] },
1447
- { name: 'ambulance',
1448
- id: 'ambulance',
1449
- unicode: 'f0f9',
1450
- created: 3,
1451
- filter: [ 'vehicle', 'support', 'help' ],
1452
- categories: [ 'Medical Icons', 'Transportation Icons' ] },
1453
- { name: 'medkit',
1454
- id: 'medkit',
1455
- unicode: 'f0fa',
1456
- created: 3,
1457
- filter: [ 'first aid', 'firstaid', 'help', 'support', 'health' ],
1458
- categories: [ 'Medical Icons' ] },
1459
- { name: 'fighter-jet',
1460
- id: 'fighter-jet',
1461
- unicode: 'f0fb',
1462
- created: 3,
1463
- filter: [ 'fly', 'plane', 'airplane', 'quick', 'fast', 'travel' ],
1464
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1465
- { name: 'beer',
1466
- id: 'beer',
1467
- unicode: 'f0fc',
1468
- created: 3,
1469
- filter: [ 'alcohol', 'stein', 'drink', 'mug', 'bar', 'liquor' ],
1470
- categories: [ 'Web Application Icons' ] },
1471
- { name: 'H Square',
1472
- id: 'h-square',
1473
- unicode: 'f0fd',
1474
- created: 3,
1475
- filter: [ 'hospital', 'hotel' ],
1476
- categories: [ 'Medical Icons' ] },
1477
- { name: 'Plus Square',
1478
- id: 'plus-square',
1479
- unicode: 'f0fe',
1480
- created: 3,
1481
- filter: [ 'add', 'new', 'create', 'expand' ],
1482
- categories:
1483
- [ 'Medical Icons',
1484
- 'Web Application Icons',
1485
- 'Form Control Icons' ] },
1486
- { name: 'Angle Double Left',
1487
- id: 'angle-double-left',
1488
- unicode: 'f100',
1489
- created: 3,
1490
- filter: [ 'laquo', 'quote', 'previous', 'back', 'arrows' ],
1491
- categories: [ 'Directional Icons' ] },
1492
- { name: 'Angle Double Right',
1493
- id: 'angle-double-right',
1494
- unicode: 'f101',
1495
- created: 3,
1496
- filter: [ 'raquo', 'quote', 'next', 'forward', 'arrows' ],
1497
- categories: [ 'Directional Icons' ] },
1498
- { name: 'Angle Double Up',
1499
- id: 'angle-double-up',
1500
- unicode: 'f102',
1501
- created: 3,
1502
- filter: [ 'arrows' ],
1503
- categories: [ 'Directional Icons' ] },
1504
- { name: 'Angle Double Down',
1505
- id: 'angle-double-down',
1506
- unicode: 'f103',
1507
- created: 3,
1508
- filter: [ 'arrows' ],
1509
- categories: [ 'Directional Icons' ] },
1510
- { name: 'angle-left',
1511
- id: 'angle-left',
1512
- unicode: 'f104',
1513
- created: 3,
1514
- filter: [ 'previous', 'back', 'arrow' ],
1515
- categories: [ 'Directional Icons' ] },
1516
- { name: 'angle-right',
1517
- id: 'angle-right',
1518
- unicode: 'f105',
1519
- created: 3,
1520
- filter: [ 'next', 'forward', 'arrow' ],
1521
- categories: [ 'Directional Icons' ] },
1522
- { name: 'angle-up',
1523
- id: 'angle-up',
1524
- unicode: 'f106',
1525
- created: 3,
1526
- filter: [ 'arrow' ],
1527
- categories: [ 'Directional Icons' ] },
1528
- { name: 'angle-down',
1529
- id: 'angle-down',
1530
- unicode: 'f107',
1531
- created: 3,
1532
- filter: [ 'arrow' ],
1533
- categories: [ 'Directional Icons' ] },
1534
- { name: 'Desktop',
1535
- id: 'desktop',
1536
- unicode: 'f108',
1537
- created: 3,
1538
- filter: [ 'monitor', 'screen', 'desktop', 'computer', 'demo', 'device' ],
1539
- categories: [ 'Web Application Icons' ] },
1540
- { name: 'Laptop',
1541
- id: 'laptop',
1542
- unicode: 'f109',
1543
- created: 3,
1544
- filter: [ 'demo', 'computer', 'device' ],
1545
- categories: [ 'Web Application Icons' ] },
1546
- { name: 'tablet',
1547
- id: 'tablet',
1548
- unicode: 'f10a',
1549
- created: 3,
1550
- filter: [ 'ipad', 'device' ],
1551
- categories: [ 'Web Application Icons' ] },
1552
- { name: 'Mobile Phone',
1553
- id: 'mobile',
1554
- unicode: 'f10b',
1555
- created: 3,
1556
- filter:
1557
- [ 'cell phone',
1558
- 'cellphone',
1559
- 'text',
1560
- 'call',
1561
- 'iphone',
1562
- 'number',
1563
- 'telephone' ],
1564
- aliases: [ 'mobile-phone' ],
1565
- categories: [ 'Web Application Icons' ] },
1566
- { name: 'Circle Outlined',
1567
- id: 'circle-o',
1568
- unicode: 'f10c',
1569
- created: 3,
1570
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1571
- { name: 'quote-left',
1572
- id: 'quote-left',
1573
- unicode: 'f10d',
1574
- created: 3,
1575
- categories: [ 'Web Application Icons' ] },
1576
- { name: 'quote-right',
1577
- id: 'quote-right',
1578
- unicode: 'f10e',
1579
- created: 3,
1580
- categories: [ 'Web Application Icons' ] },
1581
- { name: 'Spinner',
1582
- id: 'spinner',
1583
- unicode: 'f110',
1584
- created: 3,
1585
- filter: [ 'loading', 'progress' ],
1586
- categories: [ 'Web Application Icons', 'Spinner Icons' ] },
1587
- { name: 'Circle',
1588
- id: 'circle',
1589
- unicode: 'f111',
1590
- created: 3,
1591
- filter: [ 'dot', 'notification' ],
1592
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1593
- { name: 'Reply',
1594
- id: 'reply',
1595
- unicode: 'f112',
1596
- created: 3,
1597
- aliases: [ 'mail-reply' ],
1598
- categories: [ 'Web Application Icons' ] },
1599
- { name: 'GitHub Alt',
1600
- id: 'github-alt',
1601
- unicode: 'f113',
1602
- created: 3,
1603
- url: 'github.com/logos',
1604
- filter: [ 'octocat' ],
1605
- categories: [ 'Brand Icons' ] },
1606
- { name: 'Folder Outlined',
1607
- id: 'folder-o',
1608
- unicode: 'f114',
1609
- created: 3,
1610
- categories: [ 'Web Application Icons' ] },
1611
- { name: 'Folder Open Outlined',
1612
- id: 'folder-open-o',
1613
- unicode: 'f115',
1614
- created: 3,
1615
- categories: [ 'Web Application Icons' ] },
1616
- { name: 'Smile Outlined',
1617
- id: 'smile-o',
1618
- unicode: 'f118',
1619
- created: 3.1,
1620
- filter: [ 'face', 'emoticon', 'happy', 'approve', 'satisfied', 'rating' ],
1621
- categories: [ 'Web Application Icons' ] },
1622
- { name: 'Frown Outlined',
1623
- id: 'frown-o',
1624
- unicode: 'f119',
1625
- created: 3.1,
1626
- filter: [ 'face', 'emoticon', 'sad', 'disapprove', 'rating' ],
1627
- categories: [ 'Web Application Icons' ] },
1628
- { name: 'Meh Outlined',
1629
- id: 'meh-o',
1630
- unicode: 'f11a',
1631
- created: 3.1,
1632
- filter: [ 'face', 'emoticon', 'rating', 'neutral' ],
1633
- categories: [ 'Web Application Icons' ] },
1634
- { name: 'Gamepad',
1635
- id: 'gamepad',
1636
- unicode: 'f11b',
1637
- created: 3.1,
1638
- filter: [ 'controller' ],
1639
- categories: [ 'Web Application Icons' ] },
1640
- { name: 'Keyboard Outlined',
1641
- id: 'keyboard-o',
1642
- unicode: 'f11c',
1643
- created: 3.1,
1644
- filter: [ 'type', 'input' ],
1645
- categories: [ 'Web Application Icons' ] },
1646
- { name: 'Flag Outlined',
1647
- id: 'flag-o',
1648
- unicode: 'f11d',
1649
- created: 3.1,
1650
- filter: [ 'report', 'notification' ],
1651
- categories: [ 'Web Application Icons' ] },
1652
- { name: 'flag-checkered',
1653
- id: 'flag-checkered',
1654
- unicode: 'f11e',
1655
- created: 3.1,
1656
- filter: [ 'report', 'notification', 'notify' ],
1657
- categories: [ 'Web Application Icons' ] },
1658
- { name: 'Terminal',
1659
- id: 'terminal',
1660
- unicode: 'f120',
1661
- created: 3.1,
1662
- filter: [ 'command', 'prompt', 'code' ],
1663
- categories: [ 'Web Application Icons' ] },
1664
- { name: 'Code',
1665
- id: 'code',
1666
- unicode: 'f121',
1667
- created: 3.1,
1668
- filter: [ 'html', 'brackets' ],
1669
- categories: [ 'Web Application Icons' ] },
1670
- { name: 'reply-all',
1671
- id: 'reply-all',
1672
- unicode: 'f122',
1673
- created: 3.1,
1674
- aliases: [ 'mail-reply-all' ],
1675
- categories: [ 'Web Application Icons' ] },
1676
- { name: 'Star Half Outlined',
1677
- id: 'star-half-o',
1678
- unicode: 'f123',
1679
- created: 3.1,
1680
- filter: [ 'award', 'achievement', 'rating', 'score' ],
1681
- aliases: [ 'star-half-empty', 'star-half-full' ],
1682
- categories: [ 'Web Application Icons' ] },
1683
- { name: 'location-arrow',
1684
- id: 'location-arrow',
1685
- unicode: 'f124',
1686
- created: 3.1,
1687
- filter: [ 'map', 'coordinates', 'location', 'address', 'place', 'where' ],
1688
- categories: [ 'Web Application Icons' ] },
1689
- { name: 'crop',
1690
- id: 'crop',
1691
- unicode: 'f125',
1692
- created: 3.1,
1693
- categories: [ 'Web Application Icons' ] },
1694
- { name: 'code-fork',
1695
- id: 'code-fork',
1696
- unicode: 'f126',
1697
- created: 3.1,
1698
- filter:
1699
- [ 'git',
1700
- 'fork',
1701
- 'vcs',
1702
- 'svn',
1703
- 'github',
1704
- 'rebase',
1705
- 'version',
1706
- 'merge' ],
1707
- categories: [ 'Web Application Icons' ] },
1708
- { name: 'Chain Broken',
1709
- id: 'chain-broken',
1710
- unicode: 'f127',
1711
- created: 3.1,
1712
- filter: [ 'remove' ],
1713
- aliases: [ 'unlink' ],
1714
- categories: [ 'Text Editor Icons' ] },
1715
- { name: 'Question',
1716
- id: 'question',
1717
- unicode: 'f128',
1718
- created: 3.1,
1719
- filter: [ 'help', 'information', 'unknown', 'support' ],
1720
- categories: [ 'Web Application Icons' ] },
1721
- { name: 'Info',
1722
- id: 'info',
1723
- unicode: 'f129',
1724
- created: 3.1,
1725
- filter: [ 'help', 'information', 'more', 'details' ],
1726
- categories: [ 'Web Application Icons' ] },
1727
- { name: 'exclamation',
1728
- id: 'exclamation',
1729
- unicode: 'f12a',
1730
- created: 3.1,
1731
- filter: [ 'warning', 'error', 'problem', 'notification', 'notify', 'alert' ],
1732
- categories: [ 'Web Application Icons' ] },
1733
- { name: 'superscript',
1734
- id: 'superscript',
1735
- unicode: 'f12b',
1736
- created: 3.1,
1737
- filter: [ 'exponential' ],
1738
- categories: [ 'Text Editor Icons' ] },
1739
- { name: 'subscript',
1740
- id: 'subscript',
1741
- unicode: 'f12c',
1742
- created: 3.1,
1743
- categories: [ 'Text Editor Icons' ] },
1744
- { name: 'eraser',
1745
- id: 'eraser',
1746
- unicode: 'f12d',
1747
- created: 3.1,
1748
- filter: [ 'remove', 'delete' ],
1749
- categories: [ 'Text Editor Icons', 'Web Application Icons' ] },
1750
- { name: 'Puzzle Piece',
1751
- id: 'puzzle-piece',
1752
- unicode: 'f12e',
1753
- created: 3.1,
1754
- filter: [ 'addon', 'add-on', 'section' ],
1755
- categories: [ 'Web Application Icons' ] },
1756
- { name: 'microphone',
1757
- id: 'microphone',
1758
- unicode: 'f130',
1759
- created: 3.1,
1760
- filter: [ 'record', 'voice', 'sound' ],
1761
- categories: [ 'Web Application Icons' ] },
1762
- { name: 'Microphone Slash',
1763
- id: 'microphone-slash',
1764
- unicode: 'f131',
1765
- created: 3.1,
1766
- filter: [ 'record', 'voice', 'sound', 'mute' ],
1767
- categories: [ 'Web Application Icons' ] },
1768
- { name: 'shield',
1769
- id: 'shield',
1770
- unicode: 'f132',
1771
- created: 3.1,
1772
- filter: [ 'award', 'achievement', 'winner' ],
1773
- categories: [ 'Web Application Icons' ] },
1774
- { name: 'calendar-o',
1775
- id: 'calendar-o',
1776
- unicode: 'f133',
1777
- created: 3.1,
1778
- filter: [ 'date', 'time', 'when', 'event' ],
1779
- categories: [ 'Web Application Icons' ] },
1780
- { name: 'fire-extinguisher',
1781
- id: 'fire-extinguisher',
1782
- unicode: 'f134',
1783
- created: 3.1,
1784
- categories: [ 'Web Application Icons' ] },
1785
- { name: 'rocket',
1786
- id: 'rocket',
1787
- unicode: 'f135',
1788
- created: 3.1,
1789
- filter: [ 'app' ],
1790
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1791
- { name: 'MaxCDN',
1792
- id: 'maxcdn',
1793
- unicode: 'f136',
1794
- created: 3.1,
1795
- categories: [ 'Brand Icons' ] },
1796
- { name: 'Chevron Circle Left',
1797
- id: 'chevron-circle-left',
1798
- unicode: 'f137',
1799
- created: 3.1,
1800
- filter: [ 'previous', 'back', 'arrow' ],
1801
- categories: [ 'Directional Icons' ] },
1802
- { name: 'Chevron Circle Right',
1803
- id: 'chevron-circle-right',
1804
- unicode: 'f138',
1805
- created: 3.1,
1806
- filter: [ 'next', 'forward', 'arrow' ],
1807
- categories: [ 'Directional Icons' ] },
1808
- { name: 'Chevron Circle Up',
1809
- id: 'chevron-circle-up',
1810
- unicode: 'f139',
1811
- created: 3.1,
1812
- filter: [ 'arrow' ],
1813
- categories: [ 'Directional Icons' ] },
1814
- { name: 'Chevron Circle Down',
1815
- id: 'chevron-circle-down',
1816
- unicode: 'f13a',
1817
- created: 3.1,
1818
- filter: [ 'more', 'dropdown', 'menu', 'arrow' ],
1819
- categories: [ 'Directional Icons' ] },
1820
- { name: 'HTML 5 Logo',
1821
- id: 'html5',
1822
- unicode: 'f13b',
1823
- created: 3.1,
1824
- code: [ 'code', 'html5' ],
1825
- categories: [ 'Brand Icons' ] },
1826
- { name: 'CSS 3 Logo',
1827
- id: 'css3',
1828
- unicode: 'f13c',
1829
- created: 3.1,
1830
- filter: [ 'code' ],
1831
- categories: [ 'Brand Icons' ] },
1832
- { name: 'Anchor',
1833
- id: 'anchor',
1834
- unicode: 'f13d',
1835
- created: 3.1,
1836
- filter: [ 'link' ],
1837
- categories: [ 'Web Application Icons' ] },
1838
- { name: 'Unlock Alt',
1839
- id: 'unlock-alt',
1840
- unicode: 'f13e',
1841
- created: 3.1,
1842
- filter: [ 'protect', 'admin', 'password', 'lock' ],
1843
- categories: [ 'Web Application Icons' ] },
1844
- { name: 'Bullseye',
1845
- id: 'bullseye',
1846
- unicode: 'f140',
1847
- created: 3.1,
1848
- filter: [ 'target' ],
1849
- categories: [ 'Web Application Icons' ] },
1850
- { name: 'Ellipsis Horizontal',
1851
- id: 'ellipsis-h',
1852
- unicode: 'f141',
1853
- created: 3.1,
1854
- filter: [ 'dots' ],
1855
- categories: [ 'Web Application Icons' ] },
1856
- { name: 'Ellipsis Vertical',
1857
- id: 'ellipsis-v',
1858
- unicode: 'f142',
1859
- created: 3.1,
1860
- filter: [ 'dots' ],
1861
- categories: [ 'Web Application Icons' ] },
1862
- { name: 'RSS Square',
1863
- id: 'rss-square',
1864
- unicode: 'f143',
1865
- created: 3.1,
1866
- filter: [ 'feed', 'blog' ],
1867
- categories: [ 'Web Application Icons' ] },
1868
- { name: 'Play Circle',
1869
- id: 'play-circle',
1870
- unicode: 'f144',
1871
- created: 3.1,
1872
- filter: [ 'start', 'playing' ],
1873
- categories: [ 'Video Player Icons' ] },
1874
- { name: 'Ticket',
1875
- id: 'ticket',
1876
- unicode: 'f145',
1877
- created: 3.1,
1878
- filter: [ 'movie', 'pass', 'support' ],
1879
- categories: [ 'Web Application Icons' ] },
1880
- { name: 'Minus Square',
1881
- id: 'minus-square',
1882
- unicode: 'f146',
1883
- created: 3.1,
1884
- filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
1885
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1886
- { name: 'Minus Square Outlined',
1887
- id: 'minus-square-o',
1888
- unicode: 'f147',
1889
- created: 3.1,
1890
- filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
1891
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1892
- { name: 'Level Up',
1893
- id: 'level-up',
1894
- unicode: 'f148',
1895
- created: 3.1,
1896
- filter: [ 'arrow' ],
1897
- categories: [ 'Web Application Icons' ] },
1898
- { name: 'Level Down',
1899
- id: 'level-down',
1900
- unicode: 'f149',
1901
- created: 3.1,
1902
- filter: [ 'arrow' ],
1903
- categories: [ 'Web Application Icons' ] },
1904
- { name: 'Check Square',
1905
- id: 'check-square',
1906
- unicode: 'f14a',
1907
- created: 3.1,
1908
- filter: [ 'checkmark', 'done', 'todo', 'agree', 'accept', 'confirm', 'ok' ],
1909
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1910
- { name: 'Pencil Square',
1911
- id: 'pencil-square',
1912
- unicode: 'f14b',
1913
- created: 3.1,
1914
- filter: [ 'write', 'edit', 'update' ],
1915
- categories: [ 'Web Application Icons' ] },
1916
- { name: 'External Link Square',
1917
- id: 'external-link-square',
1918
- unicode: 'f14c',
1919
- created: 3.1,
1920
- filter: [ 'open', 'new' ],
1921
- categories: [ 'Web Application Icons' ] },
1922
- { name: 'Share Square',
1923
- id: 'share-square',
1924
- unicode: 'f14d',
1925
- created: 3.1,
1926
- filter: [ 'social', 'send' ],
1927
- categories: [ 'Web Application Icons' ] },
1928
- { name: 'Compass',
1929
- id: 'compass',
1930
- unicode: 'f14e',
1931
- created: 3.2,
1932
- filter: [ 'safari', 'directory', 'menu', 'location' ],
1933
- categories: [ 'Web Application Icons' ] },
1934
- { name: 'Caret Square Outlined Down',
1935
- id: 'caret-square-o-down',
1936
- unicode: 'f150',
1937
- created: 3.2,
1938
- aliases: [ 'toggle-down' ],
1939
- filter: [ 'more', 'dropdown', 'menu' ],
1940
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
1941
- { name: 'Caret Square Outlined Up',
1942
- id: 'caret-square-o-up',
1943
- unicode: 'f151',
1944
- created: 3.2,
1945
- aliases: [ 'toggle-up' ],
1946
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
1947
- { name: 'Caret Square Outlined Right',
1948
- id: 'caret-square-o-right',
1949
- unicode: 'f152',
1950
- created: 3.2,
1951
- filter: [ 'next', 'forward' ],
1952
- aliases: [ 'toggle-right' ],
1953
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
1954
- { name: 'Euro (EUR)',
1955
- id: 'eur',
1956
- unicode: 'f153',
1957
- created: 3.2,
1958
- aliases: [ 'euro' ],
1959
- categories: [ 'Currency Icons' ] },
1960
- { name: 'GBP',
1961
- id: 'gbp',
1962
- unicode: 'f154',
1963
- created: 3.2,
1964
- categories: [ 'Currency Icons' ] },
1965
- { name: 'US Dollar',
1966
- id: 'usd',
1967
- unicode: 'f155',
1968
- created: 3.2,
1969
- aliases: [ 'dollar' ],
1970
- categories: [ 'Currency Icons' ] },
1971
- { name: 'Indian Rupee (INR)',
1972
- id: 'inr',
1973
- unicode: 'f156',
1974
- created: 3.2,
1975
- aliases: [ 'rupee' ],
1976
- categories: [ 'Currency Icons' ] },
1977
- { name: 'Japanese Yen (JPY)',
1978
- id: 'jpy',
1979
- unicode: 'f157',
1980
- created: 3.2,
1981
- aliases: [ 'cny', 'rmb', 'yen' ],
1982
- categories: [ 'Currency Icons' ] },
1983
- { name: 'Russian Ruble (RUB)',
1984
- id: 'rub',
1985
- unicode: 'f158',
1986
- created: 4,
1987
- aliases: [ 'ruble', 'rouble' ],
1988
- categories: [ 'Currency Icons' ] },
1989
- { name: 'Korean Won (KRW)',
1990
- id: 'krw',
1991
- unicode: 'f159',
1992
- created: 3.2,
1993
- aliases: [ 'won' ],
1994
- categories: [ 'Currency Icons' ] },
1995
- { name: 'Bitcoin (BTC)',
1996
- id: 'btc',
1997
- unicode: 'f15a',
1998
- created: 3.2,
1999
- aliases: [ 'bitcoin' ],
2000
- categories: [ 'Currency Icons', 'Brand Icons' ] },
2001
- { name: 'File',
2002
- id: 'file',
2003
- unicode: 'f15b',
2004
- created: 3.2,
2005
- filter: [ 'new', 'page', 'pdf', 'document' ],
2006
- categories: [ 'Text Editor Icons', 'File Type Icons' ] },
2007
- { name: 'File Text',
2008
- id: 'file-text',
2009
- unicode: 'f15c',
2010
- created: 3.2,
2011
- filter: [ 'new', 'page', 'pdf', 'document' ],
2012
- categories: [ 'Text Editor Icons', 'File Type Icons' ] },
2013
- { name: 'Sort Alpha Ascending',
2014
- id: 'sort-alpha-asc',
2015
- unicode: 'f15d',
2016
- created: 3.2,
2017
- categories: [ 'Web Application Icons' ] },
2018
- { name: 'Sort Alpha Descending',
2019
- id: 'sort-alpha-desc',
2020
- unicode: 'f15e',
2021
- created: 3.2,
2022
- categories: [ 'Web Application Icons' ] },
2023
- { name: 'Sort Amount Ascending',
2024
- id: 'sort-amount-asc',
2025
- unicode: 'f160',
2026
- created: 3.2,
2027
- categories: [ 'Web Application Icons' ] },
2028
- { name: 'Sort Amount Descending',
2029
- id: 'sort-amount-desc',
2030
- unicode: 'f161',
2031
- created: 3.2,
2032
- categories: [ 'Web Application Icons' ] },
2033
- { name: 'Sort Numeric Ascending',
2034
- id: 'sort-numeric-asc',
2035
- unicode: 'f162',
2036
- created: 3.2,
2037
- filter: [ 'numbers' ],
2038
- categories: [ 'Web Application Icons' ] },
2039
- { name: 'Sort Numeric Descending',
2040
- id: 'sort-numeric-desc',
2041
- unicode: 'f163',
2042
- created: 3.2,
2043
- filter: [ 'numbers' ],
2044
- categories: [ 'Web Application Icons' ] },
2045
- { name: 'thumbs-up',
2046
- id: 'thumbs-up',
2047
- unicode: 'f164',
2048
- created: 3.2,
2049
- filter: [ 'like', 'favorite', 'approve', 'agree', 'hand' ],
2050
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
2051
- { name: 'thumbs-down',
2052
- id: 'thumbs-down',
2053
- unicode: 'f165',
2054
- created: 3.2,
2055
- filter: [ 'dislike', 'disapprove', 'disagree', 'hand' ],
2056
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
2057
- { name: 'YouTube Square',
2058
- id: 'youtube-square',
2059
- unicode: 'f166',
2060
- created: 3.2,
2061
- filter: [ 'video', 'film' ],
2062
- categories: [ 'Brand Icons' ] },
2063
- { name: 'YouTube',
2064
- id: 'youtube',
2065
- unicode: 'f167',
2066
- created: 3.2,
2067
- filter: [ 'video', 'film' ],
2068
- categories: [ 'Brand Icons' ] },
2069
- { name: 'Xing',
2070
- id: 'xing',
2071
- unicode: 'f168',
2072
- created: 3.2,
2073
- categories: [ 'Brand Icons' ] },
2074
- { name: 'Xing Square',
2075
- id: 'xing-square',
2076
- unicode: 'f169',
2077
- created: 3.2,
2078
- categories: [ 'Brand Icons' ] },
2079
- { name: 'YouTube Play',
2080
- id: 'youtube-play',
2081
- unicode: 'f16a',
2082
- created: 3.2,
2083
- filter: [ 'start', 'playing' ],
2084
- categories: [ 'Brand Icons', 'Video Player Icons' ] },
2085
- { name: 'Dropbox',
2086
- id: 'dropbox',
2087
- unicode: 'f16b',
2088
- created: 3.2,
2089
- categories: [ 'Brand Icons' ] },
2090
- { name: 'Stack Overflow',
2091
- id: 'stack-overflow',
2092
- unicode: 'f16c',
2093
- created: 3.2,
2094
- categories: [ 'Brand Icons' ] },
2095
- { name: 'Instagram',
2096
- id: 'instagram',
2097
- unicode: 'f16d',
2098
- created: 4.6,
2099
- categories: [ 'Brand Icons' ] },
2100
- { name: 'Flickr',
2101
- id: 'flickr',
2102
- unicode: 'f16e',
2103
- created: 3.2,
2104
- categories: [ 'Brand Icons' ] },
2105
- { name: 'App.net',
2106
- id: 'adn',
2107
- unicode: 'f170',
2108
- created: 3.2,
2109
- categories: [ 'Brand Icons' ] },
2110
- { name: 'Bitbucket',
2111
- id: 'bitbucket',
2112
- unicode: 'f171',
2113
- created: 3.2,
2114
- filter: [ 'git' ],
2115
- categories: [ 'Brand Icons' ] },
2116
- { name: 'Bitbucket Square',
2117
- id: 'bitbucket-square',
2118
- unicode: 'f172',
2119
- created: 3.2,
2120
- filter: [ 'git' ],
2121
- categories: [ 'Brand Icons' ] },
2122
- { name: 'Tumblr',
2123
- id: 'tumblr',
2124
- unicode: 'f173',
2125
- created: 3.2,
2126
- categories: [ 'Brand Icons' ] },
2127
- { name: 'Tumblr Square',
2128
- id: 'tumblr-square',
2129
- unicode: 'f174',
2130
- created: 3.2,
2131
- categories: [ 'Brand Icons' ] },
2132
- { name: 'Long Arrow Down',
2133
- id: 'long-arrow-down',
2134
- unicode: 'f175',
2135
- created: 3.2,
2136
- categories: [ 'Directional Icons' ] },
2137
- { name: 'Long Arrow Up',
2138
- id: 'long-arrow-up',
2139
- unicode: 'f176',
2140
- created: 3.2,
2141
- categories: [ 'Directional Icons' ] },
2142
- { name: 'Long Arrow Left',
2143
- id: 'long-arrow-left',
2144
- unicode: 'f177',
2145
- created: 3.2,
2146
- filter: [ 'previous', 'back' ],
2147
- categories: [ 'Directional Icons' ] },
2148
- { name: 'Long Arrow Right',
2149
- id: 'long-arrow-right',
2150
- unicode: 'f178',
2151
- created: 3.2,
2152
- categories: [ 'Directional Icons' ] },
2153
- { name: 'Apple',
2154
- id: 'apple',
2155
- unicode: 'f179',
2156
- created: 3.2,
2157
- filter: [ 'osx', 'food' ],
2158
- categories: [ 'Brand Icons' ] },
2159
- { name: 'Windows',
2160
- id: 'windows',
2161
- unicode: 'f17a',
2162
- created: 3.2,
2163
- filter: [ 'microsoft' ],
2164
- categories: [ 'Brand Icons' ] },
2165
- { name: 'Android',
2166
- id: 'android',
2167
- unicode: 'f17b',
2168
- created: 3.2,
2169
- filter: [ 'robot' ],
2170
- categories: [ 'Brand Icons' ] },
2171
- { name: 'Linux',
2172
- id: 'linux',
2173
- unicode: 'f17c',
2174
- created: 3.2,
2175
- filter: [ 'tux' ],
2176
- categories: [ 'Brand Icons' ] },
2177
- { name: 'Dribbble',
2178
- id: 'dribbble',
2179
- unicode: 'f17d',
2180
- created: 3.2,
2181
- categories: [ 'Brand Icons' ] },
2182
- { name: 'Skype',
2183
- id: 'skype',
2184
- unicode: 'f17e',
2185
- created: 3.2,
2186
- categories: [ 'Brand Icons' ] },
2187
- { name: 'Foursquare',
2188
- id: 'foursquare',
2189
- unicode: 'f180',
2190
- created: 3.2,
2191
- categories: [ 'Brand Icons' ] },
2192
- { name: 'Trello',
2193
- id: 'trello',
2194
- unicode: 'f181',
2195
- created: 3.2,
2196
- categories: [ 'Brand Icons' ] },
2197
- { name: 'Female',
2198
- id: 'female',
2199
- unicode: 'f182',
2200
- created: 3.2,
2201
- filter: [ 'woman', 'user', 'person', 'profile' ],
2202
- categories: [ 'Web Application Icons' ] },
2203
- { name: 'Male',
2204
- id: 'male',
2205
- unicode: 'f183',
2206
- created: 3.2,
2207
- filter: [ 'man', 'user', 'person', 'profile' ],
2208
- categories: [ 'Web Application Icons' ] },
2209
- { name: 'Gratipay (Gittip)',
2210
- id: 'gratipay',
2211
- unicode: 'f184',
2212
- created: 3.2,
2213
- aliases: [ 'gittip' ],
2214
- filter: [ 'heart', 'like', 'favorite', 'love' ],
2215
- categories: [ 'Brand Icons' ] },
2216
- { name: 'Sun Outlined',
2217
- id: 'sun-o',
2218
- unicode: 'f185',
2219
- created: 3.2,
2220
- filter: [ 'weather', 'contrast', 'lighter', 'brighten', 'day' ],
2221
- categories: [ 'Web Application Icons' ] },
2222
- { name: 'Moon Outlined',
2223
- id: 'moon-o',
2224
- unicode: 'f186',
2225
- created: 3.2,
2226
- filter: [ 'night', 'darker', 'contrast' ],
2227
- categories: [ 'Web Application Icons' ] },
2228
- { name: 'Archive',
2229
- id: 'archive',
2230
- unicode: 'f187',
2231
- created: 3.2,
2232
- filter: [ 'box', 'storage' ],
2233
- categories: [ 'Web Application Icons' ] },
2234
- { name: 'Bug',
2235
- id: 'bug',
2236
- unicode: 'f188',
2237
- created: 3.2,
2238
- filter: [ 'report', 'insect' ],
2239
- categories: [ 'Web Application Icons' ] },
2240
- { name: 'VK',
2241
- id: 'vk',
2242
- unicode: 'f189',
2243
- created: 3.2,
2244
- categories: [ 'Brand Icons' ] },
2245
- { name: 'Weibo',
2246
- id: 'weibo',
2247
- unicode: 'f18a',
2248
- created: 3.2,
2249
- categories: [ 'Brand Icons' ] },
2250
- { name: 'Renren',
2251
- id: 'renren',
2252
- unicode: 'f18b',
2253
- created: 3.2,
2254
- categories: [ 'Brand Icons' ] },
2255
- { name: 'Pagelines',
2256
- id: 'pagelines',
2257
- unicode: 'f18c',
2258
- created: 4,
2259
- filter: [ 'leaf', 'leaves', 'tree', 'plant', 'eco', 'nature' ],
2260
- categories: [ 'Brand Icons' ] },
2261
- { name: 'Stack Exchange',
2262
- id: 'stack-exchange',
2263
- unicode: 'f18d',
2264
- created: 4,
2265
- categories: [ 'Brand Icons' ] },
2266
- { name: 'Arrow Circle Outlined Right',
2267
- id: 'arrow-circle-o-right',
2268
- unicode: 'f18e',
2269
- created: 4,
2270
- filter: [ 'next', 'forward' ],
2271
- categories: [ 'Directional Icons' ] },
2272
- { name: 'Arrow Circle Outlined Left',
2273
- id: 'arrow-circle-o-left',
2274
- unicode: 'f190',
2275
- created: 4,
2276
- filter: [ 'previous', 'back' ],
2277
- categories: [ 'Directional Icons' ] },
2278
- { name: 'Caret Square Outlined Left',
2279
- id: 'caret-square-o-left',
2280
- unicode: 'f191',
2281
- created: 4,
2282
- filter: [ 'previous', 'back' ],
2283
- aliases: [ 'toggle-left' ],
2284
- categories: [ 'Web Application Icons', 'Directional Icons' ] },
2285
- { name: 'Dot Circle Outlined',
2286
- id: 'dot-circle-o',
2287
- unicode: 'f192',
2288
- created: 4,
2289
- filter: [ 'target', 'bullseye', 'notification' ],
2290
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
2291
- { name: 'Wheelchair',
2292
- id: 'wheelchair',
2293
- unicode: 'f193',
2294
- created: 4,
2295
- filter: [ 'handicap', 'person' ],
2296
- categories:
2297
- [ 'Web Application Icons',
2298
- 'Medical Icons',
2299
- 'Transportation Icons',
2300
- 'Accessibility Icons' ] },
2301
- { name: 'Vimeo Square',
2302
- id: 'vimeo-square',
2303
- unicode: 'f194',
2304
- created: 4,
2305
- categories: [ 'Brand Icons' ] },
2306
- { name: 'Turkish Lira (TRY)',
2307
- id: 'try',
2308
- unicode: 'f195',
2309
- created: 4,
2310
- aliases: [ 'turkish-lira' ],
2311
- categories: [ 'Currency Icons' ] },
2312
- { name: 'Plus Square Outlined',
2313
- id: 'plus-square-o',
2314
- unicode: 'f196',
2315
- created: 4,
2316
- filter: [ 'add', 'new', 'create', 'expand' ],
2317
- categories: [ 'Web Application Icons', 'Form Control Icons' ] },
2318
- { name: 'Space Shuttle',
2319
- id: 'space-shuttle',
2320
- unicode: 'f197',
2321
- created: 4.1,
2322
- filter: null,
2323
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2324
- { name: 'Slack Logo',
2325
- id: 'slack',
2326
- unicode: 'f198',
2327
- created: 4.1,
2328
- filter: [ 'hashtag', 'anchor', 'hash' ],
2329
- categories: [ 'Brand Icons' ] },
2330
- { name: 'Envelope Square',
2331
- id: 'envelope-square',
2332
- unicode: 'f199',
2333
- created: 4.1,
2334
- categories: [ 'Web Application Icons' ] },
2335
- { name: 'WordPress Logo',
2336
- id: 'wordpress',
2337
- unicode: 'f19a',
2338
- created: 4.1,
2339
- categories: [ 'Brand Icons' ] },
2340
- { name: 'OpenID',
2341
- id: 'openid',
2342
- unicode: 'f19b',
2343
- created: 4.1,
2344
- categories: [ 'Brand Icons' ] },
2345
- { name: 'University',
2346
- id: 'university',
2347
- unicode: 'f19c',
2348
- created: 4.1,
2349
- aliases: [ 'institution', 'bank' ],
2350
- categories: [ 'Web Application Icons' ] },
2351
- { name: 'Graduation Cap',
2352
- id: 'graduation-cap',
2353
- unicode: 'f19d',
2354
- created: 4.1,
2355
- aliases: [ 'mortar-board' ],
2356
- filter: [ 'learning', 'school', 'student' ],
2357
- categories: [ 'Web Application Icons' ] },
2358
- { name: 'Yahoo Logo',
2359
- id: 'yahoo',
2360
- unicode: 'f19e',
2361
- created: 4.1,
2362
- categories: [ 'Brand Icons' ] },
2363
- { name: 'Google Logo',
2364
- id: 'google',
2365
- unicode: 'f1a0',
2366
- created: 4.1,
2367
- categories: [ 'Brand Icons' ] },
2368
- { name: 'reddit Logo',
2369
- id: 'reddit',
2370
- unicode: 'f1a1',
2371
- created: 4.1,
2372
- categories: [ 'Brand Icons' ] },
2373
- { name: 'reddit Square',
2374
- id: 'reddit-square',
2375
- unicode: 'f1a2',
2376
- created: 4.1,
2377
- categories: [ 'Brand Icons' ] },
2378
- { name: 'StumbleUpon Circle',
2379
- id: 'stumbleupon-circle',
2380
- unicode: 'f1a3',
2381
- created: 4.1,
2382
- categories: [ 'Brand Icons' ] },
2383
- { name: 'StumbleUpon Logo',
2384
- id: 'stumbleupon',
2385
- unicode: 'f1a4',
2386
- created: 4.1,
2387
- categories: [ 'Brand Icons' ] },
2388
- { name: 'Delicious Logo',
2389
- id: 'delicious',
2390
- unicode: 'f1a5',
2391
- created: 4.1,
2392
- categories: [ 'Brand Icons' ] },
2393
- { name: 'Digg Logo',
2394
- id: 'digg',
2395
- unicode: 'f1a6',
2396
- created: 4.1,
2397
- categories: [ 'Brand Icons' ] },
2398
- { name: 'Pied Piper PP Logo (Old)',
2399
- id: 'pied-piper-pp',
2400
- unicode: 'f1a7',
2401
- created: 4.1,
2402
- categories: [ 'Brand Icons' ] },
2403
- { name: 'Pied Piper Alternate Logo',
2404
- id: 'pied-piper-alt',
2405
- unicode: 'f1a8',
2406
- created: 4.1,
2407
- categories: [ 'Brand Icons' ] },
2408
- { name: 'Drupal Logo',
2409
- id: 'drupal',
2410
- unicode: 'f1a9',
2411
- created: 4.1,
2412
- categories: [ 'Brand Icons' ] },
2413
- { name: 'Joomla Logo',
2414
- id: 'joomla',
2415
- unicode: 'f1aa',
2416
- created: 4.1,
2417
- categories: [ 'Brand Icons' ] },
2418
- { name: 'Language',
2419
- id: 'language',
2420
- unicode: 'f1ab',
2421
- created: 4.1,
2422
- categories: [ 'Web Application Icons' ] },
2423
- { name: 'Fax',
2424
- id: 'fax',
2425
- unicode: 'f1ac',
2426
- created: 4.1,
2427
- categories: [ 'Web Application Icons' ] },
2428
- { name: 'Building',
2429
- id: 'building',
2430
- unicode: 'f1ad',
2431
- created: 4.1,
2432
- filter: [ 'work', 'business', 'apartment', 'office', 'company' ],
2433
- categories: [ 'Web Application Icons' ] },
2434
- { name: 'Child',
2435
- id: 'child',
2436
- unicode: 'f1ae',
2437
- created: 4.1,
2438
- categories: [ 'Web Application Icons' ] },
2439
- { name: 'Paw',
2440
- id: 'paw',
2441
- unicode: 'f1b0',
2442
- created: 4.1,
2443
- filter: [ 'pet' ],
2444
- categories: [ 'Web Application Icons' ] },
2445
- { name: 'spoon',
2446
- id: 'spoon',
2447
- unicode: 'f1b1',
2448
- created: 4.1,
2449
- categories: [ 'Web Application Icons' ] },
2450
- { name: 'Cube',
2451
- id: 'cube',
2452
- unicode: 'f1b2',
2453
- created: 4.1,
2454
- categories: [ 'Web Application Icons' ] },
2455
- { name: 'Cubes',
2456
- id: 'cubes',
2457
- unicode: 'f1b3',
2458
- created: 4.1,
2459
- categories: [ 'Web Application Icons' ] },
2460
- { name: 'Behance',
2461
- id: 'behance',
2462
- unicode: 'f1b4',
2463
- created: 4.1,
2464
- categories: [ 'Brand Icons' ] },
2465
- { name: 'Behance Square',
2466
- id: 'behance-square',
2467
- unicode: 'f1b5',
2468
- created: 4.1,
2469
- categories: [ 'Brand Icons' ] },
2470
- { name: 'Steam',
2471
- id: 'steam',
2472
- unicode: 'f1b6',
2473
- created: 4.1,
2474
- categories: [ 'Brand Icons' ] },
2475
- { name: 'Steam Square',
2476
- id: 'steam-square',
2477
- unicode: 'f1b7',
2478
- created: 4.1,
2479
- categories: [ 'Brand Icons' ] },
2480
- { name: 'Recycle',
2481
- id: 'recycle',
2482
- unicode: 'f1b8',
2483
- created: 4.1,
2484
- categories: [ 'Web Application Icons' ] },
2485
- { name: 'Car',
2486
- id: 'car',
2487
- unicode: 'f1b9',
2488
- created: 4.1,
2489
- aliases: [ 'automobile' ],
2490
- filter: [ 'vehicle' ],
2491
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2492
- { name: 'Taxi',
2493
- id: 'taxi',
2494
- unicode: 'f1ba',
2495
- created: 4.1,
2496
- aliases: [ 'cab' ],
2497
- filter: [ 'vehicle' ],
2498
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2499
- { name: 'Tree',
2500
- id: 'tree',
2501
- unicode: 'f1bb',
2502
- created: 4.1,
2503
- categories: [ 'Web Application Icons' ] },
2504
- { name: 'Spotify',
2505
- id: 'spotify',
2506
- unicode: 'f1bc',
2507
- created: 4.1,
2508
- categories: [ 'Brand Icons' ] },
2509
- { name: 'deviantART',
2510
- id: 'deviantart',
2511
- unicode: 'f1bd',
2512
- created: 4.1,
2513
- categories: [ 'Brand Icons' ] },
2514
- { name: 'SoundCloud',
2515
- id: 'soundcloud',
2516
- unicode: 'f1be',
2517
- created: 4.1,
2518
- categories: [ 'Brand Icons' ] },
2519
- { name: 'Database',
2520
- id: 'database',
2521
- unicode: 'f1c0',
2522
- created: 4.1,
2523
- categories: [ 'Web Application Icons' ] },
2524
- { name: 'PDF File Outlined',
2525
- id: 'file-pdf-o',
2526
- unicode: 'f1c1',
2527
- created: 4.1,
2528
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2529
- { name: 'Word File Outlined',
2530
- id: 'file-word-o',
2531
- unicode: 'f1c2',
2532
- created: 4.1,
2533
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2534
- { name: 'Excel File Outlined',
2535
- id: 'file-excel-o',
2536
- unicode: 'f1c3',
2537
- created: 4.1,
2538
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2539
- { name: 'Powerpoint File Outlined',
2540
- id: 'file-powerpoint-o',
2541
- unicode: 'f1c4',
2542
- created: 4.1,
2543
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2544
- { name: 'Image File Outlined',
2545
- id: 'file-image-o',
2546
- unicode: 'f1c5',
2547
- created: 4.1,
2548
- aliases: [ 'file-photo-o', 'file-picture-o' ],
2549
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2550
- { name: 'Archive File Outlined',
2551
- id: 'file-archive-o',
2552
- unicode: 'f1c6',
2553
- created: 4.1,
2554
- aliases: [ 'file-zip-o' ],
2555
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2556
- { name: 'Audio File Outlined',
2557
- id: 'file-audio-o',
2558
- unicode: 'f1c7',
2559
- created: 4.1,
2560
- aliases: [ 'file-sound-o' ],
2561
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2562
- { name: 'Video File Outlined',
2563
- id: 'file-video-o',
2564
- unicode: 'f1c8',
2565
- created: 4.1,
2566
- aliases: [ 'file-movie-o' ],
2567
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2568
- { name: 'Code File Outlined',
2569
- id: 'file-code-o',
2570
- unicode: 'f1c9',
2571
- created: 4.1,
2572
- categories: [ 'Web Application Icons', 'File Type Icons' ] },
2573
- { name: 'Vine',
2574
- id: 'vine',
2575
- unicode: 'f1ca',
2576
- created: 4.1,
2577
- categories: [ 'Brand Icons' ] },
2578
- { name: 'Codepen',
2579
- id: 'codepen',
2580
- unicode: 'f1cb',
2581
- created: 4.1,
2582
- categories: [ 'Brand Icons' ] },
2583
- { name: 'jsFiddle',
2584
- id: 'jsfiddle',
2585
- unicode: 'f1cc',
2586
- created: 4.1,
2587
- categories: [ 'Brand Icons' ] },
2588
- { name: 'Life Ring',
2589
- id: 'life-ring',
2590
- unicode: 'f1cd',
2591
- created: 4.1,
2592
- aliases: [ 'life-bouy', 'life-buoy', 'life-saver', 'support' ],
2593
- categories: [ 'Web Application Icons' ] },
2594
- { name: 'Circle Outlined Notched',
2595
- id: 'circle-o-notch',
2596
- unicode: 'f1ce',
2597
- created: 4.1,
2598
- categories: [ 'Web Application Icons', 'Spinner Icons' ] },
2599
- { name: 'Rebel Alliance',
2600
- id: 'rebel',
2601
- unicode: 'f1d0',
2602
- created: 4.1,
2603
- aliases: [ 'ra', 'resistance' ],
2604
- categories: [ 'Brand Icons' ] },
2605
- { name: 'Galactic Empire',
2606
- id: 'empire',
2607
- unicode: 'f1d1',
2608
- created: 4.1,
2609
- aliases: [ 'ge' ],
2610
- categories: [ 'Brand Icons' ] },
2611
- { name: 'Git Square',
2612
- id: 'git-square',
2613
- unicode: 'f1d2',
2614
- created: 4.1,
2615
- categories: [ 'Brand Icons' ] },
2616
- { name: 'Git',
2617
- id: 'git',
2618
- unicode: 'f1d3',
2619
- created: 4.1,
2620
- categories: [ 'Brand Icons' ] },
2621
- { name: 'Hacker News',
2622
- id: 'hacker-news',
2623
- unicode: 'f1d4',
2624
- created: 4.1,
2625
- aliases: [ 'y-combinator-square', 'yc-square' ],
2626
- categories: [ 'Brand Icons' ] },
2627
- { name: 'Tencent Weibo',
2628
- id: 'tencent-weibo',
2629
- unicode: 'f1d5',
2630
- created: 4.1,
2631
- categories: [ 'Brand Icons' ] },
2632
- { name: 'QQ',
2633
- id: 'qq',
2634
- unicode: 'f1d6',
2635
- created: 4.1,
2636
- categories: [ 'Brand Icons' ] },
2637
- { name: 'Weixin (WeChat)',
2638
- id: 'weixin',
2639
- unicode: 'f1d7',
2640
- created: 4.1,
2641
- aliases: [ 'wechat' ],
2642
- categories: [ 'Brand Icons' ] },
2643
- { name: 'Paper Plane',
2644
- id: 'paper-plane',
2645
- unicode: 'f1d8',
2646
- created: 4.1,
2647
- aliases: [ 'send' ],
2648
- categories: [ 'Web Application Icons' ] },
2649
- { name: 'Paper Plane Outlined',
2650
- id: 'paper-plane-o',
2651
- unicode: 'f1d9',
2652
- created: 4.1,
2653
- aliases: [ 'send-o' ],
2654
- categories: [ 'Web Application Icons' ] },
2655
- { name: 'History',
2656
- id: 'history',
2657
- unicode: 'f1da',
2658
- created: 4.1,
2659
- categories: [ 'Web Application Icons' ] },
2660
- { name: 'Circle Outlined Thin',
2661
- id: 'circle-thin',
2662
- unicode: 'f1db',
2663
- created: 4.1,
2664
- categories: [ 'Web Application Icons' ] },
2665
- { name: 'header',
2666
- id: 'header',
2667
- unicode: 'f1dc',
2668
- created: 4.1,
2669
- filter: [ 'heading' ],
2670
- categories: [ 'Text Editor Icons' ] },
2671
- { name: 'paragraph',
2672
- id: 'paragraph',
2673
- unicode: 'f1dd',
2674
- created: 4.1,
2675
- categories: [ 'Text Editor Icons' ] },
2676
- { name: 'Sliders',
2677
- id: 'sliders',
2678
- unicode: 'f1de',
2679
- created: 4.1,
2680
- filter: [ 'settings' ],
2681
- categories: [ 'Web Application Icons' ] },
2682
- { name: 'Share Alt',
2683
- id: 'share-alt',
2684
- unicode: 'f1e0',
2685
- created: 4.1,
2686
- categories: [ 'Web Application Icons', 'Brand Icons' ] },
2687
- { name: 'Share Alt Square',
2688
- id: 'share-alt-square',
2689
- unicode: 'f1e1',
2690
- created: 4.1,
2691
- categories: [ 'Web Application Icons', 'Brand Icons' ] },
2692
- { name: 'Bomb',
2693
- id: 'bomb',
2694
- unicode: 'f1e2',
2695
- created: 4.1,
2696
- categories: [ 'Web Application Icons' ] },
2697
- { name: 'Futbol Outlined',
2698
- id: 'futbol-o',
2699
- unicode: 'f1e3',
2700
- created: 4.2,
2701
- aliases: [ 'soccer-ball-o' ],
2702
- categories: [ 'Web Application Icons' ] },
2703
- { name: 'TTY',
2704
- id: 'tty',
2705
- unicode: 'f1e4',
2706
- created: 4.2,
2707
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
2708
- { name: 'Binoculars',
2709
- id: 'binoculars',
2710
- unicode: 'f1e5',
2711
- created: 4.2,
2712
- categories: [ 'Web Application Icons' ] },
2713
- { name: 'Plug',
2714
- id: 'plug',
2715
- unicode: 'f1e6',
2716
- created: 4.2,
2717
- filter: [ 'power', 'connect' ],
2718
- categories: [ 'Web Application Icons' ] },
2719
- { name: 'Slideshare',
2720
- id: 'slideshare',
2721
- unicode: 'f1e7',
2722
- created: 4.2,
2723
- categories: [ 'Brand Icons' ] },
2724
- { name: 'Twitch',
2725
- id: 'twitch',
2726
- unicode: 'f1e8',
2727
- created: 4.2,
2728
- categories: [ 'Brand Icons' ] },
2729
- { name: 'Yelp',
2730
- id: 'yelp',
2731
- unicode: 'f1e9',
2732
- created: 4.2,
2733
- categories: [ 'Brand Icons' ] },
2734
- { name: 'Newspaper Outlined',
2735
- id: 'newspaper-o',
2736
- unicode: 'f1ea',
2737
- created: 4.2,
2738
- filter: [ 'press' ],
2739
- categories: [ 'Web Application Icons' ] },
2740
- { name: 'WiFi',
2741
- id: 'wifi',
2742
- unicode: 'f1eb',
2743
- created: 4.2,
2744
- categories: [ 'Web Application Icons' ] },
2745
- { name: 'Calculator',
2746
- id: 'calculator',
2747
- unicode: 'f1ec',
2748
- created: 4.2,
2749
- categories: [ 'Web Application Icons' ] },
2750
- { name: 'Paypal',
2751
- id: 'paypal',
2752
- unicode: 'f1ed',
2753
- created: 4.2,
2754
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2755
- { name: 'Google Wallet',
2756
- id: 'google-wallet',
2757
- unicode: 'f1ee',
2758
- created: 4.2,
2759
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2760
- { name: 'Visa Credit Card',
2761
- id: 'cc-visa',
2762
- unicode: 'f1f0',
2763
- created: 4.2,
2764
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2765
- { name: 'MasterCard Credit Card',
2766
- id: 'cc-mastercard',
2767
- unicode: 'f1f1',
2768
- created: 4.2,
2769
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2770
- { name: 'Discover Credit Card',
2771
- id: 'cc-discover',
2772
- unicode: 'f1f2',
2773
- created: 4.2,
2774
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2775
- { name: 'American Express Credit Card',
2776
- id: 'cc-amex',
2777
- unicode: 'f1f3',
2778
- created: 4.2,
2779
- filter: [ 'amex' ],
2780
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2781
- { name: 'Paypal Credit Card',
2782
- id: 'cc-paypal',
2783
- unicode: 'f1f4',
2784
- created: 4.2,
2785
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2786
- { name: 'Stripe Credit Card',
2787
- id: 'cc-stripe',
2788
- unicode: 'f1f5',
2789
- created: 4.2,
2790
- categories: [ 'Brand Icons', 'Payment Icons' ] },
2791
- { name: 'Bell Slash',
2792
- id: 'bell-slash',
2793
- unicode: 'f1f6',
2794
- created: 4.2,
2795
- categories: [ 'Web Application Icons' ] },
2796
- { name: 'Bell Slash Outlined',
2797
- id: 'bell-slash-o',
2798
- unicode: 'f1f7',
2799
- created: 4.2,
2800
- categories: [ 'Web Application Icons' ] },
2801
- { name: 'Trash',
2802
- id: 'trash',
2803
- unicode: 'f1f8',
2804
- created: 4.2,
2805
- filter: [ 'garbage', 'delete', 'remove', 'hide' ],
2806
- categories: [ 'Web Application Icons' ] },
2807
- { name: 'Copyright',
2808
- id: 'copyright',
2809
- unicode: 'f1f9',
2810
- created: 4.2,
2811
- categories: [ 'Web Application Icons' ] },
2812
- { name: 'At',
2813
- id: 'at',
2814
- unicode: 'f1fa',
2815
- created: 4.2,
2816
- categories: [ 'Web Application Icons' ] },
2817
- { name: 'Eyedropper',
2818
- id: 'eyedropper',
2819
- unicode: 'f1fb',
2820
- created: 4.2,
2821
- categories: [ 'Web Application Icons' ] },
2822
- { name: 'Paint Brush',
2823
- id: 'paint-brush',
2824
- unicode: 'f1fc',
2825
- created: 4.2,
2826
- categories: [ 'Web Application Icons' ] },
2827
- { name: 'Birthday Cake',
2828
- id: 'birthday-cake',
2829
- unicode: 'f1fd',
2830
- created: 4.2,
2831
- categories: [ 'Web Application Icons' ] },
2832
- { name: 'Area Chart',
2833
- id: 'area-chart',
2834
- unicode: 'f1fe',
2835
- created: 4.2,
2836
- filter: [ 'graph', 'analytics' ],
2837
- categories: [ 'Web Application Icons', 'Chart Icons' ] },
2838
- { name: 'Pie Chart',
2839
- id: 'pie-chart',
2840
- unicode: 'f200',
2841
- created: 4.2,
2842
- filter: [ 'graph', 'analytics' ],
2843
- categories: [ 'Web Application Icons', 'Chart Icons' ] },
2844
- { name: 'Line Chart',
2845
- id: 'line-chart',
2846
- unicode: 'f201',
2847
- created: 4.2,
2848
- filter: [ 'graph', 'analytics' ],
2849
- categories: [ 'Web Application Icons', 'Chart Icons' ] },
2850
- { name: 'last.fm',
2851
- id: 'lastfm',
2852
- unicode: 'f202',
2853
- created: 4.2,
2854
- categories: [ 'Brand Icons' ] },
2855
- { name: 'last.fm Square',
2856
- id: 'lastfm-square',
2857
- unicode: 'f203',
2858
- created: 4.2,
2859
- categories: [ 'Brand Icons' ] },
2860
- { name: 'Toggle Off',
2861
- id: 'toggle-off',
2862
- unicode: 'f204',
2863
- created: 4.2,
2864
- categories: [ 'Web Application Icons' ] },
2865
- { name: 'Toggle On',
2866
- id: 'toggle-on',
2867
- unicode: 'f205',
2868
- created: 4.2,
2869
- categories: [ 'Web Application Icons' ] },
2870
- { name: 'Bicycle',
2871
- id: 'bicycle',
2872
- unicode: 'f206',
2873
- created: 4.2,
2874
- filter: [ 'vehicle', 'bike' ],
2875
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2876
- { name: 'Bus',
2877
- id: 'bus',
2878
- unicode: 'f207',
2879
- created: 4.2,
2880
- filter: [ 'vehicle' ],
2881
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2882
- { name: 'ioxhost',
2883
- id: 'ioxhost',
2884
- unicode: 'f208',
2885
- created: 4.2,
2886
- url: 'ioxhost.co.uk',
2887
- categories: [ 'Brand Icons' ] },
2888
- { name: 'AngelList',
2889
- id: 'angellist',
2890
- unicode: 'f209',
2891
- created: 4.2,
2892
- categories: [ 'Brand Icons' ] },
2893
- { name: 'Closed Captions',
2894
- id: 'cc',
2895
- unicode: 'f20a',
2896
- created: 4.2,
2897
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
2898
- { name: 'Shekel (ILS)',
2899
- id: 'ils',
2900
- unicode: 'f20b',
2901
- created: 4.2,
2902
- aliases: [ 'shekel', 'sheqel' ],
2903
- categories: [ 'Currency Icons' ] },
2904
- { name: 'meanpath',
2905
- id: 'meanpath',
2906
- unicode: 'f20c',
2907
- created: 4.2,
2908
- url: 'meanpath.com',
2909
- categories: [ 'Brand Icons' ] },
2910
- { name: 'BuySellAds',
2911
- id: 'buysellads',
2912
- unicode: 'f20d',
2913
- created: 4.3,
2914
- url: 'buysellads.com',
2915
- categories: [ 'Brand Icons' ] },
2916
- { name: 'Connect Develop',
2917
- id: 'connectdevelop',
2918
- unicode: 'f20e',
2919
- created: 4.3,
2920
- url: 'connectdevelop.com',
2921
- categories: [ 'Brand Icons' ] },
2922
- { name: 'DashCube',
2923
- id: 'dashcube',
2924
- unicode: 'f210',
2925
- created: 4.3,
2926
- url: 'dashcube.com',
2927
- categories: [ 'Brand Icons' ] },
2928
- { name: 'Forumbee',
2929
- id: 'forumbee',
2930
- unicode: 'f211',
2931
- created: 4.3,
2932
- url: 'forumbee.com',
2933
- categories: [ 'Brand Icons' ] },
2934
- { name: 'Leanpub',
2935
- id: 'leanpub',
2936
- unicode: 'f212',
2937
- created: 4.3,
2938
- url: 'leanpub.com',
2939
- categories: [ 'Brand Icons' ] },
2940
- { name: 'Sellsy',
2941
- id: 'sellsy',
2942
- unicode: 'f213',
2943
- created: 4.3,
2944
- url: 'sellsy.com',
2945
- categories: [ 'Brand Icons' ] },
2946
- { name: 'Shirts in Bulk',
2947
- id: 'shirtsinbulk',
2948
- unicode: 'f214',
2949
- created: 4.3,
2950
- url: 'shirtsinbulk.com',
2951
- categories: [ 'Brand Icons' ] },
2952
- { name: 'SimplyBuilt',
2953
- id: 'simplybuilt',
2954
- unicode: 'f215',
2955
- created: 4.3,
2956
- url: 'simplybuilt.com',
2957
- categories: [ 'Brand Icons' ] },
2958
- { name: 'skyatlas',
2959
- id: 'skyatlas',
2960
- unicode: 'f216',
2961
- created: 4.3,
2962
- url: 'skyatlas.com',
2963
- categories: [ 'Brand Icons' ] },
2964
- { name: 'Add to Shopping Cart',
2965
- id: 'cart-plus',
2966
- unicode: 'f217',
2967
- created: 4.3,
2968
- filter: [ 'add', 'shopping' ],
2969
- categories: [ 'Web Application Icons' ] },
2970
- { name: 'Shopping Cart Arrow Down',
2971
- id: 'cart-arrow-down',
2972
- unicode: 'f218',
2973
- created: 4.3,
2974
- filter: [ 'shopping' ],
2975
- categories: [ 'Web Application Icons' ] },
2976
- { name: 'Diamond',
2977
- id: 'diamond',
2978
- unicode: 'f219',
2979
- created: 4.3,
2980
- filter: [ 'gem', 'gemstone' ],
2981
- categories: [ 'Web Application Icons' ] },
2982
- { name: 'Ship',
2983
- id: 'ship',
2984
- unicode: 'f21a',
2985
- created: 4.3,
2986
- filter: [ 'boat', 'sea' ],
2987
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2988
- { name: 'User Secret',
2989
- id: 'user-secret',
2990
- unicode: 'f21b',
2991
- created: 4.3,
2992
- filter: [ 'whisper', 'spy', 'incognito', 'privacy' ],
2993
- categories: [ 'Web Application Icons' ] },
2994
- { name: 'Motorcycle',
2995
- id: 'motorcycle',
2996
- unicode: 'f21c',
2997
- created: 4.3,
2998
- filter: [ 'vehicle', 'bike' ],
2999
- categories: [ 'Web Application Icons', 'Transportation Icons' ] },
3000
- { name: 'Street View',
3001
- id: 'street-view',
3002
- unicode: 'f21d',
3003
- created: 4.3,
3004
- filter: [ 'map' ],
3005
- categories: [ 'Web Application Icons' ] },
3006
- { name: 'Heartbeat',
3007
- id: 'heartbeat',
3008
- unicode: 'f21e',
3009
- created: 4.3,
3010
- filter: [ 'ekg' ],
3011
- categories: [ 'Web Application Icons', 'Medical Icons' ] },
3012
- { name: 'Venus',
3013
- id: 'venus',
3014
- unicode: 'f221',
3015
- created: 4.3,
3016
- filter: [ 'female' ],
3017
- categories: [ 'Gender Icons' ] },
3018
- { name: 'Mars',
3019
- id: 'mars',
3020
- unicode: 'f222',
3021
- created: 4.3,
3022
- filter: [ 'male' ],
3023
- categories: [ 'Gender Icons' ] },
3024
- { name: 'Mercury',
3025
- id: 'mercury',
3026
- unicode: 'f223',
3027
- created: 4.3,
3028
- filter: [ 'transgender' ],
3029
- categories: [ 'Gender Icons' ] },
3030
- { name: 'Transgender',
3031
- id: 'transgender',
3032
- unicode: 'f224',
3033
- created: 4.3,
3034
- aliases: [ 'intersex' ],
3035
- categories: [ 'Gender Icons' ] },
3036
- { name: 'Transgender Alt',
3037
- id: 'transgender-alt',
3038
- unicode: 'f225',
3039
- created: 4.3,
3040
- categories: [ 'Gender Icons' ] },
3041
- { name: 'Venus Double',
3042
- id: 'venus-double',
3043
- unicode: 'f226',
3044
- created: 4.3,
3045
- categories: [ 'Gender Icons' ] },
3046
- { name: 'Mars Double',
3047
- id: 'mars-double',
3048
- unicode: 'f227',
3049
- created: 4.3,
3050
- categories: [ 'Gender Icons' ] },
3051
- { name: 'Venus Mars',
3052
- id: 'venus-mars',
3053
- unicode: 'f228',
3054
- created: 4.3,
3055
- categories: [ 'Gender Icons' ] },
3056
- { name: 'Mars Stroke',
3057
- id: 'mars-stroke',
3058
- unicode: 'f229',
3059
- created: 4.3,
3060
- categories: [ 'Gender Icons' ] },
3061
- { name: 'Mars Stroke Vertical',
3062
- id: 'mars-stroke-v',
3063
- unicode: 'f22a',
3064
- created: 4.3,
3065
- categories: [ 'Gender Icons' ] },
3066
- { name: 'Mars Stroke Horizontal',
3067
- id: 'mars-stroke-h',
3068
- unicode: 'f22b',
3069
- created: 4.3,
3070
- categories: [ 'Gender Icons' ] },
3071
- { name: 'Neuter',
3072
- id: 'neuter',
3073
- unicode: 'f22c',
3074
- created: 4.3,
3075
- categories: [ 'Gender Icons' ] },
3076
- { name: 'Genderless',
3077
- id: 'genderless',
3078
- unicode: 'f22d',
3079
- created: 4.4,
3080
- categories: [ 'Gender Icons' ] },
3081
- { name: 'Facebook Official',
3082
- id: 'facebook-official',
3083
- unicode: 'f230',
3084
- created: 4.3,
3085
- categories: [ 'Brand Icons' ] },
3086
- { name: 'Pinterest P',
3087
- id: 'pinterest-p',
3088
- unicode: 'f231',
3089
- created: 4.3,
3090
- categories: [ 'Brand Icons' ] },
3091
- { name: 'What\'s App',
3092
- id: 'whatsapp',
3093
- unicode: 'f232',
3094
- created: 4.3,
3095
- categories: [ 'Brand Icons' ] },
3096
- { name: 'Server',
3097
- id: 'server',
3098
- unicode: 'f233',
3099
- created: 4.3,
3100
- categories: [ 'Web Application Icons' ] },
3101
- { name: 'Add User',
3102
- id: 'user-plus',
3103
- unicode: 'f234',
3104
- created: 4.3,
3105
- filter: [ 'sign up', 'signup' ],
3106
- categories: [ 'Web Application Icons' ] },
3107
- { name: 'Remove User',
3108
- id: 'user-times',
3109
- unicode: 'f235',
3110
- created: 4.3,
3111
- categories: [ 'Web Application Icons' ] },
3112
- { name: 'Bed',
3113
- id: 'bed',
3114
- unicode: 'f236',
3115
- created: 4.3,
3116
- filter: [ 'travel' ],
3117
- aliases: [ 'hotel' ],
3118
- categories: [ 'Web Application Icons' ] },
3119
- { name: 'Viacoin',
3120
- id: 'viacoin',
3121
- unicode: 'f237',
3122
- created: 4.3,
3123
- url: 'viacoin.org',
3124
- categories: [ 'Brand Icons' ] },
3125
- { name: 'Train',
3126
- id: 'train',
3127
- unicode: 'f238',
3128
- created: 4.3,
3129
- categories: [ 'Transportation Icons' ] },
3130
- { name: 'Subway',
3131
- id: 'subway',
3132
- unicode: 'f239',
3133
- created: 4.3,
3134
- categories: [ 'Transportation Icons' ] },
3135
- { name: 'Medium',
3136
- id: 'medium',
3137
- unicode: 'f23a',
3138
- created: 4.3,
3139
- categories: [ 'Brand Icons' ] },
3140
- { name: 'Y Combinator',
3141
- id: 'y-combinator',
3142
- unicode: 'f23b',
3143
- created: 4.4,
3144
- aliases: [ 'yc' ],
3145
- categories: [ 'Brand Icons' ] },
3146
- { name: 'Optin Monster',
3147
- id: 'optin-monster',
3148
- unicode: 'f23c',
3149
- created: 4.4,
3150
- url: 'optinmonster.com',
3151
- categories: [ 'Brand Icons' ] },
3152
- { name: 'OpenCart',
3153
- id: 'opencart',
3154
- unicode: 'f23d',
3155
- created: 4.4,
3156
- url: 'opencart.com',
3157
- categories: [ 'Brand Icons' ] },
3158
- { name: 'ExpeditedSSL',
3159
- id: 'expeditedssl',
3160
- unicode: 'f23e',
3161
- created: 4.4,
3162
- categories: [ 'Brand Icons' ] },
3163
- { name: 'Battery Full',
3164
- id: 'battery-full',
3165
- unicode: 'f240',
3166
- created: 4.4,
3167
- aliases: [ 'battery-4' ],
3168
- filter: [ 'power' ],
3169
- categories: [ 'Web Application Icons' ] },
3170
- { name: 'Battery 3/4 Full',
3171
- id: 'battery-three-quarters',
3172
- unicode: 'f241',
3173
- created: 4.4,
3174
- aliases: [ 'battery-3' ],
3175
- filter: [ 'power' ],
3176
- categories: [ 'Web Application Icons' ] },
3177
- { name: 'Battery 1/2 Full',
3178
- id: 'battery-half',
3179
- unicode: 'f242',
3180
- created: 4.4,
3181
- aliases: [ 'battery-2' ],
3182
- filter: [ 'power' ],
3183
- categories: [ 'Web Application Icons' ] },
3184
- { name: 'Battery 1/4 Full',
3185
- id: 'battery-quarter',
3186
- unicode: 'f243',
3187
- created: 4.4,
3188
- aliases: [ 'battery-1' ],
3189
- filter: [ 'power' ],
3190
- categories: [ 'Web Application Icons' ] },
3191
- { name: 'Battery Empty',
3192
- id: 'battery-empty',
3193
- unicode: 'f244',
3194
- created: 4.4,
3195
- aliases: [ 'battery-0' ],
3196
- filter: [ 'power' ],
3197
- categories: [ 'Web Application Icons' ] },
3198
- { name: 'Mouse Pointer',
3199
- id: 'mouse-pointer',
3200
- unicode: 'f245',
3201
- created: 4.4,
3202
- categories: [ 'Web Application Icons' ] },
3203
- { name: 'I Beam Cursor',
3204
- id: 'i-cursor',
3205
- unicode: 'f246',
3206
- created: 4.4,
3207
- categories: [ 'Web Application Icons' ] },
3208
- { name: 'Object Group',
3209
- id: 'object-group',
3210
- unicode: 'f247',
3211
- created: 4.4,
3212
- categories: [ 'Web Application Icons' ] },
3213
- { name: 'Object Ungroup',
3214
- id: 'object-ungroup',
3215
- unicode: 'f248',
3216
- created: 4.4,
3217
- categories: [ 'Web Application Icons' ] },
3218
- { name: 'Sticky Note',
3219
- id: 'sticky-note',
3220
- unicode: 'f249',
3221
- created: 4.4,
3222
- categories: [ 'Web Application Icons' ] },
3223
- { name: 'Sticky Note Outlined',
3224
- id: 'sticky-note-o',
3225
- unicode: 'f24a',
3226
- created: 4.4,
3227
- categories: [ 'Web Application Icons' ] },
3228
- { name: 'JCB Credit Card',
3229
- id: 'cc-jcb',
3230
- unicode: 'f24b',
3231
- created: 4.4,
3232
- categories: [ 'Brand Icons', 'Payment Icons' ] },
3233
- { name: 'Diner\'s Club Credit Card',
3234
- id: 'cc-diners-club',
3235
- unicode: 'f24c',
3236
- created: 4.4,
3237
- categories: [ 'Brand Icons', 'Payment Icons' ] },
3238
- { name: 'Clone',
3239
- id: 'clone',
3240
- unicode: 'f24d',
3241
- created: 4.4,
3242
- filter: [ 'copy' ],
3243
- categories: [ 'Web Application Icons' ] },
3244
- { name: 'Balance Scale',
3245
- id: 'balance-scale',
3246
- unicode: 'f24e',
3247
- created: 4.4,
3248
- categories: [ 'Web Application Icons' ] },
3249
- { name: 'Hourglass Outlined',
3250
- id: 'hourglass-o',
3251
- unicode: 'f250',
3252
- created: 4.4,
3253
- categories: [ 'Web Application Icons' ] },
3254
- { name: 'Hourglass Start',
3255
- id: 'hourglass-start',
3256
- unicode: 'f251',
3257
- created: 4.4,
3258
- aliases: [ 'hourglass-1' ],
3259
- categories: [ 'Web Application Icons' ] },
3260
- { name: 'Hourglass Half',
3261
- id: 'hourglass-half',
3262
- unicode: 'f252',
3263
- created: 4.4,
3264
- aliases: [ 'hourglass-2' ],
3265
- categories: [ 'Web Application Icons' ] },
3266
- { name: 'Hourglass End',
3267
- id: 'hourglass-end',
3268
- unicode: 'f253',
3269
- created: 4.4,
3270
- aliases: [ 'hourglass-3' ],
3271
- categories: [ 'Web Application Icons' ] },
3272
- { name: 'Hourglass',
3273
- id: 'hourglass',
3274
- unicode: 'f254',
3275
- created: 4.4,
3276
- categories: [ 'Web Application Icons' ] },
3277
- { name: 'Rock (Hand)',
3278
- id: 'hand-rock-o',
3279
- unicode: 'f255',
3280
- created: 4.4,
3281
- aliases: [ 'hand-grab-o' ],
3282
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3283
- { name: 'Paper (Hand)',
3284
- id: 'hand-paper-o',
3285
- unicode: 'f256',
3286
- created: 4.4,
3287
- aliases: [ 'hand-stop-o' ],
3288
- filter: [ 'stop' ],
3289
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3290
- { name: 'Scissors (Hand)',
3291
- id: 'hand-scissors-o',
3292
- unicode: 'f257',
3293
- created: 4.4,
3294
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3295
- { name: 'Lizard (Hand)',
3296
- id: 'hand-lizard-o',
3297
- unicode: 'f258',
3298
- created: 4.4,
3299
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3300
- { name: 'Spock (Hand)',
3301
- id: 'hand-spock-o',
3302
- unicode: 'f259',
3303
- created: 4.4,
3304
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3305
- { name: 'Hand Pointer',
3306
- id: 'hand-pointer-o',
3307
- unicode: 'f25a',
3308
- created: 4.4,
3309
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3310
- { name: 'Hand Peace',
3311
- id: 'hand-peace-o',
3312
- unicode: 'f25b',
3313
- created: 4.4,
3314
- categories: [ 'Web Application Icons', 'Hand Icons' ] },
3315
- { name: 'Trademark',
3316
- id: 'trademark',
3317
- unicode: 'f25c',
3318
- created: 4.4,
3319
- categories: [ 'Web Application Icons' ] },
3320
- { name: 'Registered Trademark',
3321
- id: 'registered',
3322
- unicode: 'f25d',
3323
- created: 4.4,
3324
- categories: [ 'Web Application Icons' ] },
3325
- { name: 'Creative Commons',
3326
- id: 'creative-commons',
3327
- unicode: 'f25e',
3328
- created: 4.4,
3329
- categories: [ 'Web Application Icons' ] },
3330
- { name: 'GG Currency',
3331
- id: 'gg',
3332
- unicode: 'f260',
3333
- created: 4.4,
3334
- categories: [ 'Currency Icons', 'Brand Icons' ] },
3335
- { name: 'GG Currency Circle',
3336
- id: 'gg-circle',
3337
- unicode: 'f261',
3338
- created: 4.4,
3339
- categories: [ 'Currency Icons', 'Brand Icons' ] },
3340
- { name: 'TripAdvisor',
3341
- id: 'tripadvisor',
3342
- unicode: 'f262',
3343
- created: 4.4,
3344
- categories: [ 'Brand Icons' ] },
3345
- { name: 'Odnoklassniki',
3346
- id: 'odnoklassniki',
3347
- unicode: 'f263',
3348
- created: 4.4,
3349
- categories: [ 'Brand Icons' ] },
3350
- { name: 'Odnoklassniki Square',
3351
- id: 'odnoklassniki-square',
3352
- unicode: 'f264',
3353
- created: 4.4,
3354
- categories: [ 'Brand Icons' ] },
3355
- { name: 'Get Pocket',
3356
- id: 'get-pocket',
3357
- unicode: 'f265',
3358
- created: 4.4,
3359
- categories: [ 'Brand Icons' ] },
3360
- { name: 'Wikipedia W',
3361
- id: 'wikipedia-w',
3362
- unicode: 'f266',
3363
- created: 4.4,
3364
- categories: [ 'Brand Icons' ] },
3365
- { name: 'Safari',
3366
- id: 'safari',
3367
- unicode: 'f267',
3368
- created: 4.4,
3369
- filter: [ 'browser' ],
3370
- categories: [ 'Brand Icons' ] },
3371
- { name: 'Chrome',
3372
- id: 'chrome',
3373
- unicode: 'f268',
3374
- created: 4.4,
3375
- filter: [ 'browser' ],
3376
- categories: [ 'Brand Icons' ] },
3377
- { name: 'Firefox',
3378
- id: 'firefox',
3379
- unicode: 'f269',
3380
- created: 4.4,
3381
- filter: [ 'browser' ],
3382
- categories: [ 'Brand Icons' ] },
3383
- { name: 'Opera',
3384
- id: 'opera',
3385
- unicode: 'f26a',
3386
- created: 4.4,
3387
- categories: [ 'Brand Icons' ] },
3388
- { name: 'Internet-explorer',
3389
- id: 'internet-explorer',
3390
- unicode: 'f26b',
3391
- created: 4.4,
3392
- filter: [ 'browser', 'ie' ],
3393
- categories: [ 'Brand Icons' ] },
3394
- { name: 'Television',
3395
- id: 'television',
3396
- unicode: 'f26c',
3397
- created: 4.4,
3398
- aliases: [ 'tv' ],
3399
- filter: [ 'display', 'computer', 'monitor' ],
3400
- categories: [ 'Web Application Icons' ] },
3401
- { name: 'Contao',
3402
- id: 'contao',
3403
- unicode: 'f26d',
3404
- created: 4.4,
3405
- categories: [ 'Brand Icons' ] },
3406
- { name: '500px',
3407
- id: '500px',
3408
- unicode: 'f26e',
3409
- created: 4.4,
3410
- categories: [ 'Brand Icons' ] },
3411
- { name: 'Amazon',
3412
- id: 'amazon',
3413
- unicode: 'f270',
3414
- created: 4.4,
3415
- categories: [ 'Brand Icons' ] },
3416
- { name: 'Calendar Plus Outlined',
3417
- id: 'calendar-plus-o',
3418
- unicode: 'f271',
3419
- created: 4.4,
3420
- categories: [ 'Web Application Icons' ] },
3421
- { name: 'Calendar Minus Outlined',
3422
- id: 'calendar-minus-o',
3423
- unicode: 'f272',
3424
- created: 4.4,
3425
- categories: [ 'Web Application Icons' ] },
3426
- { name: 'Calendar Times Outlined',
3427
- id: 'calendar-times-o',
3428
- unicode: 'f273',
3429
- created: 4.4,
3430
- categories: [ 'Web Application Icons' ] },
3431
- { name: 'Calendar Check Outlined',
3432
- id: 'calendar-check-o',
3433
- unicode: 'f274',
3434
- created: 4.4,
3435
- filter: [ 'ok' ],
3436
- categories: [ 'Web Application Icons' ] },
3437
- { name: 'Industry',
3438
- id: 'industry',
3439
- unicode: 'f275',
3440
- created: 4.4,
3441
- filter: [ 'factory' ],
3442
- categories: [ 'Web Application Icons' ] },
3443
- { name: 'Map Pin',
3444
- id: 'map-pin',
3445
- unicode: 'f276',
3446
- created: 4.4,
3447
- categories: [ 'Web Application Icons' ] },
3448
- { name: 'Map Signs',
3449
- id: 'map-signs',
3450
- unicode: 'f277',
3451
- created: 4.4,
3452
- categories: [ 'Web Application Icons' ] },
3453
- { name: 'Map Outlined',
3454
- id: 'map-o',
3455
- unicode: 'f278',
3456
- created: 4.4,
3457
- categories: [ 'Web Application Icons' ] },
3458
- { name: 'Map',
3459
- id: 'map',
3460
- unicode: 'f279',
3461
- created: 4.4,
3462
- categories: [ 'Web Application Icons' ] },
3463
- { name: 'Commenting',
3464
- id: 'commenting',
3465
- unicode: 'f27a',
3466
- created: 4.4,
3467
- filter:
3468
- [ 'speech',
3469
- 'notification',
3470
- 'note',
3471
- 'chat',
3472
- 'bubble',
3473
- 'feedback',
3474
- 'message',
3475
- 'texting',
3476
- 'sms',
3477
- 'conversation' ],
3478
- categories: [ 'Web Application Icons' ] },
3479
- { name: 'Commenting Outlined',
3480
- id: 'commenting-o',
3481
- unicode: 'f27b',
3482
- created: 4.4,
3483
- filter:
3484
- [ 'speech',
3485
- 'notification',
3486
- 'note',
3487
- 'chat',
3488
- 'bubble',
3489
- 'feedback',
3490
- 'message',
3491
- 'texting',
3492
- 'sms',
3493
- 'conversation' ],
3494
- categories: [ 'Web Application Icons' ] },
3495
- { name: 'Houzz',
3496
- id: 'houzz',
3497
- unicode: 'f27c',
3498
- created: 4.4,
3499
- categories: [ 'Brand Icons' ] },
3500
- { name: 'Vimeo',
3501
- id: 'vimeo',
3502
- unicode: 'f27d',
3503
- created: 4.4,
3504
- categories: [ 'Brand Icons' ] },
3505
- { name: 'Font Awesome Black Tie',
3506
- id: 'black-tie',
3507
- unicode: 'f27e',
3508
- created: 4.4,
3509
- url: 'blacktie.io',
3510
- categories: [ 'Brand Icons' ] },
3511
- { name: 'Fonticons',
3512
- id: 'fonticons',
3513
- unicode: 'f280',
3514
- created: 4.4,
3515
- url: 'fonticons.com',
3516
- categories: [ 'Brand Icons' ] },
3517
- { name: 'reddit Alien',
3518
- id: 'reddit-alien',
3519
- unicode: 'f281',
3520
- created: 4.5,
3521
- categories: [ 'Brand Icons' ] },
3522
- { name: 'Edge Browser',
3523
- id: 'edge',
3524
- unicode: 'f282',
3525
- created: 4.5,
3526
- filter: [ 'browser', 'ie' ],
3527
- categories: [ 'Brand Icons' ] },
3528
- { name: 'Credit Card',
3529
- id: 'credit-card-alt',
3530
- unicode: 'f283',
3531
- created: 4.5,
3532
- filter:
3533
- [ 'money',
3534
- 'buy',
3535
- 'debit',
3536
- 'checkout',
3537
- 'purchase',
3538
- 'payment',
3539
- 'credit card' ],
3540
- categories: [ 'Payment Icons', 'Web Application Icons' ] },
3541
- { name: 'Codie Pie',
3542
- id: 'codiepie',
3543
- unicode: 'f284',
3544
- created: 4.5,
3545
- url: 'codiepie.com',
3546
- categories: [ 'Brand Icons' ] },
3547
- { name: 'MODX',
3548
- id: 'modx',
3549
- unicode: 'f285',
3550
- created: 4.5,
3551
- categories: [ 'Brand Icons' ] },
3552
- { name: 'Fort Awesome',
3553
- id: 'fort-awesome',
3554
- unicode: 'f286',
3555
- created: 4.5,
3556
- url: 'fortawesome.com',
3557
- categories: [ 'Brand Icons' ] },
3558
- { name: 'USB',
3559
- id: 'usb',
3560
- unicode: 'f287',
3561
- created: 4.5,
3562
- categories: [ 'Brand Icons' ] },
3563
- { name: 'Product Hunt',
3564
- id: 'product-hunt',
3565
- unicode: 'f288',
3566
- created: 4.5,
3567
- categories: [ 'Brand Icons' ] },
3568
- { name: 'Mixcloud',
3569
- id: 'mixcloud',
3570
- unicode: 'f289',
3571
- created: 4.5,
3572
- categories: [ 'Brand Icons' ] },
3573
- { name: 'Scribd',
3574
- id: 'scribd',
3575
- unicode: 'f28a',
3576
- created: 4.5,
3577
- categories: [ 'Brand Icons' ] },
3578
- { name: 'Pause Circle',
3579
- id: 'pause-circle',
3580
- unicode: 'f28b',
3581
- created: 4.5,
3582
- categories: [ 'Video Player Icons' ] },
3583
- { name: 'Pause Circle Outlined',
3584
- id: 'pause-circle-o',
3585
- unicode: 'f28c',
3586
- created: 4.5,
3587
- categories: [ 'Video Player Icons' ] },
3588
- { name: 'Stop Circle',
3589
- id: 'stop-circle',
3590
- unicode: 'f28d',
3591
- created: 4.5,
3592
- categories: [ 'Video Player Icons' ] },
3593
- { name: 'Stop Circle Outlined',
3594
- id: 'stop-circle-o',
3595
- unicode: 'f28e',
3596
- created: 4.5,
3597
- categories: [ 'Video Player Icons' ] },
3598
- { name: 'Shopping Bag',
3599
- id: 'shopping-bag',
3600
- unicode: 'f290',
3601
- created: 4.5,
3602
- categories: [ 'Web Application Icons' ] },
3603
- { name: 'Shopping Basket',
3604
- id: 'shopping-basket',
3605
- unicode: 'f291',
3606
- created: 4.5,
3607
- categories: [ 'Web Application Icons' ] },
3608
- { name: 'Hashtag',
3609
- id: 'hashtag',
3610
- unicode: 'f292',
3611
- created: 4.5,
3612
- categories: [ 'Web Application Icons' ] },
3613
- { name: 'Bluetooth',
3614
- id: 'bluetooth',
3615
- unicode: 'f293',
3616
- created: 4.5,
3617
- categories: [ 'Web Application Icons', 'Brand Icons' ] },
3618
- { name: 'Bluetooth',
3619
- id: 'bluetooth-b',
3620
- unicode: 'f294',
3621
- created: 4.5,
3622
- categories: [ 'Web Application Icons', 'Brand Icons' ] },
3623
- { name: 'Percent',
3624
- id: 'percent',
3625
- unicode: 'f295',
3626
- created: 4.5,
3627
- categories: [ 'Web Application Icons' ] },
3628
- { name: 'GitLab',
3629
- id: 'gitlab',
3630
- unicode: 'f296',
3631
- created: 4.6,
3632
- url: 'gitlab.com',
3633
- categories: [ 'Brand Icons' ] },
3634
- { name: 'WPBeginner',
3635
- id: 'wpbeginner',
3636
- unicode: 'f297',
3637
- created: 4.6,
3638
- url: 'wpbeginner.com',
3639
- categories: [ 'Brand Icons' ] },
3640
- { name: 'WPForms',
3641
- id: 'wpforms',
3642
- unicode: 'f298',
3643
- created: 4.6,
3644
- url: 'wpforms.com',
3645
- categories: [ 'Brand Icons' ] },
3646
- { name: 'Envira Gallery',
3647
- id: 'envira',
3648
- unicode: 'f299',
3649
- created: 4.6,
3650
- url: 'enviragallery.com',
3651
- filter: [ 'leaf' ],
3652
- categories: [ 'Brand Icons' ] },
3653
- { name: 'Universal Access',
3654
- id: 'universal-access',
3655
- unicode: 'f29a',
3656
- created: 4.6,
3657
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3658
- { name: 'Wheelchair Alt',
3659
- id: 'wheelchair-alt',
3660
- unicode: 'f29b',
3661
- created: 4.6,
3662
- filter: [ 'handicap', 'person' ],
3663
- categories:
3664
- [ 'Web Application Icons',
3665
- 'Medical Icons',
3666
- 'Transportation Icons',
3667
- 'Accessibility Icons' ] },
3668
- { name: 'Question Circle Outlined',
3669
- id: 'question-circle-o',
3670
- unicode: 'f29c',
3671
- created: 4.6,
3672
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3673
- { name: 'Blind',
3674
- id: 'blind',
3675
- unicode: 'f29d',
3676
- created: 4.6,
3677
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3678
- { name: 'Audio Description',
3679
- id: 'audio-description',
3680
- unicode: 'f29e',
3681
- created: 4.6,
3682
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3683
- { name: 'Volume Control Phone',
3684
- id: 'volume-control-phone',
3685
- unicode: 'f2a0',
3686
- created: 4.6,
3687
- filter: [ 'telephone' ],
3688
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3689
- { name: 'Braille',
3690
- id: 'braille',
3691
- unicode: 'f2a1',
3692
- created: 4.6,
3693
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3694
- { name: 'Assistive Listening Systems',
3695
- id: 'assistive-listening-systems',
3696
- unicode: 'f2a2',
3697
- created: 4.6,
3698
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3699
- { name: 'American Sign Language Interpreting',
3700
- id: 'american-sign-language-interpreting',
3701
- unicode: 'f2a3',
3702
- created: 4.6,
3703
- aliases: [ 'asl-interpreting' ],
3704
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3705
- { name: 'Deaf',
3706
- id: 'deaf',
3707
- unicode: 'f2a4',
3708
- created: 4.6,
3709
- aliases: [ 'deafness', 'hard-of-hearing' ],
3710
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3711
- { name: 'Glide',
3712
- id: 'glide',
3713
- unicode: 'f2a5',
3714
- created: 4.6,
3715
- categories: [ 'Brand Icons' ] },
3716
- { name: 'Glide G',
3717
- id: 'glide-g',
3718
- unicode: 'f2a6',
3719
- created: 4.6,
3720
- categories: [ 'Brand Icons' ] },
3721
- { name: 'Sign Language',
3722
- id: 'sign-language',
3723
- unicode: 'f2a7',
3724
- created: 4.6,
3725
- aliases: [ 'signing' ],
3726
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3727
- { name: 'Low Vision',
3728
- id: 'low-vision',
3729
- unicode: 'f2a8',
3730
- created: 4.6,
3731
- categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3732
- { name: 'Viadeo',
3733
- id: 'viadeo',
3734
- unicode: 'f2a9',
3735
- created: 4.6,
3736
- categories: [ 'Brand Icons' ] },
3737
- { name: 'Viadeo Square',
3738
- id: 'viadeo-square',
3739
- unicode: 'f2aa',
3740
- created: 4.6,
3741
- categories: [ 'Brand Icons' ] },
3742
- { name: 'Snapchat',
3743
- id: 'snapchat',
3744
- unicode: 'f2ab',
3745
- created: 4.6,
3746
- categories: [ 'Brand Icons' ] },
3747
- { name: 'Snapchat Ghost',
3748
- id: 'snapchat-ghost',
3749
- unicode: 'f2ac',
3750
- created: 4.6,
3751
- categories: [ 'Brand Icons' ] },
3752
- { name: 'Snapchat Square',
3753
- id: 'snapchat-square',
3754
- unicode: 'f2ad',
3755
- created: 4.6,
3756
- categories: [ 'Brand Icons' ] },
3757
- { name: 'Pied Piper Logo',
3758
- id: 'pied-piper',
3759
- unicode: 'f2ae',
3760
- created: 4.6,
3761
- categories: [ 'Brand Icons' ] },
3762
- { name: 'First Order',
3763
- id: 'first-order',
3764
- unicode: 'f2b0',
3765
- created: 4.6,
3766
- categories: [ 'Brand Icons' ] },
3767
- { name: 'Yoast',
3768
- id: 'yoast',
3769
- unicode: 'f2b1',
3770
- created: 4.6,
3771
- url: 'yoast.com',
3772
- categories: [ 'Brand Icons' ] },
3773
- { name: 'ThemeIsle',
3774
- id: 'themeisle',
3775
- unicode: 'f2b2',
3776
- created: 4.6,
3777
- url: 'themeisle.com',
3778
- categories: [ 'Brand Icons' ] },
3779
- { name: 'Google Plus Official',
3780
- id: 'google-plus-official',
3781
- unicode: 'f2b3',
3782
- created: 4.6,
3783
- aliases: [ 'google-plus-circle' ],
3784
- categories: [ 'Brand Icons' ] },
3785
- { name: 'Font Awesome',
3786
- id: 'font-awesome',
3787
- unicode: 'f2b4',
3788
- created: 4.6,
3789
- aliases: [ 'fa' ],
3790
- categories: [ 'Brand Icons' ] } ] };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/rhea-companion.php DELETED
@@ -1,70 +0,0 @@
1
- <?php
2
-
3
- $rhea_features_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/features.widget.php';
4
- if ( file_exists( $rhea_features_widget ) ) {
5
- require_once( $rhea_features_widget );
6
- }
7
- $rhea_about_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/about.widget.php';
8
- if ( file_exists( $rhea_about_widget ) ) {
9
- require_once( $rhea_about_widget );
10
- }
11
-
12
- $rhea_hours_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/hours.widget.php';
13
- if ( file_exists( $rhea_hours_widget ) ) {
14
- require_once( $rhea_hours_widget );
15
- }
16
-
17
- $rhea_contact_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/contact.widget.php';
18
- if ( file_exists( $rhea_contact_widget ) ) {
19
- require_once( $rhea_contact_widget );
20
- }
21
-
22
- $rhea_progress_bar_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/progress-bar.widget.php';
23
- if ( file_exists( $rhea_progress_bar_widget ) ) {
24
- require_once( $rhea_progress_bar_widget );
25
- }
26
-
27
- $rhea_icon_box_widget = trailingslashit( THEMEISLE_COMPANION_PATH ) . 'inc/rhea/widgets/icon-box.widget.php';
28
- if ( file_exists( $rhea_icon_box_widget ) ) {
29
- require_once( $rhea_icon_box_widget );
30
- }
31
-
32
- add_action('widgets_init', 'rhea_register_widgets');
33
-
34
- function rhea_register_widgets() {
35
-
36
- register_widget('rhea_features_block');
37
- register_widget('Rhea_Progress_Bar');
38
- register_widget('Rhea_Icon_Box');
39
- register_widget('Rhea_About_Company');
40
- register_widget('Rhea_Hours');
41
- register_widget('Rhea_Contact_Company');
42
-
43
- }
44
- function rhea_load_custom_wp_admin_style() {
45
-
46
- wp_enqueue_style( 'fontawesome-style', get_template_directory_uri() . '/css/font-awesome.min.css' );
47
- wp_enqueue_style( 'rhea-admin-style', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/css/admin-style.css' );
48
- wp_enqueue_script( 'fontawesome-icons', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/js/icons.js', false, '1.0.0' );
49
- wp_enqueue_script( 'jquery-ui-dialog' );
50
- wp_enqueue_script( 'fontawesome-script', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/js/fontawesome.jquery.js', false, '1.0.0' );
51
- }
52
-
53
- add_action( 'admin_enqueue_scripts', 'rhea_load_custom_wp_admin_style' );
54
-
55
- add_action('admin_footer', 'rhea_add_html_to_admin_footer');
56
-
57
- add_action('customize_controls_print_footer_scripts', 'rhea_add_html_to_admin_footer');
58
-
59
- function rhea_add_html_to_admin_footer() { ?>
60
- <div id="fontawesome-popup">
61
- <div class="left-side">
62
- <label for="fontawesome-live-search"><?php esc_html_e( 'Search icon', 'rhea' ) ?>:</label>
63
- <ul class="filter-icons">
64
- <li data-filter="all" class="active"><?php esc_html_e( 'All Icons', 'rhea' ) ?></li>
65
- </ul>
66
- </div>
67
- <div class="right-side">
68
- </div>
69
- </div>
70
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/widgets/about.widget.php DELETED
@@ -1,111 +0,0 @@
1
- <?php
2
- class Rhea_About_Company extends WP_Widget {
3
-
4
- public function __construct() {
5
-
6
- $widget_args = array(
7
- 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' )
8
- );
9
-
10
- parent::__construct( 'rhea-about-company', esc_html__( '[Rhea] About Company', 'rhea' ), $widget_args );
11
- add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
12
- }
13
-
14
- function widget_scripts( $hook ) {
15
- if ( $hook != 'widgets.php' ) {
16
- return;
17
- }
18
- wp_enqueue_media();
19
- wp_enqueue_script( 'rhea_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
20
- }
21
-
22
- function widget($args, $instance) {
23
-
24
- extract($args);
25
-
26
- if ( ! empty( $before_widget ) ) {
27
- echo $before_widget;
28
- }
29
-
30
- $logo_url = '';
31
- if ( ! empty( $instance['use_logo'] ) ) {
32
- $custom_logo_id = get_theme_mod( 'custom_logo' );
33
- if ( ! empty( $custom_logo_id ) ) {
34
- $image = wp_get_attachment_image_src( $custom_logo_id , 'full' );
35
- if ( ! empty( $image ) ) {
36
- if ( ! empty( $image[0] ) ) {
37
- $logo_url = $image[0];
38
- }
39
- }
40
- }
41
- } elseif ( ! empty( $instance['image_uri'] ) ) {
42
- $logo_url = $instance['image_uri'];
43
- }
44
-
45
- ?>
46
-
47
- <div class="rhea-about-company">
48
- <?php
49
- if ( ! empty( $logo_url ) ) {
50
- echo '<div class="rhea-company-logo">';
51
- echo '<img src="' . esc_url( $logo_url ) . '" alt="' . esc_attr( get_bloginfo('title') ) . '">';
52
- echo '</div>';
53
- }
54
-
55
- if ( ! empty( $instance['text'] ) ) {
56
- echo '<div class="rhea-company-description">';
57
- echo wp_kses_post( $instance['text'] );
58
- echo '</div>';
59
- }
60
- ?>
61
- </div>
62
-
63
- <?php
64
-
65
- if ( ! empty( $after_widget ) ) {
66
- echo $after_widget;
67
- }
68
-
69
- }
70
-
71
- function update($new_instance, $old_instance) {
72
-
73
- $instance = $old_instance;
74
- $instance['image_uri'] = esc_url( $new_instance['image_uri'] );
75
- $instance['use_logo'] = strip_tags( $new_instance['use_logo'] );
76
- $instance['text'] = strip_tags( $new_instance['text'] );
77
-
78
- return $instance;
79
-
80
- }
81
-
82
- function form($instance) {
83
-
84
- $image_in_customizer = '';
85
- $display = 'none';
86
- if ( ! empty( $instance['image_uri'] ) ) {
87
- $image_in_customizer = esc_url( $instance['image_uri'] );
88
- $display = 'inline-block';
89
- }
90
-
91
- ?>
92
- <p>
93
- <input type="checkbox" name="<?php echo $this->get_field_name('use_logo'); ?>" id="<?php echo $this->get_field_id('use_logo'); ?>" value="use_logo" <?php if( isset( $instance['use_logo'] ) ) { checked( $instance['use_logo'], 'use_logo' ); } ?>>
94
- <label for="<?php echo $this->get_field_id('use_logo'); ?>"><?php esc_html_e( 'Use website logo','rhea' ); ?></label>
95
- </p>
96
- <p>
97
- <label for="<?php echo $this->get_field_id('image_uri'); ?>"><?php esc_html_e( 'Logo', 'rhea' ); ?></label><br/>
98
- <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>" style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo esc_attr( $display ); ?>" alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
99
- <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('image_uri'); ?>" id="<?php echo $this->get_field_id('image_uri'); ?>" value="<?php if( ! empty( $instance['image_uri'] ) ) { echo $instance['image_uri']; } ?>" style="margin-top:5px;">
100
- <input type="button" class="button button-primary custom_media_button" id="custom_media_button" name="<?php echo $this->get_field_name('image_uri'); ?>" value="<?php esc_html_e( 'Upload Image','rhea' ); ?>" style="margin-top:5px;">
101
- </p>
102
- <p>
103
- <label for="<?php echo $this->get_field_id('text'); ?>"><?php esc_html_e( 'Company Description', 'rhea' ); ?></label><br/>
104
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>"><?php if( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
105
- </p>
106
-
107
- <?php
108
-
109
- }
110
-
111
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/widgets/contact.widget.php DELETED
@@ -1,89 +0,0 @@
1
- <?php
2
- class Rhea_Contact_Company extends WP_Widget {
3
-
4
- public function __construct() {
5
-
6
- $widget_args = array(
7
- 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' )
8
- );
9
-
10
- parent::__construct( 'rhea-contact-company', esc_html__( '[Rhea] Contact', 'rhea' ), $widget_args );
11
- }
12
-
13
- function widget($args, $instance) {
14
-
15
- extract($args);
16
-
17
- if ( ! empty( $before_widget ) ) {
18
- echo $before_widget;
19
- }
20
-
21
- if ( ! empty( $instance['title'] ) ) {
22
- echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
23
- }
24
-
25
- echo '<div class="rhea_company_contact">';
26
- if ( ! empty( $instance['adress'] ) ) {
27
-
28
- if ( ! empty( $instance['gmaps_url'] ) ) {
29
- echo '<p><a href="' . esc_url( $instance['gmaps_url'] ) . '" target="_blank">' . esc_html( $instance['adress'] ) . '</a></p>';
30
- } else {
31
- echo '<p>' . esc_html( $instance['adress'] ) . '</p>';
32
- }
33
- }
34
- if ( ! empty( $instance['email'] ) ) {
35
- echo '<p>Email: <a href="mailto:' . antispambot( $instance['email'] ) . '">' . antispambot( $instance['email'] ) . '</a></p>';
36
- }
37
- if ( ! empty( $instance['phone']) ) {
38
- echo '<p>Phone: ' . esc_html( $instance['phone'] ) . '</p>';
39
- }
40
- echo '</div>';
41
-
42
- if ( ! empty( $after_widget ) ) {
43
- echo $after_widget;
44
- }
45
-
46
- }
47
-
48
- function update($new_instance, $old_instance) {
49
-
50
- $instance = $old_instance;
51
-
52
- $instance['title'] = strip_tags( $new_instance['title'] );
53
- $instance['adress'] = strip_tags( $new_instance['adress'] );
54
- $instance['gmaps_url'] = esc_url( $new_instance['gmaps_url'] );
55
- $instance['email'] = strip_tags( $new_instance['email'] );
56
- $instance['phone'] = strip_tags( $new_instance['phone'] );
57
-
58
- return $instance;
59
-
60
- }
61
-
62
- function form($instance) {
63
- ?>
64
- <p>
65
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
66
- <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>">
67
- </p>
68
- <p>
69
- <label for="<?php echo $this->get_field_id('adress'); ?>"><?php esc_html_e( 'Company Adress', 'rhea' ); ?></label><br/>
70
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name('adress'); ?>" id="<?php echo $this->get_field_id('adress'); ?>"><?php if( ! empty( $instance['adress'] ) ) { echo htmlspecialchars_decode( $instance['adress'] ); } ?></textarea>
71
- </p>
72
- <p>
73
- <label for="<?php echo $this->get_field_id('gmaps_url'); ?>"><?php esc_html_e( 'Google Maps URL', 'rhea' ); ?></label><br/>
74
- <input type="text" class="widefat" name="<?php echo $this->get_field_name('gmaps_url'); ?>" id="<?php echo $this->get_field_id('gmaps_url'); ?>" value="<?php if( ! empty( $instance['gmaps_url'] ) ) { echo $instance['gmaps_url']; } ?>">
75
- </p>
76
- <p>
77
- <label for="<?php echo $this->get_field_id('email'); ?>"><?php esc_html_e( 'Email', 'rhea' ); ?></label><br/>
78
- <input type="text" class="widefat" name="<?php echo $this->get_field_name('email'); ?>" id="<?php echo $this->get_field_id('email'); ?>" value="<?php if( ! empty( $instance['email'] ) ) { echo $instance['email']; } ?>">
79
- </p>
80
- <p>
81
- <label for="<?php echo $this->get_field_id('phone'); ?>"><?php esc_html_e( 'Phone', 'rhea' ); ?></label><br/>
82
- <input type="text" class="widefat" name="<?php echo $this->get_field_name('phone'); ?>" id="<?php echo $this->get_field_id('phone'); ?>" value="<?php if( ! empty( $instance['phone'] ) ) { echo $instance['phone']; } ?>">
83
- </p>
84
-
85
- <?php
86
-
87
- }
88
-
89
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/widgets/hours.widget.php DELETED
@@ -1,252 +0,0 @@
1
- <?php
2
- class Rhea_Hours extends WP_Widget {
3
-
4
- public function __construct() {
5
-
6
- $widget_args = array(
7
- 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' )
8
- );
9
- parent::__construct( 'rhea-company-hours', esc_html__( '[Rhea] Company Program', 'rhea' ), $widget_args );
10
- }
11
-
12
- function widget($args, $instance) {
13
-
14
- extract($args);
15
-
16
- if ( ! empty( $before_widget ) ) {
17
- echo $before_widget;
18
- }
19
-
20
- if ( ! empty( $instance['title'] ) ) {
21
- echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
22
- }
23
- ?>
24
-
25
- <div class="rhea_program">
26
-
27
- <?php if ( ! empty( $instance['monday_from'] ) || ! empty( $instance['monday_to'] ) ) { ?>
28
- <div class="rhea_program_item">
29
- <p><?php esc_html_e( 'Monday', 'rhea' ); ?></p>
30
- <div class="rhea_program_hours">
31
- <?php if ( ! empty( $instance['monday_from'] ) ) { ?>
32
- <div class="rhea_program_item_from">
33
- <?php echo esc_html( $instance['monday_from'] ); ?>
34
- </div>
35
- <?php } ?>
36
- <?php if ( ! empty( $instance['monday_to'] ) ) { ?>
37
- <div class="rhea_program_item_to">
38
- <?php echo esc_html( $instance['monday_to'] ); ?>
39
- </div>
40
- <?php } ?>
41
- </div>
42
- </div>
43
- <?php } ?>
44
-
45
- <?php if ( ! empty( $instance['tuesday_from'] ) || ! empty( $instance['tuesday_to'] ) ) { ?>
46
- <div class="rhea_program_item">
47
- <p><?php esc_html_e( 'Tuesday', 'rhea' ); ?></p>
48
- <div class="rhea_program_hours">
49
- <?php if ( ! empty( $instance['tuesday_from'] ) ) { ?>
50
- <div class="rhea_program_item_from">
51
- <?php echo esc_html( $instance['tuesday_from'] ); ?>
52
- </div>
53
- <?php } ?>
54
- <?php if ( ! empty( $instance['tuesday_to'] ) ) { ?>
55
- <div class="rhea_program_item_to">
56
- <?php echo esc_html( $instance['tuesday_to'] ); ?>
57
- </div>
58
- <?php } ?>
59
- </div>
60
- </div>
61
- <?php } ?>
62
-
63
- <?php if ( ! empty( $instance['wednesday_from'] ) || ! empty( $instance['wednesday_to'] ) ) { ?>
64
- <div class="rhea_program_item">
65
- <p><?php esc_html_e( 'Wednesday', 'rhea' ); ?></p>
66
- <div class="rhea_program_hours">
67
- <?php if ( ! empty( $instance['wednesday_from'] ) ) { ?>
68
- <div class="rhea_program_item_from">
69
- <?php echo esc_html( $instance['wednesday_from'] ); ?>
70
- </div>
71
- <?php } ?>
72
- <?php if ( ! empty( $instance['wednesday_to'] ) ) { ?>
73
- <div class="rhea_program_item_to">
74
- <?php echo esc_html( $instance['wednesday_to'] ); ?>
75
- </div>
76
- <?php } ?>
77
- </div>
78
- </div>
79
- <?php } ?>
80
-
81
- <?php if ( ! empty( $instance['thursday_from'] ) || ! empty( $instance['thursday_to'] ) ) { ?>
82
- <div class="rhea_program_item">
83
- <p><?php esc_html_e( 'Thursday', 'rhea' ); ?></p>
84
- <div class="rhea_program_hours">
85
- <?php if ( ! empty( $instance['thursday_from'] ) ) { ?>
86
- <div class="rhea_program_item_from">
87
- <?php echo esc_html( $instance['thursday_from'] ); ?>
88
- </div>
89
- <?php } ?>
90
- <?php if ( ! empty( $instance['thursday_to'] ) ) { ?>
91
- <div class="rhea_program_item_to">
92
- <?php echo esc_html( $instance['thursday_to'] ); ?>
93
- </div>
94
- <?php } ?>
95
- </div>
96
- </div>
97
- <?php } ?>
98
-
99
- <?php if ( ! empty( $instance['friday_from'] ) || ! empty( $instance['friday_to'] ) ) { ?>
100
- <div class="rhea_program_item">
101
- <p><?php esc_html_e( 'Friday', 'rhea' ); ?></p>
102
- <div class="rhea_program_hours">
103
- <?php if ( ! empty( $instance['friday_from'] ) ) { ?>
104
- <div class="rhea_program_item_from">
105
- <?php echo esc_html( $instance['friday_from'] ); ?>
106
- </div>
107
- <?php } ?>
108
- <?php if ( ! empty( $instance['friday_to'] ) ) { ?>
109
- <div class="rhea_program_item_to">
110
- <?php echo esc_html( $instance['friday_to'] ); ?>
111
- </div>
112
- <?php } ?>
113
- </div>
114
- </div>
115
- <?php } ?>
116
-
117
- <?php if ( ! empty( $instance['saturday_from'] ) || ! empty( $instance['saturday_to'] ) ) { ?>
118
- <div class="rhea_program_item">
119
- <p><?php esc_html_e( 'Saturday', 'rhea' ); ?></p>
120
- <div class="rhea_program_hours">
121
- <?php if ( ! empty( $instance['saturday_from'] ) ) { ?>
122
- <div class="rhea_program_item_from">
123
- <?php echo esc_html( $instance['saturday_from'] ); ?>
124
- </div>
125
- <?php } ?>
126
- <?php if ( ! empty( $instance['saturday_to'] ) ) { ?>
127
- <div class="rhea_program_item_to">
128
- <?php echo esc_html( $instance['saturday_to'] ); ?>
129
- </div>
130
- <?php } ?>
131
- </div>
132
- </div>
133
- <?php } ?>
134
-
135
- <?php if ( ( isset( $instance['sunday_from'] ) && $instance['sunday_from'] != '' ) || ( isset( $instance['sunday_to'] ) && $instance['sunday_to'] != '' ) ) { ?>
136
- <div class="rhea_program_item">
137
- <p><?php esc_html_e( 'Sunday', 'rhea' ); ?></p>
138
- <div class="rhea_program_hours">
139
- <?php if ( ! empty( $instance['sunday_from'] ) ) { ?>
140
- <div class="rhea_program_item_from">
141
- <?php echo esc_html( $instance['sunday_from'] ); ?>
142
- </div>
143
- <?php } ?>
144
- <?php if ( ! empty( $instance['sunday_to'] ) ) { ?>
145
- <div class="rhea_program_item_to">
146
- <?php echo esc_html( $instance['sunday_to'] );?>
147
- </div>
148
- <?php } ?>
149
- </div>
150
- </div>
151
- <?php } ?>
152
-
153
- </div>
154
-
155
- <?php
156
- if ( ! empty( $after_widget ) ) {
157
- echo $after_widget;
158
- }
159
-
160
- }
161
-
162
- function update( $new_instance, $old_instance ) {
163
-
164
- $instance = $old_instance;
165
- $instance['title'] = strip_tags( $new_instance['title'] );
166
-
167
- // Monday
168
- $instance['monday_from'] = strip_tags( $new_instance['monday_from'] );
169
- $instance['monday_to'] = strip_tags( $new_instance['monday_to'] );
170
-
171
- // Tuesday
172
- $instance['tuesday_from'] = strip_tags( $new_instance['tuesday_from'] );
173
- $instance['tuesday_to'] = strip_tags( $new_instance['tuesday_to'] );
174
-
175
- // Wednesday
176
- $instance['wednesday_from'] = strip_tags( $new_instance['wednesday_from'] );
177
- $instance['wednesday_to'] = strip_tags( $new_instance['wednesday_to'] );
178
-
179
- // Thursday
180
- $instance['thursday_from'] = strip_tags( $new_instance['thursday_from'] );
181
- $instance['thursday_to'] = strip_tags( $new_instance['thursday_to'] );
182
-
183
- // Friday
184
- $instance['friday_from'] = strip_tags( $new_instance['friday_from'] );
185
- $instance['friday_to'] = strip_tags( $new_instance['friday_to'] );
186
-
187
- // Saturday
188
- $instance['saturday_from'] = strip_tags( $new_instance['saturday_from'] );
189
- $instance['saturday_to'] = strip_tags( $new_instance['saturday_to'] );
190
-
191
- // Sunday
192
- $instance['sunday_from'] = strip_tags( $new_instance['sunday_from'] );
193
- $instance['sunday_to'] = strip_tags( $new_instance['sunday_to'] );
194
-
195
- return $instance;
196
-
197
- }
198
-
199
- function form($instance) {
200
- ?>
201
- <p>
202
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
203
- <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if( ! empty( $instance['title'] ) ) { echo esc_html( $instance['title'] ); } ?>" class="widefat">
204
- </p>
205
- <p>
206
- <label><?php esc_html_e( 'Monday', 'rhea' ); ?></label><br/>
207
-
208
- <input type="text" name="<?php echo $this->get_field_name('monday_from'); ?>" id="<?php echo $this->get_field_id('monday_from'); ?>" value="<?php if( ! empty( $instance['monday_from'] ) ) { echo esc_html( $instance['monday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
209
- <input type="text" name="<?php echo $this->get_field_name('monday_to'); ?>" id="<?php echo $this->get_field_id('monday_to'); ?>" value="<?php if( ! empty( $instance['monday_to'] ) ) { echo esc_html( $instance['monday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
210
- </p>
211
- <p>
212
- <label><?php esc_html_e( 'Tuesday', 'rhea' ); ?></label><br/>
213
-
214
- <input type="text" name="<?php echo $this->get_field_name('tuesday_from'); ?>" id="<?php echo $this->get_field_id('tuesday_from'); ?>" value="<?php if( ! empty( $instance['tuesday_from'] ) ) { echo esc_html( $instance['tuesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
215
- <input type="text" name="<?php echo $this->get_field_name('tuesday_to'); ?>" id="<?php echo $this->get_field_id('tuesday_to'); ?>" value="<?php if( ! empty( $instance['tuesday_to'] ) ) { echo esc_html( $instance['tuesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
216
- </p>
217
- <p>
218
- <label><?php esc_html_e( 'Wednesday', 'rhea' ); ?></label><br/>
219
-
220
- <input type="text" name="<?php echo $this->get_field_name('wednesday_from'); ?>" id="<?php echo $this->get_field_id('wednesday_from'); ?>" value="<?php if( ! empty( $instance['wednesday_from'] ) ) { echo esc_html( $instance['wednesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
221
- <input type="text" name="<?php echo $this->get_field_name('wednesday_to'); ?>" id="<?php echo $this->get_field_id('wednesday_to'); ?>" value="<?php if( ! empty( $instance['wednesday_to'] ) ) { echo esc_html( $instance['wednesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
222
- </p>
223
- <p>
224
- <label><?php esc_html_e( 'Thursday', 'rhea' ); ?></label><br/>
225
-
226
- <input type="text" name="<?php echo $this->get_field_name('thursday_from'); ?>" id="<?php echo $this->get_field_id('thursday_from'); ?>" value="<?php if( ! empty( $instance['thursday_from'] ) ) { echo esc_html( $instance['thursday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
227
- <input type="text" name="<?php echo $this->get_field_name('thursday_to'); ?>" id="<?php echo $this->get_field_id('thursday_to'); ?>" value="<?php if( ! empty( $instance['thursday_to'] ) ) { echo esc_html( $instance['thursday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
228
- </p>
229
- <p>
230
- <label><?php esc_html_e( 'Friday', 'rhea' ); ?></label><br/>
231
-
232
- <input type="text" name="<?php echo $this->get_field_name('friday_from'); ?>" id="<?php echo $this->get_field_id('friday_from'); ?>" value="<?php if( ! empty( $instance['friday_from'] ) ) { echo esc_html( $instance['friday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
233
- <input type="text" name="<?php echo $this->get_field_name('friday_to'); ?>" id="<?php echo $this->get_field_id('friday_to'); ?>" value="<?php if( ! empty( $instance['friday_to'] ) ) { echo esc_html( $instance['friday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
234
- </p>
235
- <p>
236
- <label><?php esc_html_e( 'Saturday', 'rhea' ); ?></label><br/>
237
-
238
- <input type="text" name="<?php echo $this->get_field_name('saturday_from'); ?>" id="<?php echo $this->get_field_id('saturday_from'); ?>" value="<?php if( ! empty( $instance['saturday_from'] ) ) { echo esc_html( $instance['saturday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
239
- <input type="text" name="<?php echo $this->get_field_name('saturday_to'); ?>" id="<?php echo $this->get_field_id('saturday_to'); ?>" value="<?php if( ! empty( $instance['saturday_to'] ) ) { echo esc_html( $instance['saturday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
240
- </p>
241
- <p>
242
- <label><?php esc_html_e( 'Sunday', 'rhea' ); ?></label><br/>
243
-
244
- <input type="text" name="<?php echo $this->get_field_name('sunday_from'); ?>" id="<?php echo $this->get_field_id('sunday_from'); ?>" value="<?php if( ! empty( $instance['sunday_from'] ) ) { echo esc_html( $instance['sunday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
245
- <input type="text" name="<?php echo $this->get_field_name('sunday_to'); ?>" id="<?php echo $this->get_field_id('sunday_to'); ?>" value="<?php if( ! empty( $instance['sunday_to'] ) ) { echo esc_html( $instance['sunday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
246
- </p>
247
-
248
- <?php
249
-
250
- }
251
-
252
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/rhea/widgets/icon-box.widget.php DELETED
@@ -1,104 +0,0 @@
1
- <?php
2
- class Rhea_Icon_Box extends WP_Widget {
3
-
4
- public function __construct() {
5
- $widget_args = array(
6
- 'description' => esc_html__( 'This widget is designed for Right Section sidebar', 'rhea' )
7
- );
8
- parent::__construct( 'rhea-icon-box', esc_html__( '[Rhea] Icon Box', 'rhea' ), $widget_args );
9
- }
10
-
11
- function widget( $args, $instance ) {
12
-
13
- extract($args);
14
-
15
- if ( ! empty( $before_widget ) ) {
16
- echo $before_widget;
17
- }
18
-
19
- ?>
20
-
21
- <div class="about_us_box">
22
- <div class="header_aboutus_box">
23
- <div class="pull-left icon-holder">
24
- <?php if ( ! empty( $instance['icon'] ) ) { ?>
25
- <i class="fa <?php echo esc_attr( $instance['icon'] ); ?>"></i>
26
- <?php } ?>
27
- </div>
28
- <div class="aboutus_titles pull-left">
29
- <?php
30
- if ( ! empty( $instance['title'] ) ) {
31
- echo '<h4>' . esc_html( $instance['title'] ) . '</h4>';
32
- }
33
- if ( ! empty( $instance['subtitle'] ) ) {
34
- echo '<p>' . esc_html( $instance['subtitle'] ) . '</p>';
35
- }
36
- ?>
37
- </div>
38
- <div class="clearfix"></div>
39
- </div>
40
- <div class="aboutus_content">
41
- <?php
42
- if ( ! empty( $instance['description'] ) ) {
43
- echo '<p>' . esc_html( $instance['description'] ) . '</p>';
44
- }
45
- ?>
46
- </div>
47
- </div>
48
-
49
- <?php
50
-
51
- if ( ! empty( $after_widget ) ) {
52
- echo $after_widget;
53
- }
54
-
55
- }
56
-
57
- function update( $new_instance, $old_instance ) {
58
-
59
- $instance = $old_instance;
60
- $instance['title'] = stripslashes( wp_filter_post_kses( $new_instance['title'] ) );
61
- $instance['subtitle'] = strip_tags( $new_instance['subtitle'] );
62
- $instance['icon'] = strip_tags( $new_instance['icon'] );
63
- $instance['description'] = strip_tags( $new_instance['description'] );
64
-
65
- return $instance;
66
-
67
- }
68
-
69
- function form( $instance ) {
70
- $icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : ''; ?>
71
- <p>
72
- <label for="<?php echo $this->get_field_id('icon'); ?>"><?php esc_html_e( 'Icon', 'rhea' ); ?></label><br/>
73
- <div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
74
- <input type="hidden" class="widefat" name="<?php echo $this->get_field_name('icon'); ?>" id="<?php echo $this->get_field_id('icon'); ?>" value="<?php if( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
75
- <div class="icon-holder">
76
- <p><?php esc_html_e( 'No icon selected :( ...', 'rhea' ) ?></p>
77
- <i class="<?php if( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
78
- </div>
79
- <div class="actions">
80
- <button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'rhea' ) ?></button>
81
- <button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', 'rhea' ) ?></button>
82
- <button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', 'rhea' ) ?></button>
83
- </div>
84
- </div>
85
- </p>
86
- <p>
87
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
88
- <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
89
- </p>
90
- <p>
91
- <label for="<?php echo $this->get_field_id('subtitle'); ?>"><?php esc_html_e( 'Subtitle', 'rhea' ); ?></label><br/>
92
- <input type="text" name="<?php echo $this->get_field_name('subtitle'); ?>" id="<?php echo $this->get_field_id('subtitle'); ?>" value="<?php if( ! empty( $instance['subtitle'] ) ) { echo $instance['subtitle']; } ?>" class="widefat">
93
- </p>
94
-
95
- <p>
96
- <label for="<?php echo $this->get_field_id('description'); ?>"><?php esc_html_e( 'Description', 'rhea' ); ?></label><br/>
97
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name('description'); ?>" id="<?php echo $this->get_field_id('description'); ?>"><?php if( ! empty( $instance['description'] ) ) { echo htmlspecialchars_decode( $instance['description'] ); } ?></textarea>
98
- </p>
99
-
100
- <?php
101
-
102
- }
103
-
104
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/widget-clients.php DELETED
@@ -1,170 +0,0 @@
1
- <?php
2
- /**
3
- * Clients Widget
4
- *
5
- * @since 1.0.0
6
- *
7
- * @package themeisle-companion
8
- */
9
-
10
-
11
- /**
12
- * Class zerif_clients_widget
13
- */
14
- if ( !class_exists( 'zerif_clients_widget' ) ) {
15
-
16
- class zerif_clients_widget extends WP_Widget {
17
-
18
- /**
19
- * zerif_clients_widget constructor.
20
- */
21
- public function __construct() {
22
- parent::__construct(
23
- 'zerif_clients-widget',
24
- __( 'Zerif - Clients widget', 'zerif-lite' ),
25
- array(
26
- 'customize_selective_refresh' => true,
27
- )
28
- );
29
- add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
30
- }
31
-
32
- /**
33
- * Enqueue Widget Scripts
34
- *
35
- * @param $hook
36
- */
37
- function widget_scripts( $hook ) {
38
- if ( $hook != 'widgets.php' ) {
39
- return;
40
- }
41
- wp_enqueue_media();
42
- wp_enqueue_script( 'zerif_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
43
- }
44
-
45
- /**
46
- * Display Widget
47
- *
48
- * @param $args
49
- * @param $instance
50
- */
51
- function widget( $args, $instance ) {
52
-
53
- extract( $args );
54
-
55
- echo $before_widget;
56
-
57
- ?>
58
-
59
- <a href="<?php if ( ! empty( $instance['link'] ) ): echo apply_filters( 'widget_title', $instance['link'] ); endif; ?>">
60
- <?php
61
- if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) {
62
-
63
- echo '<img src="' . esc_url( $instance['image_uri'] ) . '" alt="' . __( 'Client', 'zerif-lite' ) . '">';
64
-
65
- } elseif ( ! empty( $instance['custom_media_id'] ) ) {
66
-
67
- $zerif_clients_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
68
- if ( ! empty( $zerif_clients_custom_media_id ) && ! empty( $zerif_clients_custom_media_id[0] ) ) {
69
-
70
- echo '<img src="' . esc_url( $zerif_clients_custom_media_id[0] ) . '" alt="' . __( 'Client', 'zerif-lite' ) . '">';
71
-
72
- }
73
- }
74
- ?>
75
- </a>
76
-
77
- <?php
78
-
79
- echo $after_widget;
80
-
81
- }
82
-
83
- /**
84
- * Update Widget
85
- *
86
- * @param $new_instance
87
- * @param $old_instance
88
- *
89
- * @return mixed
90
- */
91
- function update( $new_instance, $old_instance ) {
92
-
93
- $instance = $old_instance;
94
-
95
- $instance['link'] = strip_tags( $new_instance['link'] );
96
-
97
- $instance['image_uri'] = strip_tags( $new_instance['image_uri'] );
98
-
99
- $instance['image_in_customizer'] = strip_tags( $new_instance['image_in_customizer'] );
100
-
101
- $instance['custom_media_id'] = strip_tags( $new_instance['custom_media_id'] );
102
-
103
- return $instance;
104
-
105
- }
106
-
107
- /**
108
- * Widget controls
109
- *
110
- * @param $instance
111
- */
112
- function form( $instance ) {
113
- ?>
114
-
115
- <p>
116
- <label
117
- for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
118
- <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
119
- id="<?php echo $this->get_field_id( 'link' ); ?>"
120
- value="<?php if ( ! empty( $instance['link'] ) ): echo $instance['link']; endif; ?>"
121
- class="widefat">
122
- </p>
123
- <p>
124
- <label
125
- for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'zerif-lite' ); ?></label><br/>
126
-
127
- <?php
128
- $image_in_customizer = '';
129
- $display = 'none';
130
- if ( ! empty( $instance['image_in_customizer'] ) && ! empty( $instance['image_uri'] ) ) {
131
- $image_in_customizer = esc_url( $instance['image_in_customizer'] );
132
- $display = 'inline-block';
133
- } else {
134
- if ( ! empty( $instance['image_uri'] ) ) {
135
- $image_in_customizer = esc_url( $instance['image_uri'] );
136
- $display = 'inline-block';
137
- }
138
- }
139
- $zerif_image_in_customizer = $this->get_field_name( 'image_in_customizer' );
140
- ?>
141
- <input type="hidden" class="custom_media_display_in_customizer"
142
- name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
143
- echo $zerif_image_in_customizer;
144
- } ?>"
145
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
146
- <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
147
- style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
148
- alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
149
-
150
- <input type="text" class="widefat custom_media_url"
151
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
152
- id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
153
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
154
- style="margin-top:5px;">
155
-
156
- <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
157
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
158
- value="<?php _e( 'Upload Image', 'zerif-lite' ); ?>" style="margin-top:5px;">
159
- </p>
160
-
161
- <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
162
- name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
163
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
164
- <?php
165
-
166
- }
167
-
168
- }
169
- }
170
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/widget-focus.php DELETED
@@ -1,237 +0,0 @@
1
- <?php
2
- /**
3
- * Our Focus Widget
4
- *
5
- * @since 1.0.0
6
- *
7
- * @package themeisle-companion
8
- */
9
-
10
-
11
- /**
12
- * Class zerif_ourfocus
13
- */
14
- if ( !class_exists( 'zerif_ourfocus' ) ) {
15
-
16
- class zerif_ourfocus extends WP_Widget {
17
-
18
- /**
19
- * zerif_ourfocus constructor.
20
- */
21
- public function __construct() {
22
- parent::__construct(
23
- 'ctUp-ads-widget',
24
- __( 'Zerif - Our focus widget', 'zerif-lite' ),
25
- array(
26
- 'customize_selective_refresh' => true,
27
- )
28
- );
29
- add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
30
- }
31
-
32
- /**
33
- * Enqueue Widget Scripts
34
- *
35
- * @param $hook
36
- */
37
- function widget_scripts( $hook ) {
38
- if ( $hook != 'widgets.php' ) {
39
- return;
40
- }
41
- wp_enqueue_media();
42
- wp_enqueue_script( 'zerif_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
43
- }
44
-
45
- /**
46
- * Display Widget
47
- *
48
- * @param $args
49
- * @param $instance
50
- */
51
- function widget( $args, $instance ) {
52
-
53
- extract( $args );
54
-
55
- echo $before_widget;
56
-
57
- ?>
58
-
59
- <div class="col-lg-3 col-sm-3 focus-box" data-scrollreveal="enter left after 0.15s over 1s">
60
-
61
- <?php
62
- if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) {
63
- if ( ! empty( $instance['link'] ) ) { ?>
64
- <a href="<?php echo esc_url( $instance['link'] ); ?>" class="service-icon">
65
- <?php
66
- if ( ! empty( $instance['title'] ) ) { ?>
67
- <span class="sr-only">
68
- <?php _e( 'Go to', 'zerif-lite' ); ?>
69
- <?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
70
- </span>
71
- <?php
72
- } ?>
73
-
74
- <i class="pixeden"
75
- style="background:url(<?php echo esc_url( $instance['image_uri'] ); ?>) no-repeat center;width:100%; height:100%;"></i>
76
- </a>
77
- <?php
78
- } else { ?>
79
- <div class="service-icon" tabindex="0">
80
- <i class="pixeden"
81
- style="background:url(<?php echo esc_url( $instance['image_uri'] ); ?>) no-repeat center;width:100%; height:100%;"></i>
82
- <!-- FOCUS ICON-->
83
- </div>
84
- <?php
85
- } ?>
86
-
87
-
88
- <?php } elseif ( ! empty( $instance['custom_media_id'] ) ) {
89
-
90
- $zerif_ourfocus_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
91
- if ( ! empty( $zerif_ourfocus_custom_media_id ) && ! empty( $zerif_ourfocus_custom_media_id[0] ) ) {
92
-
93
- if ( ! empty( $instance['link'] ) ) { ?>
94
- <a href="<?php echo esc_url( $instance['link'] ); ?>" class="service-icon">
95
- <?php
96
- if ( ! empty( $instance['title'] ) ) { ?>
97
- <span class="sr-only">
98
- <?php _e( 'Go to', 'zerif-lite' ); ?>
99
- <?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
100
- </span>
101
- <?php
102
- } ?>
103
- <i class="pixeden"
104
- style="background:url(<?php echo esc_url( $zerif_ourfocus_custom_media_id[0] ); ?>) no-repeat center;width:100%; height:100%;"></i>
105
- </a>
106
- <?php
107
- } else { ?>
108
- <div class="service-icon" tabindex="0">
109
- <i class="pixeden"
110
- style="background:url(<?php echo esc_url( $zerif_ourfocus_custom_media_id[0] ); ?>) no-repeat center;width:100%; height:100%;"></i>
111
- <!-- FOCUS ICON-->
112
- </div>
113
- <?php
114
- }
115
- }
116
-
117
- }
118
- ?>
119
-
120
- <h3 class="red-border-bottom"><?php if ( ! empty( $instance['title'] ) ): echo apply_filters( 'widget_title', $instance['title'] ); endif; ?></h3>
121
- <!-- FOCUS HEADING -->
122
-
123
- <?php
124
- if ( ! empty( $instance['text'] ) ) {
125
- echo '<p>';
126
- echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['text'] ) );
127
- echo '</p>';
128
- }
129
- ?>
130
-
131
- </div>
132
-
133
- <?php
134
-
135
- echo $after_widget;
136
-
137
- }
138
-
139
- /**
140
- * Update Widget
141
- *
142
- * @param $new_instance
143
- * @param $old_instance
144
- *
145
- * @return mixed
146
- */
147
- function update( $new_instance, $old_instance ) {
148
-
149
- $instance = $old_instance;
150
- $instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
151
- $instance['title'] = strip_tags( $new_instance['title'] );
152
- $instance['link'] = strip_tags( $new_instance['link'] );
153
- $instance['image_uri'] = strip_tags( $new_instance['image_uri'] );
154
- $instance['custom_media_id'] = strip_tags( $new_instance['custom_media_id'] );
155
- $instance['image_in_customizer'] = strip_tags( $new_instance['image_in_customizer'] );
156
-
157
- return $instance;
158
-
159
- }
160
-
161
- /**
162
- * Widget controls
163
- *
164
- * @param $instance
165
- */
166
- function form( $instance ) {
167
- ?>
168
-
169
- <p>
170
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'zerif-lite' ); ?></label><br/>
171
- <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
172
- id="<?php echo $this->get_field_id( 'title' ); ?>"
173
- value="<?php if ( ! empty( $instance['title'] ) ): echo $instance['title']; endif; ?>"
174
- class="widefat">
175
- </p>
176
- <p>
177
- <label
178
- for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
179
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
180
- id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ): echo htmlspecialchars_decode( $instance['text'] ); endif; ?></textarea>
181
- </p>
182
- <p>
183
- <label
184
- for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
185
- <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
186
- id="<?php echo $this->get_field_id( 'link' ); ?>"
187
- value="<?php if ( ! empty( $instance['link'] ) ): echo esc_url( $instance['link'] ); endif; ?>"
188
- class="widefat">
189
- </p>
190
- <p>
191
- <label
192
- for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'zerif-lite' ); ?></label><br/>
193
-
194
- <?php
195
- $image_in_customizer = '';
196
- $display = 'none';
197
- if ( ! empty( $instance['image_in_customizer'] ) && ! empty( $instance['image_uri'] ) ) {
198
- $image_in_customizer = esc_url( $instance['image_in_customizer'] );
199
- $display = 'inline-block';
200
- } else {
201
- if ( ! empty( $instance['image_uri'] ) ) {
202
- $image_in_customizer = esc_url( $instance['image_uri'] );
203
- $display = 'inline-block';
204
- }
205
- }
206
- $zerif_image_in_customizer = $this->get_field_name( 'image_in_customizer' );
207
- ?>
208
- <input type="hidden" class="custom_media_display_in_customizer"
209
- name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
210
- echo $zerif_image_in_customizer;
211
- } ?>"
212
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
213
- <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
214
- style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
215
- alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
216
-
217
- <input type="text" class="widefat custom_media_url"
218
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
219
- id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
220
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
221
- style="margin-top:5px;">
222
-
223
- <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
224
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
225
- value="<?php _e( 'Upload Image', 'zerif-lite' ); ?>" style="margin-top:5px;">
226
- </p>
227
-
228
- <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
229
- name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
230
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
231
-
232
- <?php
233
-
234
- }
235
-
236
- }
237
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/widget-team.php DELETED
@@ -1,387 +0,0 @@
1
- <?php
2
- /**
3
- * Testimonial Widget
4
- *
5
- * @since 1.0.0
6
- *
7
- * @package themeisle-companion
8
- */
9
-
10
-
11
- /**
12
- * Class zerif_team_widget
13
- */
14
- if ( !class_exists( 'zerif_team_widget' ) ) {
15
-
16
- class zerif_team_widget extends WP_Widget {
17
-
18
- /**
19
- * zerif_team_widget constructor.
20
- */
21
- public function __construct() {
22
- parent::__construct(
23
- 'zerif_team-widget',
24
- __( 'Zerif - Team member widget', 'zerif-lite' ),
25
- array(
26
- 'customize_selective_refresh' => true,
27
- )
28
- );
29
- add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
30
- }
31
-
32
- /**
33
- * Enqueue Widget Scripts
34
- *
35
- * @param $hook
36
- */
37
- function widget_scripts( $hook ) {
38
- if ( $hook != 'widgets.php' ) {
39
- return;
40
- }
41
- wp_enqueue_media();
42
- wp_enqueue_script( 'zerif_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
43
- }
44
-
45
- /**
46
- * Display Widget
47
- *
48
- * @param $args
49
- * @param $instance
50
- */
51
- function widget( $args, $instance ) {
52
-
53
- extract( $args );
54
-
55
- echo $before_widget;
56
-
57
- ?>
58
-
59
- <div class="col-lg-3 col-sm-3 team-box">
60
-
61
- <div class="team-member" tabindex="0">
62
-
63
- <?php if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) { ?>
64
-
65
-
66
- <figure class="profile-pic">
67
-
68
- <img src="<?php echo esc_url( $instance['image_uri'] ); ?>" alt=""/>
69
-
70
- </figure>
71
- <?php
72
- } elseif ( ! empty( $instance['custom_media_id'] ) ) {
73
-
74
- $zerif_team_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
75
- $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
76
-
77
- if ( ! empty( $zerif_team_custom_media_id ) && ! empty( $zerif_team_custom_media_id[0] ) ) {
78
- ?>
79
-
80
- <figure class="profile-pic">
81
-
82
- <img src="<?php echo esc_url( $zerif_team_custom_media_id[0] ); ?>"
83
- alt="<?php echo $alt; ?>"/>
84
-
85
- </figure>
86
-
87
- <?php
88
- }
89
- }
90
- ?>
91
-
92
- <div class="member-details">
93
-
94
- <?php if ( ! empty( $instance['name'] ) ): ?>
95
-
96
- <h3 class="dark-text red-border-bottom"><?php echo apply_filters( 'widget_title', $instance['name'] ); ?></h3>
97
-
98
- <?php endif; ?>
99
-
100
- <?php if ( ! empty( $instance['position'] ) ): ?>
101
-
102
- <div
103
- class="position"><?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['position'] ) ); ?></div>
104
-
105
- <?php endif; ?>
106
-
107
- </div>
108
-
109
- <div class="social-icons">
110
-
111
- <ul>
112
- <?php
113
- $zerif_team_target = '_self';
114
- if ( ! empty( $instance['open_new_window'] ) ):
115
- $zerif_team_target = '_blank';
116
- endif;
117
- ?>
118
-
119
- <?php
120
- if ( ! empty( $instance['fb_link'] ) ): ?>
121
- <li>
122
- <a href="<?php echo apply_filters( 'widget_title', $instance['fb_link'] ); ?>"
123
- target="<?php echo $zerif_team_target; ?>">
124
- <?php
125
- if ( ! empty( $instance['name'] ) ) { ?>
126
- <span class="sr-only">
127
- <?php _e( 'Facebook account of', 'zerif-lite' ); ?>
128
- <?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
129
- </span>
130
- <?php
131
- } ?>
132
- <i class="fa fa-facebook"></i>
133
- </a>
134
- </li>
135
- <?php
136
- endif;
137
-
138
- if ( ! empty( $instance['tw_link'] ) ): ?>
139
- <li>
140
- <a href="<?php echo apply_filters( 'widget_title', $instance['tw_link'] ); ?>"
141
- target="<?php echo $zerif_team_target; ?>">
142
- <?php
143
- if ( ! empty( $instance['name'] ) ) { ?>
144
- <span class="sr-only">
145
- <?php _e( 'Twitter account of', 'zerif-lite' ); ?>
146
- <?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
147
- </span>
148
- <?php
149
- } ?>
150
- <i class="fa fa-twitter"></i>
151
- </a>
152
- </li>
153
- <?php
154
- endif;
155
-
156
- if ( ! empty( $instance['bh_link'] ) ): ?>
157
- <li>
158
- <a href="<?php echo apply_filters( 'widget_title', $instance['bh_link'] ); ?>"
159
- target="<?php echo $zerif_team_target; ?>">
160
- <?php
161
- if ( ! empty( $instance['name'] ) ) { ?>
162
- <span class="sr-only">
163
- <?php _e( 'Behance account of', 'zerif-lite' ); ?>
164
- <?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
165
- </span>
166
- <?php
167
- } ?>
168
- <i class="fa fa-behance"></i>
169
- </a>
170
- </li>
171
- <?php
172
- endif;
173
-
174
- if ( ! empty( $instance['db_link'] ) ): ?>
175
- <li>
176
- <a href="<?php echo apply_filters( 'widget_title', $instance['db_link'] ); ?>"
177
- target="<?php echo $zerif_team_target; ?>">
178
- <?php
179
- if ( ! empty( $instance['name'] ) ) { ?>
180
- <span class="sr-only">
181
- <?php _e( 'Dribble account of', 'zerif-lite' ); ?>
182
- <?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
183
- </span>
184
- <?php
185
- } ?>
186
- <i class="fa fa-dribbble"></i>
187
- </a>
188
- </li>
189
- <?php
190
- endif;
191
-
192
- if ( ! empty( $instance['ln_link'] ) ): ?>
193
- <li>
194
- <a href="<?php echo apply_filters( 'widget_title', $instance['ln_link'] ); ?>"
195
- target="<?php echo $zerif_team_target; ?>">
196
- <?php
197
- if ( ! empty( $instance['name'] ) ) { ?>
198
- <span class="sr-only">
199
- <?php _e( 'Linkedin account of', 'zerif-lite' ); ?>
200
- <?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
201
- </span>
202
- <?php
203
- } ?>
204
- <i class="fa fa-linkedin"></i>
205
- </a>
206
- </li>
207
- <?php
208
- endif; ?>
209
-
210
- </ul>
211
-
212
- </div>
213
-
214
- <?php if ( ! empty( $instance['description'] ) ): ?>
215
- <div class="details">
216
-
217
- <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['description'] ) ); ?>
218
-
219
- </div>
220
- <?php endif; ?>
221
-
222
- </div>
223
-
224
- </div>
225
-
226
- <?php
227
-
228
- echo $after_widget;
229
-
230
- }
231
-
232
- /**
233
- * Update Widget
234
- *
235
- * @param $new_instance
236
- * @param $old_instance
237
- *
238
- * @return mixed
239
- */
240
- function update( $new_instance, $old_instance ) {
241
-
242
- $instance = $old_instance;
243
-
244
- $instance['name'] = strip_tags( $new_instance['name'] );
245
- $instance['position'] = stripslashes( wp_filter_post_kses( $new_instance['position'] ) );
246
- $instance['description'] = stripslashes( wp_filter_post_kses( $new_instance['description'] ) );
247
- $instance['fb_link'] = strip_tags( $new_instance['fb_link'] );
248
- $instance['tw_link'] = strip_tags( $new_instance['tw_link'] );
249
- $instance['bh_link'] = strip_tags( $new_instance['bh_link'] );
250
- $instance['db_link'] = strip_tags( $new_instance['db_link'] );
251
- $instance['ln_link'] = strip_tags( $new_instance['ln_link'] );
252
- $instance['image_uri'] = strip_tags( $new_instance['image_uri'] );
253
- $instance['open_new_window'] = strip_tags( $new_instance['open_new_window'] );
254
- $instance['custom_media_id'] = strip_tags( $new_instance['custom_media_id'] );
255
- $instance['image_in_customizer'] = strip_tags( $new_instance['image_in_customizer'] );
256
-
257
- return $instance;
258
-
259
- }
260
-
261
- /**
262
- * Widget controls
263
- *
264
- * @param $instance
265
- */
266
- function form( $instance ) {
267
-
268
- ?>
269
-
270
- <p>
271
- <label
272
- for="<?php echo $this->get_field_id( 'name' ); ?>"><?php _e( 'Name', 'zerif-lite' ); ?></label><br/>
273
- <input type="text" name="<?php echo $this->get_field_name( 'name' ); ?>"
274
- id="<?php echo $this->get_field_id( 'name' ); ?>"
275
- value="<?php if ( ! empty( $instance['name'] ) ): echo $instance['name']; endif; ?>"
276
- class="widefat"/>
277
- </p>
278
- <p>
279
- <label
280
- for="<?php echo $this->get_field_id( 'position' ); ?>"><?php _e( 'Position', 'zerif-lite' ); ?></label><br/>
281
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'position' ); ?>"
282
- id="<?php echo $this->get_field_id( 'position' ); ?>"><?php if ( ! empty( $instance['position'] ) ): echo htmlspecialchars_decode( $instance['position'] ); endif; ?></textarea>
283
- </p>
284
- <p>
285
- <label
286
- for="<?php echo $this->get_field_id( 'description' ); ?>"><?php _e( 'Description', 'zerif-lite' ); ?></label><br/>
287
- <textarea class="widefat" rows="8" cols="20"
288
- name="<?php echo $this->get_field_name( 'description' ); ?>"
289
- id="<?php echo $this->get_field_id( 'description' ); ?>"><?php
290
- if ( ! empty( $instance['description'] ) ): echo htmlspecialchars_decode( $instance['description'] ); endif;
291
- ?></textarea>
292
- </p>
293
- <p>
294
- <label
295
- for="<?php echo $this->get_field_id( 'fb_link' ); ?>"><?php _e( 'Facebook link', 'zerif-lite' ); ?></label><br/>
296
- <input type="text" name="<?php echo $this->get_field_name( 'fb_link' ); ?>"
297
- id="<?php echo $this->get_field_id( 'fb_link' ); ?>"
298
- value="<?php if ( ! empty( $instance['fb_link'] ) ): echo $instance['fb_link']; endif; ?>"
299
- class="widefat">
300
-
301
- </p>
302
- <p>
303
- <label
304
- for="<?php echo $this->get_field_id( 'tw_link' ); ?>"><?php _e( 'Twitter link', 'zerif-lite' ); ?></label><br/>
305
- <input type="text" name="<?php echo $this->get_field_name( 'tw_link' ); ?>"
306
- id="<?php echo $this->get_field_id( 'tw_link' ); ?>"
307
- value="<?php if ( ! empty( $instance['tw_link'] ) ): echo $instance['tw_link']; endif; ?>"
308
- class="widefat">
309
- </p>
310
- <p>
311
- <label
312
- for="<?php echo $this->get_field_id( 'bh_link' ); ?>"><?php _e( 'Behance link', 'zerif-lite' ); ?></label><br/>
313
- <input type="text" name="<?php echo $this->get_field_name( 'bh_link' ); ?>"
314
- id="<?php echo $this->get_field_id( 'bh_link' ); ?>"
315
- value="<?php if ( ! empty( $instance['bh_link'] ) ): echo $instance['bh_link']; endif; ?>"
316
- class="widefat">
317
-
318
- </p>
319
- <p>
320
- <label
321
- for="<?php echo $this->get_field_id( 'db_link' ); ?>"><?php _e( 'Dribble link', 'zerif-lite' ); ?></label><br/>
322
- <input type="text" name="<?php echo $this->get_field_name( 'db_link' ); ?>"
323
- id="<?php echo $this->get_field_id( 'db_link' ); ?>"
324
- value="<?php if ( ! empty( $instance['db_link'] ) ): echo $instance['db_link']; endif; ?>"
325
- class="widefat">
326
- </p>
327
- <p>
328
- <label
329
- for="<?php echo $this->get_field_id( 'ln_link' ); ?>"><?php _e( 'Linkedin link', 'zerif-lite' ); ?></label><br/>
330
- <input type="text" name="<?php echo $this->get_field_name( 'ln_link' ); ?>"
331
- id="<?php echo $this->get_field_id( 'ln_link' ); ?>"
332
- value="<?php if ( ! empty( $instance['ln_link'] ) ): echo $instance['ln_link']; endif; ?>"
333
- class="widefat">
334
- </p>
335
- <p>
336
- <input type="checkbox" name="<?php echo $this->get_field_name( 'open_new_window' ); ?>"
337
- id="<?php echo $this->get_field_id( 'open_new_window' ); ?>" <?php if ( ! empty( $instance['open_new_window'] ) ): checked( (bool) $instance['open_new_window'], true ); endif; ?> ><?php _e( 'Open links in new window?', 'zerif-lite' ); ?>
338
- <br>
339
- </p>
340
- <p>
341
- <label
342
- for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'zerif-lite' ); ?></label><br/>
343
-
344
- <?php
345
- $image_in_customizer = '';
346
- $display = 'none';
347
- if ( ! empty( $instance['image_in_customizer'] ) && ! empty( $instance['image_uri'] ) ) {
348
- $image_in_customizer = esc_url( $instance['image_in_customizer'] );
349
- $display = 'inline-block';
350
- } else {
351
- if ( ! empty( $instance['image_uri'] ) ) {
352
- $image_in_customizer = esc_url( $instance['image_uri'] );
353
- $display = 'inline-block';
354
- }
355
- }
356
- $zerif_image_in_customizer = $this->get_field_name( 'image_in_customizer' );
357
- ?>
358
- <input type="hidden" class="custom_media_display_in_customizer"
359
- name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
360
- echo $zerif_image_in_customizer;
361
- } ?>"
362
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
363
- <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
364
- style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
365
- alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
366
-
367
- <input type="text" class="widefat custom_media_url"
368
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
369
- id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
370
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
371
- style="margin-top:5px;">
372
-
373
- <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
374
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
375
- value="<?php _e( 'Upload Image', 'zerif-lite' ); ?>" style="margin-top:5px;">
376
- </p>
377
-
378
- <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
379
- name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
380
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
381
-
382
- <?php
383
-
384
- }
385
-
386
- }
387
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/widget-testimonial.php DELETED
@@ -1,244 +0,0 @@
1
- <?php
2
- /**
3
- * Testimonial Widget
4
- *
5
- * @since 1.0.0
6
- *
7
- * @package themeisle-companion
8
- */
9
-
10
-
11
- /**
12
- * Class zerif_testimonial_widget
13
- */
14
- if ( !class_exists( 'zerif_testimonial_widget' ) ) {
15
-
16
- class zerif_testimonial_widget extends WP_Widget {
17
-
18
- /**
19
- * zerif_testimonial_widget constructor.
20
- */
21
- public function __construct() {
22
- parent::__construct(
23
- 'zerif_testim-widget',
24
- __( 'Zerif - Testimonial widget', 'zerif-lite' ),
25
- array(
26
- 'customize_selective_refresh' => true,
27
- )
28
- );
29
- add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
30
- }
31
-
32
- /**
33
- * Enqueue Widget Scripts
34
- *
35
- * @param $hook
36
- */
37
- function widget_scripts( $hook ) {
38
- if ( $hook != 'widgets.php' ) {
39
- return;
40
- }
41
- wp_enqueue_media();
42
- wp_enqueue_script( 'zerif_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
43
- }
44
-
45
- /**
46
- * Display Widget
47
- *
48
- * @param $args
49
- * @param $instance
50
- */
51
- function widget( $args, $instance ) {
52
-
53
- extract( $args );
54
-
55
- $zerif_accessibility = get_theme_mod( 'zerif_accessibility' );
56
- // open link in a new tab when checkbox "accessibility" is not ticked
57
- $attribut_new_tab = ( isset( $zerif_accessibility ) && ( $zerif_accessibility != 1 ) ? ' target="_blank"' : '' );
58
-
59
- echo $before_widget;
60
-
61
- ?>
62
-
63
-
64
- <!-- MESSAGE OF THE CLIENT -->
65
-
66
- <?php if ( ! empty( $instance['text'] ) ): ?>
67
- <div class="message">
68
- <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['text'] ) ); ?>
69
- </div>
70
- <?php endif; ?>
71
-
72
- <!-- CLIENT INFORMATION -->
73
-
74
- <div class="client">
75
-
76
- <div class="quote red-text">
77
-
78
- <i class="fa fa-quote-left"></i>
79
-
80
- </div>
81
-
82
- <div class="client-info">
83
-
84
- <a <?php echo $attribut_new_tab; ?>
85
- class="client-name" <?php if ( ! empty( $instance['link'] ) ): echo 'href="' . esc_url( $instance['link'] ) . '"'; endif; ?>><?php if ( ! empty( $instance['title'] ) ): echo apply_filters( 'widget_title', $instance['title'] ); endif; ?></a>
86
-
87
-
88
- <?php if ( ! empty( $instance['details'] ) ): ?>
89
- <div class="client-company">
90
-
91
- <?php echo apply_filters( 'widget_title', $instance['details'] ); ?>
92
-
93
- </div>
94
- <?php endif; ?>
95
-
96
- </div>
97
-
98
- <?php
99
-
100
- if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) {
101
-
102
- echo '<div class="client-image hidden-xs">';
103
-
104
- echo '<img src="' . esc_url( $instance['image_uri'] ) . '" alt="" />';
105
-
106
- echo '</div>';
107
-
108
- } elseif ( ! empty( $instance['custom_media_id'] ) ) {
109
-
110
- $zerif_testimonials_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
111
- $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
112
-
113
- if ( ! empty( $zerif_testimonials_custom_media_id ) && ! empty( $zerif_testimonials_custom_media_id[0] ) ) {
114
-
115
- echo '<div class="client-image hidden-xs">';
116
-
117
- echo '<img src="' . esc_url( $zerif_testimonials_custom_media_id[0] ) . '" alt="' . $alt . '" />';
118
-
119
- echo '</div>';
120
-
121
- }
122
- }
123
-
124
- ?>
125
-
126
- </div>
127
- <!-- / END CLIENT INFORMATION-->
128
-
129
-
130
- <?php
131
-
132
- echo $after_widget;
133
-
134
- }
135
-
136
- /**
137
- * Update Widget
138
- *
139
- * @param $new_instance
140
- * @param $old_instance
141
- *
142
- * @return mixed
143
- */
144
- function update( $new_instance, $old_instance ) {
145
-
146
- $instance = $old_instance;
147
- $instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
148
- $instance['title'] = strip_tags( $new_instance['title'] );
149
- $instance['details'] = strip_tags( $new_instance['details'] );
150
- $instance['image_uri'] = strip_tags( $new_instance['image_uri'] );
151
- $instance['link'] = strip_tags( $new_instance['link'] );
152
- $instance['custom_media_id'] = strip_tags( $new_instance['custom_media_id'] );
153
- $instance['image_in_customizer'] = strip_tags( $new_instance['image_in_customizer'] );
154
-
155
- return $instance;
156
-
157
- }
158
-
159
- /**
160
- * Widget controls
161
- *
162
- * @param $instance
163
- */
164
- function form( $instance ) {
165
- ?>
166
-
167
- <p>
168
- <label
169
- for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Author', 'zerif-lite' ); ?></label><br/>
170
- <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
171
- id="<?php echo $this->get_field_id( 'title' ); ?>"
172
- value="<?php if ( ! empty( $instance['title'] ) ): echo $instance['title']; endif; ?>"
173
- class="widefat">
174
- </p>
175
- <p>
176
- <label
177
- for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Author link', 'zerif-lite' ); ?></label><br/>
178
- <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
179
- id="<?php echo $this->get_field_id( 'link' ); ?>"
180
- value="<?php if ( ! empty( $instance['link'] ) ): echo esc_url( $instance['link'] ); endif; ?>"
181
- class="widefat">
182
- </p>
183
- <p>
184
- <label
185
- for="<?php echo $this->get_field_id( 'details' ); ?>"><?php _e( 'Author details', 'zerif-lite' ); ?></label><br/>
186
- <input type="text" name="<?php echo $this->get_field_name( 'details' ); ?>"
187
- id="<?php echo $this->get_field_id( 'details' ); ?>"
188
- value="<?php if ( ! empty( $instance['details'] ) ): echo $instance['details']; endif; ?>"
189
- class="widefat">
190
- </p>
191
- <p>
192
- <label
193
- for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
194
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
195
- id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ): echo htmlspecialchars_decode( $instance['text'] ); endif; ?></textarea>
196
- </p>
197
- <p>
198
- <label
199
- for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'zerif-lite' ); ?></label><br/>
200
-
201
- <?php
202
- $image_in_customizer = '';
203
- $display = 'none';
204
- if ( ! empty( $instance['image_in_customizer'] ) && ! empty( $instance['image_uri'] ) ) {
205
- $image_in_customizer = esc_url( $instance['image_in_customizer'] );
206
- $display = 'inline-block';
207
- } else {
208
- if ( ! empty( $instance['image_uri'] ) ) {
209
- $image_in_customizer = esc_url( $instance['image_uri'] );
210
- $display = 'inline-block';
211
- }
212
- }
213
- $zerif_image_in_customizer = $this->get_field_name( 'image_in_customizer' );
214
- ?>
215
- <input type="hidden" class="custom_media_display_in_customizer"
216
- name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
217
- echo $zerif_image_in_customizer;
218
- } ?>"
219
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
220
- <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
221
- style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
222
- alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
223
-
224
- <input type="text" class="widefat custom_media_url"
225
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
226
- id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
227
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
228
- style="margin-top:5px;">
229
-
230
- <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
231
- name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
232
- value="<?php _e( 'Upload Image', 'zerif-lite' ); ?>" style="margin-top:5px;">
233
- </p>
234
-
235
- <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
236
- name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
237
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
238
-
239
- <?php
240
-
241
- }
242
-
243
- }
244
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
languages/themeisle-companion.pot ADDED
@@ -0,0 +1,722 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2017 Themeisle
2
+ # This file is distributed under the GPL-2.0+.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Orbit Fox Companion 2.0.0\n"
6
+ "Report-Msgid-Bugs-To: https://github.com/Codeinwp/orbit-fox/issues\n"
7
+ "POT-Creation-Date: 2017-08-11 10:36:30+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: Themeisle Translate Team <friends@themeisle.com>\n"
13
+ "Language-Team: Themeisle Translate <friends@themeisle.com>\n"
14
+ "X-Generator: grunt-wp-i18n 0.5.4\n"
15
+ "X-Poedit-KeywordsList: "
16
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
17
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
18
+ "Language: en\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "X-Poedit-Country: United States\n"
21
+ "X-Poedit-SourceCharset: UTF-8\n"
22
+ "X-Poedit-Basepath: ../\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+ "X-Poedit-Bookmarks: \n"
25
+ "X-Textdomain-Support: yes\n"
26
+
27
+ #: core/app/class-orbit-fox-admin.php:110
28
+ msgid "Orbit Fox"
29
+ msgstr ""
30
+
31
+ #. Plugin Name of the plugin/theme
32
+ msgid "Orbit Fox Companion"
33
+ msgstr ""
34
+
35
+ #: core/app/class-orbit-fox-admin.php:144
36
+ msgid "No module found! No data was updated."
37
+ msgstr ""
38
+
39
+ #: core/app/class-orbit-fox-admin.php:150
40
+ msgid "Something went wrong, data might not be saved!"
41
+ msgstr ""
42
+
43
+ #: core/app/class-orbit-fox-admin.php:154
44
+ msgid "Options updated, successfully!"
45
+ msgstr ""
46
+
47
+ #: core/app/class-orbit-fox-admin.php:173
48
+ #: core/app/class-orbit-fox-admin.php:224
49
+ msgid "Could not process the request!"
50
+ msgstr ""
51
+
52
+ #: core/app/class-orbit-fox-admin.php:197
53
+ msgid "No module found!"
54
+ msgstr ""
55
+
56
+ #: core/app/class-orbit-fox-admin.php:201
57
+ msgid "Something went wrong, can not change module status!"
58
+ msgstr ""
59
+
60
+ #: core/app/class-orbit-fox-admin.php:205
61
+ msgid "Module status changed!"
62
+ msgstr ""
63
+
64
+ #: core/app/class-orbit-fox-admin.php:317
65
+ msgid "No modules found."
66
+ msgstr ""
67
+
68
+ #: core/app/class-orbit-fox-admin.php:318
69
+ msgid "Please contact support for more help."
70
+ msgstr ""
71
+
72
+ #: core/app/class-orbit-fox-admin.php:325
73
+ msgid "No active modules."
74
+ msgstr ""
75
+
76
+ #: core/app/class-orbit-fox-admin.php:326
77
+ msgid "Activate a module using the toggles above."
78
+ msgstr ""
79
+
80
+ #: core/app/helpers/class-orbit-fox-render-helper.php:356
81
+ msgid "No option found for provided type"
82
+ msgstr ""
83
+
84
+ #: core/app/views/modules-page.php:56
85
+ msgid "Available Modules"
86
+ msgstr ""
87
+
88
+ #: core/app/views/modules-page.php:67
89
+ msgid "Activated Modules Options"
90
+ msgstr ""
91
+
92
+ #: core/app/views/modules-page.php:69
93
+ msgid "No modules activated."
94
+ msgstr ""
95
+
96
+ #: core/app/views/partials/empty-tpl.php:14
97
+ msgid "There are no modules for the Fox!"
98
+ msgstr ""
99
+
100
+ #: core/app/views/partials/empty-tpl.php:18
101
+ msgid "Contact support"
102
+ msgstr ""
103
+
104
+ #: core/app/views/partials/module-panel-tpl.php:23
105
+ msgid "The Module Name"
106
+ msgstr ""
107
+
108
+ #: core/app/views/partials/module-panel-tpl.php:27
109
+ msgid "The Module Description ..."
110
+ msgstr ""
111
+
112
+ #: core/app/views/partials/module-panel-tpl.php:31
113
+ msgid "No options provided."
114
+ msgstr ""
115
+
116
+ #: core/app/views/partials/module-tile-tpl.php:14
117
+ msgid "Module Name"
118
+ msgstr ""
119
+
120
+ #: core/app/views/partials/module-tile-tpl.php:18
121
+ msgid "Module Description ..."
122
+ msgstr ""
123
+
124
+ #: core/app/views/partials/module-tile-tpl.php:42
125
+ msgid "Activate"
126
+ msgstr ""
127
+
128
+ #: obfx_modules/companion-legacy/inc/hestia/functions.php:67
129
+ msgid "Front Page"
130
+ msgstr ""
131
+
132
+ #: obfx_modules/companion-legacy/inc/hestia/functions.php:69
133
+ msgid "Blog"
134
+ msgstr ""
135
+
136
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:18
137
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:26
138
+ msgid "Why our product is the best"
139
+ msgstr ""
140
+
141
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:23
142
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:32
143
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:40
144
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:48
145
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:64
146
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:194
147
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:27
148
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:139
149
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:146
150
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:153
151
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:24
152
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:22
153
+ msgid ""
154
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
155
+ "tempor incididunt ut labore et dolore magna aliqua."
156
+ msgstr ""
157
+
158
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:31
159
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:138
160
+ msgid "Responsive"
161
+ msgstr ""
162
+
163
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:39
164
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:145
165
+ msgid "Quality"
166
+ msgstr ""
167
+
168
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:47
169
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php:152
170
+ msgid "Support"
171
+ msgstr ""
172
+
173
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:60
174
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:23
175
+ msgid "Meet our team"
176
+ msgstr ""
177
+
178
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:71
179
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:172
180
+ msgid "Desmond Purpleson"
181
+ msgstr ""
182
+
183
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:72
184
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:173
185
+ msgid "CEO"
186
+ msgstr ""
187
+
188
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:73
189
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:174
190
+ msgid ""
191
+ "Locavore pinterest chambray affogato art party, forage coloring book "
192
+ "typewriter. Bitters cold selfies, retro celiac sartorial mustache."
193
+ msgstr ""
194
+
195
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:100
196
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:201
197
+ msgid "Parsley Pepperspray"
198
+ msgstr ""
199
+
200
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:101
201
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:202
202
+ msgid "Marketing Specialist"
203
+ msgstr ""
204
+
205
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:102
206
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:203
207
+ msgid ""
208
+ "Craft beer salvia celiac mlkshk. Pinterest celiac tumblr, portland salvia "
209
+ "skateboard cliche thundercats. Tattooed chia austin hell."
210
+ msgstr ""
211
+
212
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:129
213
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:230
214
+ msgid "Desmond Eagle"
215
+ msgstr ""
216
+
217
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:130
218
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:231
219
+ msgid "Graphic Designer"
220
+ msgstr ""
221
+
222
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:131
223
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:232
224
+ msgid ""
225
+ "Pok pok direct trade godard street art, poutine fam typewriter food truck "
226
+ "narwhal kombucha wolf cardigan butcher whatever pickled you."
227
+ msgstr ""
228
+
229
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:158
230
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:259
231
+ msgid "Ruby Von Rails"
232
+ msgstr ""
233
+
234
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:159
235
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:260
236
+ msgid "Lead Developer"
237
+ msgstr ""
238
+
239
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:160
240
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php:261
241
+ msgid ""
242
+ "Small batch vexillologist 90's blue bottle stumptown bespoke. Pok pok tilde "
243
+ "fixie chartreuse, VHS gluten-free selfies wolf hot."
244
+ msgstr ""
245
+
246
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:190
247
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:21
248
+ msgid "What clients say"
249
+ msgstr ""
250
+
251
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:201
252
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:125
253
+ msgid "Inverness McKenzie"
254
+ msgstr ""
255
+
256
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:202
257
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:126
258
+ msgid "Business Owner"
259
+ msgstr ""
260
+
261
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:203
262
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:127
263
+ msgid ""
264
+ "\"We have no regrets! After using your product my business skyrocketed! I "
265
+ "made back the purchase price in just 48 hours! I couldn't have asked for "
266
+ "more than this.\""
267
+ msgstr ""
268
+
269
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:208
270
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:132
271
+ msgid "Hanson Deck"
272
+ msgstr ""
273
+
274
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:209
275
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:133
276
+ msgid "Independent Artist"
277
+ msgstr ""
278
+
279
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:210
280
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:134
281
+ msgid ""
282
+ "\"Your company is truly upstanding and is behind its product 100 percent. "
283
+ "Hestia is worth much more than I paid. I like Hestia more each day because "
284
+ "it makes easier.\""
285
+ msgstr ""
286
+
287
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:215
288
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:139
289
+ msgid "Natalya Undergrowth"
290
+ msgstr ""
291
+
292
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:216
293
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:140
294
+ msgid "Freelancer"
295
+ msgstr ""
296
+
297
+ #: obfx_modules/companion-legacy/inc/hestia/inc/customizer.php:217
298
+ #: obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php:141
299
+ msgid ""
300
+ "\"Thank you for making it painless, pleasant and most of all hassle free! I "
301
+ "am so pleased with this product. Dude, your stuff is great! I will refer "
302
+ "everyone I know.\""
303
+ msgstr ""
304
+
305
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:26
306
+ msgid "Features"
307
+ msgstr ""
308
+
309
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:38
310
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:38
311
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:38
312
+ msgid "Disable section"
313
+ msgstr ""
314
+
315
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:49
316
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:49
317
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:49
318
+ msgid "Section Title"
319
+ msgstr ""
320
+
321
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:60
322
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:60
323
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:60
324
+ msgid "Section Subtitle"
325
+ msgstr ""
326
+
327
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:72
328
+ msgid "Features Content"
329
+ msgstr ""
330
+
331
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:75
332
+ msgid "Add new Feature"
333
+ msgstr ""
334
+
335
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-features-section.php:76
336
+ msgid "Feature"
337
+ msgstr ""
338
+
339
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:26
340
+ msgid "Team"
341
+ msgstr ""
342
+
343
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:72
344
+ msgid "Team Content"
345
+ msgstr ""
346
+
347
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:75
348
+ msgid "Add new Team Member"
349
+ msgstr ""
350
+
351
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-team-section.php:76
352
+ msgid "Team Member"
353
+ msgstr ""
354
+
355
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:26
356
+ msgid "Testimonials"
357
+ msgstr ""
358
+
359
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:72
360
+ msgid "Testimonials Content"
361
+ msgstr ""
362
+
363
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:75
364
+ msgid "Add new Testimonial"
365
+ msgstr ""
366
+
367
+ #: obfx_modules/companion-legacy/inc/hestia/inc/features/feature-testimonials-section.php:76
368
+ msgid "Testimonial"
369
+ msgstr ""
370
+
371
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:7
372
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:7
373
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:7
374
+ msgid "This widget is designed for footer area"
375
+ msgstr ""
376
+
377
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:10
378
+ msgid "[Rhea] About Company"
379
+ msgstr ""
380
+
381
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:94
382
+ msgid "Use website logo"
383
+ msgstr ""
384
+
385
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:97
386
+ msgid "Logo"
387
+ msgstr ""
388
+
389
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:98
390
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:148
391
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:216
392
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:372
393
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:226
394
+ msgid "Uploaded image"
395
+ msgstr ""
396
+
397
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:100
398
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:159
399
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:227
400
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:383
401
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:237
402
+ msgid "Upload Image"
403
+ msgstr ""
404
+
405
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php:103
406
+ msgid "Company Description"
407
+ msgstr ""
408
+
409
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:10
410
+ msgid "[Rhea] Contact"
411
+ msgstr ""
412
+
413
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:65
414
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:80
415
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:202
416
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:87
417
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php:62
418
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:167
419
+ msgid "Title"
420
+ msgstr ""
421
+
422
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:69
423
+ msgid "Company Adress"
424
+ msgstr ""
425
+
426
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:73
427
+ msgid "Google Maps URL"
428
+ msgstr ""
429
+
430
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:77
431
+ msgid "Email"
432
+ msgstr ""
433
+
434
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php:81
435
+ msgid "Phone"
436
+ msgstr ""
437
+
438
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:7
439
+ msgid "This widget is designed for Our focus section widgets"
440
+ msgstr ""
441
+
442
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:9
443
+ msgid "[Rhea] Our features widget"
444
+ msgstr ""
445
+
446
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:65
447
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:72
448
+ msgid "Icon"
449
+ msgstr ""
450
+
451
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:69
452
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:76
453
+ msgid "No icon selected :( ..."
454
+ msgstr ""
455
+
456
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:73
457
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:80
458
+ msgid "Select Icon"
459
+ msgstr ""
460
+
461
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:74
462
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:81
463
+ msgid "Change Icon"
464
+ msgstr ""
465
+
466
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:75
467
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:82
468
+ msgid "Remove"
469
+ msgstr ""
470
+
471
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:84
472
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:176
473
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:195
474
+ msgid "Text"
475
+ msgstr ""
476
+
477
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php:88
478
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:115
479
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:183
480
+ msgid "Link"
481
+ msgstr ""
482
+
483
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:9
484
+ msgid "[Rhea] Company Program"
485
+ msgstr ""
486
+
487
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:29
488
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:206
489
+ msgid "Monday"
490
+ msgstr ""
491
+
492
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:47
493
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:212
494
+ msgid "Tuesday"
495
+ msgstr ""
496
+
497
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:65
498
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:218
499
+ msgid "Wednesday"
500
+ msgstr ""
501
+
502
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:83
503
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:224
504
+ msgid "Thursday"
505
+ msgstr ""
506
+
507
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:101
508
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:230
509
+ msgid "Friday"
510
+ msgstr ""
511
+
512
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:119
513
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:236
514
+ msgid "Saturday"
515
+ msgstr ""
516
+
517
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:137
518
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:242
519
+ msgid "Sunday"
520
+ msgstr ""
521
+
522
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:208
523
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:214
524
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:220
525
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:226
526
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:232
527
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:238
528
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:244
529
+ msgid "From"
530
+ msgstr ""
531
+
532
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:209
533
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:215
534
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:221
535
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:227
536
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:233
537
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:239
538
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php:245
539
+ msgid "To"
540
+ msgstr ""
541
+
542
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:6
543
+ msgid "This widget is designed for Right Section sidebar"
544
+ msgstr ""
545
+
546
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:8
547
+ msgid "[Rhea] Icon Box"
548
+ msgstr ""
549
+
550
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:91
551
+ msgid "Subtitle"
552
+ msgstr ""
553
+
554
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php:96
555
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:285
556
+ msgid "Description"
557
+ msgstr ""
558
+
559
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php:6
560
+ msgid "This widget is designed for Progress Bar Section"
561
+ msgstr ""
562
+
563
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php:8
564
+ msgid "[Rhea] - Progress Bar"
565
+ msgstr ""
566
+
567
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php:66
568
+ msgid "Info"
569
+ msgstr ""
570
+
571
+ #: obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php:70
572
+ msgid "Percentage"
573
+ msgstr ""
574
+
575
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:24
576
+ msgid "Zerif - Clients widget"
577
+ msgstr ""
578
+
579
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:61
580
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:68
581
+ msgid "Client"
582
+ msgstr ""
583
+
584
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php:124
585
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:192
586
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:348
587
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:202
588
+ msgid "Image"
589
+ msgstr ""
590
+
591
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:24
592
+ msgid "Zerif - Our focus widget"
593
+ msgstr ""
594
+
595
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:65
596
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php:95
597
+ msgid "Go to"
598
+ msgstr ""
599
+
600
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:24
601
+ msgid "Zerif - Team member widget"
602
+ msgstr ""
603
+
604
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:124
605
+ msgid "Facebook account of"
606
+ msgstr ""
607
+
608
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:142
609
+ msgid "Twitter account of"
610
+ msgstr ""
611
+
612
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:160
613
+ msgid "Behance account of"
614
+ msgstr ""
615
+
616
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:178
617
+ msgid "Dribble account of"
618
+ msgstr ""
619
+
620
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:196
621
+ msgid "Linkedin account of"
622
+ msgstr ""
623
+
624
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:269
625
+ msgid "Name"
626
+ msgstr ""
627
+
628
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:278
629
+ msgid "Position"
630
+ msgstr ""
631
+
632
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:295
633
+ msgid "Facebook link"
634
+ msgstr ""
635
+
636
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:305
637
+ msgid "Twitter link"
638
+ msgstr ""
639
+
640
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:314
641
+ msgid "Behance link"
642
+ msgstr ""
643
+
644
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:324
645
+ msgid "Dribble link"
646
+ msgstr ""
647
+
648
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:333
649
+ msgid "Linkedin link"
650
+ msgstr ""
651
+
652
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php:343
653
+ msgid "Open links in new window?"
654
+ msgstr ""
655
+
656
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:24
657
+ msgid "Zerif - Testimonial widget"
658
+ msgstr ""
659
+
660
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:168
661
+ msgid "Author"
662
+ msgstr ""
663
+
664
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:177
665
+ msgid "Author link"
666
+ msgstr ""
667
+
668
+ #: obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php:186
669
+ msgid "Author details"
670
+ msgstr ""
671
+
672
+ #: obfx_modules/companion-legacy/init.php:30
673
+ msgid "Companion Legacy"
674
+ msgstr ""
675
+
676
+ #: obfx_modules/companion-legacy/init.php:31
677
+ msgid "Module containing legacy functionality from ThemeIsle Companion."
678
+ msgstr ""
679
+
680
+ #: obfx_modules/companion-legacy/init.php:151
681
+ msgid "Search icon"
682
+ msgstr ""
683
+
684
+ #: obfx_modules/companion-legacy/init.php:153
685
+ msgid "All Icons"
686
+ msgstr ""
687
+
688
+ #: obfx_modules/social-sharing/init.php:30
689
+ msgid "Social Sharing Module"
690
+ msgstr ""
691
+
692
+ #: obfx_modules/social-sharing/init.php:31
693
+ msgid "Add basic social sharing to your posts and pages."
694
+ msgstr ""
695
+
696
+ #: obfx_modules/social-sharing/views/hestia-social-sharing-tpl.php:37
697
+ msgid "Share on "
698
+ msgstr ""
699
+
700
+ #: obfx_modules/stats/init.php:27
701
+ msgid "Reports Module"
702
+ msgstr ""
703
+
704
+ #: obfx_modules/stats/init.php:28
705
+ msgid "A simple module for your WordPress data."
706
+ msgstr ""
707
+
708
+ #. Plugin URI of the plugin/theme
709
+ msgid "https://themeisle.com/plugins/orbit-fox-companion"
710
+ msgstr ""
711
+
712
+ #. Description of the plugin/theme
713
+ msgid "Enhances ThemeIsle's themes with extra functionality."
714
+ msgstr ""
715
+
716
+ #. Author of the plugin/theme
717
+ msgid "Themeisle"
718
+ msgstr ""
719
+
720
+ #. Author URI of the plugin/theme
721
+ msgid "https://themeisle.com"
722
+ msgstr ""
obfx_modules/companion-legacy/assets/js/widget-media.js ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global jQuery */
2
+ /* global wp */
3
+ jQuery( document ).ready( function($) {
4
+ 'use strict';
5
+
6
+ $( document ).on('change','.custom_media_url',function() {
7
+ var value = $.trim( $( this ).val() );
8
+ var image_input = $( this ).parent().find( '.custom_media_image' );
9
+ var media_id = $( this ).parent().parent().find( '.custom_media_id' );
10
+ if (value.length === 0) {
11
+ image_input.attr( 'src','' );
12
+ image_input.attr( 'alt','' );
13
+ media_id.val( '' );
14
+ }
15
+ var saveBtn = $( this ).closest( '.form' ).find( '.widget-control-save' );
16
+ if (typeof saveBtn !== 'undefined') {
17
+ saveBtn.trigger( "click" );
18
+ }
19
+ });
20
+
21
+ function media_upload(button_class) {
22
+ var _custom_media = true;
23
+
24
+ $( 'body' ).on('click', button_class, function() {
25
+
26
+ var button_id = '#' + $( this ).attr( 'id' );
27
+ var media_id = jQuery( this ).parent().parent().children( '.custom_media_id' );
28
+ var display_field = jQuery( this ).parent().children( 'input:text' );
29
+ var display_image = jQuery( this ).parent().children( '.custom_media_image' );
30
+ var image_in_customizer = jQuery( this ).parent().children( '.custom_media_display_in_customizer' );
31
+
32
+ _custom_media = true;
33
+
34
+ wp.media.editor.send.attachment = function(props, attachment) {
35
+ if ( typeof attachment !== 'undefined' ) {
36
+ if ( _custom_media ) {
37
+ if ( typeof display_field !== 'undefined' ) {
38
+
39
+ if ( typeof attachment.id !== 'undefined' ) {
40
+ media_id.val( attachment.id );
41
+ }
42
+
43
+ if ( typeof attachment.sizes !== 'undefined' ) {
44
+ if ( typeof attachment.sizes.thumbnail !== 'undefined' ) {
45
+ if (typeof(attachment.sizes.thumbnail.url) !== 'undefined') {
46
+ display_image.attr( 'src', attachment.sizes.thumbnail.url ).css( 'display', 'block' );
47
+ image_in_customizer.val( attachment.sizes.thumbnail.url );
48
+ }
49
+ } else {
50
+ if ( typeof attachment.url !== 'undefined' ) {
51
+ display_image.attr( 'src', attachment.url ).css( 'display', 'block' );
52
+ image_in_customizer.val( attachment.url );
53
+ }
54
+ }
55
+ } else {
56
+ if ( typeof attachment.url !== 'undefined' ) {
57
+ display_image.attr( 'src', attachment.url ).css( 'display', 'block' );
58
+ image_in_customizer.val( attachment.url );
59
+ }
60
+ }
61
+
62
+ switch (props.size) {
63
+ case 'full':
64
+ display_field.val( attachment.sizes.full.url );
65
+ break;
66
+ case 'medium':
67
+ display_field.val( attachment.sizes.medium.url );
68
+ break;
69
+ case 'thumbnail':
70
+ display_field.val( attachment.sizes.thumbnail.url );
71
+ break;
72
+ default:
73
+ display_field.val( attachment.url );
74
+ break;
75
+ }
76
+ display_field.trigger( 'change' );
77
+ }// End if().
78
+ } else {
79
+ return wp.media.editor.send.attachment( button_id, [props, attachment] );
80
+ }// End if().
81
+ }// End if().
82
+ };
83
+
84
+ wp.media.editor.open( button_class );
85
+ window.send_to_editor = function (html) {
86
+
87
+ };
88
+ return false;
89
+ });
90
+ }
91
+
92
+ media_upload( '.custom_media_button' );
93
+ });
inc/hestia/hestia-functions.php → obfx_modules/companion-legacy/inc/hestia/functions.php RENAMED
@@ -14,14 +14,14 @@ function themeisle_hestia_require() {
14
  if ( function_exists( 'hestia_setup_theme' ) ) {
15
 
16
  // Require Zerif > Hestia content importer if it exists.
17
- $zerif_importer_path = THEMEISLE_COMPANION_PATH. 'inc/hestia/inc/features/import-zerif-content.php';
18
  if ( file_exists( $zerif_importer_path ) ) {
19
  require_once( $zerif_importer_path );
20
  }
21
 
22
  // Require Hestia Features section and customizer settings.
23
- $features_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/features/feature-features-section.php';
24
- $customizer_features_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/sections/hestia-features-section.php';
25
  if ( file_exists( $features_path ) ) {
26
  require_once( $features_path );
27
  }
@@ -30,8 +30,8 @@ function themeisle_hestia_require() {
30
  }
31
 
32
  // Require Hestia Testimonials section and customizer settings.
33
- $testimonials_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/features/feature-testimonials-section.php';
34
- $customizer_testimonials_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/sections/hestia-testimonials-section.php';
35
  if ( file_exists( $testimonials_path ) ) {
36
  require_once( $testimonials_path );
37
  }
@@ -40,8 +40,8 @@ function themeisle_hestia_require() {
40
  }
41
 
42
  // Require Hestia Team section and customizer settings.
43
- $team_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/features/feature-team-section.php';
44
- $customizer_team_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/sections/hestia-team-section.php';
45
  if ( file_exists( $team_path ) ) {
46
  require_once( $team_path );
47
  }
@@ -50,22 +50,20 @@ function themeisle_hestia_require() {
50
  }
51
 
52
  // Require Hestia Customizer extension.
53
- $customizer_path = THEMEISLE_COMPANION_PATH . 'inc/hestia/inc/customizer.php';
54
  if ( file_exists( $customizer_path ) ) {
55
  require_once( $customizer_path );
56
  }
57
- }
58
  }
59
 
60
- add_action( 'after_setup_theme', 'themeisle_hestia_require' );
61
-
62
  /**
63
  * Set Front page displays option to A static page
64
  */
65
  function themeisle_hestia_set_frontpage() {
66
  if ( function_exists( 'hestia_setup_theme' ) ) {
67
- $is_fresh_site = get_option('fresh_site');
68
- if ( (bool)$is_fresh_site === false ) {
69
  $frontpage_title = esc_html__( 'Front Page', 'themeisle-companion' );
70
  $front_id = themeisle_hestia_create_page( 'hestia-front', $frontpage_title );
71
  $blogpage_title = esc_html__( 'Blog', 'themeisle-companion' );
@@ -82,24 +80,23 @@ function themeisle_hestia_set_frontpage() {
82
  }
83
  }
84
 
85
- add_action( 'after_switch_theme', 'themeisle_hestia_set_frontpage' );
86
-
87
  /**
88
  * Function that checks if a page with a slug exists. If not, it create one.
 
89
  * @param string $slug Page slug.
90
  * @param string $page_title Page title.
91
  * @return int
92
  */
93
- function themeisle_hestia_create_page( $slug, $page_title ){
94
- //Check if page exists
95
  $args = array(
96
  'name' => $slug,
97
  'post_type' => 'page',
98
  'post_status' => 'publish',
99
- 'numberposts' => 1
100
  );
101
- $post = get_posts($args);
102
- if( !empty( $post ) ) {
103
  $page_id = $post[0]->ID;
104
  } else {
105
  // Page doesn't exist. Create one.
14
  if ( function_exists( 'hestia_setup_theme' ) ) {
15
 
16
  // Require Zerif > Hestia content importer if it exists.
17
+ $zerif_importer_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/features/import-zerif-content.php';
18
  if ( file_exists( $zerif_importer_path ) ) {
19
  require_once( $zerif_importer_path );
20
  }
21
 
22
  // Require Hestia Features section and customizer settings.
23
+ $features_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/features/feature-features-section.php';
24
+ $customizer_features_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/sections/hestia-features-section.php';
25
  if ( file_exists( $features_path ) ) {
26
  require_once( $features_path );
27
  }
30
  }
31
 
32
  // Require Hestia Testimonials section and customizer settings.
33
+ $testimonials_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/features/feature-testimonials-section.php';
34
+ $customizer_testimonials_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/sections/hestia-testimonials-section.php';
35
  if ( file_exists( $testimonials_path ) ) {
36
  require_once( $testimonials_path );
37
  }
40
  }
41
 
42
  // Require Hestia Team section and customizer settings.
43
+ $team_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/features/feature-team-section.php';
44
+ $customizer_team_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/sections/hestia-team-section.php';
45
  if ( file_exists( $team_path ) ) {
46
  require_once( $team_path );
47
  }
50
  }
51
 
52
  // Require Hestia Customizer extension.
53
+ $customizer_path = THEMEISLE_COMPANION_PATH . 'hestia/inc/customizer.php';
54
  if ( file_exists( $customizer_path ) ) {
55
  require_once( $customizer_path );
56
  }
57
+ }// End if().
58
  }
59
 
 
 
60
  /**
61
  * Set Front page displays option to A static page
62
  */
63
  function themeisle_hestia_set_frontpage() {
64
  if ( function_exists( 'hestia_setup_theme' ) ) {
65
+ $is_fresh_site = get_option( 'fresh_site' );
66
+ if ( (bool) $is_fresh_site === false ) {
67
  $frontpage_title = esc_html__( 'Front Page', 'themeisle-companion' );
68
  $front_id = themeisle_hestia_create_page( 'hestia-front', $frontpage_title );
69
  $blogpage_title = esc_html__( 'Blog', 'themeisle-companion' );
80
  }
81
  }
82
 
 
 
83
  /**
84
  * Function that checks if a page with a slug exists. If not, it create one.
85
+ *
86
  * @param string $slug Page slug.
87
  * @param string $page_title Page title.
88
  * @return int
89
  */
90
+ function themeisle_hestia_create_page( $slug, $page_title ) {
91
+ // Check if page exists
92
  $args = array(
93
  'name' => $slug,
94
  'post_type' => 'page',
95
  'post_status' => 'publish',
96
+ 'numberposts' => 1,
97
  );
98
+ $post = get_posts( $args );
99
+ if ( ! empty( $post ) ) {
100
  $page_id = $post[0]->ID;
101
  } else {
102
  // Page doesn't exist. Create one.
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/customizer.php RENAMED
File without changes
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-features-section.php RENAMED
File without changes
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-team-section.php RENAMED
File without changes
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/feature-testimonials-section.php RENAMED
File without changes
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/features/import-zerif-content.php RENAMED
@@ -118,16 +118,16 @@ function hestia_import_simple_theme_mods( $content ) {
118
  /* END OF SLIDER IMPORT */
119
 
120
  /* Import the "Big Title" section */
121
- if( ! empty( $content['background_image'] ) ) {
122
  set_theme_mod( 'hestia_big_title_background', $content['background_image'] );
123
  }
124
- if( ! empty( $big_title_text ) ) {
125
  set_theme_mod( 'hestia_big_title_title', $big_title_text );
126
  }
127
- if( ! empty( $big_title_button_text ) ) {
128
  set_theme_mod( 'hestia_big_title_button_text', $big_title_button_text );
129
  }
130
- if( ! empty( $big_title_button_link ) ) {
131
  set_theme_mod( 'hestia_big_title_button_link', $big_title_button_link );
132
  }
133
  set_theme_mod( 'hestia_big_title_text', '' );
@@ -664,7 +664,7 @@ function hestia_import_about_us_content( $content, $widget_ids ) {
664
  if ( ! empty( $widget_content['link'] ) ) {
665
  $output .= '</a>';
666
  }
667
- $output .='</div>';
668
  }
669
  }
670
  $output .= '</div>';
118
  /* END OF SLIDER IMPORT */
119
 
120
  /* Import the "Big Title" section */
121
+ if ( ! empty( $content['background_image'] ) ) {
122
  set_theme_mod( 'hestia_big_title_background', $content['background_image'] );
123
  }
124
+ if ( ! empty( $big_title_text ) ) {
125
  set_theme_mod( 'hestia_big_title_title', $big_title_text );
126
  }
127
+ if ( ! empty( $big_title_button_text ) ) {
128
  set_theme_mod( 'hestia_big_title_button_text', $big_title_button_text );
129
  }
130
+ if ( ! empty( $big_title_button_link ) ) {
131
  set_theme_mod( 'hestia_big_title_button_link', $big_title_button_link );
132
  }
133
  set_theme_mod( 'hestia_big_title_text', '' );
664
  if ( ! empty( $widget_content['link'] ) ) {
665
  $output .= '</a>';
666
  }
667
+ $output .= '</div>';
668
  }
669
  }
670
  $output .= '</div>';
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-features-section.php RENAMED
@@ -91,7 +91,7 @@ function hestia_features_content( $hestia_features_content, $is_callback = false
91
  $link = ! empty( $features_item->link ) ? apply_filters( 'hestia_translate_single_string', $features_item->link, 'Features section' ) : '';
92
 
93
  $color = '';
94
- if ( is_customize_preview() && ! empty( $features_item->color ) ) {
95
  $color = $features_item->color;
96
  }
97
  ?>
91
  $link = ! empty( $features_item->link ) ? apply_filters( 'hestia_translate_single_string', $features_item->link, 'Features section' ) : '';
92
 
93
  $color = '';
94
+ if ( ! empty( $features_item->color ) ) {
95
  $color = $features_item->color;
96
  }
97
  ?>
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-team-section.php RENAMED
File without changes
{inc → obfx_modules/companion-legacy/inc}/hestia/inc/sections/hestia-testimonials-section.php RENAMED
File without changes
obfx_modules/companion-legacy/inc/rhea/assets/css/admin-style.css ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #fontawesome-popup {
2
+ display: none;
3
+ height: 520px;
4
+ }
5
+
6
+ #fontawesome-popup:after {
7
+ display: block;
8
+ clear: both;
9
+ content: "";
10
+ }
11
+
12
+ .ui-widget-overlay {
13
+ position: fixed;
14
+ z-index: 999998;
15
+ top: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ background: rgba( 0,0,0,0.4 );
19
+ }
20
+
21
+ .rhea-fontawesome-dialog {
22
+ z-index: 999999;
23
+ background: #fcfcfc;
24
+ -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7);
25
+ box-shadow: 0 5px 15px rgba(0,0,0,0.7);
26
+ }
27
+
28
+ .rhea-fontawesome-dialog .ui-dialog-titlebar {
29
+ margin: 0;
30
+ padding: 0 15px;
31
+ border-bottom: 1px solid #ddd;
32
+ color: #23282d;
33
+ font-size: 22px;
34
+ font-weight: 600;
35
+ line-height: 50px;
36
+ }
37
+
38
+ .rhea-fontawesome-dialog .ui-dialog-titlebar .ui-button {
39
+ float: right;
40
+ }
41
+
42
+ #fontawesome-popup .left-side {
43
+ float: left;
44
+ -webkit-box-sizing: border-box;
45
+ box-sizing: border-box;
46
+ width: 20%;
47
+ padding: 15px;
48
+ }
49
+
50
+ #fontawesome-popup .right-side {
51
+ float: left;
52
+ overflow-y: scroll;
53
+ -webkit-box-sizing: border-box;
54
+ box-sizing: border-box;
55
+ width: 80%;
56
+ height: 507px;
57
+ padding: 15px;
58
+ border-left: 1px solid #ccc;
59
+ background: #fff;
60
+ }
61
+
62
+ .ui-dialog.rhea-fontawesome-dialog .ui-dialog-titlebar-close {
63
+ margin: 14px 0;
64
+ padding-right: 0;
65
+ border: 0 none;
66
+ background: transparent;
67
+ -webkit-box-shadow: none;
68
+ box-shadow: none;
69
+ cursor: pointer;
70
+ }
71
+
72
+ .ui-dialog.rhea-fontawesome-dialog .ui-button-icon-only .ui-icon:after {
73
+ display: block;
74
+ top: 0;
75
+ left: 0;
76
+ width: 20px;
77
+ height: 20px;
78
+ color: #23282d;
79
+ font-family: "dashicons";
80
+ font-size: 20px;
81
+ text-indent: 1px;
82
+ content: "\f158";
83
+ }
84
+
85
+ .ui-dialog.rhea-fontawesome-dialog .ui-button-text {
86
+ display: none;
87
+ }
88
+
89
+ .filter-icons li {
90
+ cursor: pointer;
91
+ }
92
+
93
+ .filter-icons li.active {
94
+ font-weight: bold;
95
+ }
96
+
97
+ a.rhea-fontawesome-icon {
98
+ display: inline-block;
99
+ width: 5%;
100
+ margin-bottom: 10px;
101
+ padding: 5px 0;
102
+ font-size: 20px;
103
+ text-align: center;
104
+ }
105
+
106
+ a.rhea-fontawesome-icon:hover {
107
+ color: #fff;
108
+ background-color: #ccc;
109
+ }
110
+
111
+ /* Style Input */
112
+ .icon-holder p {
113
+ margin: 0;
114
+ padding: 20px 0;
115
+ border: 1px dashed #ccc;
116
+ color: rgba( 0,0,0,0.6 );
117
+ text-align: center;
118
+ }
119
+
120
+ .empty-icon .change-icon-button,
121
+ .empty-icon .remove-icon-button,
122
+ .icon-holder p,
123
+ .empty-icon i,
124
+ .wp-core-ui .actions .button.add-icon-button {
125
+ display: none;
126
+ }
127
+
128
+ .empty-icon .icon-holder p {
129
+ display: block;
130
+ }
131
+
132
+ .wp-core-ui .empty-icon .actions .button.add-icon-button {
133
+ display: inline-block;
134
+ }
135
+
136
+ .fontawesome-icon-container .actions {
137
+ text-align: right;
138
+ }
139
+
140
+ .icon-holder {
141
+ margin: 20px 0;
142
+ text-align: center;
143
+ }
144
+
145
+ .icon-holder i {
146
+ font-size: 50px;
147
+ }
obfx_modules/companion-legacy/inc/rhea/assets/js/fontawesome.jquery.js ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready(function($){
2
+
3
+ var currentCategories = [];
4
+
5
+ $.each( icons.icons, function(index,el){
6
+
7
+ var currentIconCategories = '';
8
+
9
+ // collect all icons' categories
10
+ $.each(el.categories, function(c_index,category){
11
+ var aux = category.toLowerCase();
12
+ aux = aux.replace( /\s+/g, '-' );
13
+ currentIconCategories = currentIconCategories + aux + ' ';
14
+ if ( $.inArray( category, currentCategories ) < 0 ) {
15
+ currentCategories.push( category );
16
+ }
17
+ });
18
+
19
+ if ( el.filter != undefined ) {
20
+ var search = el.filter;
21
+ search.push( el.name );
22
+ search = search.join( ' ' );
23
+ } else {
24
+ var search = el.name;
25
+ }
26
+
27
+ var css_class = 'fa fa-' + el.id;
28
+ var icon_html = '<a href="#" data-search="' + search + '" data-class="' + css_class + '" class="' + currentIconCategories + 'rhea-fontawesome-icon"><i class="' + css_class + '"></i></a>';
29
+ $( '#fontawesome-popup .right-side' ).append( icon_html );
30
+
31
+ });
32
+
33
+ currentCategories.sort();
34
+
35
+ $.each(currentCategories, function( index, category ){
36
+ var aux = category.toLowerCase();
37
+ aux = aux.replace( /\s+/g, '-' );
38
+ $( '.filter-icons' ).append( '<li data-filter="' + aux + '">' + category + '</li>' );
39
+ });
40
+
41
+ $( '#fontawesome-popup .filter-icons li' ).live('click', function(){
42
+ $( '#fontawesome-popup .filter-icons li.active' ).removeClass( 'active' );
43
+ $( this ).addClass( 'active' );
44
+ var filter = $( this ).data( 'filter' );
45
+ if ( filter != 'all' ) {
46
+ $( '#fontawesome-popup .rhea-fontawesome-icon.' + filter ).show();
47
+ $( '#fontawesome-popup .rhea-fontawesome-icon' ).not( '.' + filter ).hide();
48
+ } else {
49
+ $( '#fontawesome-popup .rhea-fontawesome-icon' ).show();
50
+ }
51
+ });
52
+
53
+ var Rhea_FP = {'element':''};
54
+
55
+ Rhea_FP.open = function( element ){
56
+ Rhea_FP.element = element;
57
+ $( "#fontawesome-popup" ).dialog({
58
+ title: "Select Icon",
59
+ resizable: false,
60
+ minHeight: 520,
61
+ width: 980,
62
+ modal: true,
63
+ closeOnEscape: true,
64
+ dialogClass: 'rhea-fontawesome-dialog',
65
+ });
66
+ };
67
+
68
+ Rhea_FP.close = function(){
69
+ Rhea_FP.element = '';
70
+ $( "#fontawesome-popup" ).dialog( "close" );
71
+ };
72
+
73
+ $( '.add-icon-button' ).live('click', function(){
74
+ var parent = $( this ).parent().parent();
75
+ Rhea_FP.open( parent );
76
+ });
77
+
78
+ $( '.rhea-fontawesome-icon' ).live('click', function( evt ){
79
+ evt.preventDefault();
80
+ var icon = $( this ).data( 'class' );
81
+ Rhea_FP.element.removeClass( 'empty-icon' );
82
+ Rhea_FP.element.find( 'input' ).val( icon );
83
+ Rhea_FP.element.find( '.icon-holder i' ).attr( 'class', icon );
84
+ Rhea_FP.close();
85
+ });
86
+
87
+ $( '.change-icon-button' ).live('click', function(){
88
+ var parent = $( this ).parent().parent();
89
+ Rhea_FP.open( parent );
90
+ });
91
+
92
+ $( '.remove-icon-button' ).live('click', function(){
93
+ $( this ).parent().parent().addClass( 'empty-icon' );
94
+ $( this ).parent().parent().find( 'input' ).val( '' );
95
+ });
96
+
97
+ });
obfx_modules/companion-legacy/inc/rhea/assets/js/icons.js ADDED
@@ -0,0 +1,3790 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var icons = { icons:
2
+ [ { name: 'Glass',
3
+ id: 'glass',
4
+ unicode: 'f000',
5
+ created: 1,
6
+ filter: [ 'martini', 'drink', 'bar', 'alcohol', 'liquor' ],
7
+ categories: [ 'Web Application Icons' ] },
8
+ { name: 'Music',
9
+ id: 'music',
10
+ unicode: 'f001',
11
+ created: 1,
12
+ filter: [ 'note', 'sound' ],
13
+ categories: [ 'Web Application Icons' ] },
14
+ { name: 'Search',
15
+ id: 'search',
16
+ unicode: 'f002',
17
+ created: 1,
18
+ filter: [ 'magnify', 'zoom', 'enlarge', 'bigger' ],
19
+ categories: [ 'Web Application Icons' ] },
20
+ { name: 'Envelope Outlined',
21
+ id: 'envelope-o',
22
+ unicode: 'f003',
23
+ created: 1,
24
+ filter: [ 'email', 'support', 'e-mail', 'letter', 'mail', 'notification' ],
25
+ categories: [ 'Web Application Icons' ] },
26
+ { name: 'Heart',
27
+ id: 'heart',
28
+ unicode: 'f004',
29
+ created: 1,
30
+ filter: [ 'love', 'like', 'favorite' ],
31
+ categories: [ 'Web Application Icons', 'Medical Icons' ] },
32
+ { name: 'Star',
33
+ id: 'star',
34
+ unicode: 'f005',
35
+ created: 1,
36
+ filter: [ 'award', 'achievement', 'night', 'rating', 'score', 'favorite' ],
37
+ categories: [ 'Web Application Icons' ] },
38
+ { name: 'Star Outlined',
39
+ id: 'star-o',
40
+ unicode: 'f006',
41
+ created: 1,
42
+ filter: [ 'award', 'achievement', 'night', 'rating', 'score', 'favorite' ],
43
+ categories: [ 'Web Application Icons' ] },
44
+ { name: 'User',
45
+ id: 'user',
46
+ unicode: 'f007',
47
+ created: 1,
48
+ filter: [ 'person', 'man', 'head', 'profile' ],
49
+ categories: [ 'Web Application Icons' ] },
50
+ { name: 'Film',
51
+ id: 'film',
52
+ unicode: 'f008',
53
+ created: 1,
54
+ filter: [ 'movie' ],
55
+ categories: [ 'Web Application Icons' ] },
56
+ { name: 'th-large',
57
+ id: 'th-large',
58
+ unicode: 'f009',
59
+ created: 1,
60
+ filter: [ 'blocks', 'squares', 'boxes', 'grid' ],
61
+ categories: [ 'Text Editor Icons' ] },
62
+ { name: 'th',
63
+ id: 'th',
64
+ unicode: 'f00a',
65
+ created: 1,
66
+ filter: [ 'blocks', 'squares', 'boxes', 'grid' ],
67
+ categories: [ 'Text Editor Icons' ] },
68
+ { name: 'th-list',
69
+ id: 'th-list',
70
+ unicode: 'f00b',
71
+ created: 1,
72
+ filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
73
+ categories: [ 'Text Editor Icons' ] },
74
+ { name: 'Check',
75
+ id: 'check',
76
+ unicode: 'f00c',
77
+ created: 1,
78
+ filter:
79
+ [ 'checkmark',
80
+ 'done',
81
+ 'todo',
82
+ 'agree',
83
+ 'accept',
84
+ 'confirm',
85
+ 'tick',
86
+ 'ok' ],
87
+ categories: [ 'Web Application Icons' ] },
88
+ { name: 'Times',
89
+ id: 'times',
90
+ unicode: 'f00d',
91
+ created: 1,
92
+ aliases: [ 'remove', 'close' ],
93
+ filter: [ 'close', 'exit', 'x', 'cross' ],
94
+ categories: [ 'Web Application Icons' ] },
95
+ { name: 'Search Plus',
96
+ id: 'search-plus',
97
+ unicode: 'f00e',
98
+ created: 1,
99
+ filter: [ 'magnify', 'zoom', 'enlarge', 'bigger' ],
100
+ categories: [ 'Web Application Icons' ] },
101
+ { name: 'Search Minus',
102
+ id: 'search-minus',
103
+ unicode: 'f010',
104
+ created: 1,
105
+ filter: [ 'magnify', 'minify', 'zoom', 'smaller' ],
106
+ categories: [ 'Web Application Icons' ] },
107
+ { name: 'Power Off',
108
+ id: 'power-off',
109
+ unicode: 'f011',
110
+ created: 1,
111
+ filter: [ 'on' ],
112
+ categories: [ 'Web Application Icons' ] },
113
+ { name: 'signal',
114
+ id: 'signal',
115
+ unicode: 'f012',
116
+ created: 1,
117
+ filter: [ 'graph', 'bars' ],
118
+ categories: [ 'Web Application Icons' ] },
119
+ { name: 'cog',
120
+ id: 'cog',
121
+ unicode: 'f013',
122
+ created: 1,
123
+ filter: [ 'settings' ],
124
+ aliases: [ 'gear' ],
125
+ categories: [ 'Web Application Icons', 'Spinner Icons' ] },
126
+ { name: 'Trash Outlined',
127
+ id: 'trash-o',
128
+ unicode: 'f014',
129
+ created: 1,
130
+ filter: [ 'garbage', 'delete', 'remove', 'trash', 'hide' ],
131
+ categories: [ 'Web Application Icons' ] },
132
+ { name: 'home',
133
+ id: 'home',
134
+ unicode: 'f015',
135
+ created: 1,
136
+ filter: [ 'main', 'house' ],
137
+ categories: [ 'Web Application Icons' ] },
138
+ { name: 'File Outlined',
139
+ id: 'file-o',
140
+ unicode: 'f016',
141
+ created: 1,
142
+ filter: [ 'new', 'page', 'pdf', 'document' ],
143
+ categories: [ 'Text Editor Icons', 'File Type Icons' ] },
144
+ { name: 'Clock Outlined',
145
+ id: 'clock-o',
146
+ unicode: 'f017',
147
+ created: 1,
148
+ filter: [ 'watch', 'timer', 'late', 'timestamp' ],
149
+ categories: [ 'Web Application Icons' ] },
150
+ { name: 'road',
151
+ id: 'road',
152
+ unicode: 'f018',
153
+ created: 1,
154
+ filter: [ 'street' ],
155
+ categories: [ 'Web Application Icons' ] },
156
+ { name: 'Download',
157
+ id: 'download',
158
+ unicode: 'f019',
159
+ created: 1,
160
+ filter: [ 'import' ],
161
+ categories: [ 'Web Application Icons' ] },
162
+ { name: 'Arrow Circle Outlined Down',
163
+ id: 'arrow-circle-o-down',
164
+ unicode: 'f01a',
165
+ created: 1,
166
+ filter: [ 'download' ],
167
+ categories: [ 'Directional Icons' ] },
168
+ { name: 'Arrow Circle Outlined Up',
169
+ id: 'arrow-circle-o-up',
170
+ unicode: 'f01b',
171
+ created: 1,
172
+ categories: [ 'Directional Icons' ] },
173
+ { name: 'inbox',
174
+ id: 'inbox',
175
+ unicode: 'f01c',
176
+ created: 1,
177
+ categories: [ 'Web Application Icons' ] },
178
+ { name: 'Play Circle Outlined',
179
+ id: 'play-circle-o',
180
+ unicode: 'f01d',
181
+ created: 1,
182
+ categories: [ 'Video Player Icons' ] },
183
+ { name: 'Repeat',
184
+ id: 'repeat',
185
+ unicode: 'f01e',
186
+ created: 1,
187
+ filter: [ 'redo', 'forward' ],
188
+ aliases: [ 'rotate-right' ],
189
+ categories: [ 'Text Editor Icons' ] },
190
+ { name: 'refresh',
191
+ id: 'refresh',
192
+ unicode: 'f021',
193
+ created: 1,
194
+ filter: [ 'reload', 'sync' ],
195
+ categories: [ 'Web Application Icons', 'Spinner Icons' ] },
196
+ { name: 'list-alt',
197
+ id: 'list-alt',
198
+ unicode: 'f022',
199
+ created: 1,
200
+ filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
201
+ categories: [ 'Text Editor Icons' ] },
202
+ { name: 'lock',
203
+ id: 'lock',
204
+ unicode: 'f023',
205
+ created: 1,
206
+ filter: [ 'protect', 'admin' ],
207
+ categories: [ 'Web Application Icons' ] },
208
+ { name: 'flag',
209
+ id: 'flag',
210
+ unicode: 'f024',
211
+ created: 1,
212
+ filter: [ 'report', 'notification', 'notify' ],
213
+ categories: [ 'Web Application Icons' ] },
214
+ { name: 'headphones',
215
+ id: 'headphones',
216
+ unicode: 'f025',
217
+ created: 1,
218
+ filter: [ 'sound', 'listen', 'music', 'audio' ],
219
+ categories: [ 'Web Application Icons' ] },
220
+ { name: 'volume-off',
221
+ id: 'volume-off',
222
+ unicode: 'f026',
223
+ created: 1,
224
+ filter: [ 'audio', 'mute', 'sound', 'music' ],
225
+ categories: [ 'Web Application Icons' ] },
226
+ { name: 'volume-down',
227
+ id: 'volume-down',
228
+ unicode: 'f027',
229
+ created: 1,
230
+ filter: [ 'audio', 'lower', 'quieter', 'sound', 'music' ],
231
+ categories: [ 'Web Application Icons' ] },
232
+ { name: 'volume-up',
233
+ id: 'volume-up',
234
+ unicode: 'f028',
235
+ created: 1,
236
+ filter: [ 'audio', 'higher', 'louder', 'sound', 'music' ],
237
+ categories: [ 'Web Application Icons' ] },
238
+ { name: 'qrcode',
239
+ id: 'qrcode',
240
+ unicode: 'f029',
241
+ created: 1,
242
+ filter: [ 'scan' ],
243
+ categories: [ 'Web Application Icons' ] },
244
+ { name: 'barcode',
245
+ id: 'barcode',
246
+ unicode: 'f02a',
247
+ created: 1,
248
+ filter: [ 'scan' ],
249
+ categories: [ 'Web Application Icons' ] },
250
+ { name: 'tag',
251
+ id: 'tag',
252
+ unicode: 'f02b',
253
+ created: 1,
254
+ filter: [ 'label' ],
255
+ categories: [ 'Web Application Icons' ] },
256
+ { name: 'tags',
257
+ id: 'tags',
258
+ unicode: 'f02c',
259
+ created: 1,
260
+ filter: [ 'labels' ],
261
+ categories: [ 'Web Application Icons' ] },
262
+ { name: 'book',
263
+ id: 'book',
264
+ unicode: 'f02d',
265
+ created: 1,
266
+ filter: [ 'read', 'documentation' ],
267
+ categories: [ 'Web Application Icons' ] },
268
+ { name: 'bookmark',
269
+ id: 'bookmark',
270
+ unicode: 'f02e',
271
+ created: 1,
272
+ filter: [ 'save' ],
273
+ categories: [ 'Web Application Icons' ] },
274
+ { name: 'print',
275
+ id: 'print',
276
+ unicode: 'f02f',
277
+ created: 1,
278
+ categories: [ 'Web Application Icons' ] },
279
+ { name: 'camera',
280
+ id: 'camera',
281
+ unicode: 'f030',
282
+ created: 1,
283
+ filter: [ 'photo', 'picture', 'record' ],
284
+ categories: [ 'Web Application Icons' ] },
285
+ { name: 'font',
286
+ id: 'font',
287
+ unicode: 'f031',
288
+ created: 1,
289
+ filter: [ 'text' ],
290
+ categories: [ 'Text Editor Icons' ] },
291
+ { name: 'bold',
292
+ id: 'bold',
293
+ unicode: 'f032',
294
+ created: 1,
295
+ categories: [ 'Text Editor Icons' ] },
296
+ { name: 'italic',
297
+ id: 'italic',
298
+ unicode: 'f033',
299
+ created: 1,
300
+ filter: [ 'italics' ],
301
+ categories: [ 'Text Editor Icons' ] },
302
+ { name: 'text-height',
303
+ id: 'text-height',
304
+ unicode: 'f034',
305
+ created: 1,
306
+ categories: [ 'Text Editor Icons' ] },
307
+ { name: 'text-width',
308
+ id: 'text-width',
309
+ unicode: 'f035',
310
+ created: 1,
311
+ categories: [ 'Text Editor Icons' ] },
312
+ { name: 'align-left',
313
+ id: 'align-left',
314
+ unicode: 'f036',
315
+ created: 1,
316
+ filter: [ 'text' ],
317
+ categories: [ 'Text Editor Icons' ] },
318
+ { name: 'align-center',
319
+ id: 'align-center',
320
+ unicode: 'f037',
321
+ created: 1,
322
+ filter: [ 'middle', 'text' ],
323
+ categories: [ 'Text Editor Icons' ] },
324
+ { name: 'align-right',
325
+ id: 'align-right',
326
+ unicode: 'f038',
327
+ created: 1,
328
+ filter: [ 'text' ],
329
+ categories: [ 'Text Editor Icons' ] },
330
+ { name: 'align-justify',
331
+ id: 'align-justify',
332
+ unicode: 'f039',
333
+ created: 1,
334
+ filter: [ 'text' ],
335
+ categories: [ 'Text Editor Icons' ] },
336
+ { name: 'list',
337
+ id: 'list',
338
+ unicode: 'f03a',
339
+ created: 1,
340
+ filter: [ 'ul', 'ol', 'checklist', 'finished', 'completed', 'done', 'todo' ],
341
+ categories: [ 'Text Editor Icons' ] },
342
+ { name: 'Outdent',
343
+ id: 'outdent',
344
+ unicode: 'f03b',
345
+ created: 1,
346
+ aliases: [ 'dedent' ],
347
+ categories: [ 'Text Editor Icons' ] },
348
+ { name: 'Indent',
349
+ id: 'indent',
350
+ unicode: 'f03c',
351
+ created: 1,
352
+ categories: [ 'Text Editor Icons' ] },
353
+ { name: 'Video Camera',
354
+ id: 'video-camera',
355
+ unicode: 'f03d',
356
+ created: 1,
357
+ filter: [ 'film', 'movie', 'record' ],
358
+ categories: [ 'Web Application Icons' ] },
359
+ { name: 'Picture Outlined',
360
+ id: 'picture-o',
361
+ unicode: 'f03e',
362
+ created: 1,
363
+ aliases: [ 'photo', 'image' ],
364
+ categories: [ 'Web Application Icons' ] },
365
+ { name: 'pencil',
366
+ id: 'pencil',
367
+ unicode: 'f040',
368
+ created: 1,
369
+ filter: [ 'write', 'edit', 'update' ],
370
+ categories: [ 'Web Application Icons' ] },
371
+ { name: 'map-marker',
372
+ id: 'map-marker',
373
+ unicode: 'f041',
374
+ created: 1,
375
+ filter:
376
+ [ 'map',
377
+ 'pin',
378
+ 'location',
379
+ 'coordinates',
380
+ 'localize',
381
+ 'address',
382
+ 'travel',
383
+ 'where',
384
+ 'place' ],
385
+ categories: [ 'Web Application Icons' ] },
386
+ { name: 'adjust',
387
+ id: 'adjust',
388
+ unicode: 'f042',
389
+ created: 1,
390
+ filter: [ 'contrast' ],
391
+ categories: [ 'Web Application Icons' ] },
392
+ { name: 'tint',
393
+ id: 'tint',
394
+ unicode: 'f043',
395
+ created: 1,
396
+ filter: [ 'raindrop', 'waterdrop', 'drop', 'droplet' ],
397
+ categories: [ 'Web Application Icons' ] },
398
+ { name: 'Pencil Square Outlined',
399
+ id: 'pencil-square-o',
400
+ unicode: 'f044',
401
+ created: 1,
402
+ filter: [ 'write', 'edit', 'update' ],
403
+ aliases: [ 'edit' ],
404
+ categories: [ 'Web Application Icons' ] },
405
+ { name: 'Share Square Outlined',
406
+ id: 'share-square-o',
407
+ unicode: 'f045',
408
+ created: 1,
409
+ filter: [ 'social', 'send', 'arrow' ],
410
+ categories: [ 'Web Application Icons' ] },
411
+ { name: 'Check Square Outlined',
412
+ id: 'check-square-o',
413
+ unicode: 'f046',
414
+ created: 1,
415
+ filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
416
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
417
+ { name: 'Arrows',
418
+ id: 'arrows',
419
+ unicode: 'f047',
420
+ created: 1,
421
+ filter: [ 'move', 'reorder', 'resize' ],
422
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
423
+ { name: 'step-backward',
424
+ id: 'step-backward',
425
+ unicode: 'f048',
426
+ created: 1,
427
+ filter: [ 'rewind', 'previous', 'beginning', 'start', 'first' ],
428
+ categories: [ 'Video Player Icons' ] },
429
+ { name: 'fast-backward',
430
+ id: 'fast-backward',
431
+ unicode: 'f049',
432
+ created: 1,
433
+ filter: [ 'rewind', 'previous', 'beginning', 'start', 'first' ],
434
+ categories: [ 'Video Player Icons' ] },
435
+ { name: 'backward',
436
+ id: 'backward',
437
+ unicode: 'f04a',
438
+ created: 1,
439
+ filter: [ 'rewind', 'previous' ],
440
+ categories: [ 'Video Player Icons' ] },
441
+ { name: 'play',
442
+ id: 'play',
443
+ unicode: 'f04b',
444
+ created: 1,
445
+ filter: [ 'start', 'playing', 'music', 'sound' ],
446
+ categories: [ 'Video Player Icons' ] },
447
+ { name: 'pause',
448
+ id: 'pause',
449
+ unicode: 'f04c',
450
+ created: 1,
451
+ filter: [ 'wait' ],
452
+ categories: [ 'Video Player Icons' ] },
453
+ { name: 'stop',
454
+ id: 'stop',
455
+ unicode: 'f04d',
456
+ created: 1,
457
+ filter: [ 'block', 'box', 'square' ],
458
+ categories: [ 'Video Player Icons' ] },
459
+ { name: 'forward',
460
+ id: 'forward',
461
+ unicode: 'f04e',
462
+ created: 1,
463
+ filter: [ 'forward', 'next' ],
464
+ categories: [ 'Video Player Icons' ] },
465
+ { name: 'fast-forward',
466
+ id: 'fast-forward',
467
+ unicode: 'f050',
468
+ created: 1,
469
+ filter: [ 'next', 'end', 'last' ],
470
+ categories: [ 'Video Player Icons' ] },
471
+ { name: 'step-forward',
472
+ id: 'step-forward',
473
+ unicode: 'f051',
474
+ created: 1,
475
+ filter: [ 'next', 'end', 'last' ],
476
+ categories: [ 'Video Player Icons' ] },
477
+ { name: 'eject',
478
+ id: 'eject',
479
+ unicode: 'f052',
480
+ created: 1,
481
+ categories: [ 'Video Player Icons' ] },
482
+ { name: 'chevron-left',
483
+ id: 'chevron-left',
484
+ unicode: 'f053',
485
+ created: 1,
486
+ filter: [ 'bracket', 'previous', 'back' ],
487
+ categories: [ 'Directional Icons' ] },
488
+ { name: 'chevron-right',
489
+ id: 'chevron-right',
490
+ unicode: 'f054',
491
+ created: 1,
492
+ filter: [ 'bracket', 'next', 'forward' ],
493
+ categories: [ 'Directional Icons' ] },
494
+ { name: 'Plus Circle',
495
+ id: 'plus-circle',
496
+ unicode: 'f055',
497
+ created: 1,
498
+ filter: [ 'add', 'new', 'create', 'expand' ],
499
+ categories: [ 'Web Application Icons' ] },
500
+ { name: 'Minus Circle',
501
+ id: 'minus-circle',
502
+ unicode: 'f056',
503
+ created: 1,
504
+ filter: [ 'delete', 'remove', 'trash', 'hide' ],
505
+ categories: [ 'Web Application Icons' ] },
506
+ { name: 'Times Circle',
507
+ id: 'times-circle',
508
+ unicode: 'f057',
509
+ created: 1,
510
+ filter: [ 'close', 'exit', 'x' ],
511
+ categories: [ 'Web Application Icons' ] },
512
+ { name: 'Check Circle',
513
+ id: 'check-circle',
514
+ unicode: 'f058',
515
+ created: 1,
516
+ filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
517
+ categories: [ 'Web Application Icons' ] },
518
+ { name: 'Question Circle',
519
+ id: 'question-circle',
520
+ unicode: 'f059',
521
+ filter: [ 'help', 'information', 'unknown', 'support' ],
522
+ created: 1,
523
+ categories: [ 'Web Application Icons' ] },
524
+ { name: 'Info Circle',
525
+ id: 'info-circle',
526
+ unicode: 'f05a',
527
+ created: 1,
528
+ filter: [ 'help', 'information', 'more', 'details' ],
529
+ categories: [ 'Web Application Icons' ] },
530
+ { name: 'Crosshairs',
531
+ id: 'crosshairs',
532
+ unicode: 'f05b',
533
+ created: 1,
534
+ filter: [ 'picker' ],
535
+ categories: [ 'Web Application Icons' ] },
536
+ { name: 'Times Circle Outlined',
537
+ id: 'times-circle-o',
538
+ unicode: 'f05c',
539
+ created: 1,
540
+ filter: [ 'close', 'exit', 'x' ],
541
+ categories: [ 'Web Application Icons' ] },
542
+ { name: 'Check Circle Outlined',
543
+ id: 'check-circle-o',
544
+ unicode: 'f05d',
545
+ created: 1,
546
+ filter: [ 'todo', 'done', 'agree', 'accept', 'confirm', 'ok' ],
547
+ categories: [ 'Web Application Icons' ] },
548
+ { name: 'ban',
549
+ id: 'ban',
550
+ unicode: 'f05e',
551
+ created: 1,
552
+ filter:
553
+ [ 'delete',
554
+ 'remove',
555
+ 'trash',
556
+ 'hide',
557
+ 'block',
558
+ 'stop',
559
+ 'abort',
560
+ 'cancel' ],
561
+ categories: [ 'Web Application Icons' ] },
562
+ { name: 'arrow-left',
563
+ id: 'arrow-left',
564
+ unicode: 'f060',
565
+ created: 1,
566
+ filter: [ 'previous', 'back' ],
567
+ categories: [ 'Directional Icons' ] },
568
+ { name: 'arrow-right',
569
+ id: 'arrow-right',
570
+ unicode: 'f061',
571
+ created: 1,
572
+ filter: [ 'next', 'forward' ],
573
+ categories: [ 'Directional Icons' ] },
574
+ { name: 'arrow-up',
575
+ id: 'arrow-up',
576
+ unicode: 'f062',
577
+ created: 1,
578
+ categories: [ 'Directional Icons' ] },
579
+ { name: 'arrow-down',
580
+ id: 'arrow-down',
581
+ unicode: 'f063',
582
+ created: 1,
583
+ filter: [ 'download' ],
584
+ categories: [ 'Directional Icons' ] },
585
+ { name: 'Share',
586
+ id: 'share',
587
+ unicode: 'f064',
588
+ created: 1,
589
+ aliases: [ 'mail-forward' ],
590
+ categories: [ 'Web Application Icons' ] },
591
+ { name: 'Expand',
592
+ id: 'expand',
593
+ unicode: 'f065',
594
+ created: 1,
595
+ filter: [ 'enlarge', 'bigger', 'resize' ],
596
+ categories: [ 'Video Player Icons' ] },
597
+ { name: 'Compress',
598
+ id: 'compress',
599
+ unicode: 'f066',
600
+ created: 1,
601
+ filter: [ 'collapse', 'combine', 'contract', 'merge', 'smaller' ],
602
+ categories: [ 'Video Player Icons' ] },
603
+ { name: 'plus',
604
+ id: 'plus',
605
+ unicode: 'f067',
606
+ created: 1,
607
+ filter: [ 'add', 'new', 'create', 'expand' ],
608
+ categories: [ 'Web Application Icons' ] },
609
+ { name: 'minus',
610
+ id: 'minus',
611
+ unicode: 'f068',
612
+ created: 1,
613
+ filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
614
+ categories: [ 'Web Application Icons' ] },
615
+ { name: 'asterisk',
616
+ id: 'asterisk',
617
+ unicode: 'f069',
618
+ created: 1,
619
+ filter: [ 'details' ],
620
+ categories: [ 'Web Application Icons' ] },
621
+ { name: 'Exclamation Circle',
622
+ id: 'exclamation-circle',
623
+ unicode: 'f06a',
624
+ created: 1,
625
+ filter: [ 'warning', 'error', 'problem', 'notification', 'alert' ],
626
+ categories: [ 'Web Application Icons' ] },
627
+ { name: 'gift',
628
+ id: 'gift',
629
+ unicode: 'f06b',
630
+ created: 1,
631
+ filter: [ 'present' ],
632
+ categories: [ 'Web Application Icons' ] },
633
+ { name: 'leaf',
634
+ id: 'leaf',
635
+ unicode: 'f06c',
636
+ created: 1,
637
+ filter: [ 'eco', 'nature', 'plant' ],
638
+ categories: [ 'Web Application Icons' ] },
639
+ { name: 'fire',
640
+ id: 'fire',
641
+ unicode: 'f06d',
642
+ created: 1,
643
+ filter: [ 'flame', 'hot', 'popular' ],
644
+ categories: [ 'Web Application Icons' ] },
645
+ { name: 'Eye',
646
+ id: 'eye',
647
+ unicode: 'f06e',
648
+ created: 1,
649
+ filter: [ 'show', 'visible', 'views' ],
650
+ categories: [ 'Web Application Icons' ] },
651
+ { name: 'Eye Slash',
652
+ id: 'eye-slash',
653
+ unicode: 'f070',
654
+ created: 1,
655
+ filter: [ 'toggle', 'show', 'hide', 'visible', 'visiblity', 'views' ],
656
+ categories: [ 'Web Application Icons' ] },
657
+ { name: 'Exclamation Triangle',
658
+ id: 'exclamation-triangle',
659
+ unicode: 'f071',
660
+ created: 1,
661
+ filter: [ 'warning', 'error', 'problem', 'notification', 'alert' ],
662
+ aliases: [ 'warning' ],
663
+ categories: [ 'Web Application Icons' ] },
664
+ { name: 'plane',
665
+ id: 'plane',
666
+ unicode: 'f072',
667
+ created: 1,
668
+ filter:
669
+ [ 'travel',
670
+ 'trip',
671
+ 'location',
672
+ 'destination',
673
+ 'airplane',
674
+ 'fly',
675
+ 'mode' ],
676
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
677
+ { name: 'calendar',
678
+ id: 'calendar',
679
+ unicode: 'f073',
680
+ created: 1,
681
+ filter: [ 'date', 'time', 'when', 'event' ],
682
+ categories: [ 'Web Application Icons' ] },
683
+ { name: 'random',
684
+ id: 'random',
685
+ unicode: 'f074',
686
+ created: 1,
687
+ filter: [ 'sort', 'shuffle' ],
688
+ categories: [ 'Web Application Icons', 'Video Player Icons' ] },
689
+ { name: 'comment',
690
+ id: 'comment',
691
+ unicode: 'f075',
692
+ created: 1,
693
+ filter:
694
+ [ 'speech',
695
+ 'notification',
696
+ 'note',
697
+ 'chat',
698
+ 'bubble',
699
+ 'feedback',
700
+ 'message',
701
+ 'texting',
702
+ 'sms',
703
+ 'conversation' ],
704
+ categories: [ 'Web Application Icons' ] },
705
+ { name: 'magnet',
706
+ id: 'magnet',
707
+ unicode: 'f076',
708
+ created: 1,
709
+ categories: [ 'Web Application Icons' ] },
710
+ { name: 'chevron-up',
711
+ id: 'chevron-up',
712
+ unicode: 'f077',
713
+ created: 1,
714
+ categories: [ 'Directional Icons' ] },
715
+ { name: 'chevron-down',
716
+ id: 'chevron-down',
717
+ unicode: 'f078',
718
+ created: 1,
719
+ categories: [ 'Directional Icons' ] },
720
+ { name: 'retweet',
721
+ id: 'retweet',
722
+ unicode: 'f079',
723
+ created: 1,
724
+ filter: [ 'refresh', 'reload', 'share' ],
725
+ categories: [ 'Web Application Icons' ] },
726
+ { name: 'shopping-cart',
727
+ id: 'shopping-cart',
728
+ unicode: 'f07a',
729
+ created: 1,
730
+ filter: [ 'checkout', 'buy', 'purchase', 'payment' ],
731
+ categories: [ 'Web Application Icons' ] },
732
+ { name: 'Folder',
733
+ id: 'folder',
734
+ unicode: 'f07b',
735
+ created: 1,
736
+ categories: [ 'Web Application Icons' ] },
737
+ { name: 'Folder Open',
738
+ id: 'folder-open',
739
+ unicode: 'f07c',
740
+ created: 1,
741
+ categories: [ 'Web Application Icons' ] },
742
+ { name: 'Arrows Vertical',
743
+ id: 'arrows-v',
744
+ unicode: 'f07d',
745
+ created: 1,
746
+ filter: [ 'resize' ],
747
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
748
+ { name: 'Arrows Horizontal',
749
+ id: 'arrows-h',
750
+ unicode: 'f07e',
751
+ created: 1,
752
+ filter: [ 'resize' ],
753
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
754
+ { name: 'Bar Chart',
755
+ id: 'bar-chart',
756
+ unicode: 'f080',
757
+ created: 1,
758
+ aliases: [ 'bar-chart-o' ],
759
+ filter: [ 'graph', 'analytics' ],
760
+ categories: [ 'Web Application Icons', 'Chart Icons' ] },
761
+ { name: 'Twitter Square',
762
+ id: 'twitter-square',
763
+ unicode: 'f081',
764
+ created: 1,
765
+ filter: [ 'tweet', 'social network' ],
766
+ categories: [ 'Brand Icons' ] },
767
+ { name: 'Facebook Square',
768
+ id: 'facebook-square',
769
+ unicode: 'f082',
770
+ created: 1,
771
+ filter: [ 'social network' ],
772
+ categories: [ 'Brand Icons' ] },
773
+ { name: 'camera-retro',
774
+ id: 'camera-retro',
775
+ unicode: 'f083',
776
+ created: 1,
777
+ filter: [ 'photo', 'picture', 'record' ],
778
+ categories: [ 'Web Application Icons' ] },
779
+ { name: 'key',
780
+ id: 'key',
781
+ unicode: 'f084',
782
+ created: 1,
783
+ filter: [ 'unlock', 'password' ],
784
+ categories: [ 'Web Application Icons' ] },
785
+ { name: 'cogs',
786
+ id: 'cogs',
787
+ unicode: 'f085',
788
+ created: 1,
789
+ aliases: [ 'gears' ],
790
+ filter: [ 'settings' ],
791
+ categories: [ 'Web Application Icons' ] },
792
+ { name: 'comments',
793
+ id: 'comments',
794
+ unicode: 'f086',
795
+ created: 1,
796
+ filter:
797
+ [ 'speech',
798
+ 'notification',
799
+ 'note',
800
+ 'chat',
801
+ 'bubble',
802
+ 'feedback',
803
+ 'message',
804
+ 'texting',
805
+ 'sms',
806
+ 'conversation' ],
807
+ categories: [ 'Web Application Icons' ] },
808
+ { name: 'Thumbs Up Outlined',
809
+ id: 'thumbs-o-up',
810
+ unicode: 'f087',
811
+ created: 1,
812
+ filter: [ 'like', 'approve', 'favorite', 'agree', 'hand' ],
813
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
814
+ { name: 'Thumbs Down Outlined',
815
+ id: 'thumbs-o-down',
816
+ unicode: 'f088',
817
+ created: 1,
818
+ filter: [ 'dislike', 'disapprove', 'disagree', 'hand' ],
819
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
820
+ { name: 'star-half',
821
+ id: 'star-half',
822
+ unicode: 'f089',
823
+ created: 1,
824
+ filter: [ 'award', 'achievement', 'rating', 'score' ],
825
+ categories: [ 'Web Application Icons' ] },
826
+ { name: 'Heart Outlined',
827
+ id: 'heart-o',
828
+ unicode: 'f08a',
829
+ created: 1,
830
+ filter: [ 'love', 'like', 'favorite' ],
831
+ categories: [ 'Web Application Icons', 'Medical Icons' ] },
832
+ { name: 'Sign Out',
833
+ id: 'sign-out',
834
+ unicode: 'f08b',
835
+ created: 1,
836
+ filter: [ 'log out', 'logout', 'leave', 'exit', 'arrow' ],
837
+ categories: [ 'Web Application Icons' ] },
838
+ { name: 'LinkedIn Square',
839
+ id: 'linkedin-square',
840
+ unicode: 'f08c',
841
+ created: 1,
842
+ categories: [ 'Brand Icons' ] },
843
+ { name: 'Thumb Tack',
844
+ id: 'thumb-tack',
845
+ unicode: 'f08d',
846
+ created: 1,
847
+ filter: [ 'marker', 'pin', 'location', 'coordinates' ],
848
+ categories: [ 'Web Application Icons' ] },
849
+ { name: 'External Link',
850
+ id: 'external-link',
851
+ unicode: 'f08e',
852
+ created: 1,
853
+ filter: [ 'open', 'new' ],
854
+ categories: [ 'Web Application Icons' ] },
855
+ { name: 'Sign In',
856
+ id: 'sign-in',
857
+ unicode: 'f090',
858
+ created: 1,
859
+ filter:
860
+ [ 'enter',
861
+ 'join',
862
+ 'log in',
863
+ 'login',
864
+ 'sign up',
865
+ 'sign in',
866
+ 'signin',
867
+ 'signup',
868
+ 'arrow' ],
869
+ categories: [ 'Web Application Icons' ] },
870
+ { name: 'trophy',
871
+ id: 'trophy',
872
+ unicode: 'f091',
873
+ created: 1,
874
+ filter: [ 'award', 'achievement', 'winner', 'game' ],
875
+ categories: [ 'Web Application Icons' ] },
876
+ { name: 'GitHub Square',
877
+ id: 'github-square',
878
+ unicode: 'f092',
879
+ created: 1,
880
+ url: 'github.com/logos',
881
+ filter: [ 'octocat' ],
882
+ categories: [ 'Brand Icons' ] },
883
+ { name: 'Upload',
884
+ id: 'upload',
885
+ unicode: 'f093',
886
+ created: 1,
887
+ filter: [ 'import' ],
888
+ categories: [ 'Web Application Icons' ] },
889
+ { name: 'Lemon Outlined',
890
+ id: 'lemon-o',
891
+ unicode: 'f094',
892
+ created: 1,
893
+ filter: [ 'food' ],
894
+ categories: [ 'Web Application Icons' ] },
895
+ { name: 'Phone',
896
+ id: 'phone',
897
+ unicode: 'f095',
898
+ created: 2,
899
+ filter: [ 'call', 'voice', 'number', 'support', 'earphone', 'telephone' ],
900
+ categories: [ 'Web Application Icons' ] },
901
+ { name: 'Square Outlined',
902
+ id: 'square-o',
903
+ unicode: 'f096',
904
+ created: 2,
905
+ filter: [ 'block', 'square', 'box' ],
906
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
907
+ { name: 'Bookmark Outlined',
908
+ id: 'bookmark-o',
909
+ unicode: 'f097',
910
+ created: 2,
911
+ filter: [ 'save' ],
912
+ categories: [ 'Web Application Icons' ] },
913
+ { name: 'Phone Square',
914
+ id: 'phone-square',
915
+ unicode: 'f098',
916
+ created: 2,
917
+ filter: [ 'call', 'voice', 'number', 'support', 'telephone' ],
918
+ categories: [ 'Web Application Icons' ] },
919
+ { name: 'Twitter',
920
+ id: 'twitter',
921
+ unicode: 'f099',
922
+ created: 2,
923
+ filter: [ 'tweet', 'social network' ],
924
+ categories: [ 'Brand Icons' ] },
925
+ { name: 'Facebook',
926
+ id: 'facebook',
927
+ unicode: 'f09a',
928
+ created: 2,
929
+ aliases: [ 'facebook-f' ],
930
+ filter: [ 'social network' ],
931
+ categories: [ 'Brand Icons' ] },
932
+ { name: 'GitHub',
933
+ id: 'github',
934
+ unicode: 'f09b',
935
+ created: 2,
936
+ url: 'github.com/logos',
937
+ filter: [ 'octocat' ],
938
+ categories: [ 'Brand Icons' ] },
939
+ { name: 'unlock',
940
+ id: 'unlock',
941
+ unicode: 'f09c',
942
+ created: 2,
943
+ filter: [ 'protect', 'admin', 'password', 'lock' ],
944
+ categories: [ 'Web Application Icons' ] },
945
+ { name: 'credit-card',
946
+ id: 'credit-card',
947
+ unicode: 'f09d',
948
+ created: 2,
949
+ filter: [ 'money', 'buy', 'debit', 'checkout', 'purchase', 'payment' ],
950
+ categories: [ 'Web Application Icons', 'Payment Icons' ] },
951
+ { name: 'rss',
952
+ id: 'rss',
953
+ unicode: 'f09e',
954
+ created: 2,
955
+ filter: [ 'blog' ],
956
+ aliases: [ 'feed' ],
957
+ categories: [ 'Web Application Icons' ] },
958
+ { name: 'HDD',
959
+ id: 'hdd-o',
960
+ unicode: 'f0a0',
961
+ created: 2,
962
+ filter: [ 'harddrive', 'hard drive', 'storage', 'save' ],
963
+ categories: [ 'Web Application Icons' ] },
964
+ { name: 'bullhorn',
965
+ id: 'bullhorn',
966
+ unicode: 'f0a1',
967
+ created: 2,
968
+ filter: [ 'announcement', 'share', 'broadcast', 'louder', 'megaphone' ],
969
+ categories: [ 'Web Application Icons' ] },
970
+ { name: 'bell',
971
+ id: 'bell',
972
+ unicode: 'f0f3',
973
+ created: 2,
974
+ filter: [ 'alert', 'reminder', 'notification' ],
975
+ categories: [ 'Web Application Icons' ] },
976
+ { name: 'certificate',
977
+ id: 'certificate',
978
+ unicode: 'f0a3',
979
+ created: 2,
980
+ filter: [ 'badge', 'star' ],
981
+ categories: [ 'Web Application Icons' ] },
982
+ { name: 'Hand Outlined Right',
983
+ id: 'hand-o-right',
984
+ unicode: 'f0a4',
985
+ created: 2,
986
+ filter: [ 'point', 'right', 'next', 'forward', 'finger' ],
987
+ categories: [ 'Directional Icons', 'Hand Icons' ] },
988
+ { name: 'Hand Outlined Left',
989
+ id: 'hand-o-left',
990
+ unicode: 'f0a5',
991
+ created: 2,
992
+ filter: [ 'point', 'left', 'previous', 'back', 'finger' ],
993
+ categories: [ 'Directional Icons', 'Hand Icons' ] },
994
+ { name: 'Hand Outlined Up',
995
+ id: 'hand-o-up',
996
+ unicode: 'f0a6',
997
+ created: 2,
998
+ filter: [ 'point', 'finger' ],
999
+ categories: [ 'Directional Icons', 'Hand Icons' ] },
1000
+ { name: 'Hand Outlined Down',
1001
+ id: 'hand-o-down',
1002
+ unicode: 'f0a7',
1003
+ created: 2,
1004
+ filter: [ 'point', 'finger' ],
1005
+ categories: [ 'Directional Icons', 'Hand Icons' ] },
1006
+ { name: 'Arrow Circle Left',
1007
+ id: 'arrow-circle-left',
1008
+ unicode: 'f0a8',
1009
+ created: 2,
1010
+ filter: [ 'previous', 'back' ],
1011
+ categories: [ 'Directional Icons' ] },
1012
+ { name: 'Arrow Circle Right',
1013
+ id: 'arrow-circle-right',
1014
+ unicode: 'f0a9',
1015
+ created: 2,
1016
+ filter: [ 'next', 'forward' ],
1017
+ categories: [ 'Directional Icons' ] },
1018
+ { name: 'Arrow Circle Up',
1019
+ id: 'arrow-circle-up',
1020
+ unicode: 'f0aa',
1021
+ created: 2,
1022
+ categories: [ 'Directional Icons' ] },
1023
+ { name: 'Arrow Circle Down',
1024
+ id: 'arrow-circle-down',
1025
+ unicode: 'f0ab',
1026
+ created: 2,
1027
+ filter: [ 'download' ],
1028
+ categories: [ 'Directional Icons' ] },
1029
+ { name: 'Globe',
1030
+ id: 'globe',
1031
+ unicode: 'f0ac',
1032
+ created: 2,
1033
+ filter:
1034
+ [ 'world',
1035
+ 'planet',
1036
+ 'map',
1037
+ 'place',
1038
+ 'travel',
1039
+ 'earth',
1040
+ 'global',
1041
+ 'translate',
1042
+ 'all',
1043
+ 'language',
1044
+ 'localize',
1045
+ 'location',
1046
+ 'coordinates',
1047
+ 'country' ],
1048
+ categories: [ 'Web Application Icons' ] },
1049
+ { name: 'Wrench',
1050
+ id: 'wrench',
1051
+ unicode: 'f0ad',
1052
+ created: 2,
1053
+ filter: [ 'settings', 'fix', 'update' ],
1054
+ categories: [ 'Web Application Icons' ] },
1055
+ { name: 'Tasks',
1056
+ id: 'tasks',
1057
+ unicode: 'f0ae',
1058
+ created: 2,
1059
+ filter: [ 'progress', 'loading', 'downloading', 'downloads', 'settings' ],
1060
+ categories: [ 'Web Application Icons' ] },
1061
+ { name: 'Filter',
1062
+ id: 'filter',
1063
+ unicode: 'f0b0',
1064
+ created: 2,
1065
+ filter: [ 'funnel', 'options' ],
1066
+ categories: [ 'Web Application Icons' ] },
1067
+ { name: 'Briefcase',
1068
+ id: 'briefcase',
1069
+ unicode: 'f0b1',
1070
+ created: 2,
1071
+ filter: [ 'work', 'business', 'office', 'luggage', 'bag' ],
1072
+ categories: [ 'Web Application Icons' ] },
1073
+ { name: 'Arrows Alt',
1074
+ id: 'arrows-alt',
1075
+ unicode: 'f0b2',
1076
+ created: 2,
1077
+ filter:
1078
+ [ 'expand',
1079
+ 'enlarge',
1080
+ 'fullscreen',
1081
+ 'bigger',
1082
+ 'move',
1083
+ 'reorder',
1084
+ 'resize',
1085
+ 'arrow' ],
1086
+ categories: [ 'Video Player Icons', 'Directional Icons' ] },
1087
+ { name: 'Users',
1088
+ id: 'users',
1089
+ unicode: 'f0c0',
1090
+ created: 2,
1091
+ filter: [ 'people', 'profiles', 'persons' ],
1092
+ aliases: [ 'group' ],
1093
+ categories: [ 'Web Application Icons' ] },
1094
+ { name: 'Link',
1095
+ id: 'link',
1096
+ unicode: 'f0c1',
1097
+ created: 2,
1098
+ filter: [ 'chain' ],
1099
+ aliases: [ 'chain' ],
1100
+ categories: [ 'Text Editor Icons' ] },
1101
+ { name: 'Cloud',
1102
+ id: 'cloud',
1103
+ filter: [ 'save' ],
1104
+ unicode: 'f0c2',
1105
+ created: 2,
1106
+ categories: [ 'Web Application Icons' ] },
1107
+ { name: 'Flask',
1108
+ id: 'flask',
1109
+ unicode: 'f0c3',
1110
+ created: 2,
1111
+ filter: [ 'science', 'beaker', 'experimental', 'labs' ],
1112
+ categories: [ 'Web Application Icons' ] },
1113
+ { name: 'Scissors',
1114
+ id: 'scissors',
1115
+ unicode: 'f0c4',
1116
+ created: 2,
1117
+ aliases: [ 'cut' ],
1118
+ categories: [ 'Text Editor Icons' ] },
1119
+ { name: 'Files Outlined',
1120
+ id: 'files-o',
1121
+ unicode: 'f0c5',
1122
+ created: 2,
1123
+ filter: [ 'duplicate', 'clone', 'copy' ],
1124
+ aliases: [ 'copy' ],
1125
+ categories: [ 'Text Editor Icons' ] },
1126
+ { name: 'Paperclip',
1127
+ id: 'paperclip',
1128
+ unicode: 'f0c6',
1129
+ created: 2,
1130
+ filter: [ 'attachment' ],
1131
+ categories: [ 'Text Editor Icons' ] },
1132
+ { name: 'Floppy Outlined',
1133
+ id: 'floppy-o',
1134
+ unicode: 'f0c7',
1135
+ created: 2,
1136
+ aliases: [ 'save' ],
1137
+ categories: [ 'Text Editor Icons' ] },
1138
+ { name: 'Square',
1139
+ id: 'square',
1140
+ unicode: 'f0c8',
1141
+ created: 2,
1142
+ filter: [ 'block', 'box' ],
1143
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1144
+ { name: 'Bars',
1145
+ id: 'bars',
1146
+ unicode: 'f0c9',
1147
+ created: 2,
1148
+ aliases: [ 'navicon', 'reorder' ],
1149
+ filter:
1150
+ [ 'menu',
1151
+ 'drag',
1152
+ 'reorder',
1153
+ 'settings',
1154
+ 'list',
1155
+ 'ul',
1156
+ 'ol',
1157
+ 'checklist',
1158
+ 'todo',
1159
+ 'list',
1160
+ 'hamburger' ],
1161
+ categories: [ 'Web Application Icons' ] },
1162
+ { name: 'list-ul',
1163
+ id: 'list-ul',
1164
+ unicode: 'f0ca',
1165
+ created: 2,
1166
+ filter: [ 'ul', 'ol', 'checklist', 'todo', 'list' ],
1167
+ categories: [ 'Text Editor Icons' ] },
1168
+ { name: 'list-ol',
1169
+ id: 'list-ol',
1170
+ unicode: 'f0cb',
1171
+ created: 2,
1172
+ filter: [ 'ul', 'ol', 'checklist', 'list', 'todo', 'list', 'numbers' ],
1173
+ categories: [ 'Text Editor Icons' ] },
1174
+ { name: 'Strikethrough',
1175
+ id: 'strikethrough',
1176
+ unicode: 'f0cc',
1177
+ created: 2,
1178
+ categories: [ 'Text Editor Icons' ] },
1179
+ { name: 'Underline',
1180
+ id: 'underline',
1181
+ unicode: 'f0cd',
1182
+ created: 2,
1183
+ categories: [ 'Text Editor Icons' ] },
1184
+ { name: 'table',
1185
+ id: 'table',
1186
+ unicode: 'f0ce',
1187
+ created: 2,
1188
+ filter: [ 'data', 'excel', 'spreadsheet' ],
1189
+ categories: [ 'Text Editor Icons' ] },
1190
+ { name: 'magic',
1191
+ id: 'magic',
1192
+ unicode: 'f0d0',
1193
+ created: 2,
1194
+ filter: [ 'wizard', 'automatic', 'autocomplete' ],
1195
+ categories: [ 'Web Application Icons' ] },
1196
+ { name: 'truck',
1197
+ id: 'truck',
1198
+ unicode: 'f0d1',
1199
+ created: 2,
1200
+ filter: [ 'shipping' ],
1201
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1202
+ { name: 'Pinterest',
1203
+ id: 'pinterest',
1204
+ unicode: 'f0d2',
1205
+ created: 2,
1206
+ categories: [ 'Brand Icons' ] },
1207
+ { name: 'Pinterest Square',
1208
+ id: 'pinterest-square',
1209
+ unicode: 'f0d3',
1210
+ created: 2,
1211
+ categories: [ 'Brand Icons' ] },
1212
+ { name: 'Google Plus Square',
1213
+ id: 'google-plus-square',
1214
+ unicode: 'f0d4',
1215
+ created: 2,
1216
+ filter: [ 'social network' ],
1217
+ categories: [ 'Brand Icons' ] },
1218
+ { name: 'Google Plus',
1219
+ id: 'google-plus',
1220
+ unicode: 'f0d5',
1221
+ created: 2,
1222
+ filter: [ 'social network' ],
1223
+ categories: [ 'Brand Icons' ] },
1224
+ { name: 'Money',
1225
+ id: 'money',
1226
+ unicode: 'f0d6',
1227
+ created: 2,
1228
+ filter: [ 'cash', 'money', 'buy', 'checkout', 'purchase', 'payment' ],
1229
+ categories: [ 'Web Application Icons', 'Currency Icons' ] },
1230
+ { name: 'Caret Down',
1231
+ id: 'caret-down',
1232
+ unicode: 'f0d7',
1233
+ created: 2,
1234
+ filter: [ 'more', 'dropdown', 'menu', 'triangle down', 'arrow' ],
1235
+ categories: [ 'Directional Icons' ] },
1236
+ { name: 'Caret Up',
1237
+ id: 'caret-up',
1238
+ unicode: 'f0d8',
1239
+ created: 2,
1240
+ filter: [ 'triangle up', 'arrow' ],
1241
+ categories: [ 'Directional Icons' ] },
1242
+ { name: 'Caret Left',
1243
+ id: 'caret-left',
1244
+ unicode: 'f0d9',
1245
+ created: 2,
1246
+ filter: [ 'previous', 'back', 'triangle left', 'arrow' ],
1247
+ categories: [ 'Directional Icons' ] },
1248
+ { name: 'Caret Right',
1249
+ id: 'caret-right',
1250
+ unicode: 'f0da',
1251
+ created: 2,
1252
+ filter: [ 'next', 'forward', 'triangle right', 'arrow' ],
1253
+ categories: [ 'Directional Icons' ] },
1254
+ { name: 'Columns',
1255
+ id: 'columns',
1256
+ unicode: 'f0db',
1257
+ created: 2,
1258
+ filter: [ 'split', 'panes' ],
1259
+ categories: [ 'Text Editor Icons' ] },
1260
+ { name: 'Sort',
1261
+ id: 'sort',
1262
+ unicode: 'f0dc',
1263
+ created: 2,
1264
+ filter: [ 'order' ],
1265
+ aliases: [ 'unsorted' ],
1266
+ categories: [ 'Web Application Icons' ] },
1267
+ { name: 'Sort Descending',
1268
+ id: 'sort-desc',
1269
+ unicode: 'f0dd',
1270
+ created: 2,
1271
+ filter: [ 'dropdown', 'more', 'menu', 'arrow' ],
1272
+ aliases: [ 'sort-down' ],
1273
+ categories: [ 'Web Application Icons' ] },
1274
+ { name: 'Sort Ascending',
1275
+ id: 'sort-asc',
1276
+ unicode: 'f0de',
1277
+ created: 2,
1278
+ aliases: [ 'sort-up' ],
1279
+ filter: [ 'arrow' ],
1280
+ categories: [ 'Web Application Icons' ] },
1281
+ { name: 'Envelope',
1282
+ id: 'envelope',
1283
+ unicode: 'f0e0',
1284
+ created: 2,
1285
+ filter: [ 'email', 'e-mail', 'letter', 'support', 'mail', 'notification' ],
1286
+ categories: [ 'Web Application Icons' ] },
1287
+ { name: 'LinkedIn',
1288
+ id: 'linkedin',
1289
+ unicode: 'f0e1',
1290
+ created: 2,
1291
+ categories: [ 'Brand Icons' ] },
1292
+ { name: 'Undo',
1293
+ id: 'undo',
1294
+ unicode: 'f0e2',
1295
+ created: 2,
1296
+ filter: [ 'back' ],
1297
+ aliases: [ 'rotate-left' ],
1298
+ categories: [ 'Text Editor Icons' ] },
1299
+ { name: 'Gavel',
1300
+ id: 'gavel',
1301
+ unicode: 'f0e3',
1302
+ created: 2,
1303
+ label: [ 'judge', 'lawyer', 'opinion' ],
1304
+ aliases: [ 'legal' ],
1305
+ categories: [ 'Web Application Icons' ] },
1306
+ { name: 'Tachometer',
1307
+ id: 'tachometer',
1308
+ unicode: 'f0e4',
1309
+ created: 2,
1310
+ label: [ 'speedometer', 'fast' ],
1311
+ aliases: [ 'dashboard' ],
1312
+ categories: [ 'Web Application Icons' ] },
1313
+ { name: 'comment-o',
1314
+ id: 'comment-o',
1315
+ unicode: 'f0e5',
1316
+ created: 2,
1317
+ filter:
1318
+ [ 'speech',
1319
+ 'notification',
1320
+ 'note',
1321
+ 'chat',
1322
+ 'bubble',
1323
+ 'feedback',
1324
+ 'message',
1325
+ 'texting',
1326
+ 'sms',
1327
+ 'conversation' ],
1328
+ categories: [ 'Web Application Icons' ] },
1329
+ { name: 'comments-o',
1330
+ id: 'comments-o',
1331
+ unicode: 'f0e6',
1332
+ created: 2,
1333
+ filter:
1334
+ [ 'speech',
1335
+ 'notification',
1336
+ 'note',
1337
+ 'chat',
1338
+ 'bubble',
1339
+ 'feedback',
1340
+ 'message',
1341
+ 'texting',
1342
+ 'sms',
1343
+ 'conversation' ],
1344
+ categories: [ 'Web Application Icons' ] },
1345
+ { name: 'Lightning Bolt',
1346
+ id: 'bolt',
1347
+ unicode: 'f0e7',
1348
+ created: 2,
1349
+ filter: [ 'lightning', 'weather' ],
1350
+ aliases: [ 'flash' ],
1351
+ categories: [ 'Web Application Icons' ] },
1352
+ { name: 'Sitemap',
1353
+ id: 'sitemap',
1354
+ unicode: 'f0e8',
1355
+ created: 2,
1356
+ filter: [ 'directory', 'hierarchy', 'organization' ],
1357
+ categories: [ 'Web Application Icons' ] },
1358
+ { name: 'Umbrella',
1359
+ id: 'umbrella',
1360
+ unicode: 'f0e9',
1361
+ created: 2,
1362
+ categories: [ 'Web Application Icons' ] },
1363
+ { name: 'Clipboard',
1364
+ id: 'clipboard',
1365
+ unicode: 'f0ea',
1366
+ created: 2,
1367
+ filter: [ 'copy' ],
1368
+ aliases: [ 'paste' ],
1369
+ categories: [ 'Text Editor Icons' ] },
1370
+ { name: 'Lightbulb Outlined',
1371
+ id: 'lightbulb-o',
1372
+ unicode: 'f0eb',
1373
+ created: 3,
1374
+ filter: [ 'idea', 'inspiration' ],
1375
+ categories: [ 'Web Application Icons' ] },
1376
+ { name: 'Exchange',
1377
+ id: 'exchange',
1378
+ unicode: 'f0ec',
1379
+ created: 3,
1380
+ filter: [ 'transfer', 'arrows', 'arrow' ],
1381
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
1382
+ { name: 'Cloud Download',
1383
+ id: 'cloud-download',
1384
+ unicode: 'f0ed',
1385
+ created: 3,
1386
+ filter: [ 'import' ],
1387
+ categories: [ 'Web Application Icons' ] },
1388
+ { name: 'Cloud Upload',
1389
+ id: 'cloud-upload',
1390
+ unicode: 'f0ee',
1391
+ created: 3,
1392
+ filter: [ 'import' ],
1393
+ categories: [ 'Web Application Icons' ] },
1394
+ { name: 'user-md',
1395
+ id: 'user-md',
1396
+ unicode: 'f0f0',
1397
+ created: 2,
1398
+ filter: [ 'doctor', 'profile', 'medical', 'nurse' ],
1399
+ categories: [ 'Medical Icons' ] },
1400
+ { name: 'Stethoscope',
1401
+ id: 'stethoscope',
1402
+ unicode: 'f0f1',
1403
+ created: 3,
1404
+ categories: [ 'Medical Icons' ] },
1405
+ { name: 'Suitcase',
1406
+ id: 'suitcase',
1407
+ unicode: 'f0f2',
1408
+ created: 3,
1409
+ filter: [ 'trip', 'luggage', 'travel', 'move', 'baggage' ],
1410
+ categories: [ 'Web Application Icons' ] },
1411
+ { name: 'Bell Outlined',
1412
+ id: 'bell-o',
1413
+ unicode: 'f0a2',
1414
+ created: 3,
1415
+ filter: [ 'alert', 'reminder', 'notification' ],
1416
+ categories: [ 'Web Application Icons' ] },
1417
+ { name: 'Coffee',
1418
+ id: 'coffee',
1419
+ unicode: 'f0f4',
1420
+ created: 3,
1421
+ filter: [ 'morning', 'mug', 'breakfast', 'tea', 'drink', 'cafe' ],
1422
+ categories: [ 'Web Application Icons' ] },
1423
+ { name: 'Cutlery',
1424
+ id: 'cutlery',
1425
+ unicode: 'f0f5',
1426
+ created: 3,
1427
+ filter: [ 'food', 'restaurant', 'spoon', 'knife', 'dinner', 'eat' ],
1428
+ categories: [ 'Web Application Icons' ] },
1429
+ { name: 'File Text Outlined',
1430
+ id: 'file-text-o',
1431
+ unicode: 'f0f6',
1432
+ created: 3,
1433
+ filter: [ 'new', 'page', 'pdf', 'document' ],
1434
+ categories: [ 'Text Editor Icons', 'File Type Icons' ] },
1435
+ { name: 'Building Outlined',
1436
+ id: 'building-o',
1437
+ unicode: 'f0f7',
1438
+ created: 3,
1439
+ filter: [ 'work', 'business', 'apartment', 'office', 'company' ],
1440
+ categories: [ 'Web Application Icons' ] },
1441
+ { name: 'hospital Outlined',
1442
+ id: 'hospital-o',
1443
+ unicode: 'f0f8',
1444
+ created: 3,
1445
+ filter: [ 'building' ],
1446
+ categories: [ 'Medical Icons' ] },
1447
+ { name: 'ambulance',
1448
+ id: 'ambulance',
1449
+ unicode: 'f0f9',
1450
+ created: 3,
1451
+ filter: [ 'vehicle', 'support', 'help' ],
1452
+ categories: [ 'Medical Icons', 'Transportation Icons' ] },
1453
+ { name: 'medkit',
1454
+ id: 'medkit',
1455
+ unicode: 'f0fa',
1456
+ created: 3,
1457
+ filter: [ 'first aid', 'firstaid', 'help', 'support', 'health' ],
1458
+ categories: [ 'Medical Icons' ] },
1459
+ { name: 'fighter-jet',
1460
+ id: 'fighter-jet',
1461
+ unicode: 'f0fb',
1462
+ created: 3,
1463
+ filter: [ 'fly', 'plane', 'airplane', 'quick', 'fast', 'travel' ],
1464
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1465
+ { name: 'beer',
1466
+ id: 'beer',
1467
+ unicode: 'f0fc',
1468
+ created: 3,
1469
+ filter: [ 'alcohol', 'stein', 'drink', 'mug', 'bar', 'liquor' ],
1470
+ categories: [ 'Web Application Icons' ] },
1471
+ { name: 'H Square',
1472
+ id: 'h-square',
1473
+ unicode: 'f0fd',
1474
+ created: 3,
1475
+ filter: [ 'hospital', 'hotel' ],
1476
+ categories: [ 'Medical Icons' ] },
1477
+ { name: 'Plus Square',
1478
+ id: 'plus-square',
1479
+ unicode: 'f0fe',
1480
+ created: 3,
1481
+ filter: [ 'add', 'new', 'create', 'expand' ],
1482
+ categories:
1483
+ [ 'Medical Icons',
1484
+ 'Web Application Icons',
1485
+ 'Form Control Icons' ] },
1486
+ { name: 'Angle Double Left',
1487
+ id: 'angle-double-left',
1488
+ unicode: 'f100',
1489
+ created: 3,
1490
+ filter: [ 'laquo', 'quote', 'previous', 'back', 'arrows' ],
1491
+ categories: [ 'Directional Icons' ] },
1492
+ { name: 'Angle Double Right',
1493
+ id: 'angle-double-right',
1494
+ unicode: 'f101',
1495
+ created: 3,
1496
+ filter: [ 'raquo', 'quote', 'next', 'forward', 'arrows' ],
1497
+ categories: [ 'Directional Icons' ] },
1498
+ { name: 'Angle Double Up',
1499
+ id: 'angle-double-up',
1500
+ unicode: 'f102',
1501
+ created: 3,
1502
+ filter: [ 'arrows' ],
1503
+ categories: [ 'Directional Icons' ] },
1504
+ { name: 'Angle Double Down',
1505
+ id: 'angle-double-down',
1506
+ unicode: 'f103',
1507
+ created: 3,
1508
+ filter: [ 'arrows' ],
1509
+ categories: [ 'Directional Icons' ] },
1510
+ { name: 'angle-left',
1511
+ id: 'angle-left',
1512
+ unicode: 'f104',
1513
+ created: 3,
1514
+ filter: [ 'previous', 'back', 'arrow' ],
1515
+ categories: [ 'Directional Icons' ] },
1516
+ { name: 'angle-right',
1517
+ id: 'angle-right',
1518
+ unicode: 'f105',
1519
+ created: 3,
1520
+ filter: [ 'next', 'forward', 'arrow' ],
1521
+ categories: [ 'Directional Icons' ] },
1522
+ { name: 'angle-up',
1523
+ id: 'angle-up',
1524
+ unicode: 'f106',
1525
+ created: 3,
1526
+ filter: [ 'arrow' ],
1527
+ categories: [ 'Directional Icons' ] },
1528
+ { name: 'angle-down',
1529
+ id: 'angle-down',
1530
+ unicode: 'f107',
1531
+ created: 3,
1532
+ filter: [ 'arrow' ],
1533
+ categories: [ 'Directional Icons' ] },
1534
+ { name: 'Desktop',
1535
+ id: 'desktop',
1536
+ unicode: 'f108',
1537
+ created: 3,
1538
+ filter: [ 'monitor', 'screen', 'desktop', 'computer', 'demo', 'device' ],
1539
+ categories: [ 'Web Application Icons' ] },
1540
+ { name: 'Laptop',
1541
+ id: 'laptop',
1542
+ unicode: 'f109',
1543
+ created: 3,
1544
+ filter: [ 'demo', 'computer', 'device' ],
1545
+ categories: [ 'Web Application Icons' ] },
1546
+ { name: 'tablet',
1547
+ id: 'tablet',
1548
+ unicode: 'f10a',
1549
+ created: 3,
1550
+ filter: [ 'ipad', 'device' ],
1551
+ categories: [ 'Web Application Icons' ] },
1552
+ { name: 'Mobile Phone',
1553
+ id: 'mobile',
1554
+ unicode: 'f10b',
1555
+ created: 3,
1556
+ filter:
1557
+ [ 'cell phone',
1558
+ 'cellphone',
1559
+ 'text',
1560
+ 'call',
1561
+ 'iphone',
1562
+ 'number',
1563
+ 'telephone' ],
1564
+ aliases: [ 'mobile-phone' ],
1565
+ categories: [ 'Web Application Icons' ] },
1566
+ { name: 'Circle Outlined',
1567
+ id: 'circle-o',
1568
+ unicode: 'f10c',
1569
+ created: 3,
1570
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1571
+ { name: 'quote-left',
1572
+ id: 'quote-left',
1573
+ unicode: 'f10d',
1574
+ created: 3,
1575
+ categories: [ 'Web Application Icons' ] },
1576
+ { name: 'quote-right',
1577
+ id: 'quote-right',
1578
+ unicode: 'f10e',
1579
+ created: 3,
1580
+ categories: [ 'Web Application Icons' ] },
1581
+ { name: 'Spinner',
1582
+ id: 'spinner',
1583
+ unicode: 'f110',
1584
+ created: 3,
1585
+ filter: [ 'loading', 'progress' ],
1586
+ categories: [ 'Web Application Icons', 'Spinner Icons' ] },
1587
+ { name: 'Circle',
1588
+ id: 'circle',
1589
+ unicode: 'f111',
1590
+ created: 3,
1591
+ filter: [ 'dot', 'notification' ],
1592
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1593
+ { name: 'Reply',
1594
+ id: 'reply',
1595
+ unicode: 'f112',
1596
+ created: 3,
1597
+ aliases: [ 'mail-reply' ],
1598
+ categories: [ 'Web Application Icons' ] },
1599
+ { name: 'GitHub Alt',
1600
+ id: 'github-alt',
1601
+ unicode: 'f113',
1602
+ created: 3,
1603
+ url: 'github.com/logos',
1604
+ filter: [ 'octocat' ],
1605
+ categories: [ 'Brand Icons' ] },
1606
+ { name: 'Folder Outlined',
1607
+ id: 'folder-o',
1608
+ unicode: 'f114',
1609
+ created: 3,
1610
+ categories: [ 'Web Application Icons' ] },
1611
+ { name: 'Folder Open Outlined',
1612
+ id: 'folder-open-o',
1613
+ unicode: 'f115',
1614
+ created: 3,
1615
+ categories: [ 'Web Application Icons' ] },
1616
+ { name: 'Smile Outlined',
1617
+ id: 'smile-o',
1618
+ unicode: 'f118',
1619
+ created: 3.1,
1620
+ filter: [ 'face', 'emoticon', 'happy', 'approve', 'satisfied', 'rating' ],
1621
+ categories: [ 'Web Application Icons' ] },
1622
+ { name: 'Frown Outlined',
1623
+ id: 'frown-o',
1624
+ unicode: 'f119',
1625
+ created: 3.1,
1626
+ filter: [ 'face', 'emoticon', 'sad', 'disapprove', 'rating' ],
1627
+ categories: [ 'Web Application Icons' ] },
1628
+ { name: 'Meh Outlined',
1629
+ id: 'meh-o',
1630
+ unicode: 'f11a',
1631
+ created: 3.1,
1632
+ filter: [ 'face', 'emoticon', 'rating', 'neutral' ],
1633
+ categories: [ 'Web Application Icons' ] },
1634
+ { name: 'Gamepad',
1635
+ id: 'gamepad',
1636
+ unicode: 'f11b',
1637
+ created: 3.1,
1638
+ filter: [ 'controller' ],
1639
+ categories: [ 'Web Application Icons' ] },
1640
+ { name: 'Keyboard Outlined',
1641
+ id: 'keyboard-o',
1642
+ unicode: 'f11c',
1643
+ created: 3.1,
1644
+ filter: [ 'type', 'input' ],
1645
+ categories: [ 'Web Application Icons' ] },
1646
+ { name: 'Flag Outlined',
1647
+ id: 'flag-o',
1648
+ unicode: 'f11d',
1649
+ created: 3.1,
1650
+ filter: [ 'report', 'notification' ],
1651
+ categories: [ 'Web Application Icons' ] },
1652
+ { name: 'flag-checkered',
1653
+ id: 'flag-checkered',
1654
+ unicode: 'f11e',
1655
+ created: 3.1,
1656
+ filter: [ 'report', 'notification', 'notify' ],
1657
+ categories: [ 'Web Application Icons' ] },
1658
+ { name: 'Terminal',
1659
+ id: 'terminal',
1660
+ unicode: 'f120',
1661
+ created: 3.1,
1662
+ filter: [ 'command', 'prompt', 'code' ],
1663
+ categories: [ 'Web Application Icons' ] },
1664
+ { name: 'Code',
1665
+ id: 'code',
1666
+ unicode: 'f121',
1667
+ created: 3.1,
1668
+ filter: [ 'html', 'brackets' ],
1669
+ categories: [ 'Web Application Icons' ] },
1670
+ { name: 'reply-all',
1671
+ id: 'reply-all',
1672
+ unicode: 'f122',
1673
+ created: 3.1,
1674
+ aliases: [ 'mail-reply-all' ],
1675
+ categories: [ 'Web Application Icons' ] },
1676
+ { name: 'Star Half Outlined',
1677
+ id: 'star-half-o',
1678
+ unicode: 'f123',
1679
+ created: 3.1,
1680
+ filter: [ 'award', 'achievement', 'rating', 'score' ],
1681
+ aliases: [ 'star-half-empty', 'star-half-full' ],
1682
+ categories: [ 'Web Application Icons' ] },
1683
+ { name: 'location-arrow',
1684
+ id: 'location-arrow',
1685
+ unicode: 'f124',
1686
+ created: 3.1,
1687
+ filter: [ 'map', 'coordinates', 'location', 'address', 'place', 'where' ],
1688
+ categories: [ 'Web Application Icons' ] },
1689
+ { name: 'crop',
1690
+ id: 'crop',
1691
+ unicode: 'f125',
1692
+ created: 3.1,
1693
+ categories: [ 'Web Application Icons' ] },
1694
+ { name: 'code-fork',
1695
+ id: 'code-fork',
1696
+ unicode: 'f126',
1697
+ created: 3.1,
1698
+ filter:
1699
+ [ 'git',
1700
+ 'fork',
1701
+ 'vcs',
1702
+ 'svn',
1703
+ 'github',
1704
+ 'rebase',
1705
+ 'version',
1706
+ 'merge' ],
1707
+ categories: [ 'Web Application Icons' ] },
1708
+ { name: 'Chain Broken',
1709
+ id: 'chain-broken',
1710
+ unicode: 'f127',
1711
+ created: 3.1,
1712
+ filter: [ 'remove' ],
1713
+ aliases: [ 'unlink' ],
1714
+ categories: [ 'Text Editor Icons' ] },
1715
+ { name: 'Question',
1716
+ id: 'question',
1717
+ unicode: 'f128',
1718
+ created: 3.1,
1719
+ filter: [ 'help', 'information', 'unknown', 'support' ],
1720
+ categories: [ 'Web Application Icons' ] },
1721
+ { name: 'Info',
1722
+ id: 'info',
1723
+ unicode: 'f129',
1724
+ created: 3.1,
1725
+ filter: [ 'help', 'information', 'more', 'details' ],
1726
+ categories: [ 'Web Application Icons' ] },
1727
+ { name: 'exclamation',
1728
+ id: 'exclamation',
1729
+ unicode: 'f12a',
1730
+ created: 3.1,
1731
+ filter: [ 'warning', 'error', 'problem', 'notification', 'notify', 'alert' ],
1732
+ categories: [ 'Web Application Icons' ] },
1733
+ { name: 'superscript',
1734
+ id: 'superscript',
1735
+ unicode: 'f12b',
1736
+ created: 3.1,
1737
+ filter: [ 'exponential' ],
1738
+ categories: [ 'Text Editor Icons' ] },
1739
+ { name: 'subscript',
1740
+ id: 'subscript',
1741
+ unicode: 'f12c',
1742
+ created: 3.1,
1743
+ categories: [ 'Text Editor Icons' ] },
1744
+ { name: 'eraser',
1745
+ id: 'eraser',
1746
+ unicode: 'f12d',
1747
+ created: 3.1,
1748
+ filter: [ 'remove', 'delete' ],
1749
+ categories: [ 'Text Editor Icons', 'Web Application Icons' ] },
1750
+ { name: 'Puzzle Piece',
1751
+ id: 'puzzle-piece',
1752
+ unicode: 'f12e',
1753
+ created: 3.1,
1754
+ filter: [ 'addon', 'add-on', 'section' ],
1755
+ categories: [ 'Web Application Icons' ] },
1756
+ { name: 'microphone',
1757
+ id: 'microphone',
1758
+ unicode: 'f130',
1759
+ created: 3.1,
1760
+ filter: [ 'record', 'voice', 'sound' ],
1761
+ categories: [ 'Web Application Icons' ] },
1762
+ { name: 'Microphone Slash',
1763
+ id: 'microphone-slash',
1764
+ unicode: 'f131',
1765
+ created: 3.1,
1766
+ filter: [ 'record', 'voice', 'sound', 'mute' ],
1767
+ categories: [ 'Web Application Icons' ] },
1768
+ { name: 'shield',
1769
+ id: 'shield',
1770
+ unicode: 'f132',
1771
+ created: 3.1,
1772
+ filter: [ 'award', 'achievement', 'winner' ],
1773
+ categories: [ 'Web Application Icons' ] },
1774
+ { name: 'calendar-o',
1775
+ id: 'calendar-o',
1776
+ unicode: 'f133',
1777
+ created: 3.1,
1778
+ filter: [ 'date', 'time', 'when', 'event' ],
1779
+ categories: [ 'Web Application Icons' ] },
1780
+ { name: 'fire-extinguisher',
1781
+ id: 'fire-extinguisher',
1782
+ unicode: 'f134',
1783
+ created: 3.1,
1784
+ categories: [ 'Web Application Icons' ] },
1785
+ { name: 'rocket',
1786
+ id: 'rocket',
1787
+ unicode: 'f135',
1788
+ created: 3.1,
1789
+ filter: [ 'app' ],
1790
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
1791
+ { name: 'MaxCDN',
1792
+ id: 'maxcdn',
1793
+ unicode: 'f136',
1794
+ created: 3.1,
1795
+ categories: [ 'Brand Icons' ] },
1796
+ { name: 'Chevron Circle Left',
1797
+ id: 'chevron-circle-left',
1798
+ unicode: 'f137',
1799
+ created: 3.1,
1800
+ filter: [ 'previous', 'back', 'arrow' ],
1801
+ categories: [ 'Directional Icons' ] },
1802
+ { name: 'Chevron Circle Right',
1803
+ id: 'chevron-circle-right',
1804
+ unicode: 'f138',
1805
+ created: 3.1,
1806
+ filter: [ 'next', 'forward', 'arrow' ],
1807
+ categories: [ 'Directional Icons' ] },
1808
+ { name: 'Chevron Circle Up',
1809
+ id: 'chevron-circle-up',
1810
+ unicode: 'f139',
1811
+ created: 3.1,
1812
+ filter: [ 'arrow' ],
1813
+ categories: [ 'Directional Icons' ] },
1814
+ { name: 'Chevron Circle Down',
1815
+ id: 'chevron-circle-down',
1816
+ unicode: 'f13a',
1817
+ created: 3.1,
1818
+ filter: [ 'more', 'dropdown', 'menu', 'arrow' ],
1819
+ categories: [ 'Directional Icons' ] },
1820
+ { name: 'HTML 5 Logo',
1821
+ id: 'html5',
1822
+ unicode: 'f13b',
1823
+ created: 3.1,
1824
+ code: [ 'code', 'html5' ],
1825
+ categories: [ 'Brand Icons' ] },
1826
+ { name: 'CSS 3 Logo',
1827
+ id: 'css3',
1828
+ unicode: 'f13c',
1829
+ created: 3.1,
1830
+ filter: [ 'code' ],
1831
+ categories: [ 'Brand Icons' ] },
1832
+ { name: 'Anchor',
1833
+ id: 'anchor',
1834
+ unicode: 'f13d',
1835
+ created: 3.1,
1836
+ filter: [ 'link' ],
1837
+ categories: [ 'Web Application Icons' ] },
1838
+ { name: 'Unlock Alt',
1839
+ id: 'unlock-alt',
1840
+ unicode: 'f13e',
1841
+ created: 3.1,
1842
+ filter: [ 'protect', 'admin', 'password', 'lock' ],
1843
+ categories: [ 'Web Application Icons' ] },
1844
+ { name: 'Bullseye',
1845
+ id: 'bullseye',
1846
+ unicode: 'f140',
1847
+ created: 3.1,
1848
+ filter: [ 'target' ],
1849
+ categories: [ 'Web Application Icons' ] },
1850
+ { name: 'Ellipsis Horizontal',
1851
+ id: 'ellipsis-h',
1852
+ unicode: 'f141',
1853
+ created: 3.1,
1854
+ filter: [ 'dots' ],
1855
+ categories: [ 'Web Application Icons' ] },
1856
+ { name: 'Ellipsis Vertical',
1857
+ id: 'ellipsis-v',
1858
+ unicode: 'f142',
1859
+ created: 3.1,
1860
+ filter: [ 'dots' ],
1861
+ categories: [ 'Web Application Icons' ] },
1862
+ { name: 'RSS Square',
1863
+ id: 'rss-square',
1864
+ unicode: 'f143',
1865
+ created: 3.1,
1866
+ filter: [ 'feed', 'blog' ],
1867
+ categories: [ 'Web Application Icons' ] },
1868
+ { name: 'Play Circle',
1869
+ id: 'play-circle',
1870
+ unicode: 'f144',
1871
+ created: 3.1,
1872
+ filter: [ 'start', 'playing' ],
1873
+ categories: [ 'Video Player Icons' ] },
1874
+ { name: 'Ticket',
1875
+ id: 'ticket',
1876
+ unicode: 'f145',
1877
+ created: 3.1,
1878
+ filter: [ 'movie', 'pass', 'support' ],
1879
+ categories: [ 'Web Application Icons' ] },
1880
+ { name: 'Minus Square',
1881
+ id: 'minus-square',
1882
+ unicode: 'f146',
1883
+ created: 3.1,
1884
+ filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
1885
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1886
+ { name: 'Minus Square Outlined',
1887
+ id: 'minus-square-o',
1888
+ unicode: 'f147',
1889
+ created: 3.1,
1890
+ filter: [ 'hide', 'minify', 'delete', 'remove', 'trash', 'hide', 'collapse' ],
1891
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1892
+ { name: 'Level Up',
1893
+ id: 'level-up',
1894
+ unicode: 'f148',
1895
+ created: 3.1,
1896
+ filter: [ 'arrow' ],
1897
+ categories: [ 'Web Application Icons' ] },
1898
+ { name: 'Level Down',
1899
+ id: 'level-down',
1900
+ unicode: 'f149',
1901
+ created: 3.1,
1902
+ filter: [ 'arrow' ],
1903
+ categories: [ 'Web Application Icons' ] },
1904
+ { name: 'Check Square',
1905
+ id: 'check-square',
1906
+ unicode: 'f14a',
1907
+ created: 3.1,
1908
+ filter: [ 'checkmark', 'done', 'todo', 'agree', 'accept', 'confirm', 'ok' ],
1909
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
1910
+ { name: 'Pencil Square',
1911
+ id: 'pencil-square',
1912
+ unicode: 'f14b',
1913
+ created: 3.1,
1914
+ filter: [ 'write', 'edit', 'update' ],
1915
+ categories: [ 'Web Application Icons' ] },
1916
+ { name: 'External Link Square',
1917
+ id: 'external-link-square',
1918
+ unicode: 'f14c',
1919
+ created: 3.1,
1920
+ filter: [ 'open', 'new' ],
1921
+ categories: [ 'Web Application Icons' ] },
1922
+ { name: 'Share Square',
1923
+ id: 'share-square',
1924
+ unicode: 'f14d',
1925
+ created: 3.1,
1926
+ filter: [ 'social', 'send' ],
1927
+ categories: [ 'Web Application Icons' ] },
1928
+ { name: 'Compass',
1929
+ id: 'compass',
1930
+ unicode: 'f14e',
1931
+ created: 3.2,
1932
+ filter: [ 'safari', 'directory', 'menu', 'location' ],
1933
+ categories: [ 'Web Application Icons' ] },
1934
+ { name: 'Caret Square Outlined Down',
1935
+ id: 'caret-square-o-down',
1936
+ unicode: 'f150',
1937
+ created: 3.2,
1938
+ aliases: [ 'toggle-down' ],
1939
+ filter: [ 'more', 'dropdown', 'menu' ],
1940
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
1941
+ { name: 'Caret Square Outlined Up',
1942
+ id: 'caret-square-o-up',
1943
+ unicode: 'f151',
1944
+ created: 3.2,
1945
+ aliases: [ 'toggle-up' ],
1946
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
1947
+ { name: 'Caret Square Outlined Right',
1948
+ id: 'caret-square-o-right',
1949
+ unicode: 'f152',
1950
+ created: 3.2,
1951
+ filter: [ 'next', 'forward' ],
1952
+ aliases: [ 'toggle-right' ],
1953
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
1954
+ { name: 'Euro (EUR)',
1955
+ id: 'eur',
1956
+ unicode: 'f153',
1957
+ created: 3.2,
1958
+ aliases: [ 'euro' ],
1959
+ categories: [ 'Currency Icons' ] },
1960
+ { name: 'GBP',
1961
+ id: 'gbp',
1962
+ unicode: 'f154',
1963
+ created: 3.2,
1964
+ categories: [ 'Currency Icons' ] },
1965
+ { name: 'US Dollar',
1966
+ id: 'usd',
1967
+ unicode: 'f155',
1968
+ created: 3.2,
1969
+ aliases: [ 'dollar' ],
1970
+ categories: [ 'Currency Icons' ] },
1971
+ { name: 'Indian Rupee (INR)',
1972
+ id: 'inr',
1973
+ unicode: 'f156',
1974
+ created: 3.2,
1975
+ aliases: [ 'rupee' ],
1976
+ categories: [ 'Currency Icons' ] },
1977
+ { name: 'Japanese Yen (JPY)',
1978
+ id: 'jpy',
1979
+ unicode: 'f157',
1980
+ created: 3.2,
1981
+ aliases: [ 'cny', 'rmb', 'yen' ],
1982
+ categories: [ 'Currency Icons' ] },
1983
+ { name: 'Russian Ruble (RUB)',
1984
+ id: 'rub',
1985
+ unicode: 'f158',
1986
+ created: 4,
1987
+ aliases: [ 'ruble', 'rouble' ],
1988
+ categories: [ 'Currency Icons' ] },
1989
+ { name: 'Korean Won (KRW)',
1990
+ id: 'krw',
1991
+ unicode: 'f159',
1992
+ created: 3.2,
1993
+ aliases: [ 'won' ],
1994
+ categories: [ 'Currency Icons' ] },
1995
+ { name: 'Bitcoin (BTC)',
1996
+ id: 'btc',
1997
+ unicode: 'f15a',
1998
+ created: 3.2,
1999
+ aliases: [ 'bitcoin' ],
2000
+ categories: [ 'Currency Icons', 'Brand Icons' ] },
2001
+ { name: 'File',
2002
+ id: 'file',
2003
+ unicode: 'f15b',
2004
+ created: 3.2,
2005
+ filter: [ 'new', 'page', 'pdf', 'document' ],
2006
+ categories: [ 'Text Editor Icons', 'File Type Icons' ] },
2007
+ { name: 'File Text',
2008
+ id: 'file-text',
2009
+ unicode: 'f15c',
2010
+ created: 3.2,
2011
+ filter: [ 'new', 'page', 'pdf', 'document' ],
2012
+ categories: [ 'Text Editor Icons', 'File Type Icons' ] },
2013
+ { name: 'Sort Alpha Ascending',
2014
+ id: 'sort-alpha-asc',
2015
+ unicode: 'f15d',
2016
+ created: 3.2,
2017
+ categories: [ 'Web Application Icons' ] },
2018
+ { name: 'Sort Alpha Descending',
2019
+ id: 'sort-alpha-desc',
2020
+ unicode: 'f15e',
2021
+ created: 3.2,
2022
+ categories: [ 'Web Application Icons' ] },
2023
+ { name: 'Sort Amount Ascending',
2024
+ id: 'sort-amount-asc',
2025
+ unicode: 'f160',
2026
+ created: 3.2,
2027
+ categories: [ 'Web Application Icons' ] },
2028
+ { name: 'Sort Amount Descending',
2029
+ id: 'sort-amount-desc',
2030
+ unicode: 'f161',
2031
+ created: 3.2,
2032
+ categories: [ 'Web Application Icons' ] },
2033
+ { name: 'Sort Numeric Ascending',
2034
+ id: 'sort-numeric-asc',
2035
+ unicode: 'f162',
2036
+ created: 3.2,
2037
+ filter: [ 'numbers' ],
2038
+ categories: [ 'Web Application Icons' ] },
2039
+ { name: 'Sort Numeric Descending',
2040
+ id: 'sort-numeric-desc',
2041
+ unicode: 'f163',
2042
+ created: 3.2,
2043
+ filter: [ 'numbers' ],
2044
+ categories: [ 'Web Application Icons' ] },
2045
+ { name: 'thumbs-up',
2046
+ id: 'thumbs-up',
2047
+ unicode: 'f164',
2048
+ created: 3.2,
2049
+ filter: [ 'like', 'favorite', 'approve', 'agree', 'hand' ],
2050
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
2051
+ { name: 'thumbs-down',
2052
+ id: 'thumbs-down',
2053
+ unicode: 'f165',
2054
+ created: 3.2,
2055
+ filter: [ 'dislike', 'disapprove', 'disagree', 'hand' ],
2056
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
2057
+ { name: 'YouTube Square',
2058
+ id: 'youtube-square',
2059
+ unicode: 'f166',
2060
+ created: 3.2,
2061
+ filter: [ 'video', 'film' ],
2062
+ categories: [ 'Brand Icons' ] },
2063
+ { name: 'YouTube',
2064
+ id: 'youtube',
2065
+ unicode: 'f167',
2066
+ created: 3.2,
2067
+ filter: [ 'video', 'film' ],
2068
+ categories: [ 'Brand Icons' ] },
2069
+ { name: 'Xing',
2070
+ id: 'xing',
2071
+ unicode: 'f168',
2072
+ created: 3.2,
2073
+ categories: [ 'Brand Icons' ] },
2074
+ { name: 'Xing Square',
2075
+ id: 'xing-square',
2076
+ unicode: 'f169',
2077
+ created: 3.2,
2078
+ categories: [ 'Brand Icons' ] },
2079
+ { name: 'YouTube Play',
2080
+ id: 'youtube-play',
2081
+ unicode: 'f16a',
2082
+ created: 3.2,
2083
+ filter: [ 'start', 'playing' ],
2084
+ categories: [ 'Brand Icons', 'Video Player Icons' ] },
2085
+ { name: 'Dropbox',
2086
+ id: 'dropbox',
2087
+ unicode: 'f16b',
2088
+ created: 3.2,
2089
+ categories: [ 'Brand Icons' ] },
2090
+ { name: 'Stack Overflow',
2091
+ id: 'stack-overflow',
2092
+ unicode: 'f16c',
2093
+ created: 3.2,
2094
+ categories: [ 'Brand Icons' ] },
2095
+ { name: 'Instagram',
2096
+ id: 'instagram',
2097
+ unicode: 'f16d',
2098
+ created: 4.6,
2099
+ categories: [ 'Brand Icons' ] },
2100
+ { name: 'Flickr',
2101
+ id: 'flickr',
2102
+ unicode: 'f16e',
2103
+ created: 3.2,
2104
+ categories: [ 'Brand Icons' ] },
2105
+ { name: 'App.net',
2106
+ id: 'adn',
2107
+ unicode: 'f170',
2108
+ created: 3.2,
2109
+ categories: [ 'Brand Icons' ] },
2110
+ { name: 'Bitbucket',
2111
+ id: 'bitbucket',
2112
+ unicode: 'f171',
2113
+ created: 3.2,
2114
+ filter: [ 'git' ],
2115
+ categories: [ 'Brand Icons' ] },
2116
+ { name: 'Bitbucket Square',
2117
+ id: 'bitbucket-square',
2118
+ unicode: 'f172',
2119
+ created: 3.2,
2120
+ filter: [ 'git' ],
2121
+ categories: [ 'Brand Icons' ] },
2122
+ { name: 'Tumblr',
2123
+ id: 'tumblr',
2124
+ unicode: 'f173',
2125
+ created: 3.2,
2126
+ categories: [ 'Brand Icons' ] },
2127
+ { name: 'Tumblr Square',
2128
+ id: 'tumblr-square',
2129
+ unicode: 'f174',
2130
+ created: 3.2,
2131
+ categories: [ 'Brand Icons' ] },
2132
+ { name: 'Long Arrow Down',
2133
+ id: 'long-arrow-down',
2134
+ unicode: 'f175',
2135
+ created: 3.2,
2136
+ categories: [ 'Directional Icons' ] },
2137
+ { name: 'Long Arrow Up',
2138
+ id: 'long-arrow-up',
2139
+ unicode: 'f176',
2140
+ created: 3.2,
2141
+ categories: [ 'Directional Icons' ] },
2142
+ { name: 'Long Arrow Left',
2143
+ id: 'long-arrow-left',
2144
+ unicode: 'f177',
2145
+ created: 3.2,
2146
+ filter: [ 'previous', 'back' ],
2147
+ categories: [ 'Directional Icons' ] },
2148
+ { name: 'Long Arrow Right',
2149
+ id: 'long-arrow-right',
2150
+ unicode: 'f178',
2151
+ created: 3.2,
2152
+ categories: [ 'Directional Icons' ] },
2153
+ { name: 'Apple',
2154
+ id: 'apple',
2155
+ unicode: 'f179',
2156
+ created: 3.2,
2157
+ filter: [ 'osx', 'food' ],
2158
+ categories: [ 'Brand Icons' ] },
2159
+ { name: 'Windows',
2160
+ id: 'windows',
2161
+ unicode: 'f17a',
2162
+ created: 3.2,
2163
+ filter: [ 'microsoft' ],
2164
+ categories: [ 'Brand Icons' ] },
2165
+ { name: 'Android',
2166
+ id: 'android',
2167
+ unicode: 'f17b',
2168
+ created: 3.2,
2169
+ filter: [ 'robot' ],
2170
+ categories: [ 'Brand Icons' ] },
2171
+ { name: 'Linux',
2172
+ id: 'linux',
2173
+ unicode: 'f17c',
2174
+ created: 3.2,
2175
+ filter: [ 'tux' ],
2176
+ categories: [ 'Brand Icons' ] },
2177
+ { name: 'Dribbble',
2178
+ id: 'dribbble',
2179
+ unicode: 'f17d',
2180
+ created: 3.2,
2181
+ categories: [ 'Brand Icons' ] },
2182
+ { name: 'Skype',
2183
+ id: 'skype',
2184
+ unicode: 'f17e',
2185
+ created: 3.2,
2186
+ categories: [ 'Brand Icons' ] },
2187
+ { name: 'Foursquare',
2188
+ id: 'foursquare',
2189
+ unicode: 'f180',
2190
+ created: 3.2,
2191
+ categories: [ 'Brand Icons' ] },
2192
+ { name: 'Trello',
2193
+ id: 'trello',
2194
+ unicode: 'f181',
2195
+ created: 3.2,
2196
+ categories: [ 'Brand Icons' ] },
2197
+ { name: 'Female',
2198
+ id: 'female',
2199
+ unicode: 'f182',
2200
+ created: 3.2,
2201
+ filter: [ 'woman', 'user', 'person', 'profile' ],
2202
+ categories: [ 'Web Application Icons' ] },
2203
+ { name: 'Male',
2204
+ id: 'male',
2205
+ unicode: 'f183',
2206
+ created: 3.2,
2207
+ filter: [ 'man', 'user', 'person', 'profile' ],
2208
+ categories: [ 'Web Application Icons' ] },
2209
+ { name: 'Gratipay (Gittip)',
2210
+ id: 'gratipay',
2211
+ unicode: 'f184',
2212
+ created: 3.2,
2213
+ aliases: [ 'gittip' ],
2214
+ filter: [ 'heart', 'like', 'favorite', 'love' ],
2215
+ categories: [ 'Brand Icons' ] },
2216
+ { name: 'Sun Outlined',
2217
+ id: 'sun-o',
2218
+ unicode: 'f185',
2219
+ created: 3.2,
2220
+ filter: [ 'weather', 'contrast', 'lighter', 'brighten', 'day' ],
2221
+ categories: [ 'Web Application Icons' ] },
2222
+ { name: 'Moon Outlined',
2223
+ id: 'moon-o',
2224
+ unicode: 'f186',
2225
+ created: 3.2,
2226
+ filter: [ 'night', 'darker', 'contrast' ],
2227
+ categories: [ 'Web Application Icons' ] },
2228
+ { name: 'Archive',
2229
+ id: 'archive',
2230
+ unicode: 'f187',
2231
+ created: 3.2,
2232
+ filter: [ 'box', 'storage' ],
2233
+ categories: [ 'Web Application Icons' ] },
2234
+ { name: 'Bug',
2235
+ id: 'bug',
2236
+ unicode: 'f188',
2237
+ created: 3.2,
2238
+ filter: [ 'report', 'insect' ],
2239
+ categories: [ 'Web Application Icons' ] },
2240
+ { name: 'VK',
2241
+ id: 'vk',
2242
+ unicode: 'f189',
2243
+ created: 3.2,
2244
+ categories: [ 'Brand Icons' ] },
2245
+ { name: 'Weibo',
2246
+ id: 'weibo',
2247
+ unicode: 'f18a',
2248
+ created: 3.2,
2249
+ categories: [ 'Brand Icons' ] },
2250
+ { name: 'Renren',
2251
+ id: 'renren',
2252
+ unicode: 'f18b',
2253
+ created: 3.2,
2254
+ categories: [ 'Brand Icons' ] },
2255
+ { name: 'Pagelines',
2256
+ id: 'pagelines',
2257
+ unicode: 'f18c',
2258
+ created: 4,
2259
+ filter: [ 'leaf', 'leaves', 'tree', 'plant', 'eco', 'nature' ],
2260
+ categories: [ 'Brand Icons' ] },
2261
+ { name: 'Stack Exchange',
2262
+ id: 'stack-exchange',
2263
+ unicode: 'f18d',
2264
+ created: 4,
2265
+ categories: [ 'Brand Icons' ] },
2266
+ { name: 'Arrow Circle Outlined Right',
2267
+ id: 'arrow-circle-o-right',
2268
+ unicode: 'f18e',
2269
+ created: 4,
2270
+ filter: [ 'next', 'forward' ],
2271
+ categories: [ 'Directional Icons' ] },
2272
+ { name: 'Arrow Circle Outlined Left',
2273
+ id: 'arrow-circle-o-left',
2274
+ unicode: 'f190',
2275
+ created: 4,
2276
+ filter: [ 'previous', 'back' ],
2277
+ categories: [ 'Directional Icons' ] },
2278
+ { name: 'Caret Square Outlined Left',
2279
+ id: 'caret-square-o-left',
2280
+ unicode: 'f191',
2281
+ created: 4,
2282
+ filter: [ 'previous', 'back' ],
2283
+ aliases: [ 'toggle-left' ],
2284
+ categories: [ 'Web Application Icons', 'Directional Icons' ] },
2285
+ { name: 'Dot Circle Outlined',
2286
+ id: 'dot-circle-o',
2287
+ unicode: 'f192',
2288
+ created: 4,
2289
+ filter: [ 'target', 'bullseye', 'notification' ],
2290
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
2291
+ { name: 'Wheelchair',
2292
+ id: 'wheelchair',
2293
+ unicode: 'f193',
2294
+ created: 4,
2295
+ filter: [ 'handicap', 'person' ],
2296
+ categories:
2297
+ [ 'Web Application Icons',
2298
+ 'Medical Icons',
2299
+ 'Transportation Icons',
2300
+ 'Accessibility Icons' ] },
2301
+ { name: 'Vimeo Square',
2302
+ id: 'vimeo-square',
2303
+ unicode: 'f194',
2304
+ created: 4,
2305
+ categories: [ 'Brand Icons' ] },
2306
+ { name: 'Turkish Lira (TRY)',
2307
+ id: 'try',
2308
+ unicode: 'f195',
2309
+ created: 4,
2310
+ aliases: [ 'turkish-lira' ],
2311
+ categories: [ 'Currency Icons' ] },
2312
+ { name: 'Plus Square Outlined',
2313
+ id: 'plus-square-o',
2314
+ unicode: 'f196',
2315
+ created: 4,
2316
+ filter: [ 'add', 'new', 'create', 'expand' ],
2317
+ categories: [ 'Web Application Icons', 'Form Control Icons' ] },
2318
+ { name: 'Space Shuttle',
2319
+ id: 'space-shuttle',
2320
+ unicode: 'f197',
2321
+ created: 4.1,
2322
+ filter: null,
2323
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2324
+ { name: 'Slack Logo',
2325
+ id: 'slack',
2326
+ unicode: 'f198',
2327
+ created: 4.1,
2328
+ filter: [ 'hashtag', 'anchor', 'hash' ],
2329
+ categories: [ 'Brand Icons' ] },
2330
+ { name: 'Envelope Square',
2331
+ id: 'envelope-square',
2332
+ unicode: 'f199',
2333
+ created: 4.1,
2334
+ categories: [ 'Web Application Icons' ] },
2335
+ { name: 'WordPress Logo',
2336
+ id: 'wordpress',
2337
+ unicode: 'f19a',
2338
+ created: 4.1,
2339
+ categories: [ 'Brand Icons' ] },
2340
+ { name: 'OpenID',
2341
+ id: 'openid',
2342
+ unicode: 'f19b',
2343
+ created: 4.1,
2344
+ categories: [ 'Brand Icons' ] },
2345
+ { name: 'University',
2346
+ id: 'university',
2347
+ unicode: 'f19c',
2348
+ created: 4.1,
2349
+ aliases: [ 'institution', 'bank' ],
2350
+ categories: [ 'Web Application Icons' ] },
2351
+ { name: 'Graduation Cap',
2352
+ id: 'graduation-cap',
2353
+ unicode: 'f19d',
2354
+ created: 4.1,
2355
+ aliases: [ 'mortar-board' ],
2356
+ filter: [ 'learning', 'school', 'student' ],
2357
+ categories: [ 'Web Application Icons' ] },
2358
+ { name: 'Yahoo Logo',
2359
+ id: 'yahoo',
2360
+ unicode: 'f19e',
2361
+ created: 4.1,
2362
+ categories: [ 'Brand Icons' ] },
2363
+ { name: 'Google Logo',
2364
+ id: 'google',
2365
+ unicode: 'f1a0',
2366
+ created: 4.1,
2367
+ categories: [ 'Brand Icons' ] },
2368
+ { name: 'reddit Logo',
2369
+ id: 'reddit',
2370
+ unicode: 'f1a1',
2371
+ created: 4.1,
2372
+ categories: [ 'Brand Icons' ] },
2373
+ { name: 'reddit Square',
2374
+ id: 'reddit-square',
2375
+ unicode: 'f1a2',
2376
+ created: 4.1,
2377
+ categories: [ 'Brand Icons' ] },
2378
+ { name: 'StumbleUpon Circle',
2379
+ id: 'stumbleupon-circle',
2380
+ unicode: 'f1a3',
2381
+ created: 4.1,
2382
+ categories: [ 'Brand Icons' ] },
2383
+ { name: 'StumbleUpon Logo',
2384
+ id: 'stumbleupon',
2385
+ unicode: 'f1a4',
2386
+ created: 4.1,
2387
+ categories: [ 'Brand Icons' ] },
2388
+ { name: 'Delicious Logo',
2389
+ id: 'delicious',
2390
+ unicode: 'f1a5',
2391
+ created: 4.1,
2392
+ categories: [ 'Brand Icons' ] },
2393
+ { name: 'Digg Logo',
2394
+ id: 'digg',
2395
+ unicode: 'f1a6',
2396
+ created: 4.1,
2397
+ categories: [ 'Brand Icons' ] },
2398
+ { name: 'Pied Piper PP Logo (Old)',
2399
+ id: 'pied-piper-pp',
2400
+ unicode: 'f1a7',
2401
+ created: 4.1,
2402
+ categories: [ 'Brand Icons' ] },
2403
+ { name: 'Pied Piper Alternate Logo',
2404
+ id: 'pied-piper-alt',
2405
+ unicode: 'f1a8',
2406
+ created: 4.1,
2407
+ categories: [ 'Brand Icons' ] },
2408
+ { name: 'Drupal Logo',
2409
+ id: 'drupal',
2410
+ unicode: 'f1a9',
2411
+ created: 4.1,
2412
+ categories: [ 'Brand Icons' ] },
2413
+ { name: 'Joomla Logo',
2414
+ id: 'joomla',
2415
+ unicode: 'f1aa',
2416
+ created: 4.1,
2417
+ categories: [ 'Brand Icons' ] },
2418
+ { name: 'Language',
2419
+ id: 'language',
2420
+ unicode: 'f1ab',
2421
+ created: 4.1,
2422
+ categories: [ 'Web Application Icons' ] },
2423
+ { name: 'Fax',
2424
+ id: 'fax',
2425
+ unicode: 'f1ac',
2426
+ created: 4.1,
2427
+ categories: [ 'Web Application Icons' ] },
2428
+ { name: 'Building',
2429
+ id: 'building',
2430
+ unicode: 'f1ad',
2431
+ created: 4.1,
2432
+ filter: [ 'work', 'business', 'apartment', 'office', 'company' ],
2433
+ categories: [ 'Web Application Icons' ] },
2434
+ { name: 'Child',
2435
+ id: 'child',
2436
+ unicode: 'f1ae',
2437
+ created: 4.1,
2438
+ categories: [ 'Web Application Icons' ] },
2439
+ { name: 'Paw',
2440
+ id: 'paw',
2441
+ unicode: 'f1b0',
2442
+ created: 4.1,
2443
+ filter: [ 'pet' ],
2444
+ categories: [ 'Web Application Icons' ] },
2445
+ { name: 'spoon',
2446
+ id: 'spoon',
2447
+ unicode: 'f1b1',
2448
+ created: 4.1,
2449
+ categories: [ 'Web Application Icons' ] },
2450
+ { name: 'Cube',
2451
+ id: 'cube',
2452
+ unicode: 'f1b2',
2453
+ created: 4.1,
2454
+ categories: [ 'Web Application Icons' ] },
2455
+ { name: 'Cubes',
2456
+ id: 'cubes',
2457
+ unicode: 'f1b3',
2458
+ created: 4.1,
2459
+ categories: [ 'Web Application Icons' ] },
2460
+ { name: 'Behance',
2461
+ id: 'behance',
2462
+ unicode: 'f1b4',
2463
+ created: 4.1,
2464
+ categories: [ 'Brand Icons' ] },
2465
+ { name: 'Behance Square',
2466
+ id: 'behance-square',
2467
+ unicode: 'f1b5',
2468
+ created: 4.1,
2469
+ categories: [ 'Brand Icons' ] },
2470
+ { name: 'Steam',
2471
+ id: 'steam',
2472
+ unicode: 'f1b6',
2473
+ created: 4.1,
2474
+ categories: [ 'Brand Icons' ] },
2475
+ { name: 'Steam Square',
2476
+ id: 'steam-square',
2477
+ unicode: 'f1b7',
2478
+ created: 4.1,
2479
+ categories: [ 'Brand Icons' ] },
2480
+ { name: 'Recycle',
2481
+ id: 'recycle',
2482
+ unicode: 'f1b8',
2483
+ created: 4.1,
2484
+ categories: [ 'Web Application Icons' ] },
2485
+ { name: 'Car',
2486
+ id: 'car',
2487
+ unicode: 'f1b9',
2488
+ created: 4.1,
2489
+ aliases: [ 'automobile' ],
2490
+ filter: [ 'vehicle' ],
2491
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2492
+ { name: 'Taxi',
2493
+ id: 'taxi',
2494
+ unicode: 'f1ba',
2495
+ created: 4.1,
2496
+ aliases: [ 'cab' ],
2497
+ filter: [ 'vehicle' ],
2498
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2499
+ { name: 'Tree',
2500
+ id: 'tree',
2501
+ unicode: 'f1bb',
2502
+ created: 4.1,
2503
+ categories: [ 'Web Application Icons' ] },
2504
+ { name: 'Spotify',
2505
+ id: 'spotify',
2506
+ unicode: 'f1bc',
2507
+ created: 4.1,
2508
+ categories: [ 'Brand Icons' ] },
2509
+ { name: 'deviantART',
2510
+ id: 'deviantart',
2511
+ unicode: 'f1bd',
2512
+ created: 4.1,
2513
+ categories: [ 'Brand Icons' ] },
2514
+ { name: 'SoundCloud',
2515
+ id: 'soundcloud',
2516
+ unicode: 'f1be',
2517
+ created: 4.1,
2518
+ categories: [ 'Brand Icons' ] },
2519
+ { name: 'Database',
2520
+ id: 'database',
2521
+ unicode: 'f1c0',
2522
+ created: 4.1,
2523
+ categories: [ 'Web Application Icons' ] },
2524
+ { name: 'PDF File Outlined',
2525
+ id: 'file-pdf-o',
2526
+ unicode: 'f1c1',
2527
+ created: 4.1,
2528
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2529
+ { name: 'Word File Outlined',
2530
+ id: 'file-word-o',
2531
+ unicode: 'f1c2',
2532
+ created: 4.1,
2533
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2534
+ { name: 'Excel File Outlined',
2535
+ id: 'file-excel-o',
2536
+ unicode: 'f1c3',
2537
+ created: 4.1,
2538
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2539
+ { name: 'Powerpoint File Outlined',
2540
+ id: 'file-powerpoint-o',
2541
+ unicode: 'f1c4',
2542
+ created: 4.1,
2543
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2544
+ { name: 'Image File Outlined',
2545
+ id: 'file-image-o',
2546
+ unicode: 'f1c5',
2547
+ created: 4.1,
2548
+ aliases: [ 'file-photo-o', 'file-picture-o' ],
2549
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2550
+ { name: 'Archive File Outlined',
2551
+ id: 'file-archive-o',
2552
+ unicode: 'f1c6',
2553
+ created: 4.1,
2554
+ aliases: [ 'file-zip-o' ],
2555
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2556
+ { name: 'Audio File Outlined',
2557
+ id: 'file-audio-o',
2558
+ unicode: 'f1c7',
2559
+ created: 4.1,
2560
+ aliases: [ 'file-sound-o' ],
2561
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2562
+ { name: 'Video File Outlined',
2563
+ id: 'file-video-o',
2564
+ unicode: 'f1c8',
2565
+ created: 4.1,
2566
+ aliases: [ 'file-movie-o' ],
2567
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2568
+ { name: 'Code File Outlined',
2569
+ id: 'file-code-o',
2570
+ unicode: 'f1c9',
2571
+ created: 4.1,
2572
+ categories: [ 'Web Application Icons', 'File Type Icons' ] },
2573
+ { name: 'Vine',
2574
+ id: 'vine',
2575
+ unicode: 'f1ca',
2576
+ created: 4.1,
2577
+ categories: [ 'Brand Icons' ] },
2578
+ { name: 'Codepen',
2579
+ id: 'codepen',
2580
+ unicode: 'f1cb',
2581
+ created: 4.1,
2582
+ categories: [ 'Brand Icons' ] },
2583
+ { name: 'jsFiddle',
2584
+ id: 'jsfiddle',
2585
+ unicode: 'f1cc',
2586
+ created: 4.1,
2587
+ categories: [ 'Brand Icons' ] },
2588
+ { name: 'Life Ring',
2589
+ id: 'life-ring',
2590
+ unicode: 'f1cd',
2591
+ created: 4.1,
2592
+ aliases: [ 'life-bouy', 'life-buoy', 'life-saver', 'support' ],
2593
+ categories: [ 'Web Application Icons' ] },
2594
+ { name: 'Circle Outlined Notched',
2595
+ id: 'circle-o-notch',
2596
+ unicode: 'f1ce',
2597
+ created: 4.1,
2598
+ categories: [ 'Web Application Icons', 'Spinner Icons' ] },
2599
+ { name: 'Rebel Alliance',
2600
+ id: 'rebel',
2601
+ unicode: 'f1d0',
2602
+ created: 4.1,
2603
+ aliases: [ 'ra', 'resistance' ],
2604
+ categories: [ 'Brand Icons' ] },
2605
+ { name: 'Galactic Empire',
2606
+ id: 'empire',
2607
+ unicode: 'f1d1',
2608
+ created: 4.1,
2609
+ aliases: [ 'ge' ],
2610
+ categories: [ 'Brand Icons' ] },
2611
+ { name: 'Git Square',
2612
+ id: 'git-square',
2613
+ unicode: 'f1d2',
2614
+ created: 4.1,
2615
+ categories: [ 'Brand Icons' ] },
2616
+ { name: 'Git',
2617
+ id: 'git',
2618
+ unicode: 'f1d3',
2619
+ created: 4.1,
2620
+ categories: [ 'Brand Icons' ] },
2621
+ { name: 'Hacker News',
2622
+ id: 'hacker-news',
2623
+ unicode: 'f1d4',
2624
+ created: 4.1,
2625
+ aliases: [ 'y-combinator-square', 'yc-square' ],
2626
+ categories: [ 'Brand Icons' ] },
2627
+ { name: 'Tencent Weibo',
2628
+ id: 'tencent-weibo',
2629
+ unicode: 'f1d5',
2630
+ created: 4.1,
2631
+ categories: [ 'Brand Icons' ] },
2632
+ { name: 'QQ',
2633
+ id: 'qq',
2634
+ unicode: 'f1d6',
2635
+ created: 4.1,
2636
+ categories: [ 'Brand Icons' ] },
2637
+ { name: 'Weixin (WeChat)',
2638
+ id: 'weixin',
2639
+ unicode: 'f1d7',
2640
+ created: 4.1,
2641
+ aliases: [ 'wechat' ],
2642
+ categories: [ 'Brand Icons' ] },
2643
+ { name: 'Paper Plane',
2644
+ id: 'paper-plane',
2645
+ unicode: 'f1d8',
2646
+ created: 4.1,
2647
+ aliases: [ 'send' ],
2648
+ categories: [ 'Web Application Icons' ] },
2649
+ { name: 'Paper Plane Outlined',
2650
+ id: 'paper-plane-o',
2651
+ unicode: 'f1d9',
2652
+ created: 4.1,
2653
+ aliases: [ 'send-o' ],
2654
+ categories: [ 'Web Application Icons' ] },
2655
+ { name: 'History',
2656
+ id: 'history',
2657
+ unicode: 'f1da',
2658
+ created: 4.1,
2659
+ categories: [ 'Web Application Icons' ] },
2660
+ { name: 'Circle Outlined Thin',
2661
+ id: 'circle-thin',
2662
+ unicode: 'f1db',
2663
+ created: 4.1,
2664
+ categories: [ 'Web Application Icons' ] },
2665
+ { name: 'header',
2666
+ id: 'header',
2667
+ unicode: 'f1dc',
2668
+ created: 4.1,
2669
+ filter: [ 'heading' ],
2670
+ categories: [ 'Text Editor Icons' ] },
2671
+ { name: 'paragraph',
2672
+ id: 'paragraph',
2673
+ unicode: 'f1dd',
2674
+ created: 4.1,
2675
+ categories: [ 'Text Editor Icons' ] },
2676
+ { name: 'Sliders',
2677
+ id: 'sliders',
2678
+ unicode: 'f1de',
2679
+ created: 4.1,
2680
+ filter: [ 'settings' ],
2681
+ categories: [ 'Web Application Icons' ] },
2682
+ { name: 'Share Alt',
2683
+ id: 'share-alt',
2684
+ unicode: 'f1e0',
2685
+ created: 4.1,
2686
+ categories: [ 'Web Application Icons', 'Brand Icons' ] },
2687
+ { name: 'Share Alt Square',
2688
+ id: 'share-alt-square',
2689
+ unicode: 'f1e1',
2690
+ created: 4.1,
2691
+ categories: [ 'Web Application Icons', 'Brand Icons' ] },
2692
+ { name: 'Bomb',
2693
+ id: 'bomb',
2694
+ unicode: 'f1e2',
2695
+ created: 4.1,
2696
+ categories: [ 'Web Application Icons' ] },
2697
+ { name: 'Futbol Outlined',
2698
+ id: 'futbol-o',
2699
+ unicode: 'f1e3',
2700
+ created: 4.2,
2701
+ aliases: [ 'soccer-ball-o' ],
2702
+ categories: [ 'Web Application Icons' ] },
2703
+ { name: 'TTY',
2704
+ id: 'tty',
2705
+ unicode: 'f1e4',
2706
+ created: 4.2,
2707
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
2708
+ { name: 'Binoculars',
2709
+ id: 'binoculars',
2710
+ unicode: 'f1e5',
2711
+ created: 4.2,
2712
+ categories: [ 'Web Application Icons' ] },
2713
+ { name: 'Plug',
2714
+ id: 'plug',
2715
+ unicode: 'f1e6',
2716
+ created: 4.2,
2717
+ filter: [ 'power', 'connect' ],
2718
+ categories: [ 'Web Application Icons' ] },
2719
+ { name: 'Slideshare',
2720
+ id: 'slideshare',
2721
+ unicode: 'f1e7',
2722
+ created: 4.2,
2723
+ categories: [ 'Brand Icons' ] },
2724
+ { name: 'Twitch',
2725
+ id: 'twitch',
2726
+ unicode: 'f1e8',
2727
+ created: 4.2,
2728
+ categories: [ 'Brand Icons' ] },
2729
+ { name: 'Yelp',
2730
+ id: 'yelp',
2731
+ unicode: 'f1e9',
2732
+ created: 4.2,
2733
+ categories: [ 'Brand Icons' ] },
2734
+ { name: 'Newspaper Outlined',
2735
+ id: 'newspaper-o',
2736
+ unicode: 'f1ea',
2737
+ created: 4.2,
2738
+ filter: [ 'press' ],
2739
+ categories: [ 'Web Application Icons' ] },
2740
+ { name: 'WiFi',
2741
+ id: 'wifi',
2742
+ unicode: 'f1eb',
2743
+ created: 4.2,
2744
+ categories: [ 'Web Application Icons' ] },
2745
+ { name: 'Calculator',
2746
+ id: 'calculator',
2747
+ unicode: 'f1ec',
2748
+ created: 4.2,
2749
+ categories: [ 'Web Application Icons' ] },
2750
+ { name: 'Paypal',
2751
+ id: 'paypal',
2752
+ unicode: 'f1ed',
2753
+ created: 4.2,
2754
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2755
+ { name: 'Google Wallet',
2756
+ id: 'google-wallet',
2757
+ unicode: 'f1ee',
2758
+ created: 4.2,
2759
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2760
+ { name: 'Visa Credit Card',
2761
+ id: 'cc-visa',
2762
+ unicode: 'f1f0',
2763
+ created: 4.2,
2764
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2765
+ { name: 'MasterCard Credit Card',
2766
+ id: 'cc-mastercard',
2767
+ unicode: 'f1f1',
2768
+ created: 4.2,
2769
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2770
+ { name: 'Discover Credit Card',
2771
+ id: 'cc-discover',
2772
+ unicode: 'f1f2',
2773
+ created: 4.2,
2774
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2775
+ { name: 'American Express Credit Card',
2776
+ id: 'cc-amex',
2777
+ unicode: 'f1f3',
2778
+ created: 4.2,
2779
+ filter: [ 'amex' ],
2780
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2781
+ { name: 'Paypal Credit Card',
2782
+ id: 'cc-paypal',
2783
+ unicode: 'f1f4',
2784
+ created: 4.2,
2785
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2786
+ { name: 'Stripe Credit Card',
2787
+ id: 'cc-stripe',
2788
+ unicode: 'f1f5',
2789
+ created: 4.2,
2790
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
2791
+ { name: 'Bell Slash',
2792
+ id: 'bell-slash',
2793
+ unicode: 'f1f6',
2794
+ created: 4.2,
2795
+ categories: [ 'Web Application Icons' ] },
2796
+ { name: 'Bell Slash Outlined',
2797
+ id: 'bell-slash-o',
2798
+ unicode: 'f1f7',
2799
+ created: 4.2,
2800
+ categories: [ 'Web Application Icons' ] },
2801
+ { name: 'Trash',
2802
+ id: 'trash',
2803
+ unicode: 'f1f8',
2804
+ created: 4.2,
2805
+ filter: [ 'garbage', 'delete', 'remove', 'hide' ],
2806
+ categories: [ 'Web Application Icons' ] },
2807
+ { name: 'Copyright',
2808
+ id: 'copyright',
2809
+ unicode: 'f1f9',
2810
+ created: 4.2,
2811
+ categories: [ 'Web Application Icons' ] },
2812
+ { name: 'At',
2813
+ id: 'at',
2814
+ unicode: 'f1fa',
2815
+ created: 4.2,
2816
+ categories: [ 'Web Application Icons' ] },
2817
+ { name: 'Eyedropper',
2818
+ id: 'eyedropper',
2819
+ unicode: 'f1fb',
2820
+ created: 4.2,
2821
+ categories: [ 'Web Application Icons' ] },
2822
+ { name: 'Paint Brush',
2823
+ id: 'paint-brush',
2824
+ unicode: 'f1fc',
2825
+ created: 4.2,
2826
+ categories: [ 'Web Application Icons' ] },
2827
+ { name: 'Birthday Cake',
2828
+ id: 'birthday-cake',
2829
+ unicode: 'f1fd',
2830
+ created: 4.2,
2831
+ categories: [ 'Web Application Icons' ] },
2832
+ { name: 'Area Chart',
2833
+ id: 'area-chart',
2834
+ unicode: 'f1fe',
2835
+ created: 4.2,
2836
+ filter: [ 'graph', 'analytics' ],
2837
+ categories: [ 'Web Application Icons', 'Chart Icons' ] },
2838
+ { name: 'Pie Chart',
2839
+ id: 'pie-chart',
2840
+ unicode: 'f200',
2841
+ created: 4.2,
2842
+ filter: [ 'graph', 'analytics' ],
2843
+ categories: [ 'Web Application Icons', 'Chart Icons' ] },
2844
+ { name: 'Line Chart',
2845
+ id: 'line-chart',
2846
+ unicode: 'f201',
2847
+ created: 4.2,
2848
+ filter: [ 'graph', 'analytics' ],
2849
+ categories: [ 'Web Application Icons', 'Chart Icons' ] },
2850
+ { name: 'last.fm',
2851
+ id: 'lastfm',
2852
+ unicode: 'f202',
2853
+ created: 4.2,
2854
+ categories: [ 'Brand Icons' ] },
2855
+ { name: 'last.fm Square',
2856
+ id: 'lastfm-square',
2857
+ unicode: 'f203',
2858
+ created: 4.2,
2859
+ categories: [ 'Brand Icons' ] },
2860
+ { name: 'Toggle Off',
2861
+ id: 'toggle-off',
2862
+ unicode: 'f204',
2863
+ created: 4.2,
2864
+ categories: [ 'Web Application Icons' ] },
2865
+ { name: 'Toggle On',
2866
+ id: 'toggle-on',
2867
+ unicode: 'f205',
2868
+ created: 4.2,
2869
+ categories: [ 'Web Application Icons' ] },
2870
+ { name: 'Bicycle',
2871
+ id: 'bicycle',
2872
+ unicode: 'f206',
2873
+ created: 4.2,
2874
+ filter: [ 'vehicle', 'bike' ],
2875
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2876
+ { name: 'Bus',
2877
+ id: 'bus',
2878
+ unicode: 'f207',
2879
+ created: 4.2,
2880
+ filter: [ 'vehicle' ],
2881
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2882
+ { name: 'ioxhost',
2883
+ id: 'ioxhost',
2884
+ unicode: 'f208',
2885
+ created: 4.2,
2886
+ url: 'ioxhost.co.uk',
2887
+ categories: [ 'Brand Icons' ] },
2888
+ { name: 'AngelList',
2889
+ id: 'angellist',
2890
+ unicode: 'f209',
2891
+ created: 4.2,
2892
+ categories: [ 'Brand Icons' ] },
2893
+ { name: 'Closed Captions',
2894
+ id: 'cc',
2895
+ unicode: 'f20a',
2896
+ created: 4.2,
2897
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
2898
+ { name: 'Shekel (ILS)',
2899
+ id: 'ils',
2900
+ unicode: 'f20b',
2901
+ created: 4.2,
2902
+ aliases: [ 'shekel', 'sheqel' ],
2903
+ categories: [ 'Currency Icons' ] },
2904
+ { name: 'meanpath',
2905
+ id: 'meanpath',
2906
+ unicode: 'f20c',
2907
+ created: 4.2,
2908
+ url: 'meanpath.com',
2909
+ categories: [ 'Brand Icons' ] },
2910
+ { name: 'BuySellAds',
2911
+ id: 'buysellads',
2912
+ unicode: 'f20d',
2913
+ created: 4.3,
2914
+ url: 'buysellads.com',
2915
+ categories: [ 'Brand Icons' ] },
2916
+ { name: 'Connect Develop',
2917
+ id: 'connectdevelop',
2918
+ unicode: 'f20e',
2919
+ created: 4.3,
2920
+ url: 'connectdevelop.com',
2921
+ categories: [ 'Brand Icons' ] },
2922
+ { name: 'DashCube',
2923
+ id: 'dashcube',
2924
+ unicode: 'f210',
2925
+ created: 4.3,
2926
+ url: 'dashcube.com',
2927
+ categories: [ 'Brand Icons' ] },
2928
+ { name: 'Forumbee',
2929
+ id: 'forumbee',
2930
+ unicode: 'f211',
2931
+ created: 4.3,
2932
+ url: 'forumbee.com',
2933
+ categories: [ 'Brand Icons' ] },
2934
+ { name: 'Leanpub',
2935
+ id: 'leanpub',
2936
+ unicode: 'f212',
2937
+ created: 4.3,
2938
+ url: 'leanpub.com',
2939
+ categories: [ 'Brand Icons' ] },
2940
+ { name: 'Sellsy',
2941
+ id: 'sellsy',
2942
+ unicode: 'f213',
2943
+ created: 4.3,
2944
+ url: 'sellsy.com',
2945
+ categories: [ 'Brand Icons' ] },
2946
+ { name: 'Shirts in Bulk',
2947
+ id: 'shirtsinbulk',
2948
+ unicode: 'f214',
2949
+ created: 4.3,
2950
+ url: 'shirtsinbulk.com',
2951
+ categories: [ 'Brand Icons' ] },
2952
+ { name: 'SimplyBuilt',
2953
+ id: 'simplybuilt',
2954
+ unicode: 'f215',
2955
+ created: 4.3,
2956
+ url: 'simplybuilt.com',
2957
+ categories: [ 'Brand Icons' ] },
2958
+ { name: 'skyatlas',
2959
+ id: 'skyatlas',
2960
+ unicode: 'f216',
2961
+ created: 4.3,
2962
+ url: 'skyatlas.com',
2963
+ categories: [ 'Brand Icons' ] },
2964
+ { name: 'Add to Shopping Cart',
2965
+ id: 'cart-plus',
2966
+ unicode: 'f217',
2967
+ created: 4.3,
2968
+ filter: [ 'add', 'shopping' ],
2969
+ categories: [ 'Web Application Icons' ] },
2970
+ { name: 'Shopping Cart Arrow Down',
2971
+ id: 'cart-arrow-down',
2972
+ unicode: 'f218',
2973
+ created: 4.3,
2974
+ filter: [ 'shopping' ],
2975
+ categories: [ 'Web Application Icons' ] },
2976
+ { name: 'Diamond',
2977
+ id: 'diamond',
2978
+ unicode: 'f219',
2979
+ created: 4.3,
2980
+ filter: [ 'gem', 'gemstone' ],
2981
+ categories: [ 'Web Application Icons' ] },
2982
+ { name: 'Ship',
2983
+ id: 'ship',
2984
+ unicode: 'f21a',
2985
+ created: 4.3,
2986
+ filter: [ 'boat', 'sea' ],
2987
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
2988
+ { name: 'User Secret',
2989
+ id: 'user-secret',
2990
+ unicode: 'f21b',
2991
+ created: 4.3,
2992
+ filter: [ 'whisper', 'spy', 'incognito', 'privacy' ],
2993
+ categories: [ 'Web Application Icons' ] },
2994
+ { name: 'Motorcycle',
2995
+ id: 'motorcycle',
2996
+ unicode: 'f21c',
2997
+ created: 4.3,
2998
+ filter: [ 'vehicle', 'bike' ],
2999
+ categories: [ 'Web Application Icons', 'Transportation Icons' ] },
3000
+ { name: 'Street View',
3001
+ id: 'street-view',
3002
+ unicode: 'f21d',
3003
+ created: 4.3,
3004
+ filter: [ 'map' ],
3005
+ categories: [ 'Web Application Icons' ] },
3006
+ { name: 'Heartbeat',
3007
+ id: 'heartbeat',
3008
+ unicode: 'f21e',
3009
+ created: 4.3,
3010
+ filter: [ 'ekg' ],
3011
+ categories: [ 'Web Application Icons', 'Medical Icons' ] },
3012
+ { name: 'Venus',
3013
+ id: 'venus',
3014
+ unicode: 'f221',
3015
+ created: 4.3,
3016
+ filter: [ 'female' ],
3017
+ categories: [ 'Gender Icons' ] },
3018
+ { name: 'Mars',
3019
+ id: 'mars',
3020
+ unicode: 'f222',
3021
+ created: 4.3,
3022
+ filter: [ 'male' ],
3023
+ categories: [ 'Gender Icons' ] },
3024
+ { name: 'Mercury',
3025
+ id: 'mercury',
3026
+ unicode: 'f223',
3027
+ created: 4.3,
3028
+ filter: [ 'transgender' ],
3029
+ categories: [ 'Gender Icons' ] },
3030
+ { name: 'Transgender',
3031
+ id: 'transgender',
3032
+ unicode: 'f224',
3033
+ created: 4.3,
3034
+ aliases: [ 'intersex' ],
3035
+ categories: [ 'Gender Icons' ] },
3036
+ { name: 'Transgender Alt',
3037
+ id: 'transgender-alt',
3038
+ unicode: 'f225',
3039
+ created: 4.3,
3040
+ categories: [ 'Gender Icons' ] },
3041
+ { name: 'Venus Double',
3042
+ id: 'venus-double',
3043
+ unicode: 'f226',
3044
+ created: 4.3,
3045
+ categories: [ 'Gender Icons' ] },
3046
+ { name: 'Mars Double',
3047
+ id: 'mars-double',
3048
+ unicode: 'f227',
3049
+ created: 4.3,
3050
+ categories: [ 'Gender Icons' ] },
3051
+ { name: 'Venus Mars',
3052
+ id: 'venus-mars',
3053
+ unicode: 'f228',
3054
+ created: 4.3,
3055
+ categories: [ 'Gender Icons' ] },
3056
+ { name: 'Mars Stroke',
3057
+ id: 'mars-stroke',
3058
+ unicode: 'f229',
3059
+ created: 4.3,
3060
+ categories: [ 'Gender Icons' ] },
3061
+ { name: 'Mars Stroke Vertical',
3062
+ id: 'mars-stroke-v',
3063
+ unicode: 'f22a',
3064
+ created: 4.3,
3065
+ categories: [ 'Gender Icons' ] },
3066
+ { name: 'Mars Stroke Horizontal',
3067
+ id: 'mars-stroke-h',
3068
+ unicode: 'f22b',
3069
+ created: 4.3,
3070
+ categories: [ 'Gender Icons' ] },
3071
+ { name: 'Neuter',
3072
+ id: 'neuter',
3073
+ unicode: 'f22c',
3074
+ created: 4.3,
3075
+ categories: [ 'Gender Icons' ] },
3076
+ { name: 'Genderless',
3077
+ id: 'genderless',
3078
+ unicode: 'f22d',
3079
+ created: 4.4,
3080
+ categories: [ 'Gender Icons' ] },
3081
+ { name: 'Facebook Official',
3082
+ id: 'facebook-official',
3083
+ unicode: 'f230',
3084
+ created: 4.3,
3085
+ categories: [ 'Brand Icons' ] },
3086
+ { name: 'Pinterest P',
3087
+ id: 'pinterest-p',
3088
+ unicode: 'f231',
3089
+ created: 4.3,
3090
+ categories: [ 'Brand Icons' ] },
3091
+ { name: 'What\'s App',
3092
+ id: 'whatsapp',
3093
+ unicode: 'f232',
3094
+ created: 4.3,
3095
+ categories: [ 'Brand Icons' ] },
3096
+ { name: 'Server',
3097
+ id: 'server',
3098
+ unicode: 'f233',
3099
+ created: 4.3,
3100
+ categories: [ 'Web Application Icons' ] },
3101
+ { name: 'Add User',
3102
+ id: 'user-plus',
3103
+ unicode: 'f234',
3104
+ created: 4.3,
3105
+ filter: [ 'sign up', 'signup' ],
3106
+ categories: [ 'Web Application Icons' ] },
3107
+ { name: 'Remove User',
3108
+ id: 'user-times',
3109
+ unicode: 'f235',
3110
+ created: 4.3,
3111
+ categories: [ 'Web Application Icons' ] },
3112
+ { name: 'Bed',
3113
+ id: 'bed',
3114
+ unicode: 'f236',
3115
+ created: 4.3,
3116
+ filter: [ 'travel' ],
3117
+ aliases: [ 'hotel' ],
3118
+ categories: [ 'Web Application Icons' ] },
3119
+ { name: 'Viacoin',
3120
+ id: 'viacoin',
3121
+ unicode: 'f237',
3122
+ created: 4.3,
3123
+ url: 'viacoin.org',
3124
+ categories: [ 'Brand Icons' ] },
3125
+ { name: 'Train',
3126
+ id: 'train',
3127
+ unicode: 'f238',
3128
+ created: 4.3,
3129
+ categories: [ 'Transportation Icons' ] },
3130
+ { name: 'Subway',
3131
+ id: 'subway',
3132
+ unicode: 'f239',
3133
+ created: 4.3,
3134
+ categories: [ 'Transportation Icons' ] },
3135
+ { name: 'Medium',
3136
+ id: 'medium',
3137
+ unicode: 'f23a',
3138
+ created: 4.3,
3139
+ categories: [ 'Brand Icons' ] },
3140
+ { name: 'Y Combinator',
3141
+ id: 'y-combinator',
3142
+ unicode: 'f23b',
3143
+ created: 4.4,
3144
+ aliases: [ 'yc' ],
3145
+ categories: [ 'Brand Icons' ] },
3146
+ { name: 'Optin Monster',
3147
+ id: 'optin-monster',
3148
+ unicode: 'f23c',
3149
+ created: 4.4,
3150
+ url: 'optinmonster.com',
3151
+ categories: [ 'Brand Icons' ] },
3152
+ { name: 'OpenCart',
3153
+ id: 'opencart',
3154
+ unicode: 'f23d',
3155
+ created: 4.4,
3156
+ url: 'opencart.com',
3157
+ categories: [ 'Brand Icons' ] },
3158
+ { name: 'ExpeditedSSL',
3159
+ id: 'expeditedssl',
3160
+ unicode: 'f23e',
3161
+ created: 4.4,
3162
+ categories: [ 'Brand Icons' ] },
3163
+ { name: 'Battery Full',
3164
+ id: 'battery-full',
3165
+ unicode: 'f240',
3166
+ created: 4.4,
3167
+ aliases: [ 'battery-4' ],
3168
+ filter: [ 'power' ],
3169
+ categories: [ 'Web Application Icons' ] },
3170
+ { name: 'Battery 3/4 Full',
3171
+ id: 'battery-three-quarters',
3172
+ unicode: 'f241',
3173
+ created: 4.4,
3174
+ aliases: [ 'battery-3' ],
3175
+ filter: [ 'power' ],
3176
+ categories: [ 'Web Application Icons' ] },
3177
+ { name: 'Battery 1/2 Full',
3178
+ id: 'battery-half',
3179
+ unicode: 'f242',
3180
+ created: 4.4,
3181
+ aliases: [ 'battery-2' ],
3182
+ filter: [ 'power' ],
3183
+ categories: [ 'Web Application Icons' ] },
3184
+ { name: 'Battery 1/4 Full',
3185
+ id: 'battery-quarter',
3186
+ unicode: 'f243',
3187
+ created: 4.4,
3188
+ aliases: [ 'battery-1' ],
3189
+ filter: [ 'power' ],
3190
+ categories: [ 'Web Application Icons' ] },
3191
+ { name: 'Battery Empty',
3192
+ id: 'battery-empty',
3193
+ unicode: 'f244',
3194
+ created: 4.4,
3195
+ aliases: [ 'battery-0' ],
3196
+ filter: [ 'power' ],
3197
+ categories: [ 'Web Application Icons' ] },
3198
+ { name: 'Mouse Pointer',
3199
+ id: 'mouse-pointer',
3200
+ unicode: 'f245',
3201
+ created: 4.4,
3202
+ categories: [ 'Web Application Icons' ] },
3203
+ { name: 'I Beam Cursor',
3204
+ id: 'i-cursor',
3205
+ unicode: 'f246',
3206
+ created: 4.4,
3207
+ categories: [ 'Web Application Icons' ] },
3208
+ { name: 'Object Group',
3209
+ id: 'object-group',
3210
+ unicode: 'f247',
3211
+ created: 4.4,
3212
+ categories: [ 'Web Application Icons' ] },
3213
+ { name: 'Object Ungroup',
3214
+ id: 'object-ungroup',
3215
+ unicode: 'f248',
3216
+ created: 4.4,
3217
+ categories: [ 'Web Application Icons' ] },
3218
+ { name: 'Sticky Note',
3219
+ id: 'sticky-note',
3220
+ unicode: 'f249',
3221
+ created: 4.4,
3222
+ categories: [ 'Web Application Icons' ] },
3223
+ { name: 'Sticky Note Outlined',
3224
+ id: 'sticky-note-o',
3225
+ unicode: 'f24a',
3226
+ created: 4.4,
3227
+ categories: [ 'Web Application Icons' ] },
3228
+ { name: 'JCB Credit Card',
3229
+ id: 'cc-jcb',
3230
+ unicode: 'f24b',
3231
+ created: 4.4,
3232
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
3233
+ { name: 'Diner\'s Club Credit Card',
3234
+ id: 'cc-diners-club',
3235
+ unicode: 'f24c',
3236
+ created: 4.4,
3237
+ categories: [ 'Brand Icons', 'Payment Icons' ] },
3238
+ { name: 'Clone',
3239
+ id: 'clone',
3240
+ unicode: 'f24d',
3241
+ created: 4.4,
3242
+ filter: [ 'copy' ],
3243
+ categories: [ 'Web Application Icons' ] },
3244
+ { name: 'Balance Scale',
3245
+ id: 'balance-scale',
3246
+ unicode: 'f24e',
3247
+ created: 4.4,
3248
+ categories: [ 'Web Application Icons' ] },
3249
+ { name: 'Hourglass Outlined',
3250
+ id: 'hourglass-o',
3251
+ unicode: 'f250',
3252
+ created: 4.4,
3253
+ categories: [ 'Web Application Icons' ] },
3254
+ { name: 'Hourglass Start',
3255
+ id: 'hourglass-start',
3256
+ unicode: 'f251',
3257
+ created: 4.4,
3258
+ aliases: [ 'hourglass-1' ],
3259
+ categories: [ 'Web Application Icons' ] },
3260
+ { name: 'Hourglass Half',
3261
+ id: 'hourglass-half',
3262
+ unicode: 'f252',
3263
+ created: 4.4,
3264
+ aliases: [ 'hourglass-2' ],
3265
+ categories: [ 'Web Application Icons' ] },
3266
+ { name: 'Hourglass End',
3267
+ id: 'hourglass-end',
3268
+ unicode: 'f253',
3269
+ created: 4.4,
3270
+ aliases: [ 'hourglass-3' ],
3271
+ categories: [ 'Web Application Icons' ] },
3272
+ { name: 'Hourglass',
3273
+ id: 'hourglass',
3274
+ unicode: 'f254',
3275
+ created: 4.4,
3276
+ categories: [ 'Web Application Icons' ] },
3277
+ { name: 'Rock (Hand)',
3278
+ id: 'hand-rock-o',
3279
+ unicode: 'f255',
3280
+ created: 4.4,
3281
+ aliases: [ 'hand-grab-o' ],
3282
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3283
+ { name: 'Paper (Hand)',
3284
+ id: 'hand-paper-o',
3285
+ unicode: 'f256',
3286
+ created: 4.4,
3287
+ aliases: [ 'hand-stop-o' ],
3288
+ filter: [ 'stop' ],
3289
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3290
+ { name: 'Scissors (Hand)',
3291
+ id: 'hand-scissors-o',
3292
+ unicode: 'f257',
3293
+ created: 4.4,
3294
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3295
+ { name: 'Lizard (Hand)',
3296
+ id: 'hand-lizard-o',
3297
+ unicode: 'f258',
3298
+ created: 4.4,
3299
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3300
+ { name: 'Spock (Hand)',
3301
+ id: 'hand-spock-o',
3302
+ unicode: 'f259',
3303
+ created: 4.4,
3304
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3305
+ { name: 'Hand Pointer',
3306
+ id: 'hand-pointer-o',
3307
+ unicode: 'f25a',
3308
+ created: 4.4,
3309
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3310
+ { name: 'Hand Peace',
3311
+ id: 'hand-peace-o',
3312
+ unicode: 'f25b',
3313
+ created: 4.4,
3314
+ categories: [ 'Web Application Icons', 'Hand Icons' ] },
3315
+ { name: 'Trademark',
3316
+ id: 'trademark',
3317
+ unicode: 'f25c',
3318
+ created: 4.4,
3319
+ categories: [ 'Web Application Icons' ] },
3320
+ { name: 'Registered Trademark',
3321
+ id: 'registered',
3322
+ unicode: 'f25d',
3323
+ created: 4.4,
3324
+ categories: [ 'Web Application Icons' ] },
3325
+ { name: 'Creative Commons',
3326
+ id: 'creative-commons',
3327
+ unicode: 'f25e',
3328
+ created: 4.4,
3329
+ categories: [ 'Web Application Icons' ] },
3330
+ { name: 'GG Currency',
3331
+ id: 'gg',
3332
+ unicode: 'f260',
3333
+ created: 4.4,
3334
+ categories: [ 'Currency Icons', 'Brand Icons' ] },
3335
+ { name: 'GG Currency Circle',
3336
+ id: 'gg-circle',
3337
+ unicode: 'f261',
3338
+ created: 4.4,
3339
+ categories: [ 'Currency Icons', 'Brand Icons' ] },
3340
+ { name: 'TripAdvisor',
3341
+ id: 'tripadvisor',
3342
+ unicode: 'f262',
3343
+ created: 4.4,
3344
+ categories: [ 'Brand Icons' ] },
3345
+ { name: 'Odnoklassniki',
3346
+ id: 'odnoklassniki',
3347
+ unicode: 'f263',
3348
+ created: 4.4,
3349
+ categories: [ 'Brand Icons' ] },
3350
+ { name: 'Odnoklassniki Square',
3351
+ id: 'odnoklassniki-square',
3352
+ unicode: 'f264',
3353
+ created: 4.4,
3354
+ categories: [ 'Brand Icons' ] },
3355
+ { name: 'Get Pocket',
3356
+ id: 'get-pocket',
3357
+ unicode: 'f265',
3358
+ created: 4.4,
3359
+ categories: [ 'Brand Icons' ] },
3360
+ { name: 'Wikipedia W',
3361
+ id: 'wikipedia-w',
3362
+ unicode: 'f266',
3363
+ created: 4.4,
3364
+ categories: [ 'Brand Icons' ] },
3365
+ { name: 'Safari',
3366
+ id: 'safari',
3367
+ unicode: 'f267',
3368
+ created: 4.4,
3369
+ filter: [ 'browser' ],
3370
+ categories: [ 'Brand Icons' ] },
3371
+ { name: 'Chrome',
3372
+ id: 'chrome',
3373
+ unicode: 'f268',
3374
+ created: 4.4,
3375
+ filter: [ 'browser' ],
3376
+ categories: [ 'Brand Icons' ] },
3377
+ { name: 'Firefox',
3378
+ id: 'firefox',
3379
+ unicode: 'f269',
3380
+ created: 4.4,
3381
+ filter: [ 'browser' ],
3382
+ categories: [ 'Brand Icons' ] },
3383
+ { name: 'Opera',
3384
+ id: 'opera',
3385
+ unicode: 'f26a',
3386
+ created: 4.4,
3387
+ categories: [ 'Brand Icons' ] },
3388
+ { name: 'Internet-explorer',
3389
+ id: 'internet-explorer',
3390
+ unicode: 'f26b',
3391
+ created: 4.4,
3392
+ filter: [ 'browser', 'ie' ],
3393
+ categories: [ 'Brand Icons' ] },
3394
+ { name: 'Television',
3395
+ id: 'television',
3396
+ unicode: 'f26c',
3397
+ created: 4.4,
3398
+ aliases: [ 'tv' ],
3399
+ filter: [ 'display', 'computer', 'monitor' ],
3400
+ categories: [ 'Web Application Icons' ] },
3401
+ { name: 'Contao',
3402
+ id: 'contao',
3403
+ unicode: 'f26d',
3404
+ created: 4.4,
3405
+ categories: [ 'Brand Icons' ] },
3406
+ { name: '500px',
3407
+ id: '500px',
3408
+ unicode: 'f26e',
3409
+ created: 4.4,
3410
+ categories: [ 'Brand Icons' ] },
3411
+ { name: 'Amazon',
3412
+ id: 'amazon',
3413
+ unicode: 'f270',
3414
+ created: 4.4,
3415
+ categories: [ 'Brand Icons' ] },
3416
+ { name: 'Calendar Plus Outlined',
3417
+ id: 'calendar-plus-o',
3418
+ unicode: 'f271',
3419
+ created: 4.4,
3420
+ categories: [ 'Web Application Icons' ] },
3421
+ { name: 'Calendar Minus Outlined',
3422
+ id: 'calendar-minus-o',
3423
+ unicode: 'f272',
3424
+ created: 4.4,
3425
+ categories: [ 'Web Application Icons' ] },
3426
+ { name: 'Calendar Times Outlined',
3427
+ id: 'calendar-times-o',
3428
+ unicode: 'f273',
3429
+ created: 4.4,
3430
+ categories: [ 'Web Application Icons' ] },
3431
+ { name: 'Calendar Check Outlined',
3432
+ id: 'calendar-check-o',
3433
+ unicode: 'f274',
3434
+ created: 4.4,
3435
+ filter: [ 'ok' ],
3436
+ categories: [ 'Web Application Icons' ] },
3437
+ { name: 'Industry',
3438
+ id: 'industry',
3439
+ unicode: 'f275',
3440
+ created: 4.4,
3441
+ filter: [ 'factory' ],
3442
+ categories: [ 'Web Application Icons' ] },
3443
+ { name: 'Map Pin',
3444
+ id: 'map-pin',
3445
+ unicode: 'f276',
3446
+ created: 4.4,
3447
+ categories: [ 'Web Application Icons' ] },
3448
+ { name: 'Map Signs',
3449
+ id: 'map-signs',
3450
+ unicode: 'f277',
3451
+ created: 4.4,
3452
+ categories: [ 'Web Application Icons' ] },
3453
+ { name: 'Map Outlined',
3454
+ id: 'map-o',
3455
+ unicode: 'f278',
3456
+ created: 4.4,
3457
+ categories: [ 'Web Application Icons' ] },
3458
+ { name: 'Map',
3459
+ id: 'map',
3460
+ unicode: 'f279',
3461
+ created: 4.4,
3462
+ categories: [ 'Web Application Icons' ] },
3463
+ { name: 'Commenting',
3464
+ id: 'commenting',
3465
+ unicode: 'f27a',
3466
+ created: 4.4,
3467
+ filter:
3468
+ [ 'speech',
3469
+ 'notification',
3470
+ 'note',
3471
+ 'chat',
3472
+ 'bubble',
3473
+ 'feedback',
3474
+ 'message',
3475
+ 'texting',
3476
+ 'sms',
3477
+ 'conversation' ],
3478
+ categories: [ 'Web Application Icons' ] },
3479
+ { name: 'Commenting Outlined',
3480
+ id: 'commenting-o',
3481
+ unicode: 'f27b',
3482
+ created: 4.4,
3483
+ filter:
3484
+ [ 'speech',
3485
+ 'notification',
3486
+ 'note',
3487
+ 'chat',
3488
+ 'bubble',
3489
+ 'feedback',
3490
+ 'message',
3491
+ 'texting',
3492
+ 'sms',
3493
+ 'conversation' ],
3494
+ categories: [ 'Web Application Icons' ] },
3495
+ { name: 'Houzz',
3496
+ id: 'houzz',
3497
+ unicode: 'f27c',
3498
+ created: 4.4,
3499
+ categories: [ 'Brand Icons' ] },
3500
+ { name: 'Vimeo',
3501
+ id: 'vimeo',
3502
+ unicode: 'f27d',
3503
+ created: 4.4,
3504
+ categories: [ 'Brand Icons' ] },
3505
+ { name: 'Font Awesome Black Tie',
3506
+ id: 'black-tie',
3507
+ unicode: 'f27e',
3508
+ created: 4.4,
3509
+ url: 'blacktie.io',
3510
+ categories: [ 'Brand Icons' ] },
3511
+ { name: 'Fonticons',
3512
+ id: 'fonticons',
3513
+ unicode: 'f280',
3514
+ created: 4.4,
3515
+ url: 'fonticons.com',
3516
+ categories: [ 'Brand Icons' ] },
3517
+ { name: 'reddit Alien',
3518
+ id: 'reddit-alien',
3519
+ unicode: 'f281',
3520
+ created: 4.5,
3521
+ categories: [ 'Brand Icons' ] },
3522
+ { name: 'Edge Browser',
3523
+ id: 'edge',
3524
+ unicode: 'f282',
3525
+ created: 4.5,
3526
+ filter: [ 'browser', 'ie' ],
3527
+ categories: [ 'Brand Icons' ] },
3528
+ { name: 'Credit Card',
3529
+ id: 'credit-card-alt',
3530
+ unicode: 'f283',
3531
+ created: 4.5,
3532
+ filter:
3533
+ [ 'money',
3534
+ 'buy',
3535
+ 'debit',
3536
+ 'checkout',
3537
+ 'purchase',
3538
+ 'payment',
3539
+ 'credit card' ],
3540
+ categories: [ 'Payment Icons', 'Web Application Icons' ] },
3541
+ { name: 'Codie Pie',
3542
+ id: 'codiepie',
3543
+ unicode: 'f284',
3544
+ created: 4.5,
3545
+ url: 'codiepie.com',
3546
+ categories: [ 'Brand Icons' ] },
3547
+ { name: 'MODX',
3548
+ id: 'modx',
3549
+ unicode: 'f285',
3550
+ created: 4.5,
3551
+ categories: [ 'Brand Icons' ] },
3552
+ { name: 'Fort Awesome',
3553
+ id: 'fort-awesome',
3554
+ unicode: 'f286',
3555
+ created: 4.5,
3556
+ url: 'fortawesome.com',
3557
+ categories: [ 'Brand Icons' ] },
3558
+ { name: 'USB',
3559
+ id: 'usb',
3560
+ unicode: 'f287',
3561
+ created: 4.5,
3562
+ categories: [ 'Brand Icons' ] },
3563
+ { name: 'Product Hunt',
3564
+ id: 'product-hunt',
3565
+ unicode: 'f288',
3566
+ created: 4.5,
3567
+ categories: [ 'Brand Icons' ] },
3568
+ { name: 'Mixcloud',
3569
+ id: 'mixcloud',
3570
+ unicode: 'f289',
3571
+ created: 4.5,
3572
+ categories: [ 'Brand Icons' ] },
3573
+ { name: 'Scribd',
3574
+ id: 'scribd',
3575
+ unicode: 'f28a',
3576
+ created: 4.5,
3577
+ categories: [ 'Brand Icons' ] },
3578
+ { name: 'Pause Circle',
3579
+ id: 'pause-circle',
3580
+ unicode: 'f28b',
3581
+ created: 4.5,
3582
+ categories: [ 'Video Player Icons' ] },
3583
+ { name: 'Pause Circle Outlined',
3584
+ id: 'pause-circle-o',
3585
+ unicode: 'f28c',
3586
+ created: 4.5,
3587
+ categories: [ 'Video Player Icons' ] },
3588
+ { name: 'Stop Circle',
3589
+ id: 'stop-circle',
3590
+ unicode: 'f28d',
3591
+ created: 4.5,
3592
+ categories: [ 'Video Player Icons' ] },
3593
+ { name: 'Stop Circle Outlined',
3594
+ id: 'stop-circle-o',
3595
+ unicode: 'f28e',
3596
+ created: 4.5,
3597
+ categories: [ 'Video Player Icons' ] },
3598
+ { name: 'Shopping Bag',
3599
+ id: 'shopping-bag',
3600
+ unicode: 'f290',
3601
+ created: 4.5,
3602
+ categories: [ 'Web Application Icons' ] },
3603
+ { name: 'Shopping Basket',
3604
+ id: 'shopping-basket',
3605
+ unicode: 'f291',
3606
+ created: 4.5,
3607
+ categories: [ 'Web Application Icons' ] },
3608
+ { name: 'Hashtag',
3609
+ id: 'hashtag',
3610
+ unicode: 'f292',
3611
+ created: 4.5,
3612
+ categories: [ 'Web Application Icons' ] },
3613
+ { name: 'Bluetooth',
3614
+ id: 'bluetooth',
3615
+ unicode: 'f293',
3616
+ created: 4.5,
3617
+ categories: [ 'Web Application Icons', 'Brand Icons' ] },
3618
+ { name: 'Bluetooth',
3619
+ id: 'bluetooth-b',
3620
+ unicode: 'f294',
3621
+ created: 4.5,
3622
+ categories: [ 'Web Application Icons', 'Brand Icons' ] },
3623
+ { name: 'Percent',
3624
+ id: 'percent',
3625
+ unicode: 'f295',
3626
+ created: 4.5,
3627
+ categories: [ 'Web Application Icons' ] },
3628
+ { name: 'GitLab',
3629
+ id: 'gitlab',
3630
+ unicode: 'f296',
3631
+ created: 4.6,
3632
+ url: 'gitlab.com',
3633
+ categories: [ 'Brand Icons' ] },
3634
+ { name: 'WPBeginner',
3635
+ id: 'wpbeginner',
3636
+ unicode: 'f297',
3637
+ created: 4.6,
3638
+ url: 'wpbeginner.com',
3639
+ categories: [ 'Brand Icons' ] },
3640
+ { name: 'WPForms',
3641
+ id: 'wpforms',
3642
+ unicode: 'f298',
3643
+ created: 4.6,
3644
+ url: 'wpforms.com',
3645
+ categories: [ 'Brand Icons' ] },
3646
+ { name: 'Envira Gallery',
3647
+ id: 'envira',
3648
+ unicode: 'f299',
3649
+ created: 4.6,
3650
+ url: 'enviragallery.com',
3651
+ filter: [ 'leaf' ],
3652
+ categories: [ 'Brand Icons' ] },
3653
+ { name: 'Universal Access',
3654
+ id: 'universal-access',
3655
+ unicode: 'f29a',
3656
+ created: 4.6,
3657
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3658
+ { name: 'Wheelchair Alt',
3659
+ id: 'wheelchair-alt',
3660
+ unicode: 'f29b',
3661
+ created: 4.6,
3662
+ filter: [ 'handicap', 'person' ],
3663
+ categories:
3664
+ [ 'Web Application Icons',
3665
+ 'Medical Icons',
3666
+ 'Transportation Icons',
3667
+ 'Accessibility Icons' ] },
3668
+ { name: 'Question Circle Outlined',
3669
+ id: 'question-circle-o',
3670
+ unicode: 'f29c',
3671
+ created: 4.6,
3672
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3673
+ { name: 'Blind',
3674
+ id: 'blind',
3675
+ unicode: 'f29d',
3676
+ created: 4.6,
3677
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3678
+ { name: 'Audio Description',
3679
+ id: 'audio-description',
3680
+ unicode: 'f29e',
3681
+ created: 4.6,
3682
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3683
+ { name: 'Volume Control Phone',
3684
+ id: 'volume-control-phone',
3685
+ unicode: 'f2a0',
3686
+ created: 4.6,
3687
+ filter: [ 'telephone' ],
3688
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3689
+ { name: 'Braille',
3690
+ id: 'braille',
3691
+ unicode: 'f2a1',
3692
+ created: 4.6,
3693
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3694
+ { name: 'Assistive Listening Systems',
3695
+ id: 'assistive-listening-systems',
3696
+ unicode: 'f2a2',
3697
+ created: 4.6,
3698
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3699
+ { name: 'American Sign Language Interpreting',
3700
+ id: 'american-sign-language-interpreting',
3701
+ unicode: 'f2a3',
3702
+ created: 4.6,
3703
+ aliases: [ 'asl-interpreting' ],
3704
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3705
+ { name: 'Deaf',
3706
+ id: 'deaf',
3707
+ unicode: 'f2a4',
3708
+ created: 4.6,
3709
+ aliases: [ 'deafness', 'hard-of-hearing' ],
3710
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3711
+ { name: 'Glide',
3712
+ id: 'glide',
3713
+ unicode: 'f2a5',
3714
+ created: 4.6,
3715
+ categories: [ 'Brand Icons' ] },
3716
+ { name: 'Glide G',
3717
+ id: 'glide-g',
3718
+ unicode: 'f2a6',
3719
+ created: 4.6,
3720
+ categories: [ 'Brand Icons' ] },
3721
+ { name: 'Sign Language',
3722
+ id: 'sign-language',
3723
+ unicode: 'f2a7',
3724
+ created: 4.6,
3725
+ aliases: [ 'signing' ],
3726
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3727
+ { name: 'Low Vision',
3728
+ id: 'low-vision',
3729
+ unicode: 'f2a8',
3730
+ created: 4.6,
3731
+ categories: [ 'Web Application Icons', 'Accessibility Icons' ] },
3732
+ { name: 'Viadeo',
3733
+ id: 'viadeo',
3734
+ unicode: 'f2a9',
3735
+ created: 4.6,
3736
+ categories: [ 'Brand Icons' ] },
3737
+ { name: 'Viadeo Square',
3738
+ id: 'viadeo-square',
3739
+ unicode: 'f2aa',
3740
+ created: 4.6,
3741
+ categories: [ 'Brand Icons' ] },
3742
+ { name: 'Snapchat',
3743
+ id: 'snapchat',
3744
+ unicode: 'f2ab',
3745
+ created: 4.6,
3746
+ categories: [ 'Brand Icons' ] },
3747
+ { name: 'Snapchat Ghost',
3748
+ id: 'snapchat-ghost',
3749
+ unicode: 'f2ac',
3750
+ created: 4.6,
3751
+ categories: [ 'Brand Icons' ] },
3752
+ { name: 'Snapchat Square',
3753
+ id: 'snapchat-square',
3754
+ unicode: 'f2ad',
3755
+ created: 4.6,
3756
+ categories: [ 'Brand Icons' ] },
3757
+ { name: 'Pied Piper Logo',
3758
+ id: 'pied-piper',
3759
+ unicode: 'f2ae',
3760
+ created: 4.6,
3761
+ categories: [ 'Brand Icons' ] },
3762
+ { name: 'First Order',
3763
+ id: 'first-order',
3764
+ unicode: 'f2b0',
3765
+ created: 4.6,
3766
+ categories: [ 'Brand Icons' ] },
3767
+ { name: 'Yoast',
3768
+ id: 'yoast',
3769
+ unicode: 'f2b1',
3770
+ created: 4.6,
3771
+ url: 'yoast.com',
3772
+ categories: [ 'Brand Icons' ] },
3773
+ { name: 'ThemeIsle',
3774
+ id: 'themeisle',
3775
+ unicode: 'f2b2',
3776
+ created: 4.6,
3777
+ url: 'themeisle.com',
3778
+ categories: [ 'Brand Icons' ] },
3779
+ { name: 'Google Plus Official',
3780
+ id: 'google-plus-official',
3781
+ unicode: 'f2b3',
3782
+ created: 4.6,
3783
+ aliases: [ 'google-plus-circle' ],
3784
+ categories: [ 'Brand Icons' ] },
3785
+ { name: 'Font Awesome',
3786
+ id: 'font-awesome',
3787
+ unicode: 'f2b4',
3788
+ created: 4.6,
3789
+ aliases: [ 'fa' ],
3790
+ categories: [ 'Brand Icons' ] } ] };
obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rhea_About_Company extends WP_Widget {
3
+
4
+ public function __construct() {
5
+
6
+ $widget_args = array(
7
+ 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' ),
8
+ );
9
+
10
+ parent::__construct( 'rhea-about-company', esc_html__( '[Rhea] About Company', 'rhea' ), $widget_args );
11
+ add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
12
+ }
13
+
14
+ function widget_scripts( $hook ) {
15
+ if ( $hook != 'widgets.php' ) {
16
+ return;
17
+ }
18
+ wp_enqueue_media();
19
+ wp_enqueue_script( 'rhea_widget_media_script', THEMEISLE_COMPANION_URL . 'assets/js/widget-media.js', false, '1.1', true );
20
+ }
21
+
22
+ function widget( $args, $instance ) {
23
+
24
+ extract( $args );
25
+
26
+ if ( ! empty( $before_widget ) ) {
27
+ echo $before_widget;
28
+ }
29
+
30
+ $logo_url = '';
31
+ if ( ! empty( $instance['use_logo'] ) ) {
32
+ $custom_logo_id = get_theme_mod( 'custom_logo' );
33
+ if ( ! empty( $custom_logo_id ) ) {
34
+ $image = wp_get_attachment_image_src( $custom_logo_id , 'full' );
35
+ if ( ! empty( $image ) ) {
36
+ if ( ! empty( $image[0] ) ) {
37
+ $logo_url = $image[0];
38
+ }
39
+ }
40
+ }
41
+ } elseif ( ! empty( $instance['image_uri'] ) ) {
42
+ $logo_url = $instance['image_uri'];
43
+ }
44
+
45
+ ?>
46
+
47
+ <div class="rhea-about-company">
48
+ <?php
49
+ if ( ! empty( $logo_url ) ) {
50
+ echo '<div class="rhea-company-logo">';
51
+ echo '<img src="' . esc_url( $logo_url ) . '" alt="' . esc_attr( get_bloginfo( 'title' ) ) . '">';
52
+ echo '</div>';
53
+ }
54
+
55
+ if ( ! empty( $instance['text'] ) ) {
56
+ echo '<div class="rhea-company-description">';
57
+ echo wp_kses_post( $instance['text'] );
58
+ echo '</div>';
59
+ }
60
+ ?>
61
+ </div>
62
+
63
+ <?php
64
+
65
+ if ( ! empty( $after_widget ) ) {
66
+ echo $after_widget;
67
+ }
68
+
69
+ }
70
+
71
+ function update( $new_instance, $old_instance ) {
72
+
73
+ $instance = $old_instance;
74
+ $instance['image_uri'] = esc_url( $new_instance['image_uri'] );
75
+ $instance['use_logo'] = strip_tags( $new_instance['use_logo'] );
76
+ $instance['text'] = strip_tags( $new_instance['text'] );
77
+
78
+ return $instance;
79
+
80
+ }
81
+
82
+ function form( $instance ) {
83
+
84
+ $image_in_customizer = '';
85
+ $display = 'none';
86
+ if ( ! empty( $instance['image_uri'] ) ) {
87
+ $image_in_customizer = esc_url( $instance['image_uri'] );
88
+ $display = 'inline-block';
89
+ }
90
+
91
+ ?>
92
+ <p>
93
+ <input type="checkbox" name="<?php echo $this->get_field_name( 'use_logo' ); ?>" id="<?php echo $this->get_field_id( 'use_logo' ); ?>" value="use_logo" <?php if ( isset( $instance['use_logo'] ) ) { checked( $instance['use_logo'], 'use_logo' ); } ?>>
94
+ <label for="<?php echo $this->get_field_id( 'use_logo' ); ?>"><?php esc_html_e( 'Use website logo','rhea' ); ?></label>
95
+ </p>
96
+ <p>
97
+ <label for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php esc_html_e( 'Logo', 'rhea' ); ?></label><br/>
98
+ <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>" style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo esc_attr( $display ); ?>" alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
99
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" id="<?php echo $this->get_field_id( 'image_uri' ); ?>" value="<?php if ( ! empty( $instance['image_uri'] ) ) { echo $instance['image_uri']; } ?>" style="margin-top:5px;">
100
+ <input type="button" class="button button-primary custom_media_button" id="custom_media_button" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" value="<?php esc_html_e( 'Upload Image','rhea' ); ?>" style="margin-top:5px;">
101
+ </p>
102
+ <p>
103
+ <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Company Description', 'rhea' ); ?></label><br/>
104
+ <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
105
+ </p>
106
+
107
+ <?php
108
+
109
+ }
110
+
111
+ }
obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rhea_Contact_Company extends WP_Widget {
3
+
4
+ public function __construct() {
5
+
6
+ $widget_args = array(
7
+ 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' ),
8
+ );
9
+
10
+ parent::__construct( 'rhea-contact-company', esc_html__( '[Rhea] Contact', 'rhea' ), $widget_args );
11
+ }
12
+
13
+ function widget( $args, $instance ) {
14
+
15
+ extract( $args );
16
+
17
+ if ( ! empty( $before_widget ) ) {
18
+ echo $before_widget;
19
+ }
20
+
21
+ if ( ! empty( $instance['title'] ) ) {
22
+ echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
23
+ }
24
+
25
+ echo '<div class="rhea_company_contact">';
26
+ if ( ! empty( $instance['adress'] ) ) {
27
+
28
+ if ( ! empty( $instance['gmaps_url'] ) ) {
29
+ echo '<p><a href="' . esc_url( $instance['gmaps_url'] ) . '" target="_blank">' . esc_html( $instance['adress'] ) . '</a></p>';
30
+ } else {
31
+ echo '<p>' . esc_html( $instance['adress'] ) . '</p>';
32
+ }
33
+ }
34
+ if ( ! empty( $instance['email'] ) ) {
35
+ echo '<p>Email: <a href="mailto:' . antispambot( $instance['email'] ) . '">' . antispambot( $instance['email'] ) . '</a></p>';
36
+ }
37
+ if ( ! empty( $instance['phone'] ) ) {
38
+ echo '<p>Phone: ' . esc_html( $instance['phone'] ) . '</p>';
39
+ }
40
+ echo '</div>';
41
+
42
+ if ( ! empty( $after_widget ) ) {
43
+ echo $after_widget;
44
+ }
45
+
46
+ }
47
+
48
+ function update( $new_instance, $old_instance ) {
49
+
50
+ $instance = $old_instance;
51
+
52
+ $instance['title'] = strip_tags( $new_instance['title'] );
53
+ $instance['adress'] = strip_tags( $new_instance['adress'] );
54
+ $instance['gmaps_url'] = esc_url( $new_instance['gmaps_url'] );
55
+ $instance['email'] = strip_tags( $new_instance['email'] );
56
+ $instance['phone'] = strip_tags( $new_instance['phone'] );
57
+
58
+ return $instance;
59
+
60
+ }
61
+
62
+ function form( $instance ) {
63
+ ?>
64
+ <p>
65
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
66
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>">
67
+ </p>
68
+ <p>
69
+ <label for="<?php echo $this->get_field_id( 'adress' ); ?>"><?php esc_html_e( 'Company Adress', 'rhea' ); ?></label><br/>
70
+ <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'adress' ); ?>" id="<?php echo $this->get_field_id( 'adress' ); ?>"><?php if ( ! empty( $instance['adress'] ) ) { echo htmlspecialchars_decode( $instance['adress'] ); } ?></textarea>
71
+ </p>
72
+ <p>
73
+ <label for="<?php echo $this->get_field_id( 'gmaps_url' ); ?>"><?php esc_html_e( 'Google Maps URL', 'rhea' ); ?></label><br/>
74
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name( 'gmaps_url' ); ?>" id="<?php echo $this->get_field_id( 'gmaps_url' ); ?>" value="<?php if ( ! empty( $instance['gmaps_url'] ) ) { echo $instance['gmaps_url']; } ?>">
75
+ </p>
76
+ <p>
77
+ <label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Email', 'rhea' ); ?></label><br/>
78
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name( 'email' ); ?>" id="<?php echo $this->get_field_id( 'email' ); ?>" value="<?php if ( ! empty( $instance['email'] ) ) { echo $instance['email']; } ?>">
79
+ </p>
80
+ <p>
81
+ <label for="<?php echo $this->get_field_id( 'phone' ); ?>"><?php esc_html_e( 'Phone', 'rhea' ); ?></label><br/>
82
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name( 'phone' ); ?>" id="<?php echo $this->get_field_id( 'phone' ); ?>" value="<?php if ( ! empty( $instance['phone'] ) ) { echo $instance['phone']; } ?>">
83
+ </p>
84
+
85
+ <?php
86
+
87
+ }
88
+
89
+ }
{inc → obfx_modules/companion-legacy/inc}/rhea/widgets/features.widget.php RENAMED
@@ -4,20 +4,20 @@ class rhea_features_block extends WP_Widget {
4
  public function __construct() {
5
 
6
  $widget_args = array(
7
- 'description' => esc_html__( 'This widget is designed for Our focus section widgets', 'rhea' )
8
  );
9
  parent::__construct( 'rhea-feature-block', esc_html__( '[Rhea] Our features widget', 'rhea' ), $widget_args );
10
  }
11
 
12
- function widget($args, $instance) {
13
 
14
- extract($args);
15
 
16
  if ( ! empty( $before_widget ) ) {
17
  echo $before_widget;
18
  }
19
 
20
- $link = ! empty($instance['link']) ? $instance['link'] : '#';
21
  ?>
22
 
23
  <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 focus-box" data-scrollreveal="enter bottom after 0.15s over 1s">
@@ -58,16 +58,16 @@ class rhea_features_block extends WP_Widget {
58
 
59
  }
60
 
61
- function form($instance) {
62
  $icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : '';
63
  ?>
64
  <p>
65
- <label for="<?php echo $this->get_field_id('icon'); ?>"><?php esc_html_e( 'Icon', 'rhea' ); ?></label><br/>
66
  <div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
67
- <input type="hidden" class="widefat" name="<?php echo $this->get_field_name('icon'); ?>" id="<?php echo $this->get_field_id('icon'); ?>" value="<?php if( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
68
  <div class="icon-holder">
69
  <p><?php esc_html_e( 'No icon selected :( ...', 'rhea' ) ?></p>
70
- <i class="<?php if( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
71
  </div>
72
  <div class="actions">
73
  <button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'rhea' ) ?></button>
@@ -77,20 +77,20 @@ class rhea_features_block extends WP_Widget {
77
  </div>
78
  </p>
79
  <p>
80
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
81
- <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
82
  </p>
83
  <p>
84
- <label for="<?php echo $this->get_field_id('text'); ?>"><?php esc_html_e( 'Text', 'rhea' ); ?></label><br/>
85
- <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>"><?php if( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
86
  </p>
87
  <p>
88
- <label for="<?php echo $this->get_field_id('link'); ?>"><?php esc_html_e( 'Link','rhea' ); ?></label><br />
89
- <input type="text" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php if( ! empty( $instance['link'] ) ) { echo $instance['link']; } ?>" class="widefat">
90
  </p>
91
 
92
  <?php
93
 
94
  }
95
 
96
- }
4
  public function __construct() {
5
 
6
  $widget_args = array(
7
+ 'description' => esc_html__( 'This widget is designed for Our focus section widgets', 'rhea' ),
8
  );
9
  parent::__construct( 'rhea-feature-block', esc_html__( '[Rhea] Our features widget', 'rhea' ), $widget_args );
10
  }
11
 
12
+ function widget( $args, $instance ) {
13
 
14
+ extract( $args );
15
 
16
  if ( ! empty( $before_widget ) ) {
17
  echo $before_widget;
18
  }
19
 
20
+ $link = ! empty( $instance['link'] ) ? $instance['link'] : '#';
21
  ?>
22
 
23
  <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 focus-box" data-scrollreveal="enter bottom after 0.15s over 1s">
58
 
59
  }
60
 
61
+ function form( $instance ) {
62
  $icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : '';
63
  ?>
64
  <p>
65
+ <label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', 'rhea' ); ?></label><br/>
66
  <div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
67
+ <input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
68
  <div class="icon-holder">
69
  <p><?php esc_html_e( 'No icon selected :( ...', 'rhea' ) ?></p>
70
+ <i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
71
  </div>
72
  <div class="actions">
73
  <button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'rhea' ) ?></button>
77
  </div>
78
  </p>
79
  <p>
80
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
81
+ <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
82
  </p>
83
  <p>
84
+ <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Text', 'rhea' ); ?></label><br/>
85
+ <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
86
  </p>
87
  <p>
88
+ <label for="<?php echo $this->get_field_id( 'link' ); ?>"><?php esc_html_e( 'Link','rhea' ); ?></label><br />
89
+ <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>" id="<?php echo $this->get_field_id( 'link' ); ?>" value="<?php if ( ! empty( $instance['link'] ) ) { echo $instance['link']; } ?>" class="widefat">
90
  </p>
91
 
92
  <?php
93
 
94
  }
95
 
96
+ }
obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rhea_Hours extends WP_Widget {
3
+
4
+ public function __construct() {
5
+
6
+ $widget_args = array(
7
+ 'description' => esc_html__( 'This widget is designed for footer area', 'rhea' ),
8
+ );
9
+ parent::__construct( 'rhea-company-hours', esc_html__( '[Rhea] Company Program', 'rhea' ), $widget_args );
10
+ }
11
+
12
+ function widget( $args, $instance ) {
13
+
14
+ extract( $args );
15
+
16
+ if ( ! empty( $before_widget ) ) {
17
+ echo $before_widget;
18
+ }
19
+
20
+ if ( ! empty( $instance['title'] ) ) {
21
+ echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
22
+ }
23
+ ?>
24
+
25
+ <div class="rhea_program">
26
+
27
+ <?php if ( ! empty( $instance['monday_from'] ) || ! empty( $instance['monday_to'] ) ) { ?>
28
+ <div class="rhea_program_item">
29
+ <p><?php esc_html_e( 'Monday', 'rhea' ); ?></p>
30
+ <div class="rhea_program_hours">
31
+ <?php if ( ! empty( $instance['monday_from'] ) ) { ?>
32
+ <div class="rhea_program_item_from">
33
+ <?php echo esc_html( $instance['monday_from'] ); ?>
34
+ </div>
35
+ <?php } ?>
36
+ <?php if ( ! empty( $instance['monday_to'] ) ) { ?>
37
+ <div class="rhea_program_item_to">
38
+ <?php echo esc_html( $instance['monday_to'] ); ?>
39
+ </div>
40
+ <?php } ?>
41
+ </div>
42
+ </div>
43
+ <?php } ?>
44
+
45
+ <?php if ( ! empty( $instance['tuesday_from'] ) || ! empty( $instance['tuesday_to'] ) ) { ?>
46
+ <div class="rhea_program_item">
47
+ <p><?php esc_html_e( 'Tuesday', 'rhea' ); ?></p>
48
+ <div class="rhea_program_hours">
49
+ <?php if ( ! empty( $instance['tuesday_from'] ) ) { ?>
50
+ <div class="rhea_program_item_from">
51
+ <?php echo esc_html( $instance['tuesday_from'] ); ?>
52
+ </div>
53
+ <?php } ?>
54
+ <?php if ( ! empty( $instance['tuesday_to'] ) ) { ?>
55
+ <div class="rhea_program_item_to">
56
+ <?php echo esc_html( $instance['tuesday_to'] ); ?>
57
+ </div>
58
+ <?php } ?>
59
+ </div>
60
+ </div>
61
+ <?php } ?>
62
+
63
+ <?php if ( ! empty( $instance['wednesday_from'] ) || ! empty( $instance['wednesday_to'] ) ) { ?>
64
+ <div class="rhea_program_item">
65
+ <p><?php esc_html_e( 'Wednesday', 'rhea' ); ?></p>
66
+ <div class="rhea_program_hours">
67
+ <?php if ( ! empty( $instance['wednesday_from'] ) ) { ?>
68
+ <div class="rhea_program_item_from">
69
+ <?php echo esc_html( $instance['wednesday_from'] ); ?>
70
+ </div>
71
+ <?php } ?>
72
+ <?php if ( ! empty( $instance['wednesday_to'] ) ) { ?>
73
+ <div class="rhea_program_item_to">
74
+ <?php echo esc_html( $instance['wednesday_to'] ); ?>
75
+ </div>
76
+ <?php } ?>
77
+ </div>
78
+ </div>
79
+ <?php } ?>
80
+
81
+ <?php if ( ! empty( $instance['thursday_from'] ) || ! empty( $instance['thursday_to'] ) ) { ?>
82
+ <div class="rhea_program_item">
83
+ <p><?php esc_html_e( 'Thursday', 'rhea' ); ?></p>
84
+ <div class="rhea_program_hours">
85
+ <?php if ( ! empty( $instance['thursday_from'] ) ) { ?>
86
+ <div class="rhea_program_item_from">
87
+ <?php echo esc_html( $instance['thursday_from'] ); ?>
88
+ </div>
89
+ <?php } ?>
90
+ <?php if ( ! empty( $instance['thursday_to'] ) ) { ?>
91
+ <div class="rhea_program_item_to">
92
+ <?php echo esc_html( $instance['thursday_to'] ); ?>
93
+ </div>
94
+ <?php } ?>
95
+ </div>
96
+ </div>
97
+ <?php } ?>
98
+
99
+ <?php if ( ! empty( $instance['friday_from'] ) || ! empty( $instance['friday_to'] ) ) { ?>
100
+ <div class="rhea_program_item">
101
+ <p><?php esc_html_e( 'Friday', 'rhea' ); ?></p>
102
+ <div class="rhea_program_hours">
103
+ <?php if ( ! empty( $instance['friday_from'] ) ) { ?>
104
+ <div class="rhea_program_item_from">
105
+ <?php echo esc_html( $instance['friday_from'] ); ?>
106
+ </div>
107
+ <?php } ?>
108
+ <?php if ( ! empty( $instance['friday_to'] ) ) { ?>
109
+ <div class="rhea_program_item_to">
110
+ <?php echo esc_html( $instance['friday_to'] ); ?>
111
+ </div>
112
+ <?php } ?>
113
+ </div>
114
+ </div>
115
+ <?php } ?>
116
+
117
+ <?php if ( ! empty( $instance['saturday_from'] ) || ! empty( $instance['saturday_to'] ) ) { ?>
118
+ <div class="rhea_program_item">
119
+ <p><?php esc_html_e( 'Saturday', 'rhea' ); ?></p>
120
+ <div class="rhea_program_hours">
121
+ <?php if ( ! empty( $instance['saturday_from'] ) ) { ?>
122
+ <div class="rhea_program_item_from">
123
+ <?php echo esc_html( $instance['saturday_from'] ); ?>
124
+ </div>
125
+ <?php } ?>
126
+ <?php if ( ! empty( $instance['saturday_to'] ) ) { ?>
127
+ <div class="rhea_program_item_to">
128
+ <?php echo esc_html( $instance['saturday_to'] ); ?>
129
+ </div>
130
+ <?php } ?>
131
+ </div>
132
+ </div>
133
+ <?php } ?>
134
+
135
+ <?php if ( ( isset( $instance['sunday_from'] ) && $instance['sunday_from'] != '' ) || ( isset( $instance['sunday_to'] ) && $instance['sunday_to'] != '' ) ) { ?>
136
+ <div class="rhea_program_item">
137
+ <p><?php esc_html_e( 'Sunday', 'rhea' ); ?></p>
138
+ <div class="rhea_program_hours">
139
+ <?php if ( ! empty( $instance['sunday_from'] ) ) { ?>
140
+ <div class="rhea_program_item_from">
141
+ <?php echo esc_html( $instance['sunday_from'] ); ?>
142
+ </div>
143
+ <?php } ?>
144
+ <?php if ( ! empty( $instance['sunday_to'] ) ) { ?>
145
+ <div class="rhea_program_item_to">
146
+ <?php echo esc_html( $instance['sunday_to'] );?>
147
+ </div>
148
+ <?php } ?>
149
+ </div>
150
+ </div>
151
+ <?php } ?>
152
+
153
+ </div>
154
+
155
+ <?php
156
+ if ( ! empty( $after_widget ) ) {
157
+ echo $after_widget;
158
+ }
159
+
160
+ }
161
+
162
+ function update( $new_instance, $old_instance ) {
163
+
164
+ $instance = $old_instance;
165
+ $instance['title'] = strip_tags( $new_instance['title'] );
166
+
167
+ // Monday
168
+ $instance['monday_from'] = strip_tags( $new_instance['monday_from'] );
169
+ $instance['monday_to'] = strip_tags( $new_instance['monday_to'] );
170
+
171
+ // Tuesday
172
+ $instance['tuesday_from'] = strip_tags( $new_instance['tuesday_from'] );
173
+ $instance['tuesday_to'] = strip_tags( $new_instance['tuesday_to'] );
174
+
175
+ // Wednesday
176
+ $instance['wednesday_from'] = strip_tags( $new_instance['wednesday_from'] );
177
+ $instance['wednesday_to'] = strip_tags( $new_instance['wednesday_to'] );
178
+
179
+ // Thursday
180
+ $instance['thursday_from'] = strip_tags( $new_instance['thursday_from'] );
181
+ $instance['thursday_to'] = strip_tags( $new_instance['thursday_to'] );
182
+
183
+ // Friday
184
+ $instance['friday_from'] = strip_tags( $new_instance['friday_from'] );
185
+ $instance['friday_to'] = strip_tags( $new_instance['friday_to'] );
186
+
187
+ // Saturday
188
+ $instance['saturday_from'] = strip_tags( $new_instance['saturday_from'] );
189
+ $instance['saturday_to'] = strip_tags( $new_instance['saturday_to'] );
190
+
191
+ // Sunday
192
+ $instance['sunday_from'] = strip_tags( $new_instance['sunday_from'] );
193
+ $instance['sunday_to'] = strip_tags( $new_instance['sunday_to'] );
194
+
195
+ return $instance;
196
+
197
+ }
198
+
199
+ function form( $instance ) {
200
+ ?>
201
+ <p>
202
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
203
+ <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo esc_html( $instance['title'] ); } ?>" class="widefat">
204
+ </p>
205
+ <p>
206
+ <label><?php esc_html_e( 'Monday', 'rhea' ); ?></label><br/>
207
+
208
+ <input type="text" name="<?php echo $this->get_field_name( 'monday_from' ); ?>" id="<?php echo $this->get_field_id( 'monday_from' ); ?>" value="<?php if ( ! empty( $instance['monday_from'] ) ) { echo esc_html( $instance['monday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
209
+ <input type="text" name="<?php echo $this->get_field_name( 'monday_to' ); ?>" id="<?php echo $this->get_field_id( 'monday_to' ); ?>" value="<?php if ( ! empty( $instance['monday_to'] ) ) { echo esc_html( $instance['monday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
210
+ </p>
211
+ <p>
212
+ <label><?php esc_html_e( 'Tuesday', 'rhea' ); ?></label><br/>
213
+
214
+ <input type="text" name="<?php echo $this->get_field_name( 'tuesday_from' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_from' ); ?>" value="<?php if ( ! empty( $instance['tuesday_from'] ) ) { echo esc_html( $instance['tuesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
215
+ <input type="text" name="<?php echo $this->get_field_name( 'tuesday_to' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_to' ); ?>" value="<?php if ( ! empty( $instance['tuesday_to'] ) ) { echo esc_html( $instance['tuesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
216
+ </p>
217
+ <p>
218
+ <label><?php esc_html_e( 'Wednesday', 'rhea' ); ?></label><br/>
219
+
220
+ <input type="text" name="<?php echo $this->get_field_name( 'wednesday_from' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_from' ); ?>" value="<?php if ( ! empty( $instance['wednesday_from'] ) ) { echo esc_html( $instance['wednesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
221
+ <input type="text" name="<?php echo $this->get_field_name( 'wednesday_to' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_to' ); ?>" value="<?php if ( ! empty( $instance['wednesday_to'] ) ) { echo esc_html( $instance['wednesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
222
+ </p>
223
+ <p>
224
+ <label><?php esc_html_e( 'Thursday', 'rhea' ); ?></label><br/>
225
+
226
+ <input type="text" name="<?php echo $this->get_field_name( 'thursday_from' ); ?>" id="<?php echo $this->get_field_id( 'thursday_from' ); ?>" value="<?php if ( ! empty( $instance['thursday_from'] ) ) { echo esc_html( $instance['thursday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
227
+ <input type="text" name="<?php echo $this->get_field_name( 'thursday_to' ); ?>" id="<?php echo $this->get_field_id( 'thursday_to' ); ?>" value="<?php if ( ! empty( $instance['thursday_to'] ) ) { echo esc_html( $instance['thursday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
228
+ </p>
229
+ <p>
230
+ <label><?php esc_html_e( 'Friday', 'rhea' ); ?></label><br/>
231
+
232
+ <input type="text" name="<?php echo $this->get_field_name( 'friday_from' ); ?>" id="<?php echo $this->get_field_id( 'friday_from' ); ?>" value="<?php if ( ! empty( $instance['friday_from'] ) ) { echo esc_html( $instance['friday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
233
+ <input type="text" name="<?php echo $this->get_field_name( 'friday_to' ); ?>" id="<?php echo $this->get_field_id( 'friday_to' ); ?>" value="<?php if ( ! empty( $instance['friday_to'] ) ) { echo esc_html( $instance['friday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
234
+ </p>
235
+ <p>
236
+ <label><?php esc_html_e( 'Saturday', 'rhea' ); ?></label><br/>
237
+
238
+ <input type="text" name="<?php echo $this->get_field_name( 'saturday_from' ); ?>" id="<?php echo $this->get_field_id( 'saturday_from' ); ?>" value="<?php if ( ! empty( $instance['saturday_from'] ) ) { echo esc_html( $instance['saturday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
239
+ <input type="text" name="<?php echo $this->get_field_name( 'saturday_to' ); ?>" id="<?php echo $this->get_field_id( 'saturday_to' ); ?>" value="<?php if ( ! empty( $instance['saturday_to'] ) ) { echo esc_html( $instance['saturday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
240
+ </p>
241
+ <p>
242
+ <label><?php esc_html_e( 'Sunday', 'rhea' ); ?></label><br/>
243
+
244
+ <input type="text" name="<?php echo $this->get_field_name( 'sunday_from' ); ?>" id="<?php echo $this->get_field_id( 'sunday_from' ); ?>" value="<?php if ( ! empty( $instance['sunday_from'] ) ) { echo esc_html( $instance['sunday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'rhea' ); ?>" style="width:45%;">
245
+ <input type="text" name="<?php echo $this->get_field_name( 'sunday_to' ); ?>" id="<?php echo $this->get_field_id( 'sunday_to' ); ?>" value="<?php if ( ! empty( $instance['sunday_to'] ) ) { echo esc_html( $instance['sunday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'rhea' ); ?>" style="width:45%;">
246
+ </p>
247
+
248
+ <?php
249
+
250
+ }
251
+
252
+ }
obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rhea_Icon_Box extends WP_Widget {
3
+
4
+ public function __construct() {
5
+ $widget_args = array(
6
+ 'description' => esc_html__( 'This widget is designed for Right Section sidebar', 'rhea' ),
7
+ );
8
+ parent::__construct( 'rhea-icon-box', esc_html__( '[Rhea] Icon Box', 'rhea' ), $widget_args );
9
+ }
10
+
11
+ function widget( $args, $instance ) {
12
+
13
+ extract( $args );
14
+
15
+ if ( ! empty( $before_widget ) ) {
16
+ echo $before_widget;
17
+ }
18
+
19
+ ?>
20
+
21
+ <div class="about_us_box">
22
+ <div class="header_aboutus_box">
23
+ <div class="pull-left icon-holder">
24
+ <?php if ( ! empty( $instance['icon'] ) ) { ?>
25
+ <i class="fa <?php echo esc_attr( $instance['icon'] ); ?>"></i>
26
+ <?php } ?>
27
+ </div>
28
+ <div class="aboutus_titles pull-left">
29
+ <?php
30
+ if ( ! empty( $instance['title'] ) ) {
31
+ echo '<h4>' . esc_html( $instance['title'] ) . '</h4>';
32
+ }
33
+ if ( ! empty( $instance['subtitle'] ) ) {
34
+ echo '<p>' . esc_html( $instance['subtitle'] ) . '</p>';
35
+ }
36
+ ?>
37
+ </div>
38
+ <div class="clearfix"></div>
39
+ </div>
40
+ <div class="aboutus_content">
41
+ <?php
42
+ if ( ! empty( $instance['description'] ) ) {
43
+ echo '<p>' . esc_html( $instance['description'] ) . '</p>';
44
+ }
45
+ ?>
46
+ </div>
47
+ </div>
48
+
49
+ <?php
50
+
51
+ if ( ! empty( $after_widget ) ) {
52
+ echo $after_widget;
53
+ }
54
+
55
+ }
56
+
57
+ function update( $new_instance, $old_instance ) {
58
+
59
+ $instance = $old_instance;
60
+ $instance['title'] = stripslashes( wp_filter_post_kses( $new_instance['title'] ) );
61
+ $instance['subtitle'] = strip_tags( $new_instance['subtitle'] );
62
+ $instance['icon'] = strip_tags( $new_instance['icon'] );
63
+ $instance['description'] = strip_tags( $new_instance['description'] );
64
+
65
+ return $instance;
66
+
67
+ }
68
+
69
+ function form( $instance ) {
70
+ $icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : ''; ?>
71
+ <p>
72
+ <label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', 'rhea' ); ?></label><br/>
73
+ <div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
74
+ <input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
75
+ <div class="icon-holder">
76
+ <p><?php esc_html_e( 'No icon selected :( ...', 'rhea' ) ?></p>
77
+ <i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
78
+ </div>
79
+ <div class="actions">
80
+ <button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'rhea' ) ?></button>
81
+ <button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', 'rhea' ) ?></button>
82
+ <button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', 'rhea' ) ?></button>
83
+ </div>
84
+ </div>
85
+ </p>
86
+ <p>
87
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
88
+ <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
89
+ </p>
90
+ <p>
91
+ <label for="<?php echo $this->get_field_id( 'subtitle' ); ?>"><?php esc_html_e( 'Subtitle', 'rhea' ); ?></label><br/>
92
+ <input type="text" name="<?php echo $this->get_field_name( 'subtitle' ); ?>" id="<?php echo $this->get_field_id( 'subtitle' ); ?>" value="<?php if ( ! empty( $instance['subtitle'] ) ) { echo $instance['subtitle']; } ?>" class="widefat">
93
+ </p>
94
+
95
+ <p>
96
+ <label for="<?php echo $this->get_field_id( 'description' ); ?>"><?php esc_html_e( 'Description', 'rhea' ); ?></label><br/>
97
+ <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'description' ); ?>" id="<?php echo $this->get_field_id( 'description' ); ?>"><?php if ( ! empty( $instance['description'] ) ) { echo htmlspecialchars_decode( $instance['description'] ); } ?></textarea>
98
+ </p>
99
+
100
+ <?php
101
+
102
+ }
103
+
104
+ }
{inc → obfx_modules/companion-legacy/inc}/rhea/widgets/progress-bar.widget.php RENAMED
@@ -3,14 +3,14 @@ class Rhea_Progress_Bar extends WP_Widget {
3
 
4
  public function __construct() {
5
  $widget_args = array(
6
- 'description' => esc_html__( 'This widget is designed for Progress Bar Section', 'rhea' )
7
  );
8
  parent::__construct( 'rhea-progress-bar', esc_html__( '[Rhea] - Progress Bar', 'rhea' ), $widget_args );
9
  }
10
 
11
  function widget( $args, $instance ) {
12
 
13
- extract($args);
14
 
15
  if ( ! empty( $before_widget ) ) {
16
  echo $before_widget;
@@ -59,20 +59,20 @@ class Rhea_Progress_Bar extends WP_Widget {
59
  ?>
60
 
61
  <p>
62
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
63
- <input type="text" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" placeholder="Wordpress" class="widefat">
64
  </p>
65
  <p>
66
- <label for="<?php echo $this->get_field_id('info'); ?>"><?php esc_html_e( 'Info', 'rhea' ); ?></label><br/>
67
- <input type="text" name="<?php echo $this->get_field_name('info'); ?>" id="<?php echo $this->get_field_id('info'); ?>" value="<?php if( ! empty( $instance['info'] ) ) { echo $instance['info']; } ?>" placeholder="70%" class="widefat">
68
  </p>
69
  <p>
70
- <label for="<?php echo $this->get_field_id('percentage'); ?>"><?php esc_html_e( 'Percentage','rhea' ); ?></label><br />
71
- <input type="text" name="<?php echo $this->get_field_name('percentage'); ?>" id="<?php echo $this->get_field_id('percentage'); ?>" value="<?php if( ! empty( $instance['percentage'] ) ) { echo $instance['percentage']; } ?>" placeholder="70" class="widefat">
72
  </p>
73
 
74
  <?php
75
 
76
  }
77
 
78
- }
3
 
4
  public function __construct() {
5
  $widget_args = array(
6
+ 'description' => esc_html__( 'This widget is designed for Progress Bar Section', 'rhea' ),
7
  );
8
  parent::__construct( 'rhea-progress-bar', esc_html__( '[Rhea] - Progress Bar', 'rhea' ), $widget_args );
9
  }
10
 
11
  function widget( $args, $instance ) {
12
 
13
+ extract( $args );
14
 
15
  if ( ! empty( $before_widget ) ) {
16
  echo $before_widget;
59
  ?>
60
 
61
  <p>
62
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'rhea' ); ?></label><br/>
63
+ <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" placeholder="Wordpress" class="widefat">
64
  </p>
65
  <p>
66
+ <label for="<?php echo $this->get_field_id( 'info' ); ?>"><?php esc_html_e( 'Info', 'rhea' ); ?></label><br/>
67
+ <input type="text" name="<?php echo $this->get_field_name( 'info' ); ?>" id="<?php echo $this->get_field_id( 'info' ); ?>" value="<?php if ( ! empty( $instance['info'] ) ) { echo $instance['info']; } ?>" placeholder="70%" class="widefat">
68
  </p>
69
  <p>
70
+ <label for="<?php echo $this->get_field_id( 'percentage' ); ?>"><?php esc_html_e( 'Percentage','rhea' ); ?></label><br />
71
+ <input type="text" name="<?php echo $this->get_field_name( 'percentage' ); ?>" id="<?php echo $this->get_field_id( 'percentage' ); ?>" value="<?php if ( ! empty( $instance['percentage'] ) ) { echo $instance['percentage']; } ?>" placeholder="70" class="widefat">
72
  </p>
73
 
74
  <?php
75
 
76
  }
77
 
78
+ }
inc/zerif-lite/zerif-lite-functions.php → obfx_modules/companion-legacy/inc/zerif-lite/functions.php RENAMED
@@ -1,21 +1,15 @@
1
  <?php
2
- /**
3
- * Companion code for Zerif-Lite
4
- *
5
- * @author Themeisle
6
- * @package themeisle-companion
7
- */
8
-
9
 
10
  /**
11
  * Populate Zerif frontpage widgets areas with default widgets
12
  */
13
  function themeisle_populate_with_default_widgets() {
14
 
15
- $zerif_lite_sidebars = array( 'sidebar-ourfocus' => 'sidebar-ourfocus',
16
- 'sidebar-testimonials' => 'sidebar-testimonials',
17
- 'sidebar-ourteam' => 'sidebar-ourteam',
18
- 'sidebar-aboutus' => 'sidebar-aboutus'
 
19
  );
20
 
21
  $active_widgets = get_option( 'sidebars_widgets' );
@@ -23,7 +17,7 @@ function themeisle_populate_with_default_widgets() {
23
  /**
24
  * Populate the Our Focus sidebar
25
  */
26
- if ( empty ( $active_widgets[ $zerif_lite_sidebars['sidebar-ourfocus'] ] ) ) {
27
 
28
  $zerif_lite_counter = 1;
29
 
@@ -37,7 +31,7 @@ function themeisle_populate_with_default_widgets() {
37
  'text' => 'Create memorable pages with smooth parallax effects that everyone loves. Also, use our lightweight content slider offering you smooth and great-looking animations.',
38
  'link' => '#',
39
  // Custom code with stylesheet_direc
40
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . "/images/parallax.png", 'first' ),
41
  );
42
  } else {
43
  $ourfocus_content[ $zerif_lite_counter ] = array(
@@ -45,7 +39,7 @@ function themeisle_populate_with_default_widgets() {
45
  'text' => 'Create memorable pages with smooth parallax effects that everyone loves. Also, use our lightweight content slider offering you smooth and great-looking animations.',
46
  'link' => '#',
47
  // Custom code with template_direc
48
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . "/images/parallax.png", 'first' ),
49
  );
50
  }
51
 
@@ -63,7 +57,7 @@ function themeisle_populate_with_default_widgets() {
63
  'text' => 'Build a front page for your WooCommerce store in a matter of minutes. The neat and clean presentation will help your sales and make your store accessible to everyone.',
64
  'link' => '#',
65
  // Custom code with stylesheet_direc
66
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . "/images/woo.png", 'second' ),
67
  );
68
  } else {
69
  $ourfocus_content[ $zerif_lite_counter ] = array(
@@ -71,7 +65,7 @@ function themeisle_populate_with_default_widgets() {
71
  'text' => 'Build a front page for your WooCommerce store in a matter of minutes. The neat and clean presentation will help your sales and make your store accessible to everyone.',
72
  'link' => '#',
73
  // Custom code with template_direc
74
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . "/images/woo.png", 'second' ),
75
  );
76
  }
77
 
@@ -89,7 +83,7 @@ function themeisle_populate_with_default_widgets() {
89
  'text' => 'Showcase your team, products, clients, about info, testimonials, latest posts from the blog, contact form, additional calls to action. Everything translation ready.',
90
  'link' => '#',
91
  // Custom code with stylesheet_direc
92
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . "/images/ccc.png", 'third' ),
93
  );
94
  } else {
95
  $ourfocus_content[ $zerif_lite_counter ] = array(
@@ -97,7 +91,7 @@ function themeisle_populate_with_default_widgets() {
97
  'text' => 'Showcase your team, products, clients, about info, testimonials, latest posts from the blog, contact form, additional calls to action. Everything translation ready.',
98
  'link' => '#',
99
  // Custom code with template_direc
100
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . "/images/ccc.png", 'third' ),
101
  );
102
  }
103
 
@@ -115,7 +109,7 @@ function themeisle_populate_with_default_widgets() {
115
  'text' => 'Get new content blocks: pricing table, Google Maps, and more. Change the sections order, display each block exactly where you need it, customize the blocks with whatever colors you wish.',
116
  'link' => '#',
117
  // Custom code with stylesheet_direc
118
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . "/images/ti-logo.png", 'fourth' ),
119
  );
120
  } else {
121
  $ourfocus_content[ $zerif_lite_counter ] = array(
@@ -123,7 +117,7 @@ function themeisle_populate_with_default_widgets() {
123
  'text' => 'Get new content blocks: pricing table, Google Maps, and more. Change the sections order, display each block exactly where you need it, customize the blocks with whatever colors you wish.',
124
  'link' => '#',
125
  // Custom code with template_direc
126
- 'image_uri' => apply_filters ( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . "/images/ti-logo.png", 'fourth' ),
127
  );
128
  }
129
 
@@ -133,12 +127,12 @@ function themeisle_populate_with_default_widgets() {
133
 
134
  update_option( 'sidebars_widgets', $active_widgets );
135
 
136
- }
137
 
138
  /**
139
  * Populate the Testimonials sidebar
140
  */
141
- if ( empty ( $active_widgets[ $zerif_lite_sidebars['sidebar-testimonials'] ] ) ) {
142
 
143
  $zerif_lite_counter = 1;
144
 
@@ -150,13 +144,13 @@ function themeisle_populate_with_default_widgets() {
150
  $testimonial_content[ $zerif_lite_counter ] = array(
151
  'title' => 'Dana Lorem',
152
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
153
- 'image_uri' => get_stylesheet_directory_uri() . "/images/testimonial1.jpg"
154
  );
155
  } else {
156
  $testimonial_content[ $zerif_lite_counter ] = array(
157
  'title' => 'Dana Lorem',
158
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
159
- 'image_uri' => get_template_directory_uri() . "/images/testimonial1.jpg"
160
  );
161
  }
162
 
@@ -172,13 +166,13 @@ function themeisle_populate_with_default_widgets() {
172
  $testimonial_content[ $zerif_lite_counter ] = array(
173
  'title' => 'Linda Guthrie',
174
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
175
- 'image_uri' => get_stylesheet_directory_uri() . "/images/testimonial2.jpg"
176
  );
177
  } else {
178
  $testimonial_content[ $zerif_lite_counter ] = array(
179
  'title' => 'Linda Guthrie',
180
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
181
- 'image_uri' => get_template_directory_uri() . "/images/testimonial2.jpg"
182
  );
183
  }
184
 
@@ -194,13 +188,13 @@ function themeisle_populate_with_default_widgets() {
194
  $testimonial_content[ $zerif_lite_counter ] = array(
195
  'title' => 'Cynthia Henry',
196
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
197
- 'image_uri' => get_stylesheet_directory_uri() . "/images/testimonial3.jpg"
198
  );
199
  } else {
200
  $testimonial_content[ $zerif_lite_counter ] = array(
201
  'title' => 'Cynthia Henry',
202
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
203
- 'image_uri' => get_template_directory_uri() . "/images/testimonial3.jpg"
204
  );
205
  }
206
 
@@ -209,12 +203,12 @@ function themeisle_populate_with_default_widgets() {
209
  $zerif_lite_counter ++;
210
 
211
  update_option( 'sidebars_widgets', $active_widgets );
212
- }
213
 
214
  /**
215
  * Populate the Our team sidebar
216
  */
217
- if ( empty ( $active_widgets[ $zerif_lite_sidebars['sidebar-ourteam'] ] ) ) {
218
 
219
  $zerif_lite_counter = 1;
220
 
@@ -231,7 +225,7 @@ function themeisle_populate_with_default_widgets() {
231
  'bh_link' => '#',
232
  'db_link' => '#',
233
  'ln_link' => '#',
234
- 'image_uri' => get_template_directory_uri() . "/images/team1.png"
235
  );
236
 
237
  update_option( 'widget_zerif_team-widget', $ourteam_content );
@@ -251,7 +245,7 @@ function themeisle_populate_with_default_widgets() {
251
  'bh_link' => '#',
252
  'db_link' => '#',
253
  'ln_link' => '#',
254
- 'image_uri' => get_template_directory_uri() . "/images/team2.png"
255
  );
256
 
257
  update_option( 'widget_zerif_team-widget', $ourteam_content );
@@ -271,7 +265,7 @@ function themeisle_populate_with_default_widgets() {
271
  'bh_link' => '#',
272
  'db_link' => '#',
273
  'ln_link' => '#',
274
- 'image_uri' => get_template_directory_uri() . "/images/team3.png"
275
  );
276
 
277
  update_option( 'widget_zerif_team-widget', $ourteam_content );
@@ -291,7 +285,7 @@ function themeisle_populate_with_default_widgets() {
291
  'bh_link' => '#',
292
  'db_link' => '#',
293
  'ln_link' => '#',
294
- 'image_uri' => get_template_directory_uri() . "/images/team4.png"
295
  );
296
 
297
  update_option( 'widget_zerif_team-widget', $ourteam_content );
@@ -299,12 +293,12 @@ function themeisle_populate_with_default_widgets() {
299
  $zerif_lite_counter ++;
300
 
301
  update_option( 'sidebars_widgets', $active_widgets );
302
- }
303
 
304
  /**
305
  * Populate the Aboutus sidebar with Client widgets
306
  */
307
- if ( empty ( $active_widgets[ $zerif_lite_sidebars['sidebar-aboutus'] ] ) ) {
308
 
309
  $zerif_lite_counter = 1;
310
 
@@ -314,7 +308,7 @@ function themeisle_populate_with_default_widgets() {
314
 
315
  $client_content[ $zerif_lite_counter ] = array(
316
  'link' => '#',
317
- 'image_uri' => get_template_directory_uri() . "/images/clients1.png"
318
  );
319
 
320
  update_option( 'widget_zerif_clients-widget', $client_content );
@@ -327,7 +321,7 @@ function themeisle_populate_with_default_widgets() {
327
 
328
  $client_content[ $zerif_lite_counter ] = array(
329
  'link' => '#',
330
- 'image_uri' => get_template_directory_uri() . "/images/clients2.png"
331
  );
332
 
333
  update_option( 'widget_zerif_clients-widget', $client_content );
@@ -342,7 +336,7 @@ function themeisle_populate_with_default_widgets() {
342
 
343
  $client_content[ $zerif_lite_counter ] = array(
344
  'link' => '#',
345
- 'image_uri' => get_template_directory_uri() . "/images/clients3.png"
346
  );
347
 
348
  update_option( 'widget_zerif_clients-widget', $client_content );
@@ -357,7 +351,7 @@ function themeisle_populate_with_default_widgets() {
357
 
358
  $client_content[ $zerif_lite_counter ] = array(
359
  'link' => '#',
360
- 'image_uri' => get_template_directory_uri() . "/images/clients4.png"
361
  );
362
 
363
  update_option( 'widget_zerif_clients-widget', $client_content );
@@ -372,7 +366,7 @@ function themeisle_populate_with_default_widgets() {
372
 
373
  $client_content[ $zerif_lite_counter ] = array(
374
  'link' => '#',
375
- 'image_uri' => get_template_directory_uri() . "/images/clients5.png"
376
  );
377
 
378
  update_option( 'widget_zerif_clients-widget', $client_content );
@@ -381,38 +375,8 @@ function themeisle_populate_with_default_widgets() {
381
 
382
  update_option( 'sidebars_widgets', $active_widgets );
383
 
384
- }
385
 
386
  update_option( 'themeisle_companion_flag', 'installed' );
387
 
388
  }
389
-
390
- /**
391
- * Register Zerif Widgets
392
- */
393
- function themeisle_register_widgets() {
394
-
395
- register_widget( 'zerif_ourfocus' );
396
- register_widget( 'zerif_testimonial_widget' );
397
- register_widget( 'zerif_clients_widget' );
398
- register_widget( 'zerif_team_widget' );
399
-
400
- $theme = wp_get_theme();
401
-
402
- /* Populate the sidebar only for Zerif Lite */
403
- if ( 'Zerif Lite' == $theme->name || 'Zerif Lite' == $theme->parent_theme ) {
404
-
405
- $themeisle_companion_flag = get_option( 'themeisle_companion_flag' );
406
- if ( empty( $themeisle_companion_flag ) && function_exists( 'themeisle_populate_with_default_widgets' ) ) {
407
- themeisle_populate_with_default_widgets();
408
- }
409
- }
410
- }
411
-
412
- add_action( 'widgets_init', 'themeisle_register_widgets' );
413
-
414
- /* Require The Widget Files */
415
- require_once THEMEISLE_COMPANION_PATH . 'inc/zerif-lite/widgets/widget-focus.php';
416
- require_once THEMEISLE_COMPANION_PATH . 'inc/zerif-lite/widgets/widget-testimonial.php';
417
- require_once THEMEISLE_COMPANION_PATH . 'inc/zerif-lite/widgets/widget-clients.php';
418
- require_once THEMEISLE_COMPANION_PATH . 'inc/zerif-lite/widgets/widget-team.php';
1
  <?php
 
 
 
 
 
 
 
2
 
3
  /**
4
  * Populate Zerif frontpage widgets areas with default widgets
5
  */
6
  function themeisle_populate_with_default_widgets() {
7
 
8
+ $zerif_lite_sidebars = array(
9
+ 'sidebar-ourfocus' => 'sidebar-ourfocus',
10
+ 'sidebar-testimonials' => 'sidebar-testimonials',
11
+ 'sidebar-ourteam' => 'sidebar-ourteam',
12
+ 'sidebar-aboutus' => 'sidebar-aboutus',
13
  );
14
 
15
  $active_widgets = get_option( 'sidebars_widgets' );
17
  /**
18
  * Populate the Our Focus sidebar
19
  */
20
+ if ( empty( $active_widgets[ $zerif_lite_sidebars['sidebar-ourfocus'] ] ) ) {
21
 
22
  $zerif_lite_counter = 1;
23
 
31
  'text' => 'Create memorable pages with smooth parallax effects that everyone loves. Also, use our lightweight content slider offering you smooth and great-looking animations.',
32
  'link' => '#',
33
  // Custom code with stylesheet_direc
34
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . '/images/parallax.png', 'first' ),
35
  );
36
  } else {
37
  $ourfocus_content[ $zerif_lite_counter ] = array(
39
  'text' => 'Create memorable pages with smooth parallax effects that everyone loves. Also, use our lightweight content slider offering you smooth and great-looking animations.',
40
  'link' => '#',
41
  // Custom code with template_direc
42
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . '/images/parallax.png', 'first' ),
43
  );
44
  }
45
 
57
  'text' => 'Build a front page for your WooCommerce store in a matter of minutes. The neat and clean presentation will help your sales and make your store accessible to everyone.',
58
  'link' => '#',
59
  // Custom code with stylesheet_direc
60
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . '/images/woo.png', 'second' ),
61
  );
62
  } else {
63
  $ourfocus_content[ $zerif_lite_counter ] = array(
65
  'text' => 'Build a front page for your WooCommerce store in a matter of minutes. The neat and clean presentation will help your sales and make your store accessible to everyone.',
66
  'link' => '#',
67
  // Custom code with template_direc
68
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . '/images/woo.png', 'second' ),
69
  );
70
  }
71
 
83
  'text' => 'Showcase your team, products, clients, about info, testimonials, latest posts from the blog, contact form, additional calls to action. Everything translation ready.',
84
  'link' => '#',
85
  // Custom code with stylesheet_direc
86
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . '/images/ccc.png', 'third' ),
87
  );
88
  } else {
89
  $ourfocus_content[ $zerif_lite_counter ] = array(
91
  'text' => 'Showcase your team, products, clients, about info, testimonials, latest posts from the blog, contact form, additional calls to action. Everything translation ready.',
92
  'link' => '#',
93
  // Custom code with template_direc
94
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . '/images/ccc.png', 'third' ),
95
  );
96
  }
97
 
109
  'text' => 'Get new content blocks: pricing table, Google Maps, and more. Change the sections order, display each block exactly where you need it, customize the blocks with whatever colors you wish.',
110
  'link' => '#',
111
  // Custom code with stylesheet_direc
112
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_stylesheet_directory_uri() . '/images/ti-logo.png', 'fourth' ),
113
  );
114
  } else {
115
  $ourfocus_content[ $zerif_lite_counter ] = array(
117
  'text' => 'Get new content blocks: pricing table, Google Maps, and more. Change the sections order, display each block exactly where you need it, customize the blocks with whatever colors you wish.',
118
  'link' => '#',
119
  // Custom code with template_direc
120
+ 'image_uri' => apply_filters( 'zerif_ourfocus_icon_default_filter', get_template_directory_uri() . '/images/ti-logo.png', 'fourth' ),
121
  );
122
  }
123
 
127
 
128
  update_option( 'sidebars_widgets', $active_widgets );
129
 
130
+ }// End if().
131
 
132
  /**
133
  * Populate the Testimonials sidebar
134
  */
135
+ if ( empty( $active_widgets[ $zerif_lite_sidebars['sidebar-testimonials'] ] ) ) {
136
 
137
  $zerif_lite_counter = 1;
138
 
144
  $testimonial_content[ $zerif_lite_counter ] = array(
145
  'title' => 'Dana Lorem',
146
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
147
+ 'image_uri' => get_stylesheet_directory_uri() . '/images/testimonial1.jpg',
148
  );
149
  } else {
150
  $testimonial_content[ $zerif_lite_counter ] = array(
151
  'title' => 'Dana Lorem',
152
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
153
+ 'image_uri' => get_template_directory_uri() . '/images/testimonial1.jpg',
154
  );
155
  }
156
 
166
  $testimonial_content[ $zerif_lite_counter ] = array(
167
  'title' => 'Linda Guthrie',
168
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
169
+ 'image_uri' => get_stylesheet_directory_uri() . '/images/testimonial2.jpg',
170
  );
171
  } else {
172
  $testimonial_content[ $zerif_lite_counter ] = array(
173
  'title' => 'Linda Guthrie',
174
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
175
+ 'image_uri' => get_template_directory_uri() . '/images/testimonial2.jpg',
176
  );
177
  }
178
 
188
  $testimonial_content[ $zerif_lite_counter ] = array(
189
  'title' => 'Cynthia Henry',
190
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
191
+ 'image_uri' => get_stylesheet_directory_uri() . '/images/testimonial3.jpg',
192
  );
193
  } else {
194
  $testimonial_content[ $zerif_lite_counter ] = array(
195
  'title' => 'Cynthia Henry',
196
  'text' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur nec sem vel sapien venenatis mattis non vitae augue. Nullam congue commodo lorem vitae facilisis. Suspendisse malesuada id turpis interdum dictum.',
197
+ 'image_uri' => get_template_directory_uri() . '/images/testimonial3.jpg',
198
  );
199
  }
200
 
203
  $zerif_lite_counter ++;
204
 
205
  update_option( 'sidebars_widgets', $active_widgets );
206
+ }// End if().
207
 
208
  /**
209
  * Populate the Our team sidebar
210
  */
211
+ if ( empty( $active_widgets[ $zerif_lite_sidebars['sidebar-ourteam'] ] ) ) {
212
 
213
  $zerif_lite_counter = 1;
214
 
225
  'bh_link' => '#',
226
  'db_link' => '#',
227
  'ln_link' => '#',
228
+ 'image_uri' => get_template_directory_uri() . '/images/team1.png',
229
  );
230
 
231
  update_option( 'widget_zerif_team-widget', $ourteam_content );
245
  'bh_link' => '#',
246
  'db_link' => '#',
247
  'ln_link' => '#',
248
+ 'image_uri' => get_template_directory_uri() . '/images/team2.png',
249
  );
250
 
251
  update_option( 'widget_zerif_team-widget', $ourteam_content );
265
  'bh_link' => '#',
266
  'db_link' => '#',
267
  'ln_link' => '#',
268
+ 'image_uri' => get_template_directory_uri() . '/images/team3.png',
269
  );
270
 
271
  update_option( 'widget_zerif_team-widget', $ourteam_content );
285
  'bh_link' => '#',
286
  'db_link' => '#',
287
  'ln_link' => '#',
288
+ 'image_uri' => get_template_directory_uri() . '/images/team4.png',
289
  );
290
 
291
  update_option( 'widget_zerif_team-widget', $ourteam_content );
293
  $zerif_lite_counter ++;
294
 
295
  update_option( 'sidebars_widgets', $active_widgets );
296
+ }// End if().
297
 
298
  /**
299
  * Populate the Aboutus sidebar with Client widgets
300
  */
301
+ if ( empty( $active_widgets[ $zerif_lite_sidebars['sidebar-aboutus'] ] ) ) {
302
 
303
  $zerif_lite_counter = 1;
304
 
308
 
309
  $client_content[ $zerif_lite_counter ] = array(
310
  'link' => '#',
311
+ 'image_uri' => get_template_directory_uri() . '/images/clients1.png',
312
  );
313
 
314
  update_option( 'widget_zerif_clients-widget', $client_content );
321
 
322
  $client_content[ $zerif_lite_counter ] = array(
323
  'link' => '#',
324
+ 'image_uri' => get_template_directory_uri() . '/images/clients2.png',
325
  );
326
 
327
  update_option( 'widget_zerif_clients-widget', $client_content );
336
 
337
  $client_content[ $zerif_lite_counter ] = array(
338
  'link' => '#',
339
+ 'image_uri' => get_template_directory_uri() . '/images/clients3.png',
340
  );
341
 
342
  update_option( 'widget_zerif_clients-widget', $client_content );
351
 
352
  $client_content[ $zerif_lite_counter ] = array(
353
  'link' => '#',
354
+ 'image_uri' => get_template_directory_uri() . '/images/clients4.png',
355
  );
356
 
357
  update_option( 'widget_zerif_clients-widget', $client_content );
366
 
367
  $client_content[ $zerif_lite_counter ] = array(
368
  'link' => '#',
369
+ 'image_uri' => get_template_directory_uri() . '/images/clients5.png',
370
  );
371
 
372
  update_option( 'widget_zerif_clients-widget', $client_content );
375
 
376
  update_option( 'sidebars_widgets', $active_widgets );
377
 
378
+ }// End if().
379
 
380
  update_option( 'themeisle_companion_flag', 'installed' );
381
 
382
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-clients.php RENAMED
@@ -11,7 +11,7 @@
11
  /**
12
  * Class zerif_clients_widget
13
  */
14
- if ( !class_exists( 'zerif_clients_widget' ) ) {
15
 
16
  class zerif_clients_widget extends WP_Widget {
17
 
@@ -53,7 +53,8 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
53
 
54
  ?>
55
 
56
- <a href="<?php if ( ! empty( $instance['link'] ) ): echo apply_filters( 'widget_title', $instance['link'] ); endif; ?>">
 
57
  <?php
58
  if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) {
59
 
@@ -61,7 +62,7 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
61
 
62
  } elseif ( ! empty( $instance['custom_media_id'] ) ) {
63
 
64
- $zerif_clients_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
65
  if ( ! empty( $zerif_clients_custom_media_id ) && ! empty( $zerif_clients_custom_media_id[0] ) ) {
66
 
67
  echo '<img src="' . esc_url( $zerif_clients_custom_media_id[0] ) . '" alt="' . __( 'Client', 'zerif-lite' ) . '">';
@@ -114,7 +115,8 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
114
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
115
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
116
  id="<?php echo $this->get_field_id( 'link' ); ?>"
117
- value="<?php if ( ! empty( $instance['link'] ) ): echo $instance['link']; endif; ?>"
 
118
  class="widefat">
119
  </p>
120
  <p>
@@ -137,9 +139,10 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
137
  ?>
138
  <input type="hidden" class="custom_media_display_in_customizer"
139
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
140
- echo $zerif_image_in_customizer;
141
- } ?>"
142
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
 
143
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
144
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
145
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
@@ -147,7 +150,8 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
147
  <input type="text" class="widefat custom_media_url"
148
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
149
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
150
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
 
151
  style="margin-top:5px;">
152
 
153
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
@@ -157,11 +161,12 @@ if ( !class_exists( 'zerif_clients_widget' ) ) {
157
 
158
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
159
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
160
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
 
161
  <?php
162
 
163
  }
164
 
165
  }
166
- }
167
 
11
  /**
12
  * Class zerif_clients_widget
13
  */
14
+ if ( ! class_exists( 'zerif_clients_widget' ) ) {
15
 
16
  class zerif_clients_widget extends WP_Widget {
17
 
53
 
54
  ?>
55
 
56
+ <a href="<?php if ( ! empty( $instance['link'] ) ) : echo apply_filters( 'widget_title', $instance['link'] );
57
+ endif; ?>">
58
  <?php
59
  if ( ! empty( $instance['image_uri'] ) && ( $instance['image_uri'] != 'Upload Image' ) ) {
60
 
62
 
63
  } elseif ( ! empty( $instance['custom_media_id'] ) ) {
64
 
65
+ $zerif_clients_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
66
  if ( ! empty( $zerif_clients_custom_media_id ) && ! empty( $zerif_clients_custom_media_id[0] ) ) {
67
 
68
  echo '<img src="' . esc_url( $zerif_clients_custom_media_id[0] ) . '" alt="' . __( 'Client', 'zerif-lite' ) . '">';
115
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
116
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
117
  id="<?php echo $this->get_field_id( 'link' ); ?>"
118
+ value="<?php if ( ! empty( $instance['link'] ) ) : echo $instance['link'];
119
+ endif; ?>"
120
  class="widefat">
121
  </p>
122
  <p>
139
  ?>
140
  <input type="hidden" class="custom_media_display_in_customizer"
141
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
142
+ echo $zerif_image_in_customizer;
143
+ } ?>"
144
+ value="<?php if ( ! empty( $instance['image_in_customizer'] ) ) : echo $instance['image_in_customizer'];
145
+ endif; ?>">
146
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
147
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
148
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
150
  <input type="text" class="widefat custom_media_url"
151
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
152
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
153
+ value="<?php if ( ! empty( $instance['image_uri'] ) ) : echo $instance['image_uri'];
154
+ endif; ?>"
155
  style="margin-top:5px;">
156
 
157
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
161
 
162
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
163
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
164
+ value="<?php if ( ! empty( $instance['custom_media_id'] ) ) : echo $instance['custom_media_id'];
165
+ endif; ?>"/>
166
  <?php
167
 
168
  }
169
 
170
  }
171
+ }// End if().
172
 
{inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-focus.php RENAMED
@@ -11,7 +11,7 @@
11
  /**
12
  * Class zerif_ourfocus
13
  */
14
- if ( !class_exists( 'zerif_ourfocus' ) ) {
15
 
16
  class zerif_ourfocus extends WP_Widget {
17
 
@@ -84,7 +84,7 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
84
 
85
  <?php } elseif ( ! empty( $instance['custom_media_id'] ) ) {
86
 
87
- $zerif_ourfocus_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
88
  if ( ! empty( $zerif_ourfocus_custom_media_id ) && ! empty( $zerif_ourfocus_custom_media_id[0] ) ) {
89
 
90
  if ( ! empty( $instance['link'] ) ) { ?>
@@ -110,11 +110,11 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
110
  <?php
111
  }
112
  }
113
-
114
- }
115
  ?>
116
 
117
- <h3 class="red-border-bottom"><?php if ( ! empty( $instance['title'] ) ): echo apply_filters( 'widget_title', $instance['title'] ); endif; ?></h3>
 
118
  <!-- FOCUS HEADING -->
119
 
120
  <?php
@@ -167,21 +167,24 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
167
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'zerif-lite' ); ?></label><br/>
168
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
169
  id="<?php echo $this->get_field_id( 'title' ); ?>"
170
- value="<?php if ( ! empty( $instance['title'] ) ): echo $instance['title']; endif; ?>"
 
171
  class="widefat">
172
  </p>
173
  <p>
174
  <label
175
  for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
176
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
177
- id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ): echo htmlspecialchars_decode( $instance['text'] ); endif; ?></textarea>
 
178
  </p>
179
  <p>
180
  <label
181
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
182
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
183
  id="<?php echo $this->get_field_id( 'link' ); ?>"
184
- value="<?php if ( ! empty( $instance['link'] ) ): echo esc_url( $instance['link'] ); endif; ?>"
 
185
  class="widefat">
186
  </p>
187
  <p>
@@ -204,9 +207,10 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
204
  ?>
205
  <input type="hidden" class="custom_media_display_in_customizer"
206
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
207
- echo $zerif_image_in_customizer;
208
- } ?>"
209
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
 
210
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
211
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
212
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
@@ -214,7 +218,8 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
214
  <input type="text" class="widefat custom_media_url"
215
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
216
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
217
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
 
218
  style="margin-top:5px;">
219
 
220
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
@@ -224,11 +229,12 @@ if ( !class_exists( 'zerif_ourfocus' ) ) {
224
 
225
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
226
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
227
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
 
228
 
229
  <?php
230
 
231
  }
232
 
233
  }
234
- }
11
  /**
12
  * Class zerif_ourfocus
13
  */
14
+ if ( ! class_exists( 'zerif_ourfocus' ) ) {
15
 
16
  class zerif_ourfocus extends WP_Widget {
17
 
84
 
85
  <?php } elseif ( ! empty( $instance['custom_media_id'] ) ) {
86
 
87
+ $zerif_ourfocus_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
88
  if ( ! empty( $zerif_ourfocus_custom_media_id ) && ! empty( $zerif_ourfocus_custom_media_id[0] ) ) {
89
 
90
  if ( ! empty( $instance['link'] ) ) { ?>
110
  <?php
111
  }
112
  }
113
+ }// End if().
 
114
  ?>
115
 
116
+ <h3 class="red-border-bottom"><?php if ( ! empty( $instance['title'] ) ) : echo apply_filters( 'widget_title', $instance['title'] );
117
+ endif; ?></h3>
118
  <!-- FOCUS HEADING -->
119
 
120
  <?php
167
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'zerif-lite' ); ?></label><br/>
168
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
169
  id="<?php echo $this->get_field_id( 'title' ); ?>"
170
+ value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
171
+ endif; ?>"
172
  class="widefat">
173
  </p>
174
  <p>
175
  <label
176
  for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
177
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
178
+ id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
179
+ endif; ?></textarea>
180
  </p>
181
  <p>
182
  <label
183
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'zerif-lite' ); ?></label><br/>
184
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
185
  id="<?php echo $this->get_field_id( 'link' ); ?>"
186
+ value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
187
+ endif; ?>"
188
  class="widefat">
189
  </p>
190
  <p>
207
  ?>
208
  <input type="hidden" class="custom_media_display_in_customizer"
209
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
210
+ echo $zerif_image_in_customizer;
211
+ } ?>"
212
+ value="<?php if ( ! empty( $instance['image_in_customizer'] ) ) : echo $instance['image_in_customizer'];
213
+ endif; ?>">
214
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
215
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
216
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
218
  <input type="text" class="widefat custom_media_url"
219
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
220
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
221
+ value="<?php if ( ! empty( $instance['image_uri'] ) ) : echo $instance['image_uri'];
222
+ endif; ?>"
223
  style="margin-top:5px;">
224
 
225
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
229
 
230
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
231
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
232
+ value="<?php if ( ! empty( $instance['custom_media_id'] ) ) : echo $instance['custom_media_id'];
233
+ endif; ?>"/>
234
 
235
  <?php
236
 
237
  }
238
 
239
  }
240
+ }// End if().
{inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-team.php RENAMED
@@ -11,7 +11,7 @@
11
  /**
12
  * Class zerif_team_widget
13
  */
14
- if ( !class_exists( 'zerif_team_widget' ) ) {
15
 
16
  class zerif_team_widget extends WP_Widget {
17
 
@@ -66,35 +66,35 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
66
 
67
  </figure>
68
  <?php
69
- } elseif ( ! empty( $instance['custom_media_id'] ) ) {
70
 
71
- $zerif_team_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
72
- $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
73
 
74
- if ( ! empty( $zerif_team_custom_media_id ) && ! empty( $zerif_team_custom_media_id[0] ) ) {
75
- ?>
76
 
77
- <figure class="profile-pic">
78
 
79
- <img src="<?php echo esc_url( $zerif_team_custom_media_id[0] ); ?>"
80
- alt="<?php echo $alt; ?>"/>
81
 
82
  </figure>
83
 
84
  <?php
85
- }
86
- }
87
  ?>
88
 
89
  <div class="member-details">
90
 
91
- <?php if ( ! empty( $instance['name'] ) ): ?>
92
 
93
  <h3 class="dark-text red-border-bottom"><?php echo apply_filters( 'widget_title', $instance['name'] ); ?></h3>
94
 
95
  <?php endif; ?>
96
 
97
- <?php if ( ! empty( $instance['position'] ) ): ?>
98
 
99
  <div
100
  class="position"><?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['position'] ) ); ?></div>
@@ -108,13 +108,13 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
108
  <ul>
109
  <?php
110
  $zerif_team_target = '_self';
111
- if ( ! empty( $instance['open_new_window'] ) ):
112
  $zerif_team_target = '_blank';
113
  endif;
114
  ?>
115
 
116
  <?php
117
- if ( ! empty( $instance['fb_link'] ) ): ?>
118
  <li>
119
  <a href="<?php echo apply_filters( 'widget_title', $instance['fb_link'] ); ?>"
120
  target="<?php echo $zerif_team_target; ?>">
@@ -132,7 +132,7 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
132
  <?php
133
  endif;
134
 
135
- if ( ! empty( $instance['tw_link'] ) ): ?>
136
  <li>
137
  <a href="<?php echo apply_filters( 'widget_title', $instance['tw_link'] ); ?>"
138
  target="<?php echo $zerif_team_target; ?>">
@@ -150,7 +150,7 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
150
  <?php
151
  endif;
152
 
153
- if ( ! empty( $instance['bh_link'] ) ): ?>
154
  <li>
155
  <a href="<?php echo apply_filters( 'widget_title', $instance['bh_link'] ); ?>"
156
  target="<?php echo $zerif_team_target; ?>">
@@ -168,7 +168,7 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
168
  <?php
169
  endif;
170
 
171
- if ( ! empty( $instance['db_link'] ) ): ?>
172
  <li>
173
  <a href="<?php echo apply_filters( 'widget_title', $instance['db_link'] ); ?>"
174
  target="<?php echo $zerif_team_target; ?>">
@@ -186,7 +186,7 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
186
  <?php
187
  endif;
188
 
189
- if ( ! empty( $instance['ln_link'] ) ): ?>
190
  <li>
191
  <a href="<?php echo apply_filters( 'widget_title', $instance['ln_link'] ); ?>"
192
  target="<?php echo $zerif_team_target; ?>">
@@ -208,7 +208,7 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
208
 
209
  </div>
210
 
211
- <?php if ( ! empty( $instance['description'] ) ): ?>
212
  <div class="details">
213
 
214
  <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['description'] ) ); ?>
@@ -269,14 +269,16 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
269
  for="<?php echo $this->get_field_id( 'name' ); ?>"><?php _e( 'Name', 'zerif-lite' ); ?></label><br/>
270
  <input type="text" name="<?php echo $this->get_field_name( 'name' ); ?>"
271
  id="<?php echo $this->get_field_id( 'name' ); ?>"
272
- value="<?php if ( ! empty( $instance['name'] ) ): echo $instance['name']; endif; ?>"
 
273
  class="widefat"/>
274
  </p>
275
  <p>
276
  <label
277
  for="<?php echo $this->get_field_id( 'position' ); ?>"><?php _e( 'Position', 'zerif-lite' ); ?></label><br/>
278
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'position' ); ?>"
279
- id="<?php echo $this->get_field_id( 'position' ); ?>"><?php if ( ! empty( $instance['position'] ) ): echo htmlspecialchars_decode( $instance['position'] ); endif; ?></textarea>
 
280
  </p>
281
  <p>
282
  <label
@@ -284,7 +286,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
284
  <textarea class="widefat" rows="8" cols="20"
285
  name="<?php echo $this->get_field_name( 'description' ); ?>"
286
  id="<?php echo $this->get_field_id( 'description' ); ?>"><?php
287
- if ( ! empty( $instance['description'] ) ): echo htmlspecialchars_decode( $instance['description'] ); endif;
 
288
  ?></textarea>
289
  </p>
290
  <p>
@@ -292,7 +295,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
292
  for="<?php echo $this->get_field_id( 'fb_link' ); ?>"><?php _e( 'Facebook link', 'zerif-lite' ); ?></label><br/>
293
  <input type="text" name="<?php echo $this->get_field_name( 'fb_link' ); ?>"
294
  id="<?php echo $this->get_field_id( 'fb_link' ); ?>"
295
- value="<?php if ( ! empty( $instance['fb_link'] ) ): echo $instance['fb_link']; endif; ?>"
 
296
  class="widefat">
297
 
298
  </p>
@@ -301,7 +305,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
301
  for="<?php echo $this->get_field_id( 'tw_link' ); ?>"><?php _e( 'Twitter link', 'zerif-lite' ); ?></label><br/>
302
  <input type="text" name="<?php echo $this->get_field_name( 'tw_link' ); ?>"
303
  id="<?php echo $this->get_field_id( 'tw_link' ); ?>"
304
- value="<?php if ( ! empty( $instance['tw_link'] ) ): echo $instance['tw_link']; endif; ?>"
 
305
  class="widefat">
306
  </p>
307
  <p>
@@ -309,7 +314,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
309
  for="<?php echo $this->get_field_id( 'bh_link' ); ?>"><?php _e( 'Behance link', 'zerif-lite' ); ?></label><br/>
310
  <input type="text" name="<?php echo $this->get_field_name( 'bh_link' ); ?>"
311
  id="<?php echo $this->get_field_id( 'bh_link' ); ?>"
312
- value="<?php if ( ! empty( $instance['bh_link'] ) ): echo $instance['bh_link']; endif; ?>"
 
313
  class="widefat">
314
 
315
  </p>
@@ -318,7 +324,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
318
  for="<?php echo $this->get_field_id( 'db_link' ); ?>"><?php _e( 'Dribble link', 'zerif-lite' ); ?></label><br/>
319
  <input type="text" name="<?php echo $this->get_field_name( 'db_link' ); ?>"
320
  id="<?php echo $this->get_field_id( 'db_link' ); ?>"
321
- value="<?php if ( ! empty( $instance['db_link'] ) ): echo $instance['db_link']; endif; ?>"
 
322
  class="widefat">
323
  </p>
324
  <p>
@@ -326,12 +333,14 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
326
  for="<?php echo $this->get_field_id( 'ln_link' ); ?>"><?php _e( 'Linkedin link', 'zerif-lite' ); ?></label><br/>
327
  <input type="text" name="<?php echo $this->get_field_name( 'ln_link' ); ?>"
328
  id="<?php echo $this->get_field_id( 'ln_link' ); ?>"
329
- value="<?php if ( ! empty( $instance['ln_link'] ) ): echo $instance['ln_link']; endif; ?>"
 
330
  class="widefat">
331
  </p>
332
  <p>
333
  <input type="checkbox" name="<?php echo $this->get_field_name( 'open_new_window' ); ?>"
334
- id="<?php echo $this->get_field_id( 'open_new_window' ); ?>" <?php if ( ! empty( $instance['open_new_window'] ) ): checked( (bool) $instance['open_new_window'], true ); endif; ?> ><?php _e( 'Open links in new window?', 'zerif-lite' ); ?>
 
335
  <br>
336
  </p>
337
  <p>
@@ -354,9 +363,10 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
354
  ?>
355
  <input type="hidden" class="custom_media_display_in_customizer"
356
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
357
- echo $zerif_image_in_customizer;
358
- } ?>"
359
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
 
360
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
361
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
362
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
@@ -364,7 +374,8 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
364
  <input type="text" class="widefat custom_media_url"
365
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
366
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
367
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
 
368
  style="margin-top:5px;">
369
 
370
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
@@ -374,11 +385,12 @@ if ( !class_exists( 'zerif_team_widget' ) ) {
374
 
375
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
376
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
377
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
 
378
 
379
  <?php
380
 
381
  }
382
 
383
  }
384
- }
11
  /**
12
  * Class zerif_team_widget
13
  */
14
+ if ( ! class_exists( 'zerif_team_widget' ) ) {
15
 
16
  class zerif_team_widget extends WP_Widget {
17
 
66
 
67
  </figure>
68
  <?php
69
+ } elseif ( ! empty( $instance['custom_media_id'] ) ) {
70
 
71
+ $zerif_team_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
72
+ $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
73
 
74
+ if ( ! empty( $zerif_team_custom_media_id ) && ! empty( $zerif_team_custom_media_id[0] ) ) {
75
+ ?>
76
 
77
+ <figure class="profile-pic">
78
 
79
+ <img src="<?php echo esc_url( $zerif_team_custom_media_id[0] ); ?>"
80
+ alt="<?php echo $alt; ?>"/>
81
 
82
  </figure>
83
 
84
  <?php
85
+ }
86
+ }
87
  ?>
88
 
89
  <div class="member-details">
90
 
91
+ <?php if ( ! empty( $instance['name'] ) ) : ?>
92
 
93
  <h3 class="dark-text red-border-bottom"><?php echo apply_filters( 'widget_title', $instance['name'] ); ?></h3>
94
 
95
  <?php endif; ?>
96
 
97
+ <?php if ( ! empty( $instance['position'] ) ) : ?>
98
 
99
  <div
100
  class="position"><?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['position'] ) ); ?></div>
108
  <ul>
109
  <?php
110
  $zerif_team_target = '_self';
111
+ if ( ! empty( $instance['open_new_window'] ) ) :
112
  $zerif_team_target = '_blank';
113
  endif;
114
  ?>
115
 
116
  <?php
117
+ if ( ! empty( $instance['fb_link'] ) ) : ?>
118
  <li>
119
  <a href="<?php echo apply_filters( 'widget_title', $instance['fb_link'] ); ?>"
120
  target="<?php echo $zerif_team_target; ?>">
132
  <?php
133
  endif;
134
 
135
+ if ( ! empty( $instance['tw_link'] ) ) : ?>
136
  <li>
137
  <a href="<?php echo apply_filters( 'widget_title', $instance['tw_link'] ); ?>"
138
  target="<?php echo $zerif_team_target; ?>">
150
  <?php
151
  endif;
152
 
153
+ if ( ! empty( $instance['bh_link'] ) ) : ?>
154
  <li>
155
  <a href="<?php echo apply_filters( 'widget_title', $instance['bh_link'] ); ?>"
156
  target="<?php echo $zerif_team_target; ?>">
168
  <?php
169
  endif;
170
 
171
+ if ( ! empty( $instance['db_link'] ) ) : ?>
172
  <li>
173
  <a href="<?php echo apply_filters( 'widget_title', $instance['db_link'] ); ?>"
174
  target="<?php echo $zerif_team_target; ?>">
186
  <?php
187
  endif;
188
 
189
+ if ( ! empty( $instance['ln_link'] ) ) : ?>
190
  <li>
191
  <a href="<?php echo apply_filters( 'widget_title', $instance['ln_link'] ); ?>"
192
  target="<?php echo $zerif_team_target; ?>">
208
 
209
  </div>
210
 
211
+ <?php if ( ! empty( $instance['description'] ) ) : ?>
212
  <div class="details">
213
 
214
  <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['description'] ) ); ?>
269
  for="<?php echo $this->get_field_id( 'name' ); ?>"><?php _e( 'Name', 'zerif-lite' ); ?></label><br/>
270
  <input type="text" name="<?php echo $this->get_field_name( 'name' ); ?>"
271
  id="<?php echo $this->get_field_id( 'name' ); ?>"
272
+ value="<?php if ( ! empty( $instance['name'] ) ) : echo $instance['name'];
273
+ endif; ?>"
274
  class="widefat"/>
275
  </p>
276
  <p>
277
  <label
278
  for="<?php echo $this->get_field_id( 'position' ); ?>"><?php _e( 'Position', 'zerif-lite' ); ?></label><br/>
279
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'position' ); ?>"
280
+ id="<?php echo $this->get_field_id( 'position' ); ?>"><?php if ( ! empty( $instance['position'] ) ) : echo htmlspecialchars_decode( $instance['position'] );
281
+ endif; ?></textarea>
282
  </p>
283
  <p>
284
  <label
286
  <textarea class="widefat" rows="8" cols="20"
287
  name="<?php echo $this->get_field_name( 'description' ); ?>"
288
  id="<?php echo $this->get_field_id( 'description' ); ?>"><?php
289
+ if ( ! empty( $instance['description'] ) ) : echo htmlspecialchars_decode( $instance['description'] );
290
+ endif;
291
  ?></textarea>
292
  </p>
293
  <p>
295
  for="<?php echo $this->get_field_id( 'fb_link' ); ?>"><?php _e( 'Facebook link', 'zerif-lite' ); ?></label><br/>
296
  <input type="text" name="<?php echo $this->get_field_name( 'fb_link' ); ?>"
297
  id="<?php echo $this->get_field_id( 'fb_link' ); ?>"
298
+ value="<?php if ( ! empty( $instance['fb_link'] ) ) : echo $instance['fb_link'];
299
+ endif; ?>"
300
  class="widefat">
301
 
302
  </p>
305
  for="<?php echo $this->get_field_id( 'tw_link' ); ?>"><?php _e( 'Twitter link', 'zerif-lite' ); ?></label><br/>
306
  <input type="text" name="<?php echo $this->get_field_name( 'tw_link' ); ?>"
307
  id="<?php echo $this->get_field_id( 'tw_link' ); ?>"
308
+ value="<?php if ( ! empty( $instance['tw_link'] ) ) : echo $instance['tw_link'];
309
+ endif; ?>"
310
  class="widefat">
311
  </p>
312
  <p>
314
  for="<?php echo $this->get_field_id( 'bh_link' ); ?>"><?php _e( 'Behance link', 'zerif-lite' ); ?></label><br/>
315
  <input type="text" name="<?php echo $this->get_field_name( 'bh_link' ); ?>"
316
  id="<?php echo $this->get_field_id( 'bh_link' ); ?>"
317
+ value="<?php if ( ! empty( $instance['bh_link'] ) ) : echo $instance['bh_link'];
318
+ endif; ?>"
319
  class="widefat">
320
 
321
  </p>
324
  for="<?php echo $this->get_field_id( 'db_link' ); ?>"><?php _e( 'Dribble link', 'zerif-lite' ); ?></label><br/>
325
  <input type="text" name="<?php echo $this->get_field_name( 'db_link' ); ?>"
326
  id="<?php echo $this->get_field_id( 'db_link' ); ?>"
327
+ value="<?php if ( ! empty( $instance['db_link'] ) ) : echo $instance['db_link'];
328
+ endif; ?>"
329
  class="widefat">
330
  </p>
331
  <p>
333
  for="<?php echo $this->get_field_id( 'ln_link' ); ?>"><?php _e( 'Linkedin link', 'zerif-lite' ); ?></label><br/>
334
  <input type="text" name="<?php echo $this->get_field_name( 'ln_link' ); ?>"
335
  id="<?php echo $this->get_field_id( 'ln_link' ); ?>"
336
+ value="<?php if ( ! empty( $instance['ln_link'] ) ) : echo $instance['ln_link'];
337
+ endif; ?>"
338
  class="widefat">
339
  </p>
340
  <p>
341
  <input type="checkbox" name="<?php echo $this->get_field_name( 'open_new_window' ); ?>"
342
+ id="<?php echo $this->get_field_id( 'open_new_window' ); ?>" <?php if ( ! empty( $instance['open_new_window'] ) ) : checked( (bool) $instance['open_new_window'], true );
343
+ endif; ?> ><?php _e( 'Open links in new window?', 'zerif-lite' ); ?>
344
  <br>
345
  </p>
346
  <p>
363
  ?>
364
  <input type="hidden" class="custom_media_display_in_customizer"
365
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
366
+ echo $zerif_image_in_customizer;
367
+ } ?>"
368
+ value="<?php if ( ! empty( $instance['image_in_customizer'] ) ) : echo $instance['image_in_customizer'];
369
+ endif; ?>">
370
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
371
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
372
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
374
  <input type="text" class="widefat custom_media_url"
375
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
376
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
377
+ value="<?php if ( ! empty( $instance['image_uri'] ) ) : echo $instance['image_uri'];
378
+ endif; ?>"
379
  style="margin-top:5px;">
380
 
381
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
385
 
386
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
387
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
388
+ value="<?php if ( ! empty( $instance['custom_media_id'] ) ) : echo $instance['custom_media_id'];
389
+ endif; ?>"/>
390
 
391
  <?php
392
 
393
  }
394
 
395
  }
396
+ }// End if().
{inc → obfx_modules/companion-legacy/inc}/zerif-lite/widgets/widget-testimonial.php RENAMED
@@ -11,7 +11,7 @@
11
  /**
12
  * Class zerif_testimonial_widget
13
  */
14
- if ( !class_exists( 'zerif_testimonial_widget' ) ) {
15
 
16
  class zerif_testimonial_widget extends WP_Widget {
17
 
@@ -60,7 +60,7 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
60
 
61
  <!-- MESSAGE OF THE CLIENT -->
62
 
63
- <?php if ( ! empty( $instance['text'] ) ): ?>
64
  <div class="message">
65
  <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['text'] ) ); ?>
66
  </div>
@@ -79,10 +79,12 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
79
  <div class="client-info">
80
 
81
  <a <?php echo $attribut_new_tab; ?>
82
- class="client-name" <?php if ( ! empty( $instance['link'] ) ): echo 'href="' . esc_url( $instance['link'] ) . '"'; endif; ?>><?php if ( ! empty( $instance['title'] ) ): echo apply_filters( 'widget_title', $instance['title'] ); endif; ?></a>
 
 
83
 
84
 
85
- <?php if ( ! empty( $instance['details'] ) ): ?>
86
  <div class="client-company">
87
 
88
  <?php echo apply_filters( 'widget_title', $instance['details'] ); ?>
@@ -104,7 +106,7 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
104
 
105
  } elseif ( ! empty( $instance['custom_media_id'] ) ) {
106
 
107
- $zerif_testimonials_custom_media_id = wp_get_attachment_image_src( $instance["custom_media_id"] );
108
  $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
109
 
110
  if ( ! empty( $zerif_testimonials_custom_media_id ) && ! empty( $zerif_testimonials_custom_media_id[0] ) ) {
@@ -166,7 +168,8 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
166
  for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Author', 'zerif-lite' ); ?></label><br/>
167
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
168
  id="<?php echo $this->get_field_id( 'title' ); ?>"
169
- value="<?php if ( ! empty( $instance['title'] ) ): echo $instance['title']; endif; ?>"
 
170
  class="widefat">
171
  </p>
172
  <p>
@@ -174,7 +177,8 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
174
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Author link', 'zerif-lite' ); ?></label><br/>
175
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
176
  id="<?php echo $this->get_field_id( 'link' ); ?>"
177
- value="<?php if ( ! empty( $instance['link'] ) ): echo esc_url( $instance['link'] ); endif; ?>"
 
178
  class="widefat">
179
  </p>
180
  <p>
@@ -182,14 +186,16 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
182
  for="<?php echo $this->get_field_id( 'details' ); ?>"><?php _e( 'Author details', 'zerif-lite' ); ?></label><br/>
183
  <input type="text" name="<?php echo $this->get_field_name( 'details' ); ?>"
184
  id="<?php echo $this->get_field_id( 'details' ); ?>"
185
- value="<?php if ( ! empty( $instance['details'] ) ): echo $instance['details']; endif; ?>"
 
186
  class="widefat">
187
  </p>
188
  <p>
189
  <label
190
  for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
191
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
192
- id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ): echo htmlspecialchars_decode( $instance['text'] ); endif; ?></textarea>
 
193
  </p>
194
  <p>
195
  <label
@@ -211,9 +217,10 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
211
  ?>
212
  <input type="hidden" class="custom_media_display_in_customizer"
213
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
214
- echo $zerif_image_in_customizer;
215
- } ?>"
216
- value="<?php if ( ! empty( $instance['image_in_customizer'] ) ): echo $instance['image_in_customizer']; endif; ?>">
 
217
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
218
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
219
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
@@ -221,7 +228,8 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
221
  <input type="text" class="widefat custom_media_url"
222
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
223
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
224
- value="<?php if ( ! empty( $instance['image_uri'] ) ): echo $instance['image_uri']; endif; ?>"
 
225
  style="margin-top:5px;">
226
 
227
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
@@ -231,11 +239,12 @@ if ( !class_exists( 'zerif_testimonial_widget' ) ) {
231
 
232
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
233
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
234
- value="<?php if ( ! empty( $instance["custom_media_id"] ) ): echo $instance["custom_media_id"]; endif; ?>"/>
 
235
 
236
  <?php
237
 
238
  }
239
 
240
  }
241
- }
11
  /**
12
  * Class zerif_testimonial_widget
13
  */
14
+ if ( ! class_exists( 'zerif_testimonial_widget' ) ) {
15
 
16
  class zerif_testimonial_widget extends WP_Widget {
17
 
60
 
61
  <!-- MESSAGE OF THE CLIENT -->
62
 
63
+ <?php if ( ! empty( $instance['text'] ) ) : ?>
64
  <div class="message">
65
  <?php echo htmlspecialchars_decode( apply_filters( 'widget_title', $instance['text'] ) ); ?>
66
  </div>
79
  <div class="client-info">
80
 
81
  <a <?php echo $attribut_new_tab; ?>
82
+ class="client-name" <?php if ( ! empty( $instance['link'] ) ) : echo 'href="' . esc_url( $instance['link'] ) . '"';
83
+ endif; ?>><?php if ( ! empty( $instance['title'] ) ) : echo apply_filters( 'widget_title', $instance['title'] );
84
+ endif; ?></a>
85
 
86
 
87
+ <?php if ( ! empty( $instance['details'] ) ) : ?>
88
  <div class="client-company">
89
 
90
  <?php echo apply_filters( 'widget_title', $instance['details'] ); ?>
106
 
107
  } elseif ( ! empty( $instance['custom_media_id'] ) ) {
108
 
109
+ $zerif_testimonials_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
110
  $alt = get_post_meta( $instance['custom_media_id'], '_wp_attachment_image_alt', true );
111
 
112
  if ( ! empty( $zerif_testimonials_custom_media_id ) && ! empty( $zerif_testimonials_custom_media_id[0] ) ) {
168
  for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Author', 'zerif-lite' ); ?></label><br/>
169
  <input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
170
  id="<?php echo $this->get_field_id( 'title' ); ?>"
171
+ value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
172
+ endif; ?>"
173
  class="widefat">
174
  </p>
175
  <p>
177
  for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Author link', 'zerif-lite' ); ?></label><br/>
178
  <input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
179
  id="<?php echo $this->get_field_id( 'link' ); ?>"
180
+ value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
181
+ endif; ?>"
182
  class="widefat">
183
  </p>
184
  <p>
186
  for="<?php echo $this->get_field_id( 'details' ); ?>"><?php _e( 'Author details', 'zerif-lite' ); ?></label><br/>
187
  <input type="text" name="<?php echo $this->get_field_name( 'details' ); ?>"
188
  id="<?php echo $this->get_field_id( 'details' ); ?>"
189
+ value="<?php if ( ! empty( $instance['details'] ) ) : echo $instance['details'];
190
+ endif; ?>"
191
  class="widefat">
192
  </p>
193
  <p>
194
  <label
195
  for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'zerif-lite' ); ?></label><br/>
196
  <textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
197
+ id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
198
+ endif; ?></textarea>
199
  </p>
200
  <p>
201
  <label
217
  ?>
218
  <input type="hidden" class="custom_media_display_in_customizer"
219
  name="<?php if ( ! empty( $zerif_image_in_customizer ) ) {
220
+ echo $zerif_image_in_customizer;
221
+ } ?>"
222
+ value="<?php if ( ! empty( $instance['image_in_customizer'] ) ) : echo $instance['image_in_customizer'];
223
+ endif; ?>">
224
  <img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
225
  style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
226
  alt="<?php echo __( 'Uploaded image', 'zerif-lite' ); ?>"/><br/>
228
  <input type="text" class="widefat custom_media_url"
229
  name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
230
  id="<?php echo $this->get_field_id( 'image_uri' ); ?>"
231
+ value="<?php if ( ! empty( $instance['image_uri'] ) ) : echo $instance['image_uri'];
232
+ endif; ?>"
233
  style="margin-top:5px;">
234
 
235
  <input type="button" class="button button-primary custom_media_button" id="custom_media_button"
239
 
240
  <input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
241
  name="<?php echo $this->get_field_name( 'custom_media_id' ); ?>" type="hidden"
242
+ value="<?php if ( ! empty( $instance['custom_media_id'] ) ) : echo $instance['custom_media_id'];
243
+ endif; ?>"/>
244
 
245
  <?php
246
 
247
  }
248
 
249
  }
250
+ }// End if().
obfx_modules/companion-legacy/init.php ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ThemeIsle Companion Legacy Core Orbit Fox Module.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Companion_Legacy_OBFX_Module
9
+ */
10
+
11
+ /**
12
+ * The class defines a new module to be used by Orbit Fox plugin.
13
+ *
14
+ * @package Companion_Legacy_OBFX_Module
15
+ * @author Themeisle <friends@themeisle.com>
16
+ * @codeCoverageIgnore
17
+ */
18
+ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
19
+
20
+ private $inc_dir;
21
+
22
+ /**
23
+ * Companion_Legacy_OBFX_Module constructor.
24
+ *
25
+ * @since 1.0.0
26
+ * @access public
27
+ */
28
+ public function __construct() {
29
+ parent::__construct();
30
+ $this->name = __( 'Companion Legacy', 'themeisle-companion' );
31
+ $this->description = __( 'Module containing legacy functionality from ThemeIsle Companion.', 'themeisle-companion' );
32
+
33
+ $this->auto = true;
34
+
35
+ $this->inc_dir = $this->get_dir() . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR;
36
+ if( ! defined('THEMEISLE_COMPANION_PATH') ) {
37
+ define( 'THEMEISLE_COMPANION_PATH', $this->inc_dir );
38
+ }
39
+ if( ! defined('THEMEISLE_COMPANION_URL') ) {
40
+ define( 'THEMEISLE_COMPANION_URL', plugin_dir_url( $this->inc_dir ) );
41
+ }
42
+ $theme_name = '';
43
+ if ( $this->is_zerif() ) {
44
+ $theme_name = 'Zerif';
45
+ require_once $this->inc_dir . 'zerif-lite' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'widget-focus.php';
46
+ require_once $this->inc_dir . 'zerif-lite' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'widget-testimonial.php';
47
+ require_once $this->inc_dir . 'zerif-lite' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'widget-clients.php';
48
+ require_once $this->inc_dir . 'zerif-lite' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'widget-team.php';
49
+ require_once $this->inc_dir . 'zerif-lite' . DIRECTORY_SEPARATOR . 'functions.php';
50
+ }
51
+
52
+ if ( $this->is_rhea() ) {
53
+ $theme_name = 'Rhea';
54
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'features.widget.php';
55
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'about.widget.php';
56
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'hours.widget.php';
57
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'contact.widget.php';
58
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'progress-bar.widget.php';
59
+ require_once $this->inc_dir . 'rhea' . DIRECTORY_SEPARATOR . 'widgets' . DIRECTORY_SEPARATOR . 'icon-box.widget.php';
60
+ }
61
+
62
+ if ( $this->is_hestia() ) {
63
+ require_once $this->inc_dir . 'hestia' . DIRECTORY_SEPARATOR . 'functions.php';
64
+ $theme_name = 'Hestia';
65
+
66
+ }
67
+ if ( ! empty( $theme_name ) ) {
68
+ $this->notices = array(
69
+ array(
70
+ 'type' => 'primary',
71
+ 'title' => 'How Orbit Fox helps you ?',
72
+ 'message' => str_replace( '{theme}', $theme_name, 'Orbit Fox enhances {theme} theme with extra functionalities like widgets and custom sections. Moreover we have a simple sharing and report module and added the ground for more useful ones for security, caching and analytics. ' ),
73
+ 'display_always' => false
74
+ )
75
+ );
76
+ }
77
+ }
78
+
79
+ private function is_zerif() {
80
+ if ( $this->get_active_theme_dir() == 'zerif-lite' ) {
81
+ return true;
82
+ }
83
+
84
+ return false;
85
+ }
86
+
87
+ private function is_rhea() {
88
+ if ( $this->get_active_theme_dir( true ) == 'rhea' ) {
89
+ return true;
90
+ }
91
+
92
+ return false;
93
+ }
94
+
95
+ private function is_hestia() {
96
+ if ( $this->get_active_theme_dir() == 'hestia' ) {
97
+ return true;
98
+ }
99
+
100
+ return false;
101
+ }
102
+
103
+ /**
104
+ * Determine if module should be loaded.
105
+ *
106
+ * @since 1.0.0
107
+ * @access public
108
+ * @return bool
109
+ */
110
+ public function enable_module() {
111
+ if ( $this->is_hestia() || $this->is_rhea() || $this->is_zerif() ) {
112
+ return true;
113
+ } else {
114
+ return false;
115
+ }
116
+ }
117
+
118
+ public function zerif_register_widgets() {
119
+ register_widget( 'zerif_ourfocus' );
120
+ register_widget( 'zerif_testimonial_widget' );
121
+ register_widget( 'zerif_clients_widget' );
122
+ register_widget( 'zerif_team_widget' );
123
+
124
+ $themeisle_companion_flag = get_option( 'themeisle_companion_flag' );
125
+ if ( empty( $themeisle_companion_flag ) && function_exists( 'themeisle_populate_with_default_widgets' ) ) {
126
+ themeisle_populate_with_default_widgets();
127
+ }
128
+ }
129
+
130
+ public function rhea_register_widgets() {
131
+ register_widget( 'rhea_features_block' );
132
+ register_widget( 'Rhea_Progress_Bar' );
133
+ register_widget( 'Rhea_Icon_Box' );
134
+ register_widget( 'Rhea_About_Company' );
135
+ register_widget( 'Rhea_Hours' );
136
+ register_widget( 'Rhea_Contact_Company' );
137
+ }
138
+
139
+ function rhea_load_custom_wp_admin_style() {
140
+ wp_enqueue_style( 'fontawesome-style', get_template_directory_uri() . '/css/font-awesome.min.css' );
141
+ wp_enqueue_style( 'rhea-admin-style', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/css/admin-style.css' );
142
+ wp_enqueue_script( 'fontawesome-icons', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/js/icons.js', false, '1.0.0' );
143
+ wp_enqueue_script( 'jquery-ui-dialog' );
144
+ wp_enqueue_script( 'fontawesome-script', trailingslashit( THEMEISLE_COMPANION_URL ) . 'inc/rhea/assets/js/fontawesome.jquery.js', false, '1.0.0' );
145
+ }
146
+
147
+ public function rhea_add_html_to_admin_footer() {
148
+ $output = '
149
+ <div id="fontawesome-popup">
150
+ <div class="left-side">
151
+ <label for="fontawesome-live-search">' . esc_html_e( 'Search icon', 'themeisle-companion' ) . ':</label>
152
+ <ul class="filter-icons">
153
+ <li data-filter="all" class="active">' . esc_html_e( 'All Icons', 'themeisle-companion' ) . '</li>
154
+ </ul>
155
+ </div>
156
+ <div class="right-side">
157
+ </div>
158
+ </div>
159
+ ';
160
+
161
+ echo $output;
162
+ }
163
+
164
+ /**
165
+ * Wrapper method for themeisle_hestia_require function call.
166
+ *
167
+ * @since 1.0.0
168
+ * @access public
169
+ */
170
+ public function hestia_require() {
171
+ themeisle_hestia_require();
172
+ }
173
+
174
+ /**
175
+ * Wrapper method for themeisle_hestia_set_frontpage function call.
176
+ *
177
+ * @since 1.0.0
178
+ * @access public
179
+ */
180
+ public function hestia_set_front_page() {
181
+ themeisle_hestia_set_frontpage();
182
+ }
183
+
184
+ /**
185
+ * The loading logic for the module.
186
+ *
187
+ * @since 1.0.0
188
+ * @access public
189
+ */
190
+ public function load() {
191
+ }
192
+
193
+ /**
194
+ * Method to define hooks needed.
195
+ *
196
+ * @since 1.0.0
197
+ * @access public
198
+ */
199
+ public function hooks() {
200
+ if ( $this->is_zerif() ) {
201
+ $this->loader->add_action( 'widgets_init', $this, 'zerif_register_widgets' );
202
+ }
203
+
204
+ if ( $this->is_rhea() ) {
205
+ $this->loader->add_action( 'widgets_init', $this, 'rhea_register_widgets' );
206
+ $this->loader->add_action( 'admin_enqueue_scripts', $this, 'rhea_load_custom_wp_admin_style' );
207
+ $this->loader->add_action( 'admin_footer', $this, 'rhea_add_html_to_admin_footer' );
208
+ $this->loader->add_action( 'customize_controls_print_footer_scripts', $this, 'rhea_add_html_to_admin_footer' );
209
+ }
210
+
211
+ if ( $this->is_hestia() ) {
212
+ define( 'THEMEISLE_COMPANION_VERSION', '2.0.0' );
213
+ $this->loader->add_action( 'after_setup_theme', $this, 'hestia_require' );
214
+ $this->loader->add_action( 'after_switch_theme', $this, 'hestia_set_front_page' );
215
+ }
216
+ }
217
+
218
+ /**
219
+ * Method that returns an array of scripts and styles to be loaded
220
+ * for the front end part.
221
+ *
222
+ * @since 1.0.0
223
+ * @access public
224
+ * @return array
225
+ */
226
+ public function public_enqueue() {
227
+ }
228
+
229
+ /**
230
+ * Method that returns an array of scripts and styles to be loaded
231
+ * for the admin part.
232
+ *
233
+ * @since 1.0.0
234
+ * @access public
235
+ * @return array
236
+ */
237
+ public function admin_enqueue() {
238
+ }
239
+
240
+ /**
241
+ * Method to define the options fields for the module
242
+ *
243
+ * @since 1.0.0
244
+ * @access public
245
+ * @return array
246
+ */
247
+ public function options() {
248
+ return array();
249
+ }
250
+ }
obfx_modules/social-sharing/css/admin.css ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #obfx-mod-social-sharing .socicon-facebook {
2
+ color: #3b5998;
3
+ }
4
+
5
+ #obfx-mod-social-sharing .socicon-twitter {
6
+ color: #1da1f2;
7
+ }
8
+
9
+ #obfx-mod-social-sharing .socicon-googleplus {
10
+ color: #dd4b39;
11
+ }
12
+
13
+ #obfx-mod-social-sharing .socicon-pinterest {
14
+ color: #bd081c;
15
+ }
16
+
17
+ #obfx-mod-social-sharing .socicon-linkedin {
18
+ color: #0077b5;
19
+ }
20
+
21
+ #obfx-mod-social-sharing .socicon-tumblr {
22
+ color: #35465c;
23
+ }
24
+
25
+ #obfx-mod-social-sharing .socicon-reddit {
26
+ color: #ff4500;
27
+ }
28
+
29
+ #obfx-mod-social-sharing .socicon-vk {
30
+ color: #45668e;
31
+ }
32
+
33
+ #obfx-mod-social-sharing .socicon-odnoklassniki {
34
+ color: #ee8208;
35
+ }
36
+
37
+ #obfx-mod-social-sharing .socicon-douban {
38
+ color: #228a31;
39
+ }
40
+
41
+ #obfx-mod-social-sharing .socicon-baidu {
42
+ color: #de0f17;
43
+ }
44
+
45
+ #obfx-mod-social-sharing .socicon-xing {
46
+ color: #026466;
47
+ }
48
+
49
+ #obfx-mod-social-sharing .socicon-renren {
50
+ color: #227ec7;
51
+ }
52
+
53
+ #obfx-mod-social-sharing .socicon-weibo {
54
+ color: #e6162d;
55
+ }
56
+
57
+ #obfx-mod-social-sharing .socicon-viber {
58
+ color: #00b901;
59
+ }
60
+
61
+ #obfx-mod-social-sharing .socicon-whatsapp {
62
+ color: #20b038;
63
+ }
64
+
65
+ #obfx-mod-social-sharing .socicon-mail {
66
+ color: #58a9de;
67
+ }
68
+
69
+ #obfx-mod-social-sharing .form-group.inline-setting {
70
+ display: inline-block;
71
+ }
72
+
73
+ #obfx-mod-social-sharing .form-group.inline-setting.network-toggle {
74
+ min-width: 300px;
75
+ }
76
+
77
+ #obfx-mod-social-sharing .form-group.inline-setting.last .form-label {
78
+ display: none;
79
+ }
80
+
81
+ #obfx-mod-social-sharing .show {
82
+ opacity: 1;
83
+ -webkit-transition: all 0.3s ease;
84
+ transition: all 0.3s ease;
85
+ }
86
+
87
+ #obfx-mod-social-sharing .show.obfxHiddenOption {
88
+ opacity: 0;
89
+ cursor: default;
90
+ }
91
+
92
+ .obfx-row {
93
+ margin-bottom: 10px;
94
+ border-bottom: 1px solid #eee;
95
+ }
96
+
97
+ @media ( max-width: 600px ) {
98
+ #obfx-mod-social-sharing .obfx-row .form-label {
99
+ margin-bottom: 20px;
100
+ font-weight: 600;
101
+ }
102
+
103
+ #obfx-mod-social-sharing .obfx-row .show .form-label {
104
+ display: none;
105
+ }
106
+
107
+ #obfx-mod-social-sharing .form-group.inline-setting.network-toggle {
108
+ display: block;
109
+ }
110
+
111
+ .obfx-row {
112
+ padding: 10px 0;
113
+ }
114
+ }
obfx_modules/social-sharing/css/public.css ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .obfx-sharing {
2
+ position: fixed;
3
+ z-index: 10000;
4
+ top: 50%;
5
+ margin: 0;
6
+ padding: 0;
7
+ list-style: none;
8
+ -webkit-transform: translateY(-50%);
9
+ -ms-transform: translateY(-50%);
10
+ transform: translateY(-50%);
11
+ }
12
+
13
+ .obfx-sharing-left {
14
+ left: 0;
15
+ }
16
+
17
+ .obfx-sharing-right {
18
+ right: 0;
19
+ }
20
+
21
+ .obfx-sharing li {
22
+ display: block;
23
+ position: relative;
24
+ }
25
+
26
+ .obfx-sharing a {
27
+ display: block;
28
+ position: relative;
29
+ z-index: 10000;
30
+ padding: 5px 10px;
31
+ color: #fff;
32
+ font-size: 20px;
33
+ line-height: 30px;
34
+ text-decoration: none;
35
+ letter-spacing: normal;
36
+ }
37
+
38
+ .obfx-sharing a:hover,
39
+ .obfx-sharing a:focus,
40
+ .obfx-sharing a:visited {
41
+ color: #fff;
42
+ text-decoration: none;
43
+ }
44
+
45
+ .obfx-sharing i {
46
+ width: 20px;
47
+ height: 20px;
48
+ padding-top: 5px;
49
+ font-size: 18px;
50
+ line-height: 20px;
51
+ text-align: center;
52
+ }
53
+
54
+ .obfx-sharing span {
55
+ display: none;
56
+ position: absolute;
57
+ z-index: -10;
58
+ top: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ left: -200%;
62
+ padding: 5px 10px;
63
+ background: rgba(0, 0, 0, 0.375);
64
+ font-size: 13px;
65
+ line-height: 30px;
66
+ -webkit-transition: 0.3s ease all;
67
+ transition: 0.3s ease all;
68
+ }
69
+
70
+ .obfx-sharing-right a:hover > span {
71
+ right: 105%;
72
+ left: -250%;
73
+ }
74
+
75
+ .obfx-sharing-left a:hover > span {
76
+ right: -250%;
77
+ left: 105%;
78
+ }
79
+
80
+ .obfx-sharing a:hover > span {
81
+ display: inline-block;
82
+ }
83
+
84
+ .obfx-sharing-inline {
85
+ list-style: none;
86
+ }
87
+
88
+ .obfx-sharing-inline li {
89
+ display: inline;
90
+ }
91
+
92
+ /* Social icons color */
93
+ .obfx-sharing-inline a[href*="facebook"],
94
+ .obfx-sharing a[href*="facebook"] {
95
+ background-color: #3b5998;
96
+ }
97
+
98
+ .obfx-sharing-inline a[href*="twitter"],
99
+ .obfx-sharing a[href*="twitter"] {
100
+ background-color: #1da1f2;
101
+ }
102
+
103
+ .obfx-sharing-inline a[href*="google"],
104
+ .obfx-sharing a[href*="google"] {
105
+ background-color: #dd4b39;
106
+ }
107
+
108
+ .obfx-sharing-inline a[href*="pinterest"],
109
+ .obfx-sharing a[href*="pinterest"] {
110
+ background-color: #bd081c;
111
+ }
112
+
113
+ .obfx-sharing-inline a[href*="linkedin"],
114
+ .obfx-sharing a[href*="linkedin"] {
115
+ background-color: #0077b5;
116
+ }
117
+
118
+ .obfx-sharing-inline a[href*="tumblr"],
119
+ .obfx-sharing a[href*="tumblr"] {
120
+ background-color: #35465c;
121
+ }
122
+
123
+ .obfx-sharing-inline a[href*="reddit"],
124
+ .obfx-sharing a[href*="reddit"] {
125
+ background-color: #ff4500;
126
+ }
127
+
128
+ .obfx-sharing-inline a[href*="vk"],
129
+ .obfx-sharing a[href*="vk"] {
130
+ background-color: #45668e;
131
+ }
132
+
133
+ .obfx-sharing-inline a[href*="ok.ru"],
134
+ .obfx-sharing a[href*="ok.ru"] {
135
+ background-color: #f48420;
136
+ }
137
+
138
+ .obfx-sharing-inline a[href*="douban"],
139
+ .obfx-sharing a[href*="douban"] {
140
+ background-color: #228a31;
141
+ }
142
+
143
+ .obfx-sharing-inline a[href*="baidu"],
144
+ .obfx-sharing a[href*="baidu"] {
145
+ background-color: #de0f17;
146
+ }
147
+
148
+ .obfx-sharing-inline a[href*="xing"],
149
+ .obfx-sharing a[href*="xing"] {
150
+ background-color: #026466;
151
+ }
152
+
153
+ .obfx-sharing-inline a[href*="renren"],
154
+ .obfx-sharing a[href*="renren"] {
155
+ background-color: #227ec7;
156
+ }
157
+
158
+ .obfx-sharing-inline a[href*="weibo"],
159
+ .obfx-sharing a[href*="weibo"] {
160
+ background-color: #e6162d;
161
+ }
162
+
163
+ .obfx-sharing-inline a[href*="sms"],
164
+ .obfx-sharing a[href*="sms"] {
165
+ background-color: #00b901;
166
+ }
167
+
168
+ .obfx-sharing-inline a[href*="whatsapp"],
169
+ .obfx-sharing a[href*="whatsapp"] {
170
+ background-color: #20b038;
171
+ }
172
+
173
+ .obfx-sharing-inline a[href*="mail"],
174
+ .obfx-sharing a[href*="mail"] {
175
+ background-color: #58a9de;
176
+ }
177
+
178
+ @media ( max-width: 768px ) {
179
+ .obfx-sharing-side {
180
+ position: fixed;
181
+ z-index: 10000;
182
+ top: 50%;
183
+ margin: 0;
184
+ padding: 0;
185
+ list-style: none;
186
+ -webkit-transform: translateY(-50%);
187
+ -ms-transform: translateY(-50%);
188
+ transform: translateY(-50%);
189
+ }
190
+
191
+ .obfx-sharing-bottom {
192
+ display: table;
193
+ position: fixed;
194
+ z-index: 10000;
195
+ top: auto;
196
+ bottom: 0;
197
+ width: 100%;
198
+ margin: 0 !important;
199
+ padding: 0;
200
+ -webkit-transform: translateY(0);
201
+ -ms-transform: translateY(0);
202
+ transform: translateY(0);
203
+ }
204
+
205
+ .obfx-hestia-social-wrapper {
206
+ position: static;
207
+ margin: 0 -10px;
208
+ }
209
+
210
+ .obfx-sharing-bottom li {
211
+ display: table-cell;
212
+ margin: 0;
213
+ padding: 0;
214
+ text-align: center;
215
+ }
216
+
217
+ .obfx-sharing-bottom a,
218
+ .obfx-sharing-bottom a.btn.btn-just-icon {
219
+ width: 100%;
220
+ height: auto;
221
+ margin: 0;
222
+ padding: 0;
223
+ padding: 0;
224
+ border-radius: 0;
225
+ opacity: 1;
226
+ -webkit-box-shadow: none;
227
+ box-shadow: none;
228
+ line-height: 40px;
229
+ }
230
+
231
+ .obfx-sharing-bottom span,
232
+ .obfx-sharing a:hover > span,
233
+ li.obfx-hide-mobile-socials,
234
+ .obfx-sharing-inline li.obfx-hide-mobile-socials {
235
+ display: none;
236
+ }
237
+ }
238
+
239
+ @media ( min-width: 769px ) {
240
+ .obfx-sharing-inline li.obfx-hide-desktop-socials,
241
+ li.obfx-hide-desktop-socials {
242
+ display: none;
243
+ }
244
+ }
obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.ttf ADDED
Binary file
obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.woff ADDED
Binary file
obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.woff2 ADDED
Binary file
obfx_modules/social-sharing/css/vendor/socicon/socicon.css ADDED
@@ -0,0 +1,763 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family: "Socicon";
3
+ src: url("fonts/Socicon.eot?xvgs9q");
4
+ src: url("fonts/Socicon.eot?xvgs9q#iefix") format("embedded-opentype"), url("fonts/Socicon.woff2?xvgs9q") format("woff2"), url("fonts/Socicon.ttf?xvgs9q") format("truetype"), url("fonts/Socicon.woff?xvgs9q") format("woff"), url("fonts/Socicon.svg?xvgs9q#Socicon") format("svg");
5
+ font-weight: normal;
6
+ font-style: normal;
7
+ }
8
+
9
+ [class^="socicon-"],
10
+ [class*=" socicon-"] {
11
+ /* use !important to prevent issues with browser extensions that change fonts */
12
+ font-family: "Socicon" !important;
13
+ font-weight: normal;
14
+ font-style: normal;
15
+ font-variant: normal;
16
+ /* Better Font Rendering =========== */
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ line-height: 1;
20
+ text-transform: none;
21
+
22
+ speak: none;
23
+ }
24
+
25
+ .socicon-augment:before {
26
+ content: "\e908";
27
+ }
28
+
29
+ .socicon-bitbucket:before {
30
+ content: "\e909";
31
+ }
32
+
33
+ .socicon-fyuse:before {
34
+ content: "\e90a";
35
+ }
36
+
37
+ .socicon-yt-gaming:before {
38
+ content: "\e90b";
39
+ }
40
+
41
+ .socicon-sketchfab:before {
42
+ content: "\e90c";
43
+ }
44
+
45
+ .socicon-mobcrush:before {
46
+ content: "\e90d";
47
+ }
48
+
49
+ .socicon-microsoft:before {
50
+ content: "\e90e";
51
+ }
52
+
53
+ .socicon-pandora:before {
54
+ content: "\e907";
55
+ }
56
+
57
+ .socicon-messenger:before {
58
+ content: "\e906";
59
+ }
60
+
61
+ .socicon-gamewisp:before {
62
+ content: "\e905";
63
+ }
64
+
65
+ .socicon-bloglovin:before {
66
+ content: "\e904";
67
+ }
68
+
69
+ .socicon-tunein:before {
70
+ content: "\e903";
71
+ }
72
+
73
+ .socicon-gamejolt:before {
74
+ content: "\e901";
75
+ }
76
+
77
+ .socicon-trello:before {
78
+ content: "\e902";
79
+ }
80
+
81
+ .socicon-spreadshirt:before {
82
+ content: "\e900";
83
+ }
84
+
85
+ .socicon-500px:before {
86
+ content: "\e000";
87
+ }
88
+
89
+ .socicon-8tracks:before {
90
+ content: "\e001";
91
+ }
92
+
93
+ .socicon-airbnb:before {
94
+ content: "\e002";
95
+ }
96
+
97
+ .socicon-alliance:before {
98
+ content: "\e003";
99
+ }
100
+
101
+ .socicon-amazon:before {
102
+ content: "\e004";
103
+ }
104
+
105
+ .socicon-amplement:before {
106
+ content: "\e005";
107
+ }
108
+
109
+ .socicon-android:before {
110
+ content: "\e006";
111
+ }
112
+
113
+ .socicon-angellist:before {
114
+ content: "\e007";
115
+ }
116
+
117
+ .socicon-apple:before {
118
+ content: "\e008";
119
+ }
120
+
121
+ .socicon-appnet:before {
122
+ content: "\e009";
123
+ }
124
+
125
+ .socicon-baidu:before {
126
+ content: "\e00a";
127
+ }
128
+
129
+ .socicon-bandcamp:before {
130
+ content: "\e00b";
131
+ }
132
+
133
+ .socicon-battlenet:before {
134
+ content: "\e00c";
135
+ }
136
+
137
+ .socicon-mixer:before {
138
+ content: "\e00d";
139
+ }
140
+
141
+ .socicon-bebee:before {
142
+ content: "\e00e";
143
+ }
144
+
145
+ .socicon-bebo:before {
146
+ content: "\e00f";
147
+ }
148
+
149
+ .socicon-behance:before {
150
+ content: "\e010";
151
+ }
152
+
153
+ .socicon-blizzard:before {
154
+ content: "\e011";
155
+ }
156
+
157
+ .socicon-blogger:before {
158
+ content: "\e012";
159
+ }
160
+
161
+ .socicon-buffer:before {
162
+ content: "\e013";
163
+ }
164
+
165
+ .socicon-chrome:before {
166
+ content: "\e014";
167
+ }
168
+
169
+ .socicon-coderwall:before {
170
+ content: "\e015";
171
+ }
172
+
173
+ .socicon-curse:before {
174
+ content: "\e016";
175
+ }
176
+
177
+ .socicon-dailymotion:before {
178
+ content: "\e017";
179
+ }
180
+
181
+ .socicon-deezer:before {
182
+ content: "\e018";
183
+ }
184
+
185
+ .socicon-delicious:before {
186
+ content: "\e019";
187
+ }
188
+
189
+ .socicon-deviantart:before {
190
+ content: "\e01a";
191
+ }
192
+
193
+ .socicon-diablo:before {
194
+ content: "\e01b";
195
+ }
196
+
197
+ .socicon-digg:before {
198
+ content: "\e01c";
199
+ }
200
+
201
+ .socicon-discord:before {
202
+ content: "\e01d";
203
+ }
204
+
205
+ .socicon-disqus:before {
206
+ content: "\e01e";
207
+ }
208
+
209
+ .socicon-douban:before {
210
+ content: "\e01f";
211
+ }
212
+
213
+ .socicon-draugiem:before {
214
+ content: "\e020";
215
+ }
216
+
217
+ .socicon-dribbble:before {
218
+ content: "\e021";
219
+ }
220
+
221
+ .socicon-drupal:before {
222
+ content: "\e022";
223
+ }
224
+
225
+ .socicon-ebay:before {
226
+ content: "\e023";
227
+ }
228
+
229
+ .socicon-ello:before {
230
+ content: "\e024";
231
+ }
232
+
233
+ .socicon-endomodo:before {
234
+ content: "\e025";
235
+ }
236
+
237
+ .socicon-envato:before {
238
+ content: "\e026";
239
+ }
240
+
241
+ .socicon-etsy:before {
242
+ content: "\e027";
243
+ }
244
+
245
+ .socicon-facebook:before {
246
+ content: "\e028";
247
+ }
248
+
249
+ .socicon-feedburner:before {
250
+ content: "\e029";
251
+ }
252
+
253
+ .socicon-filmweb:before {
254
+ content: "\e02a";
255
+ }
256
+
257
+ .socicon-firefox:before {
258
+ content: "\e02b";
259
+ }
260
+
261
+ .socicon-flattr:before {
262
+ content: "\e02c";
263
+ }
264
+
265
+ .socicon-flickr:before {
266
+ content: "\e02d";
267
+ }
268
+
269
+ .socicon-formulr:before {
270
+ content: "\e02e";
271
+ }
272
+
273
+ .socicon-forrst:before {
274
+ content: "\e02f";
275
+ }
276
+
277
+ .socicon-foursquare:before {
278
+ content: "\e030";
279
+ }
280
+
281
+ .socicon-friendfeed:before {
282
+ content: "\e031";
283
+ }
284
+
285
+ .socicon-github:before {
286
+ content: "\e032";
287
+ }
288
+
289
+ .socicon-goodreads:before {
290
+ content: "\e033";
291
+ }
292
+
293
+ .socicon-google:before {
294
+ content: "\e034";
295
+ }
296
+
297
+ .socicon-googlescholar:before {
298
+ content: "\e035";
299
+ }
300
+
301
+ .socicon-googlegroups:before {
302
+ content: "\e036";
303
+ }
304
+
305
+ .socicon-googlephotos:before {
306
+ content: "\e037";
307
+ }
308
+
309
+ .socicon-googleplus:before {
310
+ content: "\e038";
311
+ }
312
+
313
+ .socicon-grooveshark:before {
314
+ content: "\e039";
315
+ }
316
+
317
+ .socicon-hackerrank:before {
318
+ content: "\e03a";
319
+ }
320
+
321
+ .socicon-hearthstone:before {
322
+ content: "\e03b";
323
+ }
324
+
325
+ .socicon-hellocoton:before {
326
+ content: "\e03c";
327
+ }
328
+
329
+ .socicon-heroes:before {
330
+ content: "\e03d";
331
+ }
332
+
333
+ .socicon-hitbox:before {
334
+ content: "\e03e";
335
+ }
336
+
337
+ .socicon-horde:before {
338
+ content: "\e03f";
339
+ }
340
+
341
+ .socicon-houzz:before {
342
+ content: "\e040";
343
+ }
344
+
345
+ .socicon-icq:before {
346
+ content: "\e041";
347
+ }
348
+
349
+ .socicon-identica:before {
350
+ content: "\e042";
351
+ }
352
+
353
+ .socicon-imdb:before {
354
+ content: "\e043";
355
+ }
356
+
357
+ .socicon-instagram:before {
358
+ content: "\e044";
359
+ }
360
+
361
+ .socicon-issuu:before {
362
+ content: "\e045";
363
+ }
364
+
365
+ .socicon-istock:before {
366
+ content: "\e046";
367
+ }
368
+
369
+ .socicon-itunes:before {
370
+ content: "\e047";
371
+ }
372
+
373
+ .socicon-keybase:before {
374
+ content: "\e048";
375
+ }
376
+
377
+ .socicon-lanyrd:before {
378
+ content: "\e049";
379
+ }
380
+
381
+ .socicon-lastfm:before {
382
+ content: "\e04a";
383
+ }
384
+
385
+ .socicon-line:before {
386
+ content: "\e04b";
387
+ }
388
+
389
+ .socicon-linkedin:before {
390
+ content: "\e04c";
391
+ }
392
+
393
+ .socicon-livejournal:before {
394
+ content: "\e04d";
395
+ }
396
+
397
+ .socicon-lyft:before {
398
+ content: "\e04e";
399
+ }
400
+
401
+ .socicon-macos:before {
402
+ content: "\e04f";
403
+ }
404
+
405
+ .socicon-mail:before {
406
+ content: "\e050";
407
+ }
408
+
409
+ .socicon-medium:before {
410
+ content: "\e051";
411
+ }
412
+
413
+ .socicon-meetup:before {
414
+ content: "\e052";
415
+ }
416
+
417
+ .socicon-mixcloud:before {
418
+ content: "\e053";
419
+ }
420
+
421
+ .socicon-modelmayhem:before {
422
+ content: "\e054";
423
+ }
424
+
425
+ .socicon-mumble:before {
426
+ content: "\e055";
427
+ }
428
+
429
+ .socicon-myspace:before {
430
+ content: "\e056";
431
+ }
432
+
433
+ .socicon-newsvine:before {
434
+ content: "\e057";
435
+ }
436
+
437
+ .socicon-nintendo:before {
438
+ content: "\e058";
439
+ }
440
+
441
+ .socicon-npm:before {
442
+ content: "\e059";
443
+ }
444
+
445
+ .socicon-odnoklassniki:before {
446
+ content: "\e05a";
447
+ }
448
+
449
+ .socicon-openid:before {
450
+ content: "\e05b";
451
+ }
452
+
453
+ .socicon-opera:before {
454
+ content: "\e05c";
455
+ }
456
+
457
+ .socicon-outlook:before {
458
+ content: "\e05d";
459
+ }
460
+
461
+ .socicon-overwatch:before {
462
+ content: "\e05e";
463
+ }
464
+
465
+ .socicon-patreon:before {
466
+ content: "\e05f";
467
+ }
468
+
469
+ .socicon-paypal:before {
470
+ content: "\e060";
471
+ }
472
+
473
+ .socicon-periscope:before {
474
+ content: "\e061";
475
+ }
476
+
477
+ .socicon-persona:before {
478
+ content: "\e062";
479
+ }
480
+
481
+ .socicon-pinterest:before {
482
+ content: "\e063";
483
+ }
484
+
485
+ .socicon-play:before {
486
+ content: "\e064";
487
+ }
488
+
489
+ .socicon-player:before {
490
+ content: "\e065";
491
+ }
492
+
493
+ .socicon-playstation:before {
494
+ content: "\e066";
495
+ }
496
+
497
+ .socicon-pocket:before {
498
+ content: "\e067";
499
+ }
500
+
501
+ .socicon-qq:before {
502
+ content: "\e068";
503
+ }
504
+
505
+ .socicon-quora:before {
506
+ content: "\e069";
507
+ }
508
+
509
+ .socicon-raidcall:before {
510
+ content: "\e06a";
511
+ }
512
+
513
+ .socicon-ravelry:before {
514
+ content: "\e06b";
515
+ }
516
+
517
+ .socicon-reddit:before {
518
+ content: "\e06c";
519
+ }
520
+
521
+ .socicon-renren:before {
522
+ content: "\e06d";
523
+ }
524
+
525
+ .socicon-researchgate:before {
526
+ content: "\e06e";
527
+ }
528
+
529
+ .socicon-residentadvisor:before {
530
+ content: "\e06f";
531
+ }
532
+
533
+ .socicon-reverbnation:before {
534
+ content: "\e070";
535
+ }
536
+
537
+ .socicon-rss:before {
538
+ content: "\e071";
539
+ }
540
+
541
+ .socicon-sharethis:before {
542
+ content: "\e072";
543
+ }
544
+
545
+ .socicon-skype:before {
546
+ content: "\e073";
547
+ }
548
+
549
+ .socicon-slideshare:before {
550
+ content: "\e074";
551
+ }
552
+
553
+ .socicon-smugmug:before {
554
+ content: "\e075";
555
+ }
556
+
557
+ .socicon-snapchat:before {
558
+ content: "\e076";
559
+ }
560
+
561
+ .socicon-songkick:before {
562
+ content: "\e077";
563
+ }
564
+
565
+ .socicon-soundcloud:before {
566
+ content: "\e078";
567
+ }
568
+
569
+ .socicon-spotify:before {
570
+ content: "\e079";
571
+ }
572
+
573
+ .socicon-stackexchange:before {
574
+ content: "\e07a";
575
+ }
576
+
577
+ .socicon-stackoverflow:before {
578
+ content: "\e07b";
579
+ }
580
+
581
+ .socicon-starcraft:before {
582
+ content: "\e07c";
583
+ }
584
+
585
+ .socicon-stayfriends:before {
586
+ content: "\e07d";
587
+ }
588
+
589
+ .socicon-steam:before {
590
+ content: "\e07e";
591
+ }
592
+
593
+ .socicon-storehouse:before {
594
+ content: "\e07f";
595
+ }
596
+
597
+ .socicon-strava:before {
598
+ content: "\e080";
599
+ }
600
+
601
+ .socicon-streamjar:before {
602
+ content: "\e081";
603
+ }
604
+
605
+ .socicon-stumbleupon:before {
606
+ content: "\e082";
607
+ }
608
+
609
+ .socicon-swarm:before {
610
+ content: "\e083";
611
+ }
612
+
613
+ .socicon-teamspeak:before {
614
+ content: "\e084";
615
+ }
616
+
617
+ .socicon-teamviewer:before {
618
+ content: "\e085";
619
+ }
620
+
621
+ .socicon-technorati:before {
622
+ content: "\e086";
623
+ }
624
+
625
+ .socicon-telegram:before {
626
+ content: "\e087";
627
+ }
628
+
629
+ .socicon-tripadvisor:before {
630
+ content: "\e088";
631
+ }
632
+
633
+ .socicon-tripit:before {
634
+ content: "\e089";
635
+ }
636
+
637
+ .socicon-triplej:before {
638
+ content: "\e08a";
639
+ }
640
+
641
+ .socicon-tumblr:before {
642
+ content: "\e08b";
643
+ }
644
+
645
+ .socicon-twitch:before {
646
+ content: "\e08c";
647
+ }
648
+
649
+ .socicon-twitter:before {
650
+ content: "\e08d";
651
+ }
652
+
653
+ .socicon-uber:before {
654
+ content: "\e08e";
655
+ }
656
+
657
+ .socicon-ventrilo:before {
658
+ content: "\e08f";
659
+ }
660
+
661
+ .socicon-viadeo:before {
662
+ content: "\e090";
663
+ }
664
+
665
+ .socicon-viber:before {
666
+ content: "\e091";
667
+ }
668
+
669
+ .socicon-viewbug:before {
670
+ content: "\e092";
671
+ }
672
+
673
+ .socicon-vimeo:before {
674
+ content: "\e093";
675
+ }
676
+
677
+ .socicon-vine:before {
678
+ content: "\e094";
679
+ }
680
+
681
+ .socicon-vkontakte:before {
682
+ content: "\e095";
683
+ }
684
+
685
+ .socicon-warcraft:before {
686
+ content: "\e096";
687
+ }
688
+
689
+ .socicon-wechat:before {
690
+ content: "\e097";
691
+ }
692
+
693
+ .socicon-weibo:before {
694
+ content: "\e098";
695
+ }
696
+
697
+ .socicon-whatsapp:before {
698
+ content: "\e099";
699
+ }
700
+
701
+ .socicon-wikipedia:before {
702
+ content: "\e09a";
703
+ }
704
+
705
+ .socicon-windows:before {
706
+ content: "\e09b";
707
+ }
708
+
709
+ .socicon-wordpress:before {
710
+ content: "\e09c";
711
+ }
712
+
713
+ .socicon-wykop:before {
714
+ content: "\e09d";
715
+ }
716
+
717
+ .socicon-xbox:before {
718
+ content: "\e09e";
719
+ }
720
+
721
+ .socicon-xing:before {
722
+ content: "\e09f";
723
+ }
724
+
725
+ .socicon-yahoo:before {
726
+ content: "\e0a0";
727
+ }
728
+
729
+ .socicon-yammer:before {
730
+ content: "\e0a1";
731
+ }
732
+
733
+ .socicon-yandex:before {
734
+ content: "\e0a2";
735
+ }
736
+
737
+ .socicon-yelp:before {
738
+ content: "\e0a3";
739
+ }
740
+
741
+ .socicon-younow:before {
742
+ content: "\e0a4";
743
+ }
744
+
745
+ .socicon-youtube:before {
746
+ content: "\e0a5";
747
+ }
748
+
749
+ .socicon-zapier:before {
750
+ content: "\e0a6";
751
+ }
752
+
753
+ .socicon-zerply:before {
754
+ content: "\e0a7";
755
+ }
756
+
757
+ .socicon-zomato:before {
758
+ content: "\e0a8";
759
+ }
760
+
761
+ .socicon-zynga:before {
762
+ content: "\e0a9";
763
+ }
obfx_modules/social-sharing/init.php ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Social Sharing Core Orbit Fox Module.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Social_Sharing_OBFX_Module
9
+ */
10
+
11
+ /**
12
+ * The class defines a new module to be used by Orbit Fox plugin.
13
+ *
14
+ * @package Social_Sharing_OBFX_Module
15
+ * @author Themeisle <friends@themeisle.com>
16
+ * @codeCoverageIgnore
17
+ */
18
+ class Social_Sharing_OBFX_Module extends Orbit_Fox_Module_Abstract {
19
+
20
+ private $social_share_links = array();
21
+
22
+ /**
23
+ * Social_Sharing_OBFX_Module constructor.
24
+ *
25
+ * @since 1.0.0
26
+ * @access public
27
+ */
28
+ public function __construct() {
29
+ parent::__construct();
30
+ $this->name = __( 'Social Sharing Module', 'themeisle-companion' );
31
+ $this->description = __( 'Add basic social sharing to your posts and pages.', 'themeisle-companion' );
32
+ }
33
+
34
+ /**
35
+ * Define the array that contains the social networks.
36
+ */
37
+ private function define_networks() {
38
+ $post_categories = strip_tags( get_the_category_list( ',' ) );
39
+ $post_title = get_the_title();
40
+ $post_link = get_the_permalink();
41
+
42
+ $this->social_share_links = array(
43
+ 'facebook' => array(
44
+ 'link' => 'https://www.facebook.com/sharer.php?u=' . $post_link,
45
+ 'nicename' => 'Facebook',
46
+ 'icon' => 'facebook',
47
+ ),
48
+ 'twitter' => array(
49
+ 'link' => 'https://twitter.com/intent/tweet?url=' . $post_link . '&text=' . $post_title . '&hashtags=' . $post_categories,
50
+ 'nicename' => 'Twitter',
51
+ 'icon' => 'twitter',
52
+ ),
53
+ 'g-plus' => array(
54
+ 'link' => 'https://plus.google.com/share?url=' . $post_link,
55
+ 'nicename' => 'Google Plus',
56
+ 'icon' => 'googleplus',
57
+ ),
58
+ 'pinterest' => array(
59
+ 'link' => 'https://pinterest.com/pin/create/bookmarklet/?media=' . get_the_post_thumbnail_url() . '&url=' . $post_link . '&description=' . $post_title,
60
+ 'nicename' => 'Pinterest',
61
+ 'icon' => 'pinterest',
62
+ ),
63
+ 'linkedin' => array(
64
+ 'link' => 'https://www.linkedin.com/shareArticle?url=' . $post_link . '&title=' . $post_title,
65
+ 'nicename' => 'LinkedIn',
66
+ 'icon' => 'linkedin',
67
+ ),
68
+ 'tumblr' => array(
69
+ 'link' => 'https://www.tumblr.com/widgets/share/tool?canonicalUrl=' . $post_link . '&title=' . $post_title,
70
+ 'nicename' => 'Tumblr',
71
+ 'icon' => 'tumblr',
72
+ ),
73
+ 'reddit' => array(
74
+ 'link' => 'https://reddit.com/submit?url=' . $post_link . '&title=' . $post_title,
75
+ 'nicename' => 'Reddit',
76
+ 'icon' => 'reddit',
77
+ ),
78
+ 'whatsapp' => array(
79
+ 'link' => 'whatsapp://send?text=' . $post_link,
80
+ 'nicename' => 'WhatsApp',
81
+ 'icon' => 'whatsapp',
82
+ 'target' => '0',
83
+ ),
84
+ 'mail' => array(
85
+ 'link' => 'mailto:?&subject=' . $post_title . '&body=' . $post_link,
86
+ 'nicename' => 'Email',
87
+ 'icon' => 'mail',
88
+ 'target' => '0'
89
+ ),
90
+ 'sms' => array(
91
+ 'link' => 'sms://?&body=' . $post_title . ' - ' . $post_link,
92
+ 'nicename' => 'SMS',
93
+ 'icon' => 'viber',
94
+ 'target' => '0',
95
+ ),
96
+ 'vk' => array(
97
+ 'link' => 'http://vk.com/share.php?url=' . $post_link,
98
+ 'nicename' => 'VKontakte',
99
+ 'icon' => 'vkontakte',
100
+ ),
101
+ 'okru' => array(
102
+ 'link' => 'https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=' . $post_link . '&title=' . $post_title,
103
+ 'nicename' => 'OK.ru',
104
+ 'icon' => 'odnoklassniki',
105
+ ),
106
+ 'douban' => array(
107
+ 'link' => 'http://www.douban.com/recommend/?url=' . $post_link . '&title=' . $post_title,
108
+ 'nicename' => 'Douban',
109
+ 'icon' => 'douban',
110
+ ),
111
+ 'baidu' => array(
112
+ 'link' => 'http://cang.baidu.com/do/add?it=' . $post_title . '&iu=' . $post_link,
113
+ 'nicename' => 'Baidu',
114
+ 'icon' => 'baidu',
115
+ ),
116
+ 'xing' => array(
117
+ 'link' => 'https://www.xing.com/app/user?op=share&url=' . $post_link,
118
+ 'nicename' => 'Xing',
119
+ 'icon' => 'xing',
120
+ ),
121
+ 'renren' => array(
122
+ 'link' => 'http://widget.renren.com/dialog/share?resourceUrl=' . $post_link . '&srcUrl=' . $post_link . '&title=' . $post_title,
123
+ 'nicename' => 'RenRen',
124
+ 'icon' => 'renren',
125
+ ),
126
+ 'weibo' => array(
127
+ 'link' => 'http://service.weibo.com/share/share.php?url=' . $post_link . '&appkey=&title=' . $post_title . '&pic=&ralateUid=',
128
+ 'nicename' => 'Weibo',
129
+ 'icon' => 'weibo',
130
+ ),
131
+ );
132
+ }
133
+
134
+ /**
135
+ * Determine if module should be loaded.
136
+ *
137
+ * @since 1.0.0
138
+ * @access public
139
+ * @return bool
140
+ */
141
+ public function enable_module() {
142
+ return true;
143
+ }
144
+
145
+ /**
146
+ * The loading logic for the module.
147
+ *
148
+ * @since 1.0.0
149
+ * @access public
150
+ */
151
+ public function load() {
152
+ }
153
+
154
+ /**
155
+ * Method to define hooks needed.
156
+ *
157
+ * @since 1.0.0
158
+ * @access public
159
+ * @return mixed | array
160
+ */
161
+ public function hooks() {
162
+ $this->loader->add_filter('kses_allowed_protocols', $this, 'custom_allowed_protocols' );
163
+
164
+ if( $this -> get_option( 'socials_position' ) == 2 ) {
165
+ $this->loader->add_filter('hestia_filter_blog_social_icons', $this, 'social_sharing_function' );
166
+ return true;
167
+ }
168
+ $this->loader->add_action('wp_footer', $this, 'social_sharing_function' );
169
+ }
170
+
171
+ /**
172
+ * Display method for the Social Sharing.
173
+ *
174
+ * @since 1.0.0
175
+ * @access public
176
+ */
177
+ public function social_sharing_function() {
178
+ if ( is_single() ) {
179
+ $class_desktop = 'obfx-sharing-left ';
180
+ switch ( $this->get_option( 'socials_position' ) ) {
181
+ case '1':
182
+ $class_desktop = 'obfx-sharing-right ';
183
+ break;
184
+ case '2':
185
+ $class_desktop = 'obfx-sharing-inline ';
186
+ }
187
+
188
+ $class_mobile = '';
189
+ if( $this->get_option( 'mobile_position' ) == '0' ) {
190
+ $class_mobile = 'obfx-sharing-bottom';
191
+ }
192
+ $data = array(
193
+ 'desktop_class' => $class_desktop,
194
+ 'mobile_class' => $class_mobile,
195
+ 'show_name' => $this->get_option( 'network_name' ),
196
+ 'social_links_array' => $this->social_links_array(),
197
+ );
198
+
199
+ if( $this -> get_option( 'socials_position' ) == 2 ) {
200
+ return $this->render_view( 'hestia-social-sharing', $data );
201
+ }
202
+ echo $this->render_view( 'social-sharing', $data );
203
+ }
204
+ }
205
+
206
+ /**
207
+ * Create the social links array to be passed to the front end view.
208
+ *
209
+ * @since 1.0.0
210
+ * @access private
211
+ * @return array
212
+ */
213
+ private function social_links_array() {
214
+ $social_links = array();
215
+ foreach ( $this->social_share_links as $network => $network_links ) {
216
+ if( $this->get_option( $network ) ) {
217
+ $social_links[ $network ] = $network_links;
218
+ $social_links[ $network ][ 'show_mobile' ] = $this->get_option( $network . '-mobile-show' );
219
+ $social_links[ $network ][ 'show_desktop' ] = $this->get_option( $network . '-desktop-show' );
220
+ }
221
+ }
222
+ return $social_links;
223
+ }
224
+
225
+ /**
226
+ * Add extra protocols to list of allowed protocols.
227
+ *
228
+ * @return array Updated list including extra protocols added.
229
+ */
230
+ public function custom_allowed_protocols( $protocols ){
231
+ $protocols[] = 'whatsapp';
232
+ $protocols[] = 'sms';
233
+ return $protocols;
234
+ }
235
+
236
+ /**
237
+ * Method that returns an array of scripts and styles to be loaded
238
+ * for the front end part.
239
+ *
240
+ * @since 1.0.0
241
+ * @access public
242
+ * @return array
243
+ */
244
+ public function public_enqueue() {
245
+ return array(
246
+ 'css' => array(
247
+ 'public' => false,
248
+ 'vendor/socicon/socicon' => false,
249
+ ),
250
+ 'js' => array(
251
+ 'public' => array( 'jquery' ),
252
+ ),
253
+ );
254
+ }
255
+
256
+ /**
257
+ * Method that returns an array of scripts and styles to be loaded
258
+ * for the admin part.
259
+ *
260
+ * @since 1.0.0
261
+ * @access public
262
+ * @return array
263
+ */
264
+ public function admin_enqueue() {
265
+ return array(
266
+ 'css' => array(
267
+ 'admin' => false,
268
+ 'vendor/socicon/socicon' => false,
269
+ ),
270
+ 'js' => array(
271
+ 'admin' => array( 'jquery' ),
272
+ ),
273
+ );
274
+ }
275
+
276
+ /**
277
+ * Method to define the options fields for the module
278
+ *
279
+ * @since 1.0.0
280
+ * @access public
281
+ * @return array
282
+ */
283
+ public function options() {
284
+ $options = array(
285
+ array(
286
+ 'id' => 'socials_position',
287
+ 'title' => 'Desktop Position',
288
+ 'name' => 'socials_position',
289
+ 'type' => 'radio',
290
+ 'options' => array(
291
+ '0' => 'Left',
292
+ '1' => 'Right',
293
+ ),
294
+ 'default' => '0',
295
+ ),
296
+ array(
297
+ 'id' => 'mobile_position',
298
+ 'name' => 'mobile_position',
299
+ 'title' => 'Mobile Position',
300
+ 'label' => 'Show network name on hover',
301
+ 'type' => 'radio',
302
+ 'options' => array(
303
+ '0' => 'Pinned to bottom',
304
+ '1' => 'Same as desktop',
305
+ ),
306
+ 'default' => '1',
307
+ ),
308
+ array(
309
+ 'id' => 'network_name',
310
+ 'name' => 'network_name',
311
+ 'title' => 'Show name',
312
+ 'type' => 'toggle',
313
+ 'label' => 'Show network name on hover',
314
+ 'default' => '0',
315
+ ),
316
+ );
317
+
318
+ $this->define_networks();
319
+
320
+ foreach ( $this->social_share_links as $network => $data_array ) {
321
+ $options[] = array(
322
+ 'before_wrap' => '<div class="obfx-row">',
323
+ 'title' => ( $network == 'facebook' ) ? 'Networks' : '',
324
+ 'id' => $network,
325
+ 'name' => $network,
326
+ 'label' => '<i class="socicon-' . $data_array['icon'] . '"></i> - ' . $data_array['nicename'],
327
+ 'type' => 'toggle',
328
+ 'default' => ( $network == 'facebook' ) ? '1' : '',
329
+ 'class' => 'inline-setting network-toggle',
330
+ );
331
+
332
+ $options[] = array(
333
+ 'title' => ( $network == 'facebook' ) ? 'Show on' : '',
334
+ 'id' => $network . '-desktop-show',
335
+ 'name' => $network . '-desktop-show',
336
+ 'label' => 'desktop',
337
+ 'type' => 'checkbox',
338
+ 'default' => '1',
339
+ 'class' => 'inline-setting show',
340
+ );
341
+
342
+ $options[] = array(
343
+ 'id' => $network . '-mobile-show',
344
+ 'name' => $network . '-mobile-show',
345
+ 'label' => 'mobile',
346
+ 'type' => 'checkbox',
347
+ 'default' => '1',
348
+ 'class' => 'inline-setting show last',
349
+ 'after_wrap' => '</div>',
350
+ );
351
+ }
352
+
353
+ $options = $this->add_hestia_options( $options );
354
+
355
+ return $options;
356
+ }
357
+
358
+ /**
359
+ * Add hestia options.
360
+ */
361
+ private function add_hestia_options( $options ) {
362
+ if( defined( 'HESTIA_VERSION' ) ) {
363
+ $option_id = $this->search_for_id( 'socials_position', $options );
364
+ $options[$option_id]['options']['2'] = 'Inline after content';
365
+ }
366
+ return $options;
367
+ }
368
+
369
+ /**
370
+ * Search for module option by id.
371
+ *
372
+ * @param $index
373
+ *
374
+ * @return int|null|string
375
+ */
376
+ private function search_for_id( $index, $options ) {
377
+ foreach ( $options as $key => $val ) {
378
+ if ( $val['id'] === $index ) {
379
+ return $key;
380
+ }
381
+ }
382
+ return null;
383
+ }
384
+
385
+ }
obfx_modules/social-sharing/js/admin.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Social Sharing Module Admin Script
3
+ *
4
+ * @since 1.0.0
5
+ * @package obfx_modules/social-sharing/js
6
+ *
7
+ * @author ThemeIsle
8
+ */
9
+
10
+ var obfx_sharing_module_admin = function( $ ) {
11
+ 'use strict';
12
+
13
+ $( function() {
14
+ $( '.network-toggle input:checkbox:not(:checked)' ).each( function () {
15
+ $( this ).parents( '.obfx-row' ).find( '.show input' ).attr( 'disabled', true ).parent().addClass( 'obfxHiddenOption' );
16
+ } );
17
+
18
+ $( '.network-toggle input' ).on( 'change', function () {
19
+ if ( $( this ).is( ':checked' ) ) {
20
+ $( this ).parents( '.obfx-row' ).find( '.show input' ).attr( 'disabled', false ).parent().removeClass( 'obfxHiddenOption' );
21
+ } else {
22
+ $( this ).parents( '.obfx-row' ).find( '.show input' ).attr( 'disabled', true ).parent().addClass( 'obfxHiddenOption' );
23
+ }
24
+ } );
25
+
26
+ } );
27
+
28
+ };
29
+
30
+ obfx_sharing_module_admin( jQuery );
obfx_modules/social-sharing/js/public.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Social Sharing Module Public Script
3
+ *
4
+ * @since 1.0.0
5
+ * @package obfx_modules/social-sharing/js
6
+ *
7
+ * @author ThemeIsle
8
+ */
9
+
10
+ var obfx_sharing_module = function( $ ) {
11
+ 'use strict';
12
+
13
+ $( function() {
14
+ $( '.obfx-sharing a, .obfx-sharing-inline a' ).not( '.whatsapp, .mail, .viber' ).on( 'click', function(e) {
15
+ e.preventDefault();
16
+ var link = $( this ).attr( 'href' );
17
+
18
+ window.open( link, 'obfxShareWindow', 'height=450, width=550, top=' + ( $( window ).height() / 2 - 275 ) + ', left=' + ( $( window ).width() / 2 - 225 ) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0' );
19
+ return true;
20
+ } );
21
+ } );
22
+ };
23
+
24
+ obfx_sharing_module( jQuery );
obfx_modules/social-sharing/views/hestia-social-sharing-tpl.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Front End View for Social Sharing Module of Orbit Fox tailored to Hestia.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox_Modules
9
+ * @subpackage Orbit_Fox_Modules/stats/social-sharing
10
+ * @codeCoverageIgnore
11
+ */
12
+
13
+ if ( ! empty( $social_links_array ) ) { ?>
14
+ <div class="obfx-hestia-social-wrapper">
15
+ <ul class="entry-social
16
+ <?php
17
+ if ( ! empty( $desktop_class ) ) {
18
+ echo esc_attr( $desktop_class );
19
+ }
20
+ if ( ! empty( $mobile_class ) ) {
21
+ echo esc_attr( $mobile_class );
22
+ }
23
+ ?>
24
+ ">
25
+ <?php
26
+ foreach ( $social_links_array as $network_data ) {
27
+ $class = '';
28
+ if ( $network_data['show_desktop'] == '0' ) {
29
+ $class .= 'obfx-hide-desktop-socials ';
30
+ }
31
+ if ( $network_data['show_mobile'] == '0' ) {
32
+ $class .= 'obfx-hide-mobile-socials ';
33
+ }
34
+ ?>
35
+ <li class="<?php echo esc_attr( $class ); ?>">
36
+ <a rel="tooltip"
37
+ data-original-title="<?php echo esc_attr( __( 'Share on ', 'themeisle-companion' ) . $network_data['nicename'] ); ?>"
38
+ class = "btn btn-just-icon btn-round btn-<?php echo esc_attr( $network_data['icon'] ); ?>"
39
+ <?php echo ( isset( $network_data['target'] ) && $network_data['target'] != '0' ) ? 'target="_blank"' : ''; ?>
40
+ href="<?php echo esc_url( $network_data['link'] ); ?>">
41
+ <i class="socicon-<?php echo esc_attr( $network_data['icon'] ); ?>"></i>
42
+ </a>
43
+ </li>
44
+ <?php } ?>
45
+ </ul>
46
+ </div>
47
+ <?php
48
+ }// End if().
obfx_modules/social-sharing/views/social-sharing-tpl.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Front End View for Social Sharing Module of Orbit Fox.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox_Modules
9
+ * @subpackage Orbit_Fox_Modules/stats/social-sharing
10
+ * @codeCoverageIgnore
11
+ */
12
+
13
+ if ( ! empty( $social_links_array ) ) { ?>
14
+ <ul class="obfx-sharing
15
+ <?php
16
+
17
+ if ( ! empty( $desktop_class ) ) {
18
+ echo esc_attr( $desktop_class );
19
+ }
20
+ if ( ! empty( $mobile_class ) ) {
21
+ echo esc_attr( $mobile_class );
22
+ }
23
+
24
+ ?>
25
+ ">
26
+ <?php
27
+ foreach ( $social_links_array as $network_data ) {
28
+ $class = '';
29
+ if ( $network_data['show_desktop'] == '0' ) {
30
+ $class .= 'obfx-hide-desktop-socials ';
31
+ }
32
+ if ( $network_data['show_mobile'] == '0' ) {
33
+ $class .= 'obfx-hide-mobile-socials ';
34
+ }
35
+ ?>
36
+ <li class="<?php echo esc_attr( $class ); ?>">
37
+ <a class = "<?php echo esc_attr( $network_data['icon'] ); ?>"
38
+ <?php echo ( isset( $network_data['target'] ) && $network_data['target'] != '0' ) ? 'target="_blank"' : ''; ?>
39
+ href="<?php echo esc_url( $network_data['link'] ); ?>">
40
+ <i class="socicon-<?php echo esc_attr( $network_data['icon'] ); ?>"></i>
41
+ <?php
42
+ if ( $show_name ) {
43
+ echo '<span>' . esc_html( $network_data['nicename'] ) . '</span>';
44
+ }
45
+ ?>
46
+ </a>
47
+ </li>
48
+ <?php } ?>
49
+ </ul>
50
+ <?php
51
+ }// End if().
obfx_modules/stats/css/stats.css ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Test Module Admin Style
3
+ *
4
+ * @since 1.0.0
5
+ * @package obfx_modules/test/css
6
+ *
7
+ * @author ThemeIsle
8
+ */
obfx_modules/stats/init.php ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Mock-up to demonstrate and test module use.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Test_OBFX_Module
9
+ */
10
+
11
+ /**
12
+ * The class defines a new module to be used by Orbit Fox plugin.
13
+ *
14
+ * @package Test_OBFX_Module
15
+ * @author Themeisle <friends@themeisle.com>
16
+ */
17
+ class Stats_OBFX_Module extends Orbit_Fox_Module_Abstract {
18
+
19
+ /**
20
+ * Test_OBFX_Module constructor.
21
+ *
22
+ * @since 1.0.0
23
+ * @access public
24
+ */
25
+ public function __construct() {
26
+ parent::__construct();
27
+ $this->name = __( 'Reports Module', 'themeisle-companion' );
28
+ $this->description = __( 'A simple module for your WordPress data.', 'themeisle-companion' );
29
+
30
+ }
31
+
32
+ /**
33
+ * Determine if module should be loaded.
34
+ *
35
+ * @since 1.0.0
36
+ * @access public
37
+ * @return bool
38
+ */
39
+ public function enable_module() {
40
+ return true;
41
+ }
42
+
43
+ /**
44
+ * The loading logic for the module.
45
+ *
46
+ * @since 1.0.0
47
+ * @access public
48
+ */
49
+ public function load() {
50
+
51
+ }
52
+
53
+ /**
54
+ * Method to define hooks needed.
55
+ *
56
+ * @since 1.0.0
57
+ * @access public
58
+ */
59
+ public function hooks() {
60
+ $this->loader->add_action( 'wp_dashboard_setup', $this, 'add_dashboard_widgets' );
61
+ }
62
+
63
+ /**
64
+ * Module method to add a dashboard widget
65
+ *
66
+ * @since 1.0.0
67
+ * @access public
68
+ */
69
+ public function add_dashboard_widgets() {
70
+ wp_add_dashboard_widget(
71
+ 'obfx_dashboard_widget', // Widget slug.
72
+ 'Site Reports <small><i>by Orbit Fox</i></small>', // Title.
73
+ array( $this, 'dashboard_widget_function' ) // Display function.
74
+ );
75
+ }
76
+
77
+ /**
78
+ * Display method for the Dashboard widget.
79
+ *
80
+ * @since 1.0.0
81
+ * @access public
82
+ */
83
+ public function dashboard_widget_function() {
84
+ $display_year = $this->get_option( 'display_year' );
85
+ $posts_count = $this->get_posts_count( $display_year );
86
+ $comments_count = $this->get_comments_count( $display_year );
87
+
88
+ $data = array(
89
+ 'display_year' => $display_year,
90
+ 'title' => $this->get_option( 'dashboard_title' ),
91
+ 'desc' => $this->get_option( 'dashboard_desc' ),
92
+ 'graph_shows' => $this->get_option( 'graph_shows' ),
93
+ 'posts_count' => $posts_count,
94
+ 'comments_count' => $comments_count,
95
+ );
96
+
97
+ echo $this->render_view( 'dashboard-widget', $data );
98
+ }
99
+
100
+ /**
101
+ * Utility method to return posts count,
102
+ *
103
+ * @since 1.0.0
104
+ * @access public
105
+ *
106
+ * @param string $display_year The year to query for.
107
+ *
108
+ * @return array
109
+ */
110
+ public function get_posts_count( $display_year ) {
111
+ $posts_count = array();
112
+ for ( $cnt = 0; $cnt < 12; $cnt ++ ) {
113
+ $posts_count[] = rand( 13, 766 );
114
+ }
115
+
116
+ if ( ! $this->get_option( 'mock_data' ) ) {
117
+ global $wpdb;
118
+ $results = $wpdb->get_results( $this->build_graph_query( $display_year, $wpdb->posts, true ), ARRAY_A );
119
+ $posts_count = $this->build_graph_array( $results, true );
120
+ }
121
+
122
+ return $posts_count;
123
+ }
124
+
125
+ /**
126
+ * Creates a query for graph data.
127
+ *
128
+ * @since 1.0.0
129
+ * @access private
130
+ *
131
+ * @param string $display_year The year to look for.
132
+ * @param string $table The table name
133
+ * @param bool $posts_or_comments Counts posts if `true` or comments if `false`.
134
+ *
135
+ * @return string
136
+ */
137
+ private function build_graph_query( $display_year, $table, $posts_or_comments ) {
138
+ $count = "SUM(`comment_count`) as `comment_count`";
139
+ if ( $posts_or_comments ) {
140
+ $count = "COUNT( `ID` ) AS `post_count`";
141
+ }
142
+ $query = "
143
+ SELECT
144
+ MONTH( `post_date` ) AS `post_month`, {$count}
145
+ FROM {$table}
146
+ WHERE `post_type` = 'post' AND `post_status` = 'publish' AND YEAR( `post_date` ) = '{$display_year}'
147
+ GROUP BY `post_month`
148
+ ";
149
+
150
+ return $query;
151
+ }
152
+
153
+ /**
154
+ * Utility method to build result array.
155
+ *
156
+ * @since 1.0.0
157
+ * @access private
158
+ *
159
+ * @param array $results Query results as associative array.
160
+ * @param bool $posts_or_comments Counts posts if `true` or comments if `false`.
161
+ *
162
+ * @return array
163
+ */
164
+ private function build_graph_array( $results, $posts_or_comments ) {
165
+ $data_count = array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 );
166
+ foreach ( $results as $posts_published ) {
167
+ $pos = $posts_published['post_month'] - 1;
168
+ $key = 'comment_count';
169
+ if ( $posts_or_comments ) {
170
+ $key = 'post_count';
171
+ }
172
+ $data_count[ $pos ] = (int) $posts_published[ $key ];
173
+ }
174
+
175
+ return $data_count;
176
+ }
177
+
178
+ /**
179
+ * Utility method to return comments count,
180
+ *
181
+ * @since 1.0.0
182
+ * @access public
183
+ *
184
+ * @param string $display_year The year to query for.
185
+ *
186
+ * @return array
187
+ */
188
+ public function get_comments_count( $display_year ) {
189
+ $comments_count = array();
190
+ for ( $cnt = 0; $cnt < 12; $cnt ++ ) {
191
+ $comments_count[] = rand( 7, 484 );
192
+ }
193
+
194
+ if ( ! $this->get_option( 'mock_data' ) ) {
195
+ global $wpdb;
196
+ $results = $wpdb->get_results( $this->build_graph_query( $display_year, $wpdb->posts, false ), ARRAY_A );
197
+ $comments_count = $this->build_graph_array( $results, false );
198
+ }
199
+
200
+ return $comments_count;
201
+ }
202
+
203
+ /**
204
+ * Method that returns an array of scripts and styles to be loaded
205
+ * for the front end part.
206
+ *
207
+ * @since 1.0.0
208
+ * @access public
209
+ * @return array
210
+ */
211
+ public function public_enqueue() {
212
+ return array();
213
+ }
214
+
215
+ /**
216
+ * Method that returns an array of scripts and styles to be loaded
217
+ * for the admin part.
218
+ *
219
+ * @since 1.0.0
220
+ * @access public
221
+ * @return array|boolean
222
+ */
223
+ public function admin_enqueue() {
224
+ $current_screen = get_current_screen();
225
+
226
+ if ( ! isset( $current_screen->id ) ) {
227
+ return array();
228
+ }
229
+ if ( $current_screen->id != 'dashboard' ) {
230
+ return array();
231
+ }
232
+
233
+ return array(
234
+ 'js' => array(
235
+ 'vendor/chart.min' => array( 'jquery' ),
236
+ 'stats' => array( 'jquery' ),
237
+ ),
238
+ 'css' => array(
239
+ 'stats' => false,
240
+ ),
241
+ );
242
+ }
243
+
244
+ /**
245
+ * Method to define the options fields for the module
246
+ *
247
+ * @since 1.0.0
248
+ * @access public
249
+ * @return array
250
+ */
251
+ public function options() {
252
+ return array(
253
+ array(
254
+ 'id' => 'dashboard_title',
255
+ 'name' => 'dashboard_title',
256
+ 'title' => 'Dashboard Title',
257
+ 'description' => 'This title is displayed on the Dasboard widget.',
258
+ 'type' => 'text',
259
+ 'default' => '',
260
+ 'placeholder' => 'Add some text',
261
+ ),
262
+ array(
263
+ 'id' => 'dashboard_desc',
264
+ 'name' => 'dashboard_desc',
265
+ 'title' => 'Dashboard Graph Description (*optional)',
266
+ 'description' => 'This will be displayed inside the Dashboard widget.',
267
+ 'type' => 'textarea',
268
+ 'default' => '',
269
+ 'placeholder' => 'Add some text here ...',
270
+ ),
271
+ array(
272
+ 'id' => 'display_year',
273
+ 'name' => 'display_year',
274
+ 'title' => 'The year to use for graph plotting.',
275
+ 'description' => 'Based on the selected year here will update the graph on the Dashboard widget.',
276
+ 'type' => 'select',
277
+ 'default' => '2017',
278
+ 'placeholder' => 'Select an option',
279
+ 'options' => array(
280
+ '2017' => '2017',
281
+ '2016' => '2016',
282
+ '2015' => '2015',
283
+ '2014' => '2014',
284
+ '2013' => '2013',
285
+ '2012' => '2012',
286
+ '2011' => '2011',
287
+ '2010' => '2010',
288
+ ),
289
+ ),
290
+ array(
291
+ 'id' => 'graph_shows',
292
+ 'name' => 'graph_shows',
293
+ 'title' => 'What does the graph display?',
294
+ 'description' => 'Select what is displayed on the graph.',
295
+ 'type' => 'radio',
296
+ 'default' => '2',
297
+ 'options' => array(
298
+ '0' => 'Posts Count',
299
+ '1' => 'Comments Count',
300
+ '2' => 'Posts & Comments Count',
301
+ ),
302
+ ),
303
+ array(
304
+ 'id' => 'mock_data',
305
+ 'name' => 'mock_data',
306
+ 'label' => 'Disable/Enable',
307
+ 'title' => 'Use mock data for graph?',
308
+ 'description' => 'If enabled this plots mock data on graph.',
309
+ 'type' => 'toggle',
310
+ 'default' => '1',
311
+ ),
312
+ );
313
+ }
314
+ }
obfx_modules/stats/js/stats.js ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Test Module Admin Script
3
+ *
4
+ * @since 1.0.0
5
+ * @package obfx_modules/test/js
6
+ *
7
+ * @author ThemeIsle
8
+ */
9
+
10
+ /* jshint unused:vars */
11
+ /* global console, Chart, jQuery */
12
+ var stats_module = function( $ ) {
13
+ 'use strict';
14
+ $( function() {
15
+ if ( $( '#obfxChart' ).length ) {
16
+ var myChart;
17
+ var ctx = document.getElementById( 'obfxChart' ).getContext( '2d' );
18
+ var posts_data = $( '#obfxChart' ).data( 'posts' );
19
+ var comments_data = $( '#obfxChart' ).data( 'comments' );
20
+
21
+ var dataset = [];
22
+ if ( typeof posts_data !== 'undefined' ) {
23
+ dataset.push( {
24
+ label: '# of Posts',
25
+ data: posts_data,
26
+ backgroundColor: 'rgba( 3, 169, 244, 0.5 )',
27
+ borderColor: 'rgba( 3, 169, 244, 1 )',
28
+ borderWidth: 1
29
+ } );
30
+ }
31
+
32
+ if ( typeof comments_data !== 'undefined' ) {
33
+ dataset.push( {
34
+ label: '# of Comments',
35
+ data: comments_data,
36
+ backgroundColor: 'rgba( 255, 152, 0, 0.5 )',
37
+ borderColor: 'rgba( 255, 152, 0, 1 )',
38
+ borderWidth: 1
39
+ } );
40
+ }
41
+
42
+ console.log( ctx );
43
+ myChart = new Chart(ctx, {
44
+ type: 'bar',
45
+ data: {
46
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
47
+ datasets: dataset
48
+ },
49
+ options: {
50
+ scales: {
51
+ yAxes: [{
52
+ ticks: {
53
+ beginAtZero: true
54
+ }
55
+ }]
56
+ }
57
+ }
58
+ });
59
+ }// End if().
60
+ } );
61
+
62
+ };
63
+ stats_module( jQuery );
obfx_modules/stats/js/vendor/chart.min.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Chart.js
3
+ * http://chartjs.org/
4
+ * Version: 2.6.0
5
+ *
6
+ * Copyright 2017 Nick Downie
7
+ * Released under the MIT license
8
+ * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
9
+ */
10
+ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Chart=t()}}(function(){return function t(e,n,i){function a(r,l){if(!n[r]){if(!e[r]){var s="function"==typeof require&&require;if(!l&&s)return s(r,!0);if(o)return o(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[r]={exports:{}};e[r][0].call(d.exports,function(t){var n=e[r][1][t];return a(n?n:t)},d,d.exports,t,e,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)a(i[r]);return a}({1:[function(t,e,n){},{}],2:[function(t,e,n){function i(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,n=/^#([a-fA-F0-9]{6})$/,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\w+)/,r=[0,0,0],l=1,s=t.match(e);if(s){s=s[1];for(var u=0;u<r.length;u++)r[u]=parseInt(s[u]+s[u],16)}else if(s=t.match(n)){s=s[1];for(var u=0;u<r.length;u++)r[u]=parseInt(s.slice(2*u,2*u+2),16)}else if(s=t.match(i)){for(var u=0;u<r.length;u++)r[u]=parseInt(s[u+1]);l=parseFloat(s[4])}else if(s=t.match(a)){for(var u=0;u<r.length;u++)r[u]=Math.round(2.55*parseFloat(s[u+1]));l=parseFloat(s[4])}else if(s=t.match(o)){if("transparent"==s[1])return[0,0,0,0];if(r=y[s[1]],!r)return}for(var u=0;u<r.length;u++)r[u]=b(r[u],0,255);return l=l||0==l?b(l,0,1):1,r[3]=l,r}}function a(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=b(parseInt(n[1]),0,360),o=b(parseFloat(n[2]),0,100),r=b(parseFloat(n[3]),0,100),l=b(isNaN(i)?1:i,0,1);return[a,o,r,l]}}}function o(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=b(parseInt(n[1]),0,360),o=b(parseFloat(n[2]),0,100),r=b(parseFloat(n[3]),0,100),l=b(isNaN(i)?1:i,0,1);return[a,o,r,l]}}}function r(t){var e=i(t);return e&&e.slice(0,3)}function l(t){var e=a(t);return e&&e.slice(0,3)}function s(t){var e=i(t);return e?e[3]:(e=a(t))?e[3]:(e=o(t))?e[3]:void 0}function u(t){return"#"+x(t[0])+x(t[1])+x(t[2])}function d(t,e){return e<1||t[3]&&t[3]<1?c(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function c(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function h(t,e){if(e<1||t[3]&&t[3]<1)return f(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+a+"%)"}function f(t,e){var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgba("+n+"%, "+i+"%, "+a+"%, "+(e||t[3]||1)+")"}function g(t,e){return e<1||t[3]&&t[3]<1?p(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function p(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function v(t){return k[t.slice(0,3)]}function b(t,e,n){return Math.min(Math.max(e,t),n)}function x(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var y=t(6);e.exports={getRgba:i,getHsla:a,getRgb:r,getHsl:l,getHwb:o,getAlpha:s,hexString:u,rgbString:d,rgbaString:c,percentString:h,percentaString:f,hslString:g,hslaString:p,hwbString:m,keyword:v};var k={};for(var w in y)k[y[w]]=w},{6:6}],3:[function(t,e,n){var i=t(5),a=t(2),o=function(t){if(t instanceof o)return t;if(!(this instanceof o))return new o(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;"string"==typeof t?(e=a.getRgba(t),e?this.setValues("rgb",e):(e=a.getHsla(t))?this.setValues("hsl",e):(e=a.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e))};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return a.hexString(this.values.rgb)},rgbString:function(){return a.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return a.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return a.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return a.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return a.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return a.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return a.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,o=2*a-1,r=n.alpha()-i.alpha(),l=((o*r===-1?o:(o+r)/(1+o*r))+1)/2,s=1-l;return this.rgb(l*n.red()+s*i.red(),l*n.green()+s*i.green(),l*n.blue()+s*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new o,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],e={}.toString.call(t),"[object Array]"===e?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,a=this.values,o=this.spaces,r=this.maxes,l=1;if(this.valid=!0,"alpha"===t)l=e;else if(e.length)a[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)a[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[o[t][0]]){var s=o[t];for(n=0;n<t.length;n++)a[t][n]=e[s[n]];l=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===l?a.alpha:l)),"alpha"===t)return!1;var u;for(n=0;n<t.length;n++)u=Math.max(0,Math.min(r[t][n],a[t][n])),a[t][n]=Math.round(u);for(var d in o)d!==t&&(a[d]=i[t][d](a[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{2:2,5:5}],4:[function(t,e,n){function i(t){var e,n,i,a=t[0]/255,o=t[1]/255,r=t[2]/255,l=Math.min(a,o,r),s=Math.max(a,o,r),u=s-l;return s==l?e=0:a==s?e=(o-r)/u:o==s?e=2+(r-a)/u:r==s&&(e=4+(a-o)/u),e=Math.min(60*e,360),e<0&&(e+=360),i=(l+s)/2,n=s==l?0:i<=.5?u/(s+l):u/(2-s-l),[e,100*n,100*i]}function a(t){var e,n,i,a=t[0],o=t[1],r=t[2],l=Math.min(a,o,r),s=Math.max(a,o,r),u=s-l;return n=0==s?0:u/s*1e3/10,s==l?e=0:a==s?e=(o-r)/u:o==s?e=2+(r-a)/u:r==s&&(e=4+(a-o)/u),e=Math.min(60*e,360),e<0&&(e+=360),i=s/255*1e3/10,[e,n,i]}function o(t){var e=t[0],n=t[1],a=t[2],o=i(t)[0],r=1/255*Math.min(e,Math.min(n,a)),a=1-1/255*Math.max(e,Math.max(n,a));return[o,100*r,100*a]}function l(t){var e,n,i,a,o=t[0]/255,r=t[1]/255,l=t[2]/255;return a=Math.min(1-o,1-r,1-l),e=(1-o-a)/(1-a)||0,n=(1-r-a)/(1-a)||0,i=(1-l-a)/(1-a)||0,[100*e,100*n,100*i,100*a]}function s(t){return Z[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=.4124*e+.3576*n+.1805*i,o=.2126*e+.7152*n+.0722*i,r=.0193*e+.1192*n+.9505*i;return[100*a,100*o,100*r]}function d(t){var e,n,i,a=u(t),o=a[0],r=a[1],l=a[2];return o/=95.047,r/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*r-16,n=500*(o-r),i=200*(r-l),[e,n,i]}function c(t){return B(d(t))}function h(t){var e,n,i,a,o,r=t[0]/360,l=t[1]/100,s=t[2]/100;if(0==l)return o=255*s,[o,o,o];n=s<.5?s*(1+l):s+l-s*l,e=2*s-n,a=[0,0,0];for(var u=0;u<3;u++)i=r+1/3*-(u-1),i<0&&i++,i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*o;return a}function f(t){var e,n,i=t[0],a=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:(o*=2,a*=o<=1?o:2-o,n=(o+a)/2,e=2*a/(o+a),[i,100*e,100*n])}function p(t){return o(h(t))}function m(t){return l(h(t))}function v(t){return s(h(t))}function x(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,o=e-Math.floor(e),r=255*i*(1-n),l=255*i*(1-n*o),s=255*i*(1-n*(1-o)),i=255*i;switch(a){case 0:return[i,s,r];case 1:return[l,i,r];case 2:return[r,i,s];case 3:return[r,l,i];case 4:return[s,r,i];case 5:return[i,r,l]}}function y(t){var e,n,i=t[0],a=t[1]/100,o=t[2]/100;return n=(2-a)*o,e=a*o,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function k(t){return o(x(t))}function w(t){return l(x(t))}function M(t){return s(x(t))}function S(t){var e,n,i,a,o=t[0]/360,l=t[1]/100,s=t[2]/100,u=l+s;switch(u>1&&(l/=u,s/=u),e=Math.floor(6*o),n=1-s,i=6*o-e,0!=(1&e)&&(i=1-i),a=l+i*(n-l),e){default:case 6:case 0:r=n,g=a,b=l;break;case 1:r=a,g=n,b=l;break;case 2:r=l,g=n,b=a;break;case 3:r=l,g=a,b=n;break;case 4:r=a,g=l,b=n;break;case 5:r=n,g=l,b=a}return[255*r,255*g,255*b]}function C(t){return i(S(t))}function D(t){return a(S(t))}function I(t){return l(S(t))}function A(t){return s(S(t))}function P(t){var e,n,i,a=t[0]/100,o=t[1]/100,r=t[2]/100,l=t[3]/100;return e=1-Math.min(1,a*(1-l)+l),n=1-Math.min(1,o*(1-l)+l),i=1-Math.min(1,r*(1-l)+l),[255*e,255*n,255*i]}function _(t){return i(P(t))}function T(t){return a(P(t))}function F(t){return o(P(t))}function R(t){return s(P(t))}function L(t){var e,n,i,a=t[0]/100,o=t[1]/100,r=t[2]/100;return e=3.2406*a+o*-1.5372+r*-.4986,n=a*-.9689+1.8758*o+.0415*r,i=.0557*a+o*-.204+1.057*r,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function V(t){var e,n,i,a=t[0],o=t[1],r=t[2];return a/=95.047,o/=100,r/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,e=116*o-16,n=500*(a-o),i=200*(o-r),[e,n,i]}function O(t){return B(V(t))}function z(t){var e,n,i,a,o=t[0],r=t[1],l=t[2];return o<=8?(n=100*o/903.3,a=7.787*(n/100)+16/116):(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),i=i/108.883<=.008859?i=108.883*(a-l/200-16/116)/7.787:108.883*Math.pow(a-l/200,3),[e,n,i]}function B(t){var e,n,i,a=t[0],o=t[1],r=t[2];return e=Math.atan2(r,o),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(o*o+r*r),[a,i,n]}function W(t){return L(z(t))}function N(t){var e,n,i,a=t[0],o=t[1],r=t[2];return i=r/360*2*Math.PI,e=o*Math.cos(i),n=o*Math.sin(i),[a,e,n]}function E(t){return z(N(t))}function H(t){return W(N(t))}function q(t){return J[t]}function j(t){return i(q(t))}function Y(t){return a(q(t))}function U(t){return o(q(t))}function X(t){return l(q(t))}function K(t){return d(q(t))}function G(t){return u(q(t))}e.exports={rgb2hsl:i,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:l,rgb2keyword:s,rgb2xyz:u,rgb2lab:d,rgb2lch:c,hsl2rgb:h,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:m,hsl2keyword:v,hsv2rgb:x,hsv2hsl:y,hsv2hwb:k,hsv2cmyk:w,hsv2keyword:M,hwb2rgb:S,hwb2hsl:C,hwb2hsv:D,hwb2cmyk:I,hwb2keyword:A,cmyk2rgb:P,cmyk2hsl:_,cmyk2hsv:T,cmyk2hwb:F,cmyk2keyword:R,keyword2rgb:q,keyword2hsl:j,keyword2hsv:Y,keyword2hwb:U,keyword2cmyk:X,keyword2lab:K,keyword2xyz:G,xyz2rgb:L,xyz2lab:V,xyz2lch:O,lab2xyz:z,lab2rgb:W,lab2lch:B,lch2lab:N,lch2xyz:E,lch2rgb:H};var J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Z={};for(var Q in J)Z[JSON.stringify(J[Q])]=Q},{}],5:[function(t,e,n){var i=t(4),a=function(){return new u};for(var o in i){a[o+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(o);var r=/(\w+)2(\w+)/.exec(o),l=r[1],s=r[2];a[l]=a[l]||{},a[l][s]=a[o]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a<n.length;a++)n[a]=Math.round(n[a]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space,i=this.convs[n];e=a[n][t](i),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=a},{4:4}],6:[function(t,e,n){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,n){var i=t(28)();t(26)(i),t(40)(i),t(22)(i),t(25)(i),t(30)(i),t(21)(i),t(23)(i),t(24)(i),t(29)(i),t(32)(i),t(33)(i),t(31)(i),t(27)(i),t(34)(i),t(35)(i),t(36)(i),t(37)(i),t(38)(i),t(46)(i),t(44)(i),t(45)(i),t(47)(i),t(48)(i),t(49)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var a=[];a.push(t(41)(i),t(42)(i),t(43)(i)),i.plugins.register(a),e.exports=i,"undefined"!=typeof window&&(window.Chart=i)},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(){var e,n=this;t.DatasetController.prototype.initialize.apply(n,arguments),e=n.getMeta(),e.stack=n.getDataset().stack,e.bar=!0},update:function(t){var e,n,i=this,a=i.getMeta().data;for(i._ruler=i.getRuler(),e=0,n=a.length;e<n;++e)i.updateElement(a[e],e,t)},updateElement:function(t,n,i){var a=this,o=a.chart,r=a.getMeta(),l=a.getDataset(),s=t.custom||{},u=o.options.elements.rectangle;t._xScale=a.getScaleForId(r.xAxisID),t._yScale=a.getScaleForId(r.yAxisID),t._datasetIndex=a.index,t._index=n,t._model={datasetLabel:l.label,label:o.data.labels[n],borderSkipped:s.borderSkipped?s.borderSkipped:u.borderSkipped,backgroundColor:s.backgroundColor?s.backgroundColor:e.getValueAtIndexOrDefault(l.backgroundColor,n,u.backgroundColor),borderColor:s.borderColor?s.borderColor:e.getValueAtIndexOrDefault(l.borderColor,n,u.borderColor),borderWidth:s.borderWidth?s.borderWidth:e.getValueAtIndexOrDefault(l.borderWidth,n,u.borderWidth)},a.updateElementGeometry(t,n,i),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,a=t._model,o=i.getValueScale(),r=o.getBasePixel(),l=o.isHorizontal(),s=i._ruler||i.getRuler(),u=i.calculateBarValuePixels(i.index,e),d=i.calculateBarIndexPixels(i.index,e,s);a.horizontal=l,a.base=n?r:u.base,a.x=l?n?r:u.head:d.center,a.y=l?d.center:n?r:u.head,a.height=l?d.size:void 0,a.width=l?void 0:d.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(t){var e,n,i=this,a=i.chart,o=i.getIndexScale(),r=o.options.stacked,l=void 0===t?a.data.datasets.length:t+1,s=[];for(e=0;e<l;++e)n=a.getDatasetMeta(e),n.bar&&a.isDatasetVisible(e)&&(r===!1||r===!0&&s.indexOf(n.stack)===-1||void 0===r&&(void 0===n.stack||s.indexOf(n.stack)===-1))&&s.push(n.stack);return s.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){var t=this,n=t.getIndexScale(),i=n.options,a=t.getStackCount(),o=n.isHorizontal()?n.width:n.height,r=o/n.ticks.length,l=r*i.categoryPercentage,s=l/a,u=s*i.barPercentage;return u=Math.min(e.getValueOrDefault(i.barThickness,u),e.getValueOrDefault(i.maxBarThickness,1/0)),{stackCount:a,tickSize:r,categorySize:l,categorySpacing:r-l,fullBarSize:s,barSize:u,barSpacing:s-u,scale:n}},calculateBarValuePixels:function(t,e){var n,i,a,o,r,l,s=this,u=s.chart,d=s.getMeta(),c=s.getValueScale(),h=u.data.datasets,f=Number(h[t].data[e]),g=c.options.stacked,p=d.stack,m=0;if(g||void 0===g&&void 0!==p)for(n=0;n<t;++n)i=u.getDatasetMeta(n),i.bar&&i.stack===p&&i.controller.getValueScaleId()===c.id&&u.isDatasetVisible(n)&&(a=Number(h[n].data[e]),(f<0&&a<0||f>=0&&a>0)&&(m+=a));return o=c.getPixelForValue(m),r=c.getPixelForValue(m+f),l=(r-o)/2,{size:l,base:o,head:r,center:r+l/2}},calculateBarIndexPixels:function(t,e,n){var i=this,a=n.scale,o=i.chart.isCombo,r=i.getStackIndex(t),l=a.getPixelForValue(null,e,t,o),s=n.barSize;return l-=o?n.tickSize/2:0,l+=n.fullBarSize*r,l+=n.categorySpacing/2,l+=n.barSpacing/2,{size:s,base:l,head:l+s,center:l+s/2}},draw:function(){var t,n=this,i=n.chart,a=n.getMeta().data,o=n.getDataset(),r=a.length,l=0;for(e.canvas.clipArea(i.ctx,i.chartArea);l<r;++l)t=o.data[l],null===t||void 0===t||isNaN(t)||a[l].draw();e.canvas.unclipArea(i.ctx)},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;o.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.hoverBackgroundColor,i,e.getHoverColor(o.backgroundColor)),o.borderColor=a.hoverBorderColor?a.hoverBorderColor:e.getValueAtIndexOrDefault(n.hoverBorderColor,i,e.getHoverColor(o.borderColor)),o.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:e.getValueAtIndexOrDefault(n.hoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model,r=this.chart.options.elements.rectangle;o.backgroundColor=a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(n.backgroundColor,i,r.backgroundColor),o.borderColor=a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(n.borderColor,i,r.borderColor),o.borderWidth=a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(n.borderWidth,i,r.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+i.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var n=this,i=n.getMeta(),a=i.data;e.each(a,function(e,i){n.updateElement(e,i,t)})},updateElement:function(n,i,a){var o=this,r=o.getMeta(),l=o.getScaleForId(r.xAxisID),s=o.getScaleForId(r.yAxisID),u=n.custom||{},d=o.getDataset(),c=d.data[i],h=o.chart.options.elements.point,f=o.index;e.extend(n,{_xScale:l,_yScale:s,_datasetIndex:f,_index:i,_model:{x:a?l.getPixelForDecimal(.5):l.getPixelForValue("object"==typeof c?c:NaN,i,f,o.chart.isCombo),y:a?s.getBasePixel():s.getPixelForValue(c,i,f),radius:a?0:u.radius?u.radius:o.getRadius(c),hitRadius:u.hitRadius?u.hitRadius:e.getValueAtIndexOrDefault(d.hitRadius,i,h.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(o,n,h);var g=n._model;g.skip=u.skip?u.skip:isNaN(g.x)||isNaN(g.y),n.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(n){var i=this;t.DatasetController.prototype.setHoverStyle.call(i,n);var a=i.chart.data.datasets[n._datasetIndex],o=n._index,r=n.custom||{},l=n._model;
11
+ l.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(a.hoverRadius,o,i.chart.options.elements.point.hoverRadius)+i.getRadius(a.data[o])},removeHoverStyle:function(e){var n=this;t.DatasetController.prototype.removeHoverStyle.call(n,e,n.chart.options.elements.point);var i=n.chart.data.datasets[e._datasetIndex].data[e._index],a=e.custom||{},o=e._model;o.radius=a.radius?a.radius:n.getRadius(i)}})}},{}],17:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults;n.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),a[o]&&e.push(a[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],l=o.data[a],s=l&&l.custom||{},u=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:u(r.backgroundColor,a,d.backgroundColor),h=s.borderColor?s.borderColor:u(r.borderColor,a,d.borderColor),f=s.borderWidth?s.borderWidth:u(r.borderWidth,a,d.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)a=r.getDatasetMeta(n),a.data[o]&&(a.data[o].hidden=!a.data[o].hidden);r.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,n){var i=n.labels[t.index],a=": "+n.datasets[t.datasetIndex].data[t.index];return e.isArray(i)?(i=i.slice(),i[0]+=a):i+=a,i}}}},n.pie=e.clone(n.doughnut),e.extend(n.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var n=this,i=n.chart,a=i.chartArea,o=i.options,r=o.elements.arc,l=a.right-a.left-r.borderWidth,s=a.bottom-a.top-r.borderWidth,u=Math.min(l,s),d={x:0,y:0},c=n.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var g=o.rotation%(2*Math.PI);g+=2*Math.PI*(g>=Math.PI?-1:g<-Math.PI?1:0);var p=g+f,m={x:Math.cos(g),y:Math.sin(g)},v={x:Math.cos(p),y:Math.sin(p)},b=g<=0&&0<=p||g<=2*Math.PI&&2*Math.PI<=p,x=g<=.5*Math.PI&&.5*Math.PI<=p||g<=2.5*Math.PI&&2.5*Math.PI<=p,y=g<=-Math.PI&&-Math.PI<=p||g<=Math.PI&&Math.PI<=p,k=g<=.5*-Math.PI&&.5*-Math.PI<=p||g<=1.5*Math.PI&&1.5*Math.PI<=p,w=h/100,M={x:y?-1:Math.min(m.x*(m.x<0?1:w),v.x*(v.x<0?1:w)),y:k?-1:Math.min(m.y*(m.y<0?1:w),v.y*(v.y<0?1:w))},S={x:b?1:Math.max(m.x*(m.x>0?1:w),v.x*(v.x>0?1:w)),y:x?1:Math.max(m.y*(m.y>0?1:w),v.y*(v.y>0?1:w))},C={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(l/C.width,s/C.height),d={x:(S.x+M.x)*-.5,y:(S.y+M.y)*-.5}}i.borderWidth=n.getMaxBorderWidth(c.data),i.outerRadius=Math.max((u-i.borderWidth)/2,0),i.innerRadius=Math.max(h?i.outerRadius/100*h:0,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=d.x*i.outerRadius,i.offsetY=d.y*i.outerRadius,c.total=n.calculateTotal(),n.outerRadius=i.outerRadius-i.radiusLength*n.getRingIndex(n.index),n.innerRadius=Math.max(n.outerRadius-i.radiusLength,0),e.each(c.data,function(e,i){n.updateElement(e,i,t)})},updateElement:function(t,n,i){var a=this,o=a.chart,r=o.chartArea,l=o.options,s=l.animation,u=(r.left+r.right)/2,d=(r.top+r.bottom)/2,c=l.rotation,h=l.rotation,f=a.getDataset(),g=i&&s.animateRotate?0:t.hidden?0:a.calculateCircumference(f.data[n])*(l.circumference/(2*Math.PI)),p=i&&s.animateScale?0:a.innerRadius,m=i&&s.animateScale?0:a.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:a.index,_index:n,_model:{x:u+o.offsetX,y:d+o.offsetY,startAngle:c,endAngle:h,circumference:g,outerRadius:m,innerRadius:p,label:v(f.label,n,o.data.labels[n])}});var b=t._model;this.removeHoverStyle(t),i&&s.animateRotate||(0===n?b.startAngle=l.rotation:b.startAngle=a.getMeta().data[n-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),i=this.getMeta(),a=0;return e.each(i.data,function(e,i){t=n.data[i],isNaN(t)||e.hidden||(a+=Math.abs(t))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,a=this.index,o=t.length,r=0;r<o;r++)e=t[r]._model?t[r]._model.borderWidth:0,n=t[r]._chart?t[r]._chart.config.data.datasets[a].hoverBorderWidth:0,i=e>i?e:i,i=n>i?n:i;return i}})}},{}],18:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var i,a,o,r=this,l=r.getMeta(),s=l.dataset,u=l.data||[],d=r.chart.options,c=d.elements.line,h=r.getScaleForId(l.yAxisID),f=r.getDataset(),g=e(f,d);for(g&&(o=s.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),s._scale=h,s._datasetIndex=r.index,s._children=u,s._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:o.tension?o.tension:n.getValueOrDefault(f.lineTension,c.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||c.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||c.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||c.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:o.steppedLine?o.steppedLine:n.getValueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:n.getValueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)},s.pivot()),i=0,a=u.length;i<a;++i)r.updateElement(u[i],i,t);for(g&&0!==s._model.tension&&r.updateBezierControlPoints(),i=0,a=u.length;i<a;++i)u[i].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,a=this.getDataset(),o=t.custom||{};return o.backgroundColor?i=o.backgroundColor:a.pointBackgroundColor?i=n.getValueAtIndexOrDefault(a.pointBackgroundColor,e,i):a.backgroundColor&&(i=a.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,a=this.getDataset(),o=t.custom||{};return o.borderColor?i=o.borderColor:a.pointBorderColor?i=n.getValueAtIndexOrDefault(a.pointBorderColor,e,i):a.borderColor&&(i=a.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,a=this.getDataset(),o=t.custom||{};return isNaN(o.borderWidth)?isNaN(a.pointBorderWidth)?isNaN(a.borderWidth)||(i=a.borderWidth):i=n.getValueAtIndexOrDefault(a.pointBorderWidth,e,i):i=o.borderWidth,i},updateElement:function(t,e,i){var a,o,r=this,l=r.getMeta(),s=t.custom||{},u=r.getDataset(),d=r.index,c=u.data[e],h=r.getScaleForId(l.yAxisID),f=r.getScaleForId(l.xAxisID),g=r.chart.options.elements.point,p=r.chart.data.labels||[],m=1===p.length||1===u.data.length||r.chart.isCombo;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),a=f.getPixelForValue("object"==typeof c?c:NaN,e,d,m),o=i?h.getBasePixel():r.calculatePointY(c,e,d),t._xScale=f,t._yScale=h,t._datasetIndex=d,t._index=e,t._model={x:a,y:o,skip:s.skip||isNaN(a)||isNaN(o),radius:s.radius||n.getValueAtIndexOrDefault(u.pointRadius,e,g.radius),pointStyle:s.pointStyle||n.getValueAtIndexOrDefault(u.pointStyle,e,g.pointStyle),backgroundColor:r.getPointBackgroundColor(t,e),borderColor:r.getPointBorderColor(t,e),borderWidth:r.getPointBorderWidth(t,e),tension:l.dataset._model?l.dataset._model.tension:0,steppedLine:!!l.dataset._model&&l.dataset._model.steppedLine,hitRadius:s.hitRadius||n.getValueAtIndexOrDefault(u.pointHitRadius,e,g.hitRadius)}},calculatePointY:function(t,e,n){var i,a,o,r=this,l=r.chart,s=r.getMeta(),u=r.getScaleForId(s.yAxisID),d=0,c=0;if(u.options.stacked){for(i=0;i<n;i++)if(a=l.data.datasets[i],o=l.getDatasetMeta(i),"line"===o.type&&o.yAxisID===u.id&&l.isDatasetVisible(i)){var h=Number(u.getRightValue(a.data[e]));h<0?c+=h||0:d+=h||0}var f=Number(u.getRightValue(t));return f<0?u.getPixelForValue(c+f):u.getPixelForValue(d+f)}return u.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,n){return Math.max(Math.min(t,n),e)}var e,i,a,o,r,l=this,s=l.getMeta(),u=l.chart.chartArea,d=s.data||[];if(s.dataset._model.spanGaps&&(d=d.filter(function(t){return!t._model.skip})),"monotone"===s.dataset._model.cubicInterpolationMode)n.splineCurveMonotone(d);else for(e=0,i=d.length;e<i;++e)a=d[e],o=a._model,r=n.splineCurve(n.previousItem(d,e)._model,o,n.nextItem(d,e)._model,s.dataset._model.tension),o.controlPointPreviousX=r.previous.x,o.controlPointPreviousY=r.previous.y,o.controlPointNextX=r.next.x,o.controlPointNextY=r.next.y;if(l.chart.options.elements.line.capBezierPoints)for(e=0,i=d.length;e<i;++e)o=d[e]._model,o.controlPointPreviousX=t(o.controlPointPreviousX,u.left,u.right),o.controlPointPreviousY=t(o.controlPointPreviousY,u.top,u.bottom),o.controlPointNextX=t(o.controlPointNextX,u.left,u.right),o.controlPointNextY=t(o.controlPointNextY,u.top,u.bottom)},draw:function(){var n=this,i=n.chart,a=n.getMeta(),o=a.data||[],r=i.chartArea,l=o.length,s=0;for(t.canvasHelpers.clipArea(i.ctx,r),e(n.getDataset(),i.options)&&a.dataset.draw(),t.canvasHelpers.unclipArea(i.ctx);s<l;++s)o[s].draw(r)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;o.radius=a.hoverRadius||n.getValueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=a.hoverBackgroundColor||n.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,i,n.getHoverColor(o.backgroundColor)),o.borderColor=a.hoverBorderColor||n.getValueAtIndexOrDefault(e.pointHoverBorderColor,i,n.getHoverColor(o.borderColor)),o.borderWidth=a.hoverBorderWidth||n.getValueAtIndexOrDefault(e.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this,i=e.chart.data.datasets[t._datasetIndex],a=t._index,o=t.custom||{},r=t._model;void 0!==i.radius&&void 0===i.pointRadius&&(i.pointRadius=i.radius),r.radius=o.radius||n.getValueAtIndexOrDefault(i.pointRadius,a,e.chart.options.elements.point.radius),r.backgroundColor=e.getPointBackgroundColor(t,a),r.borderColor=e.getPointBorderColor(t,a),r.borderWidth=e.getPointBorderWidth(t,a)}})}},{}],19:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),a[o]&&e.push(a[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],l=o.data[a],s=l.custom||{},u=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:u(r.backgroundColor,a,d.backgroundColor),h=s.borderColor?s.borderColor:u(r.borderColor,a,d.borderColor),f=s.borderWidth?s.borderWidth:u(r.borderWidth,a,d.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)a=r.getDatasetMeta(n),a.data[o].hidden=!a.data[o].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var n=this,i=n.chart,a=i.chartArea,o=n.getMeta(),r=i.options,l=r.elements.arc,s=Math.min(a.right-a.left,a.bottom-a.top);i.outerRadius=Math.max((s-l.borderWidth/2)/2,0),i.innerRadius=Math.max(r.cutoutPercentage?i.outerRadius/100*r.cutoutPercentage:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),n.outerRadius=i.outerRadius-i.radiusLength*n.index,n.innerRadius=n.outerRadius-i.radiusLength,o.count=n.countVisibleElements(),e.each(o.data,function(e,i){n.updateElement(e,i,t)})},updateElement:function(t,n,i){for(var a=this,o=a.chart,r=a.getDataset(),l=o.options,s=l.animation,u=o.scale,d=e.getValueAtIndexOrDefault,c=o.data.labels,h=a.calculateCircumference(r.data[n]),f=u.xCenter,g=u.yCenter,p=0,m=a.getMeta(),v=0;v<n;++v)isNaN(r.data[v])||m.data[v].hidden||++p;var b=l.startAngle,x=t.hidden?0:u.getDistanceFromCenterForValue(r.data[n]),y=b+h*p,k=y+(t.hidden?0:h),w=s.animateScale?0:u.getDistanceFromCenterForValue(r.data[n]);e.extend(t,{_datasetIndex:a.index,_index:n,_scale:u,_model:{x:f,y:g,innerRadius:0,outerRadius:i?w:x,startAngle:i&&s.animateRotate?b:y,endAngle:i&&s.animateRotate?b:k,label:d(c,n,c[n])}}),a.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),n=this.getMeta(),i=0;return e.each(n.data,function(e,n){isNaN(t.data[n])||e.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,i=n.getMeta(),a=i.dataset,o=i.data,r=a.custom||{},l=n.getDataset(),s=n.chart.options.elements.line,u=n.chart.scale;void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),e.extend(i.dataset,{_datasetIndex:n.index,_scale:u,_children:o,_loop:!0,_model:{tension:r.tension?r.tension:e.getValueOrDefault(l.lineTension,s.tension),backgroundColor:r.backgroundColor?r.backgroundColor:l.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:l.borderWidth||s.borderWidth,borderColor:r.borderColor?r.borderColor:l.borderColor||s.borderColor,fill:r.fill?r.fill:void 0!==l.fill?l.fill:s.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:l.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash?r.borderDash:l.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:l.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:l.borderJoinStyle||s.borderJoinStyle}}),i.dataset.pivot(),e.each(o,function(e,i){n.updateElement(e,i,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,i){var a=this,o=t.custom||{},r=a.getDataset(),l=a.chart.scale,s=a.chart.options.elements.point,u=l.getPointPositionForValue(n,r.data[n]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),e.extend(t,{_datasetIndex:a.index,_index:n,_scale:l,_model:{x:i?l.xCenter:u.x,y:i?l.yCenter:u.y,tension:o.tension?o.tension:e.getValueOrDefault(r.lineTension,a.chart.options.elements.line.tension),radius:o.radius?o.radius:e.getValueAtIndexOrDefault(r.pointRadius,n,s.radius),backgroundColor:o.backgroundColor?o.backgroundColor:e.getValueAtIndexOrDefault(r.pointBackgroundColor,n,s.backgroundColor),borderColor:o.borderColor?o.borderColor:e.getValueAtIndexOrDefault(r.pointBorderColor,n,s.borderColor),borderWidth:o.borderWidth?o.borderWidth:e.getValueAtIndexOrDefault(r.pointBorderWidth,n,s.borderWidth),pointStyle:o.pointStyle?o.pointStyle:e.getValueAtIndexOrDefault(r.pointStyle,n,s.pointStyle),hitRadius:o.hitRadius?o.hitRadius:e.getValueAtIndexOrDefault(r.pointHitRadius,n,s.hitRadius)}}),t._model.skip=o.skip?o.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(i,a){var o=i._model,r=e.splineCurve(e.previousItem(n.data,a,!0)._model,o,e.nextItem(n.data,a,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),i.pivot()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model;o.radius=i.hoverRadius?i.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,a,e.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,a,e.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,a,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model,r=this.chart.options.elements.point;o.radius=i.radius?i.radius:e.getValueAtIndexOrDefault(n.pointRadius,a,r.radius),o.backgroundColor=i.backgroundColor?i.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,a,r.backgroundColor),o.borderColor=i.borderColor?i.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,a,r.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,a,r.borderWidth)}})}},{}],21:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,o,r=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,o=r.length;a<o;++a)if(r[a].chart===t)return void(r[a]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var n=e.findIndex(this.animations,function(e){return e.chart===t});n!==-1&&(this.animations.splice(n,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;t.dropFrames>1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var n,i,a=this.animations,o=0;o<a.length;)n=a[o],i=n.chart,n.currentStep=(n.currentStep||0)+t,n.currentStep=Math.min(n.currentStep,n.numSteps),e.callback(n.render,[i,n],i),e.callback(n.onAnimationProgress,[n],i),n.currentStep>=n.numSteps?(e.callback(n.onAnimationComplete,[n],i),i.animating=!1,a.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{}],22:[function(t,e,n){"use strict";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(e,n,i,a,o){var r,l,s,u,d,c;if("object"==typeof n&&(r=n.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return void e.drawImage(n,a-n.width/2,o-n.height/2,n.width,n.height);if(!(isNaN(i)||i<=0)){switch(n){default:e.beginPath(),e.arc(a,o,i,0,2*Math.PI),e.closePath(),e.fill();break;case"triangle":e.beginPath(),l=3*i/Math.sqrt(3),d=l*Math.sqrt(3)/2,e.moveTo(a-l/2,o+d/3),e.lineTo(a+l/2,o+d/3),e.lineTo(a,o-2*d/3),e.closePath(),e.fill();break;case"rect":c=1/Math.SQRT2*i,e.beginPath(),e.fillRect(a-c,o-c,2*c,2*c),e.strokeRect(a-c,o-c,2*c,2*c);break;case"rectRounded":var h=i/Math.SQRT2,f=a-h,g=o-h,p=Math.SQRT2*i;t.helpers.drawRoundedRectangle(e,f,g,p,p,i/2),e.fill();break;case"rectRot":c=1/Math.SQRT2*i,e.beginPath(),e.moveTo(a-c,o),e.lineTo(a,o+c),e.lineTo(a+c,o),e.lineTo(a,o-c),e.closePath(),e.fill();break;case"cross":e.beginPath(),e.moveTo(a,o+i),e.lineTo(a,o-i),e.moveTo(a-i,o),e.lineTo(a+i,o),e.closePath();break;case"crossRot":e.beginPath(),s=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,e.moveTo(a-s,o-u),e.lineTo(a+s,o+u),e.moveTo(a-s,o+u),e.lineTo(a+s,o-u),e.closePath();break;case"star":e.beginPath(),e.moveTo(a,o+i),e.lineTo(a,o-i),e.moveTo(a-i,o),e.lineTo(a+i,o),s=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,e.moveTo(a-s,o-u),e.lineTo(a+s,o+u),e.moveTo(a-s,o+u),e.lineTo(a+s,o-u),e.closePath();break;case"line":e.beginPath(),e.moveTo(a-i,o),e.lineTo(a+i,o),e.closePath();break;case"dash":e.beginPath(),e.moveTo(a,o),e.lineTo(a+i,o),e.closePath()}e.stroke()}},e.clipArea=function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},e.unclipArea=function(t){t.restore()},e.lineTo=function(t,e,n,i){return n.steppedLine?("after"===n.steppedLine?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)},t.helpers.canvas=e}},{}],23:[function(t,e,n){"use strict";e.exports=function(t){function e(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=a.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function i(t){return"top"===t||"bottom"===t}var a=t.helpers,o=t.plugins,r=t.platform;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,i){var o=this;i=e(i);var l=r.acquireContext(n,i),s=l&&l.canvas,u=s&&s.height,d=s&&s.width;return o.id=a.uid(),o.ctx=l,o.canvas=s,o.config=i,o.width=d,o.height=u,o.aspectRatio=u?d/u:null,o.options=i.options,o._bufferedRender=!1,o.chart=o,o.controller=o,t.instances[o.id]=o,Object.defineProperty(o,"data",{get:function(){return o.config.data},set:function(t){o.config.data=t}}),l&&s?(o.initialize(),void o.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return o.notify(t,"beforeInit"),a.retinaScale(t),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),o.notify(t,"afterInit"),t},clear:function(){return a.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,l=Math.floor(a.getMaximumWidth(i)),s=Math.floor(r?l/r:a.getMaximumHeight(i));if((e.width!==l||e.height!==s)&&(i.width=e.width=l,i.height=e.height=s,i.style.width=l+"px",i.style.height=s+"px",a.retinaScale(e),!t)){var u={width:l,height:s};o.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),a.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,o=e.scales={},r=[];n.scales&&(r=r.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),n.scale&&r.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,function(n){var r=n.options,l=a.getValueOrDefault(r.type,n.dtype),s=t.scaleService.getScaleConstructor(l);if(s){i(r.position)!==i(n.dposition)&&(r.position=n.dposition);var u=new s({id:r.id,options:r,ctx:e.ctx,chart:e});o[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];if(a.each(e.data.datasets,function(a,o){var r=e.getDatasetMeta(o);if(r.type||(r.type=a.type||e.config.type),n.push(r.type),r.controller)r.controller.updateIndex(o);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,o),i.push(r.controller)}},e),n.length>1)for(var o=1;o<n.length;o++)if(n[o]!==n[o-1]){e.isCombo=!0;break}return i},resetElements:function(){var t=this;a.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t,e){var i=this;if(n(i),o.notify(i,"beforeUpdate")!==!1){i.tooltip._data=i.data;var r=i.buildOrUpdateControllers();a.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),a.each(r,function(t){t.reset()}),i.updateDatasets(),o.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={lazy:e,duration:t}:i.render(t,e)}},updateLayout:function(){var e=this;o.notify(e,"beforeLayout")!==!1&&(t.layoutService.update(this,this.width,this.height),o.notify(e,"afterScaleUpdate"),o.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(o.notify(t,"beforeDatasetsUpdate")!==!1){for(var e=0,n=t.data.datasets.length;e<n;++e)t.updateDataset(e);o.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,n=e.getDatasetMeta(t),i={meta:n,index:t};o.notify(e,"beforeDatasetUpdate",[i])!==!1&&(n.controller.update(),o.notify(e,"afterDatasetUpdate",[i]))},render:function(e,n){var i=this;if(o.notify(i,"beforeRender")!==!1){var r=i.options.animation,l=function(t){o.notify(i,"afterRender"),a.callback(r&&r.onComplete,[t],i)};if(r&&("undefined"!=typeof e&&0!==e||"undefined"==typeof e&&0!==r.duration)){var s=new t.Animation({numSteps:(e||r.duration)/16.66,easing:r.easing,render:function(t,e){var n=a.easingEffects[e.easing],i=e.currentStep,o=i/e.numSteps;t.draw(n(o),o,i)},onAnimationProgress:r.onProgress,onAnimationComplete:l});t.animationService.addAnimation(i,s,e,n)}else i.draw(),l(new t.Animation({numSteps:0,chart:i}));return i}},draw:function(t){var e=this;e.clear(),void 0!==t&&null!==t||(t=1),e.transition(t),o.notify(e,"beforeDraw",[t])!==!1&&(a.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e.tooltip.draw(),o.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=this,n=0,i=(e.data.datasets||[]).length;n<i;++n)e.isDatasetVisible(n)&&e.getDatasetMeta(n).controller.transition(t);e.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(o.notify(e,"beforeDatasetsDraw",[t])!==!1){for(var n=(e.data.datasets||[]).length-1;n>=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);o.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),a={meta:i,index:t,easingValue:e};o.notify(n,"beforeDatasetDraw",[a])!==!1&&(i.controller.draw(e),o.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(e){return t.Interaction.modes.single(this,e)},getElementsAtEvent:function(e){return t.Interaction.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return t.Interaction.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,n,i){var a=t.Interaction.modes[n];return"function"==typeof a?a(this,e,i):[]},getDatasetAtEvent:function(e){return t.Interaction.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var e,n,i,l=this,s=l.canvas;for(l.stop(),n=0,i=l.data.datasets.length;n<i;++n)e=l.getDatasetMeta(n),e.controller&&(e.controller.destroy(),e.controller=null);s&&(l.unbindEvents(),a.clear(l),r.releaseContext(l.ctx),l.canvas=null,l.ctx=null),o.notify(l,"destroy"),delete t.instances[l.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e),e.tooltip.initialize()},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};a.each(t.options.events,function(i){r.addEventListener(t,i,n),e[i]=n}),t.options.responsive&&(n=function(){t.resize()},r.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,a.each(e,function(e,n){r.removeEventListener(t,n,e)}))},updateHoverStyle:function(t,e,n){var i,a,o,r=n?"setHoverStyle":"removeHoverStyle";for(a=0,o=t.length;a<o;++a)i=t[a],i&&this.getDatasetMeta(i._datasetIndex).controller[r](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(o.notify(e,"beforeEvent",[t])!==!1){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);i|=n&&n.handleEvent(t),o.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a.duration,a.lazy):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,n=e.options||{},i=n.hover,o=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,i.mode,i),i.onHover&&i.onHover.call(e,t.native,e.active),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),o=!a.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,o}}),t.Controller=t}},{}],24:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){return t._chartjs?void t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),void a.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),a=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),o=a.apply(this,e);return i.each(t._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),o}})}))}function n(t,e){var n=t._chartjs;if(n){var i=n.listeners,o=i.indexOf(e);
12
+ o!==-1&&i.splice(o,1),i.length>0||(a.forEach(function(e){delete t[e]}),delete t._chartjs)}}var i=t.helpers,a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),a=n.getDataset().data||[],o=i.data;for(t=0,e=a.length;t<e;++t)o[t]=o[t]||n.createMetaData(t);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,i=t.getDataset(),a=i.data||(i.data=[]);t._data!==a&&(t._data&&n(t._data,t),e(a,t),t._data=a),t.resyncElements()},update:i.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],a=t._index,o=t.custom||{},r=i.getValueAtIndexOrDefault,l=t._model;l.backgroundColor=o.backgroundColor?o.backgroundColor:r(n.backgroundColor,a,e.backgroundColor),l.borderColor=o.borderColor?o.borderColor:r(n.borderColor,a,e.borderColor),l.borderWidth=o.borderWidth?o.borderWidth:r(n.borderWidth,a,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,a=t.custom||{},o=i.getValueAtIndexOrDefault,r=i.getHoverColor,l=t._model;l.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:o(e.hoverBackgroundColor,n,r(l.backgroundColor)),l.borderColor=a.hoverBorderColor?a.hoverBorderColor:o(e.hoverBorderColor,n,r(l.borderColor)),l.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:o(e.hoverBorderWidth,n,l.borderWidth)},resyncElements:function(){var t=this,e=t.getMeta(),n=t.getDataset().data,i=e.data.length,a=n.length;a<i?e.data.splice(a,i-a):a>i&&t.insertElements(i,a-i)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=i.inherits}},{}],25:[function(t,e,n){"use strict";var i=t(3);e.exports=function(t){function e(t,e,n,a){var o,r,l,s,u,d,c,h,f,g=Object.keys(n);for(o=0,r=g.length;o<r;++o)if(l=g[o],d=n[l],e.hasOwnProperty(l)||(e[l]=d),s=e[l],s!==d&&"_"!==l[0]){if(t.hasOwnProperty(l)||(t[l]=s),u=t[l],c=typeof d,c===typeof u)if("string"===c){if(h=i(u),h.valid&&(f=i(d),f.valid)){e[l]=f.mix(h,a).rgbString();continue}}else if("number"===c&&isFinite(u)&&isFinite(d)){e[l]=u+(d-u)*a;continue}e[l]=d}}var n=t.helpers;t.elements={},t.Element=function(t){n.extend(this,t),this.initialize.apply(this,arguments)},n.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=n.clone(t._model)),t._start={},t},transition:function(t){var n=this,i=n._model,a=n._start,o=n._view;return i&&1!==t?(o||(o=n._view={}),a||(a=n._start={}),e(a,o,i,t),n):(n._view=i,n._start=null,n)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return n.isNumber(this._model.x)&&n.isNumber(this._model.y)}}),t.Element.extend=n.inherits}},{3:3}],26:[function(t,e,n){"use strict";var i=t(3);e.exports=function(t){function e(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}function n(t){return void 0!==t&&null!==t&&"none"!==t}function a(t,i,a){var o=document.defaultView,r=t.parentNode,l=o.getComputedStyle(t)[i],s=o.getComputedStyle(r)[i],u=n(l),d=n(s),c=Number.POSITIVE_INFINITY;return u||d?Math.min(u?e(l,t,a):c,d?e(s,r,a):c):"none"}var o=t.helpers={};o.each=function(t,e,n,i){var a,r;if(o.isArray(t))if(r=t.length,i)for(a=r-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if("object"==typeof t){var l=Object.keys(t);for(r=l.length,a=0;a<r;a++)e.call(n,t[l[a]],l[a])}},o.clone=function(t){var e={};return o.each(t,function(t,n){o.isArray(t)?e[n]=t.slice(0):"object"==typeof t&&null!==t?e[n]=o.clone(t):e[n]=t}),e},o.extend=function(t){for(var e=function(e,n){t[n]=e},n=1,i=arguments.length;n<i;n++)o.each(arguments[n],e);return t},o.configMerge=function(e){var n=o.clone(e);return o.each(Array.prototype.slice.call(arguments,1),function(e){o.each(e,function(e,i){var a=n.hasOwnProperty(i),r=a?n[i]:{};"scales"===i?n[i]=o.scaleMerge(r,e):"scale"===i?n[i]=o.configMerge(r,t.scaleService.getScaleDefaults(e.type),e):!a||"object"!=typeof r||o.isArray(r)||null===r||"object"!=typeof e||o.isArray(e)?n[i]=e:n[i]=o.configMerge(r,e)})}),n},o.scaleMerge=function(e,n){var i=o.clone(e);return o.each(n,function(e,n){"xAxes"===n||"yAxes"===n?i.hasOwnProperty(n)?o.each(e,function(e,a){var r=o.getValueOrDefault(e.type,"xAxes"===n?"category":"linear"),l=t.scaleService.getScaleDefaults(r);a>=i[n].length||!i[n][a].type?i[n].push(o.configMerge(l,e)):e.type&&e.type!==i[n][a].type?i[n][a]=o.configMerge(i[n][a],l,e):i[n][a]=o.configMerge(i[n][a],e)}):(i[n]=[],o.each(e,function(e){var a=o.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");i[n].push(o.configMerge(t.scaleService.getScaleDefaults(a),e))})):i.hasOwnProperty(n)&&"object"==typeof i[n]&&null!==i[n]&&"object"==typeof e?i[n]=o.configMerge(i[n],e):i[n]=e}),i},o.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:o.isArray(t)?e<t.length?t[e]:n:t},o.getValueOrDefault=function(t,e){return void 0===t?e:t},o.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n=0,i=t.length;n<i;++n)if(t[n]===e)return n;return-1},o.where=function(t,e){if(o.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return o.each(t,function(t){e(t)&&n.push(t)}),n},o.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},o.findNextWhere=function(t,e,n){void 0!==n&&null!==n||(n=-1);for(var i=n+1;i<t.length;i++){var a=t[i];if(e(a))return a}},o.findPreviousWhere=function(t,e,n){void 0!==n&&null!==n||(n=t.length);for(var i=n-1;i>=0;i--){var a=t[i];if(e(a))return a}},o.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=o.inherits,t&&o.extend(n.prototype,t),n.__super__=e.prototype,n},o.noop=function(){},o.uid=function(){var t=0;return function(){return t++}}(),o.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o.almostEquals=function(t,e,n){return Math.abs(t-e)<n},o.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&n+e>t},o.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},o.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},o.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},o.toRadians=function(t){return t*(Math.PI/180)},o.toDegrees=function(t){return t*(180/Math.PI)},o.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},o.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o.aliasPixel=function(t){return t%2===0?0:.5},o.splineCurve=function(t,e,n,i){var a=t.skip?e:t,o=e,r=n.skip?e:n,l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),u=l/(l+s),d=s/(l+s);u=isNaN(u)?0:u,d=isNaN(d)?0:d;var c=i*u,h=i*d;return{previous:{x:o.x-c*(r.x-a.x),y:o.y-c*(r.y-a.y)},next:{x:o.x+h*(r.x-a.x),y:o.y+h*(r.y-a.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(t){var e,n,i,a,r=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),l=r.length;for(e=0;e<l;++e)if(i=r[e],!i.model.skip){if(n=e>0?r[e-1]:null,a=e<l-1?r[e+1]:null,a&&!a.model.skip){var s=a.model.x-i.model.x;i.deltaK=0!==s?(a.model.y-i.model.y)/s:0}!n||n.model.skip?i.mK=i.deltaK:!a||a.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}var u,d,c,h;for(e=0;e<l-1;++e)i=r[e],a=r[e+1],i.model.skip||a.model.skip||(o.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=a.mK=0:(u=i.mK/i.deltaK,d=a.mK/i.deltaK,h=Math.pow(u,2)+Math.pow(d,2),h<=9||(c=3/Math.sqrt(h),i.mK=u*c*i.deltaK,a.mK=d*c*i.deltaK)));var f;for(e=0;e<l;++e)i=r[e],i.model.skip||(n=e>0?r[e-1]:null,a=e<l-1?r[e+1]:null,n&&!n.model.skip&&(f=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-f,i.model.controlPointPreviousY=i.model.y-f*i.mK),a&&!a.model.skip&&(f=(a.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+f,i.model.controlPointNextY=i.model.y+f*i.mK))},o.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},o.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},o.niceNum=function(t,e){var n,i=Math.floor(o.log10(t)),a=t/Math.pow(10,i);return n=e?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10,n*Math.pow(10,i)};var r=o.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2===(t/=.5)?1:(n||(n=1*(.3*1.5)),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};o.requestAnimFrame=function(){return"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),o.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,l=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var u=parseFloat(o.getStyle(r,"padding-left")),d=parseFloat(o.getStyle(r,"padding-top")),c=parseFloat(o.getStyle(r,"padding-right")),h=parseFloat(o.getStyle(r,"padding-bottom")),f=l.right-l.left-u-c,g=l.bottom-l.top-d-h;return n=Math.round((n-l.left-u)/f*r.width/e.currentDevicePixelRatio),i=Math.round((i-l.top-d)/g*r.height/e.currentDevicePixelRatio),{x:n,y:i}},o.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},o.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=o.noop},o.getConstraintWidth=function(t){return a(t,"max-width","clientWidth")},o.getConstraintHeight=function(t){return a(t,"max-height","clientHeight")},o.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(o.getStyle(e,"padding-left"),10),i=parseInt(o.getStyle(e,"padding-right"),10),a=e.clientWidth-n-i,r=o.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},o.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(o.getStyle(e,"padding-top"),10),i=parseInt(o.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-i,r=o.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},o.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},o.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,i=t.height,a=t.width;n.height=i*e,n.width=a*e,t.ctx.scale(e,e),n.style.height=i+"px",n.style.width=a+"px"}},o.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},o.fontString=function(t,e,n){return e+" "+t+"px "+n},o.longestText=function(t,e,n,i){i=i||{};var a=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var l=0;o.each(n,function(e){void 0!==e&&null!==e&&o.isArray(e)!==!0?l=o.measureText(t,a,r,l,e):o.isArray(e)&&o.each(e,function(e){void 0===e||null===e||o.isArray(e)||(l=o.measureText(t,a,r,l,e))})});var s=r.length/2;if(s>n.length){for(var u=0;u<s;u++)delete a[r[u]];r.splice(0,s)}return l},o.measureText=function(t,e,n,i,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,n.push(a)),o>i&&(i=o),i},o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t)&&t.length>e&&(e=t.length)}),e},o.drawRoundedRectangle=function(t,e,n,i,a,o){t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath()},o.color=i?function(e){return e instanceof CanvasGradient&&(e=t.defaults.global.defaultColor),i(e)}:function(t){return console.error("Color.js not found!"),t},o.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o.arrayEquals=function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!o.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},o.callback=function(t,e,n){t&&"function"==typeof t.call&&t.apply(n,e)},o.getHoverColor=function(t){return t instanceof CanvasPattern?t:o.color(t).saturate(.5).darken(.1).rgbString()},o.callCallback=o.callback}},{3:3}],27:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){return t.native?{x:t.x,y:t.y}:r.getRelativePosition(t,e)}function n(t,e){var n,i,a,o,r,l=t.data.datasets;for(i=0,o=l.length;i<o;++i)if(t.isDatasetVisible(i))for(n=t.getDatasetMeta(i),a=0,r=n.data.length;a<r;++a){var s=n.data[a];s._view.skip||e(s)}}function i(t,e){var i=[];return n(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function a(t,e,i,a){var o=Number.POSITIVE_INFINITY,l=[];return a||(a=r.distanceBetweenPoints),n(t,function(t){if(!i||t.inRange(e.x,e.y)){var n=t.getCenterPoint(),r=a(e,n);r<o?(l=[t],o=r):r===o&&l.push(t)}}),l}function o(t,n,o){var r=e(n,t),l=function(t,e){return Math.abs(t.x-e.x)},s=o.intersect?i(t,r):a(t,r,!1,l),u=[];return s.length?(t.data.datasets.forEach(function(e,n){if(t.isDatasetVisible(n)){var i=t.getDatasetMeta(n),a=i.data[s[0]._index];a&&!a._view.skip&&u.push(a)}}),u):[]}var r=t.helpers;t.Interaction={modes:{single:function(t,i){var a=e(i,t),o=[];return n(t,function(t){if(t.inRange(a.x,a.y))return o.push(t),o}),o.slice(0,1)},label:o,index:o,dataset:function(t,n,o){var r=e(n,t),l=o.intersect?i(t,r):a(t,r,!1);return l.length>0&&(l=t.getDatasetMeta(l[0]._datasetIndex).data),l},"x-axis":function(t,e){return o(t,e,!0)},point:function(t,n){var a=e(n,t);return i(t,a)},nearest:function(t,n,i){var o=e(n,t),r=a(t,o,i.intersect);return r.length>1&&r.sort(function(t,e){var n=t.getArea(),i=e.getArea(),a=n-i;return 0===a&&(a=t._datasetIndex-e._datasetIndex),a}),r.slice(0,1)},x:function(t,i,a){var o=e(i,t),r=[],l=!1;return n(t,function(t){t.inXRange(o.x)&&r.push(t),t.inRange(o.x,o.y)&&(l=!0)}),a.intersect&&!l&&(r=[]),r},y:function(t,i,a){var o=e(i,t),r=[],l=!1;return n(t,function(t){t.inYRange(o.y)&&r.push(t),t.inRange(o.x,o.y)&&(l=!0)}),a.intersect&&!l&&(r=[]),r}}}}},{}],28:[function(t,e,n){"use strict";e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},t.Chart=t,t}},{}],29:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i._tmpIndex_-a._tmpIndex_:i.weight-a.weight}),t.forEach(function(t){delete t._tmpIndex_})}var i=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],o=a.length,r=0;r<o;++r)i=a[r],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(t,a,o){function r(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?k:I,D),A-=e.height):(e=t.update(C,S),I-=e.width),P.push({horizontal:n,minSize:e,box:t})}function l(t){var e=i.findNextWhere(P,function(e){return e.box===t});if(e)if(t.isHorizontal()){var n={left:Math.max(L,_),right:Math.max(V,T),top:0,bottom:0};t.update(t.fullWidth?k:I,w/2,n)}else t.update(e.minSize.width,A)}function s(t){var e=i.findNextWhere(P,function(e){return e.box===t}),n={left:0,right:0,top:O,bottom:z};e&&t.update(e.minSize.width,A,n)}function u(t){t.isHorizontal()?(t.left=t.fullWidth?h:L,t.right=t.fullWidth?a-f:L+I,t.top=q,t.bottom=q+t.height,q=t.bottom):(t.left=H,t.right=H+t.width,t.top=O,t.bottom=O+A,H=t.right)}if(t){var d=t.options.layout,c=d?d.padding:null,h=0,f=0,g=0,p=0;isNaN(c)?(h=c.left||0,f=c.right||0,g=c.top||0,p=c.bottom||0):(h=c,f=c,g=c,p=c);var m=e(t.boxes,"left"),v=e(t.boxes,"right"),b=e(t.boxes,"top"),x=e(t.boxes,"bottom"),y=e(t.boxes,"chartArea");n(m,!0),n(v,!1),n(b,!0),n(x,!1);var k=a-h-f,w=o-g-p,M=k/2,S=w/2,C=(a-M)/(m.length+v.length),D=(o-S)/(b.length+x.length),I=k,A=w,P=[];i.each(m.concat(v,b,x),r);var _=0,T=0,F=0,R=0;i.each(b.concat(x),function(t){if(t.getPadding){var e=t.getPadding();_=Math.max(_,e.left),T=Math.max(T,e.right)}}),i.each(m.concat(v),function(t){if(t.getPadding){var e=t.getPadding();F=Math.max(F,e.top),R=Math.max(R,e.bottom)}});var L=h,V=f,O=g,z=p;i.each(m.concat(v),l),i.each(m,function(t){L+=t.width}),i.each(v,function(t){V+=t.width}),i.each(b.concat(x),l),i.each(b,function(t){O+=t.height}),i.each(x,function(t){z+=t.height}),i.each(m.concat(v),s),L=h,V=f,O=g,z=p,i.each(m,function(t){L+=t.width}),i.each(v,function(t){V+=t.width}),i.each(b,function(t){O+=t.height}),i.each(x,function(t){z+=t.height});var B=Math.max(_-L,0);L+=B,V+=Math.max(T-V,0);var W=Math.max(F-O,0);O+=W,z+=Math.max(R-z,0);var N=o-O-z,E=a-L-V;E===I&&N===A||(i.each(m,function(t){t.height=N}),i.each(v,function(t){t.height=N}),i.each(b,function(t){t.fullWidth||(t.width=E)}),i.each(x,function(t){t.fullWidth||(t.width=E)}),A=N,I=E);var H=h+B,q=g+W;i.each(m.concat(b),u),H+=I,q+=A,i.each(v,u),i.each(x,u),t.chartArea={left:L,top:O,right:L+I,bottom:O+A},i.each(y,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(I,A)})}}}}},{}],30:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.plugins={},t.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){e.indexOf(t)===-1&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,a,o,r,l,s=this.descriptors(t),u=s.length;for(i=0;i<u;++i)if(a=s[i],o=a.plugin,l=o[e],"function"==typeof l&&(r=[t].concat(n||[]),r.push(a.options),l.apply(o,r)===!1))return!1;return!0},descriptors:function(n){var i=n._plugins||(n._plugins={});if(i.id===this._cacheId)return i.descriptors;var a=[],o=[],r=n&&n.config||{},l=t.defaults.global.plugins,s=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach(function(t){var n=a.indexOf(t);if(n===-1){var i=t.id,r=s[i];r!==!1&&(r===!0&&(r=e.clone(l[i])),a.push(t),o.push({plugin:t,options:r||{}}))}}),i.descriptors=o,i.id=this._cacheId,o}},t.pluginService=t.plugins,t.PluginBase=t.Element.extend({})}},{}],31:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e,n){return i.isArray(e)?i.longestText(t,n,e):t.measureText(e).width}function n(e){var n=i.getValueOrDefault,a=t.defaults.global,o=n(e.fontSize,a.defaultFontSize),r=n(e.fontStyle,a.defaultFontStyle),l=n(e.fontFamily,a.defaultFontFamily);return{size:o,style:r,family:l,font:i.fontString(o,r,l)}}var i=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.Ticks.formatters.values}},t.Scale=t.Element.extend({getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},beforeUpdate:function(){i.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=i.extend({left:0,right:0,top:0,bottom:0},n),a.longestTextCache=a.longestTextCache||{},a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),a.buildTicks(),a.afterBuildTicks(),a.beforeTickToLabelConversion(),a.convertTicksToLabels(),a.afterTickToLabelConversion(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:function(){i.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){i.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){i.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){i.callback(this.options.beforeDataLimits,[this])},determineDataLimits:i.noop,afterDataLimits:function(){i.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){i.callback(this.options.beforeBuildTicks,[this])},buildTicks:i.noop,afterBuildTicks:function(){i.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){i.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback)},afterTickToLabelConversion:function(){i.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){i.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,a=t.options.ticks,o=n(a);e.font=o.font;var r=a.minRotation||0;if(t.options.display&&t.isHorizontal())for(var l,s,u=i.longestText(e,o.font,t.ticks,t.longestTextCache),d=u,c=t.getPixelForTick(1)-t.getPixelForTick(0)-6;d>c&&r<a.maxRotation;){var h=i.toRadians(r);if(l=Math.cos(h),s=Math.sin(h),s*u>t.maxHeight){r--;break}r++,d=l*u}t.labelRotation=r},afterCalculateTickRotation:function(){i.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){i.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},o=t.options,r=o.ticks,l=o.scaleLabel,s=o.gridLines,u=o.display,d=t.isHorizontal(),c=n(r),h=1.5*n(l).size,f=o.gridLines.tickMarkLength;if(d?a.width=t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:a.width=u&&s.drawTicks?f:0,d?a.height=u&&s.drawTicks?f:0:a.height=t.maxHeight,l.display&&u&&(d?a.height+=h:a.width+=h),r.display&&u){var g=i.longestText(t.ctx,c.font,t.ticks,t.longestTextCache),p=i.numberOfLabelLines(t.ticks),m=.5*c.size;if(d){t.longestLabelWidth=g;var v=i.toRadians(t.labelRotation),b=Math.cos(v),x=Math.sin(v),y=x*g+c.size*p+m*p;a.height=Math.min(t.maxHeight,a.height+y),t.ctx.font=c.font;var k=t.ticks[0],w=e(t.ctx,k,c.font),M=t.ticks[t.ticks.length-1],S=e(t.ctx,M,c.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?b*w+3:b*m+3,t.paddingRight="bottom"===o.position?b*m+3:b*S+3):(t.paddingLeft=w/2+3,t.paddingRight=S/2+3)}else r.mirror?g=0:g+=t.options.ticks.padding,a.width=Math.min(t.maxWidth,a.width+g),t.paddingTop=c.size/2,t.paddingBottom=c.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){i.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"!=typeof t||isFinite(t)?"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t:NaN},getLabelForIndex:i.noop,getPixelForValue:i.noop,getValueForPixel:i.noop,getPixelForTick:function(t,e){var n=this;if(n.isHorizontal()){var i=n.width-(n.paddingLeft+n.paddingRight),a=i/Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),o=a*t+n.paddingLeft;e&&(o+=a/2);var r=n.left+Math.round(o);return r+=n.isFullWidth()?n.margins.left:0}var l=n.height-(n.paddingTop+n.paddingBottom);return n.top+t*(l/(n.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,a=e.left+Math.round(i);return a+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},draw:function(e){var a=this,o=a.options;if(o.display){var r,l,s=a.ctx,u=t.defaults.global,d=o.ticks,c=o.gridLines,h=o.scaleLabel,f=0!==a.labelRotation,g=d.autoSkip,p=a.isHorizontal();d.maxTicksLimit&&(l=d.maxTicksLimit);var m=i.getValueOrDefault(d.fontColor,u.defaultFontColor),v=n(d),b=c.drawTicks?c.tickMarkLength:0,x=i.getValueOrDefault(h.fontColor,u.defaultFontColor),y=n(h),k=i.toRadians(a.labelRotation),w=Math.cos(k),M=a.longestLabelWidth*w;s.fillStyle=m;var S=[];if(p){if(r=!1,(M+d.autoSkipPadding)*a.ticks.length>a.width-(a.paddingLeft+a.paddingRight)&&(r=1+Math.floor((M+d.autoSkipPadding)*a.ticks.length/(a.width-(a.paddingLeft+a.paddingRight)))),l&&a.ticks.length>l)for(;!r||a.ticks.length/(r||1)>l;)r||(r=1),r+=1;g||(r=!1)}var C="right"===o.position?a.left:a.right-b,D="right"===o.position?a.left+b:a.right,I="bottom"===o.position?a.top:a.bottom-b,A="bottom"===o.position?a.top+b:a.bottom;if(i.each(a.ticks,function(t,n){if(void 0!==t&&null!==t){var l=a.ticks.length===n+1,s=r>1&&n%r>0||n%r===0&&n+r>=a.ticks.length;if((!s||l)&&void 0!==t&&null!==t){var h,g,m,v;n===("undefined"!=typeof a.zeroLineIndex?a.zeroLineIndex:0)?(h=c.zeroLineWidth,g=c.zeroLineColor,m=c.zeroLineBorderDash,v=c.zeroLineBorderDashOffset):(h=i.getValueAtIndexOrDefault(c.lineWidth,n),g=i.getValueAtIndexOrDefault(c.color,n),m=i.getValueOrDefault(c.borderDash,u.borderDash),v=i.getValueOrDefault(c.borderDashOffset,u.borderDashOffset));var x,y,w,M,P,_,T,F,R,L,V="middle",O="middle";if(p){"bottom"===o.position?(O=f?"middle":"top",V=f?"right":"center",L=a.top+b):(O=f?"middle":"bottom",V=f?"left":"center",L=a.bottom-b);var z=a.getPixelForTick(n)+i.aliasPixel(h);R=a.getPixelForTick(n,c.offsetGridLines)+d.labelOffset,x=w=P=T=z,y=I,M=A,_=e.top,F=e.bottom}else{var B,W="left"===o.position,N=d.padding;d.mirror?(V=W?"left":"right",B=N):(V=W?"right":"left",
13
+ B=b+N),R=W?a.right-B:a.left+B;var E=a.getPixelForTick(n);E+=i.aliasPixel(h),L=a.getPixelForTick(n,c.offsetGridLines),x=C,w=D,P=e.left,T=e.right,y=M=_=F=E}S.push({tx1:x,ty1:y,tx2:w,ty2:M,x1:P,y1:_,x2:T,y2:F,labelX:R,labelY:L,glWidth:h,glColor:g,glBorderDash:m,glBorderDashOffset:v,rotation:-1*k,label:t,textBaseline:O,textAlign:V})}}}),i.each(S,function(t){if(c.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),c.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),c.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),d.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=v.font,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var e=t.label;if(i.isArray(e))for(var n=0,a=0;n<e.length;++n)s.fillText(""+e[n],0,a),a+=1.5*v.size;else s.fillText(e,0,0);s.restore()}}),h.display){var P,_,T=0;if(p)P=a.left+(a.right-a.left)/2,_="bottom"===o.position?a.bottom-y.size/2:a.top+y.size/2;else{var F="left"===o.position;P=F?a.left+y.size/2:a.right-y.size/2,_=a.top+(a.bottom-a.top)/2,T=F?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(P,_),s.rotate(T),s.textAlign="center",s.textBaseline="middle",s.fillStyle=x,s.font=y.font,s.fillText(h.labelString,0,0),s.restore()}if(c.drawBorder){s.lineWidth=i.getValueAtIndexOrDefault(c.lineWidth,0),s.strokeStyle=i.getValueAtIndexOrDefault(c.color,0);var R=a.left,L=a.right,V=a.top,O=a.bottom,z=i.aliasPixel(s.lineWidth);p?(V=O="top"===o.position?a.bottom:a.top,V+=z,O+=z):(R=L="left"===o.position?a.right:a.left,R+=z,L+=z),s.beginPath(),s.moveTo(R,V),s.lineTo(L,O),s.stroke()}}}})}},{}],32:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,n,i){this.constructors[t]=n,this.defaults[t]=e.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(n){return this.defaults.hasOwnProperty(n)?e.scaleMerge(t.defaults.scale,this.defaults[n]):{}},updateScaleDefaults:function(t,n){var i=this.defaults;i.hasOwnProperty(t)&&(i[t]=e.extend(i[t],n))},addScalesToLayout:function(n){e.each(n.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,t.layoutService.addBox(n,e)})}}}},{}],33:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.Ticks={generators:{linear:function(t,n){var i,a=[];if(t.stepSize&&t.stepSize>0)i=t.stepSize;else{var o=e.niceNum(n.max-n.min,!1);i=e.niceNum(o/(t.maxTicks-1),!0)}var r=Math.floor(n.min/i)*i,l=Math.ceil(n.max/i)*i;t.min&&t.max&&t.stepSize&&e.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,l=t.max);var s=(l-r)/i;s=e.almostEquals(s,Math.round(s),i/1e3)?Math.round(s):Math.ceil(s),a.push(void 0!==t.min?t.min:r);for(var u=1;u<s;++u)a.push(r+u*i);return a.push(void 0!==t.max?t.max:l),a},logarithmic:function(t,n){var i,a,o=[],r=e.getValueOrDefault,l=r(t.min,Math.pow(10,Math.floor(e.log10(n.min)))),s=Math.floor(e.log10(n.max)),u=Math.ceil(n.max/Math.pow(10,s));0===l?(i=Math.floor(e.log10(n.minNotZero)),a=Math.floor(n.minNotZero/Math.pow(10,i)),o.push(l),l=a*Math.pow(10,i)):(i=Math.floor(e.log10(l)),a=Math.floor(l/Math.pow(10,i)));do o.push(l),++a,10===a&&(a=1,++i),l=a*Math.pow(10,i);while(i<s||i===s&&a<u);var d=r(t.max,l);return o.push(d),o}},formatters:{values:function(t){return e.isArray(t)?t:""+t},linear:function(t,n,i){var a=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}else r="0";return r},logarithmic:function(t,n,i){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===n||n===i.length-1?t.toExponential():""}}}}},{}],34:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){var n=s.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(s.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function i(t){var e=t._xScale,n=t._yScale||t._scale,i=t._index,a=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(i,a):"",yLabel:n?n.getLabelForIndex(i,a):"",index:i,datasetIndex:a,x:t._model.x,y:t._model.y}}function a(e){var n=t.defaults.global,i=s.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:i(e.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:i(e.bodyFontStyle,n.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:i(e.bodyFontSize,n.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:i(e.titleFontFamily,n.defaultFontFamily),_titleFontStyle:i(e.titleFontStyle,n.defaultFontStyle),titleFontSize:i(e.titleFontSize,n.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:i(e.footerFontFamily,n.defaultFontFamily),_footerFontStyle:i(e.footerFontStyle,n.defaultFontStyle),footerFontSize:i(e.footerFontSize,n.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function o(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,d=e.titleFontSize,c=e.bodyFontSize,h=e.footerFontSize;i+=l*d,i+=l?(l-1)*e.titleSpacing:0,i+=l?e.titleMarginBottom:0,i+=r*c,i+=r?(r-1)*e.bodySpacing:0,i+=u?e.footerMarginTop:0,i+=u*h,i+=u?(u-1)*e.footerSpacing:0;var f=0,g=function(t){a=Math.max(a,n.measureText(t).width+f)};return n.font=s.fontString(d,e._titleFontStyle,e._titleFontFamily),s.each(e.title,g),n.font=s.fontString(c,e._bodyFontStyle,e._bodyFontFamily),s.each(e.beforeBody.concat(e.afterBody),g),f=e.displayColors?c+2:0,s.each(o,function(t){s.each(t.before,g),s.each(t.lines,g),s.each(t.after,g)}),f=0,n.font=s.fontString(h,e._footerFontStyle,e._footerFontFamily),s.each(e.footer,g),a+=2*e.xPadding,{width:a,height:i}}function r(t,e){var n=t._model,i=t._chart,a=t._chart.chartArea,o="center",r="center";n.y<e.height?r="top":n.y>i.height-e.height&&(r="bottom");var l,s,u,d,c,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(l=function(t){return t<=h},s=function(t){return t>h}):(l=function(t){return t<=e.width/2},s=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},d=function(t){return t-e.width<0},c=function(t){return t<=f?"top":"bottom"},l(n.x)?(o="left",u(n.x)&&(o="center",r=c(n.y))):s(n.x)&&(o="right",d(n.x)&&(o="center",r=c(n.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:o,yAlign:g.yAlign?g.yAlign:r}}function l(t,e,n){var i=t.x,a=t.y,o=t.caretSize,r=t.caretPadding,l=t.cornerRadius,s=n.xAlign,u=n.yAlign,d=o+r,c=l+r;return"right"===s?i-=e.width:"center"===s&&(i-=e.width/2),"top"===u?a+=d:a-="bottom"===u?e.height+d:e.height/2,"center"===u?"left"===s?i+=d:"right"===s&&(i-=d):"left"===s?i-=c:"right"===s&&(i+=c),{x:i,y:a}}var s=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:s.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var o=t[0];o.xLabel?n=o.xLabel:a>0&&o.index<a&&(n=i[o.index])}return n},afterTitle:s.noop,beforeBody:s.noop,beforeLabel:s.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),n+=t.yLabel},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex),i=n.data[t.index],a=i._view;return{borderColor:a.borderColor,backgroundColor:a.backgroundColor}},afterLabel:s.noop,afterBody:s.noop,beforeFooter:s.noop,footer:s.noop,afterFooter:s.noop}},t.Tooltip=t.Element.extend({initialize:function(){this._model=a(this._options)},getTitle:function(){var t=this,e=t._options,i=e.callbacks,a=i.beforeTitle.apply(t,arguments),o=i.title.apply(t,arguments),r=i.afterTitle.apply(t,arguments),l=[];return l=n(l,a),l=n(l,o),l=n(l,r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return s.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,a=i._options.callbacks,o=[];return s.each(t,function(t){var r={before:[],lines:[],after:[]};n(r.before,a.beforeLabel.call(i,t,e)),n(r.lines,a.label.call(i,t,e)),n(r.after,a.afterLabel.call(i,t,e)),o.push(r)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return s.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),a=e.footer.apply(t,arguments),o=e.afterFooter.apply(t,arguments),r=[];return r=n(r,i),r=n(r,a),r=n(r,o)},update:function(e){var n,u,d=this,c=d._options,h=d._model,f=d._model=a(c),g=d._active,p=d._data,m={xAlign:h.xAlign,yAlign:h.yAlign},v={x:h.x,y:h.y},b={width:h.width,height:h.height},x={x:h.caretX,y:h.caretY};if(g.length){f.opacity=1;var y=[];x=t.Tooltip.positioners[c.position](g,d._eventPosition);var k=[];for(n=0,u=g.length;n<u;++n)k.push(i(g[n]));c.filter&&(k=k.filter(function(t){return c.filter(t,p)})),c.itemSort&&(k=k.sort(function(t,e){return c.itemSort(t,e,p)})),s.each(k,function(t){y.push(c.callbacks.labelColor.call(d,t,d._chart))}),f.title=d.getTitle(k,p),f.beforeBody=d.getBeforeBody(k,p),f.body=d.getBody(k,p),f.afterBody=d.getAfterBody(k,p),f.footer=d.getFooter(k,p),f.x=Math.round(x.x),f.y=Math.round(x.y),f.caretPadding=c.caretPadding,f.labelColors=y,f.dataPoints=k,b=o(this,f),m=r(this,b),v=l(f,b,m)}else f.opacity=0;return f.xAlign=m.xAlign,f.yAlign=m.yAlign,f.x=v.x,f.y=v.y,f.width=b.width,f.height=b.height,f.caretX=x.x,f.caretY=x.y,d._model=f,e&&c.custom&&c.custom.call(d,f),d},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,o,r,l,s,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,h=n.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===h)l=g+m/2,"left"===c?(i=f,a=i-u,o=i,r=l+u,s=l-u):(i=f+p,a=i+u,o=i,r=l-u,s=l+u);else if("left"===c?(a=f+d+u,i=a-u,o=a+u):"right"===c?(a=f+p-d-u,i=a-u,o=a+u):(a=f+p/2,i=a-u,o=a+u),"top"===h)r=g,l=r-u,s=r;else{r=g+m,l=r+u,s=r;var v=o;o=i,i=v}return{x1:i,x2:a,x3:o,y1:r,y2:l,y3:s}},drawTitle:function(t,n,i,a){var o=n.title;if(o.length){i.textAlign=n._titleAlign,i.textBaseline="top";var r=n.titleFontSize,l=n.titleSpacing;i.fillStyle=e(n.titleFontColor,a),i.font=s.fontString(r,n._titleFontStyle,n._titleFontFamily);var u,d;for(u=0,d=o.length;u<d;++u)i.fillText(o[u],t.x,t.y),t.y+=r+l,u+1===o.length&&(t.y+=n.titleMarginBottom-l)}},drawBody:function(t,n,i,a){var o=n.bodyFontSize,r=n.bodySpacing,l=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top";var u=e(n.bodyFontColor,a);i.fillStyle=u,i.font=s.fontString(o,n._bodyFontStyle,n._bodyFontFamily);var d=0,c=function(e){i.fillText(e,t.x+d,t.y),t.y+=o+r};s.each(n.beforeBody,c);var h=n.displayColors;d=h?o+2:0,s.each(l,function(r,l){s.each(r.before,c),s.each(r.lines,function(r){h&&(i.fillStyle=e(n.legendColorBackground,a),i.fillRect(t.x,t.y,o,o),i.strokeStyle=e(n.labelColors[l].borderColor,a),i.strokeRect(t.x,t.y,o,o),i.fillStyle=e(n.labelColors[l].backgroundColor,a),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=u),c(r)}),s.each(r.after,c)}),d=0,s.each(n.afterBody,c),t.y-=r},drawFooter:function(t,n,i,a){var o=n.footer;o.length&&(t.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=e(n.footerFontColor,a),i.font=s.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),s.each(o,function(e){i.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,n,i,a,o){i.fillStyle=e(n.backgroundColor,o),i.strokeStyle=e(n.borderColor,o),i.lineWidth=n.borderWidth;var r=n.xAlign,l=n.yAlign,s=t.x,u=t.y,d=a.width,c=a.height,h=n.cornerRadius;i.beginPath(),i.moveTo(s+h,u),"top"===l&&this.drawCaret(t,a),i.lineTo(s+d-h,u),i.quadraticCurveTo(s+d,u,s+d,u+h),"center"===l&&"right"===r&&this.drawCaret(t,a),i.lineTo(s+d,u+c-h),i.quadraticCurveTo(s+d,u+c,s+d-h,u+c),"bottom"===l&&this.drawCaret(t,a),i.lineTo(s+h,u+c),i.quadraticCurveTo(s,u+c,s,u+c-h),"center"===l&&"left"===r&&this.drawCaret(t,a),i.lineTo(s,u+h),i.quadraticCurveTo(s,u,s+h,u),i.closePath(),i.fill(),n.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(this.drawBackground(i,e,t,n,a),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,a),this.drawBody(i,e,t,a),this.drawFooter(i,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),i=!s.arrayEquals(e._active,e._lastActive),!i)return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),i|=a.x!==e._model.x||a.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,o=0;for(e=0,n=t.length;e<n;++e){var r=t[e];if(r&&r.hasValue()){var l=r.tooltipPosition();i+=l.x,a+=l.y,++o}}return{x:Math.round(i/o),y:Math.round(a/o)}},nearest:function(t,e){var n,i,a,o=e.x,r=e.y,l=Number.POSITIVE_INFINITY;for(i=0,a=t.length;i<a;++i){var u=t[i];if(u&&u.hasValue()){var d=u.getCenterPoint(),c=s.distanceBetweenPoints(e,d);c<l&&(l=c,n=u)}}if(n){var h=n.tooltipPosition();o=h.x,r=h.y}return{x:o,y:r}}}}},{}],35:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global;n.elements.arc={backgroundColor:n.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,n){var i=this._view;if(i){for(var a=e.getAngleFromPoint(i,{x:t,y:n}),o=a.angle,r=a.distance,l=i.startAngle,s=i.endAngle;s<l;)s+=2*Math.PI;for(;o>s;)o-=2*Math.PI;for(;o<l;)o+=2*Math.PI;var u=o>=l&&o<=s,d=r>=i.innerRadius&&r<=i.outerRadius;return u&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t,i,a,o,r=this,l=r._view,s=r._chart.ctx,u=l.spanGaps,d=r._children.slice(),c=n.elements.line,h=-1;for(r._loop&&d.length&&d.push(d[0]),s.save(),s.lineCap=l.borderCapStyle||c.borderCapStyle,s.setLineDash&&s.setLineDash(l.borderDash||c.borderDash),s.lineDashOffset=l.borderDashOffset||c.borderDashOffset,s.lineJoin=l.borderJoinStyle||c.borderJoinStyle,s.lineWidth=l.borderWidth||c.borderWidth,s.strokeStyle=l.borderColor||n.defaultColor,s.beginPath(),h=-1,t=0;t<d.length;++t)i=d[t],a=e.previousItem(d,t),o=i._view,0===t?o.skip||(s.moveTo(o.x,o.y),h=t):(a=h===-1?a:d[h],o.skip||(h!==t-1&&!u||h===-1?s.moveTo(o.x,o.y):e.canvas.lineTo(s,a._view,i._view),h=t));s.stroke(),s.restore()}})}},{}],37:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}function n(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)}var i=t.helpers,a=t.defaults.global,o=a.defaultColor;a.elements.point={radius:3,pointStyle:"circle",backgroundColor:o,borderWidth:1,borderColor:o,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:e,inXRange:e,inYRange:n,getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(e){var n=this._view,r=this._model,l=this._chart.ctx,s=n.pointStyle,u=n.radius,d=n.x,c=n.y,h=t.helpers.color,f=1.01,g=0;n.skip||(l.strokeStyle=n.borderColor||o,l.lineWidth=i.getValueOrDefault(n.borderWidth,a.elements.point.borderWidth),l.fillStyle=n.backgroundColor||o,void 0!==e&&(r.x<e.left||e.right*f<r.x||r.y<e.top||e.bottom*f<r.y)&&(r.x<e.left?g=(d-r.x)/(e.left-r.x):e.right*f<r.x?g=(r.x-d)/(r.x-e.right):r.y<e.top?g=(c-r.y)/(e.top-r.y):e.bottom*f<r.y&&(g=(r.y-c)/(r.y-e.bottom)),g=Math.round(100*g)/100,l.strokeStyle=h(l.strokeStyle).alpha(g).rgbString(),l.fillStyle=h(l.fillStyle).alpha(g).rgbString()),t.canvasHelpers.drawPoint(l,s,u,d,c))}})}},{}],38:[function(t,e,n){"use strict";e.exports=function(t){function e(t){return void 0!==t._view.width}function n(t){var n,i,a,o,r=t._view;if(e(t)){var l=r.width/2;n=r.x-l,i=r.x+l,a=Math.min(r.y,r.base),o=Math.max(r.y,r.base)}else{var s=r.height/2;n=Math.min(r.x,r.base),i=Math.max(r.x,r.base),a=r.y-s,o=r.y+s}return{left:n,top:a,right:i,bottom:o}}var i=t.defaults.global;i.elements.rectangle={backgroundColor:i.defaultColor,borderWidth:0,borderColor:i.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return v[(x+t)%4]}var e,n,i,a,o,r,l,s=this._chart.ctx,u=this._view,d=u.borderWidth;if(u.horizontal?(e=u.base,n=u.x,i=u.y-u.height/2,a=u.y+u.height/2,o=n>e?1:-1,r=1,l=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,a=u.base,o=1,r=a>i?1:-1,l=u.borderSkipped||"bottom"),d){var c=Math.min(Math.abs(e-n),Math.abs(i-a));d=d>c?c:d;var h=d/2,f=e+("left"!==l?h*o:0),g=n+("right"!==l?-h*o:0),p=i+("top"!==l?h*r:0),m=a+("bottom"!==l?-h*r:0);f!==g&&(i=p,a=m),p!==m&&(e=f,n=g)}s.beginPath(),s.fillStyle=u.backgroundColor,s.strokeStyle=u.borderColor,s.lineWidth=d;var v=[[e,a],[e,i],[n,i],[n,a]],b=["bottom","left","top","right"],x=b.indexOf(l,0);x===-1&&(x=0);var y=t(0);s.moveTo(y[0],y[1]);for(var k=1;k<4;k++)y=t(k),s.lineTo(y[0],y[1]);s.fill(),d&&s.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var a=n(this);i=t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom}return i},inLabelRange:function(t,i){var a=this;if(!a._view)return!1;var o=!1,r=n(a);return o=e(a)?t>=r.left&&t<=r.right:i>=r.top&&i<=r.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,n,i=this._view;return e(this)?(t=i.x,n=(i.y+i.base)/2):(t=(i.x+i.base)/2,n=i.y),{x:t,y:n}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){var n=s.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function n(t,n){var i=t.style,a=t.getAttribute("height"),o=t.getAttribute("width");if(t._chartjs={initial:{height:a,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===o||""===o){var r=e(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var l=e(t,"height");void 0!==r&&(t.height=l)}return t}function i(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function a(t,e){var n=u[t.type]||t.type,a=s.getRelativePosition(t,e);return i(n,e,a.x,a.y,t)}function o(t){var e=document.createElement("iframe");return e.className="chartjs-hidden-iframe",e.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",e.tabIndex=-1,s.addEvent(e,"load",function(){s.addEvent(e.contentWindow||e,"resize",t),t()}),e}function r(t,e,n){var a=t._chartjs={ticking:!1},r=function(){a.ticking||(a.ticking=!0,s.requestAnimFrame.call(window,function(){if(a.resizer)return a.ticking=!1,e(i("resize",n))}))};a.resizer=o(r),t.insertBefore(a.resizer,t.firstChild)}function l(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}}var s=t.helpers,u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(n(t,e),i):null},releaseContext:function(t){var e=t.canvas;if(e._chartjs){var n=e._chartjs.initial;["height","width"].forEach(function(t){var i=n[t];void 0===i||null===i?e.removeAttribute(t):e.setAttribute(t,i)}),s.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e._chartjs}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void r(i.parentNode,n,t);var o=n._chartjs||(n._chartjs={}),l=o.proxies||(o.proxies={}),u=l[t.id+"_"+e]=function(e){n(a(e,t))};s.addEvent(i,e,u)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void l(i.parentNode,n);var a=n._chartjs||{},o=a.proxies||{},r=o[t.id+"_"+e];r&&s.removeEvent(i,e,r)}}}},{}],40:[function(t,e,n){"use strict";var i=t(39);e.exports=function(t){t.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t.helpers.extend(t.platform,i(t))}},{39:39}],41:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e,n){var i,a=t._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),o===!1||null===o)return!1;if(o===!0)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function n(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePosition?o=i.getBasePosition():i.getBasePixel&&(o=i.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return e=i.isHorizontal(),{x:e?o:null,y:e?null:o}}return null}function i(t,e,n){var i,a=t[e],o=a.fill,r=[e];if(!n)return o;for(;o!==!1&&r.indexOf(o)===-1;){if(!isFinite(o))return o;if(i=t[o],!i)return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function a(t){var e=t.fill,n="dataset";return e===!1?null:(isFinite(e)||(n="boundary"),d[n](t))}function o(t){return t&&!t.skip}function r(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o<i;++o)u.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(n[a-1].x,n[a-1].y),o=a-1;o>0;--o)u.canvas.lineTo(t,n[o],n[o-1],!0)}}function l(t,e,n,i,a,l){var s,u,d,c,h,f,g,p=e.length,m=i.spanGaps,v=[],b=[],x=0,y=0;for(t.beginPath(),s=0,u=p+!!l;s<u;++s)d=s%p,c=e[d]._view,h=n(c,d,i),f=o(c),g=o(h),f&&g?(x=v.push(c),y=b.push(h)):x&&y&&(m?(f&&v.push(c),g&&b.push(h)):(r(t,v,b,x,y),x=y=0,v=[],b=[]));r(t,v,b,x,y),t.closePath(),t.fillStyle=a,t.fill()}t.defaults.global.plugins.filler={propagate:!0};var s=t.defaults,u=t.helpers,d={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e),o=a&&i.dataset._children||[];return o.length?function(t,e){return o[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};return{id:"filler",afterDatasetsUpdate:function(o,r){var l,s,u,d,c=(o.data.datasets||[]).length,h=r.propagate,f=[];for(s=0;s<c;++s)l=o.getDatasetMeta(s),u=l.dataset,d=null,u&&u._model&&u instanceof t.elements.Line&&(d={visible:o.isDatasetVisible(s),fill:e(u,s,c),chart:o,el:u}),l.$filler=d,f.push(d);for(s=0;s<c;++s)d=f[s],d&&(d.fill=i(f,s,h),d.boundary=n(d),d.mapper=a(d))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var i=n.el,a=i._view,o=i._children||[],r=n.mapper,u=a.backgroundColor||s.global.defaultColor;r&&u&&o.length&&l(t.ctx,o,r,a,u,i._loop)}}}}},{}],42:[function(t,e,n){"use strict";e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});a.configure(e,i,n),a.addBox(e,i),e.legend=i}var i=t.helpers,a=t.layoutService,o=i.noop;return t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return i.isArray(e.datasets)?e.datasets.map(function(e,n){return{text:e.label,fillStyle:i.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:function(){var t=this,e=t.options.labels,n=e.generateLabels.call(t,t.chart);e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:o,beforeFit:o,fit:function(){var n=this,a=n.options,o=a.labels,r=a.display,l=n.ctx,s=t.defaults.global,u=i.getValueOrDefault,d=u(o.fontSize,s.defaultFontSize),c=u(o.fontStyle,s.defaultFontStyle),h=u(o.fontFamily,s.defaultFontFamily),f=i.fontString(d,c,h),g=n.legendHitBoxes=[],p=n.minSize,m=n.isHorizontal();if(m?(p.width=n.maxWidth,p.height=r?10:0):(p.width=r?10:0,p.height=n.maxHeight),r)if(l.font=f,m){var v=n.lineWidths=[0],b=n.legendItems.length?d+o.padding:0;l.textAlign="left",l.textBaseline="top",i.each(n.legendItems,function(t,i){var a=e(o,d),r=a+d/2+l.measureText(t.text).width;v[v.length-1]+r+o.padding>=n.width&&(b+=d+o.padding,v[v.length]=n.left),g[i]={left:0,top:0,width:r,height:d},v[v.length-1]+=r+o.padding}),p.height+=b}else{var x=o.padding,y=n.columnWidths=[],k=o.padding,w=0,M=0,S=d+x;i.each(n.legendItems,function(t,n){var i=e(o,d),a=i+d/2+l.measureText(t.text).width;M+S>p.height&&(k+=w+o.padding,y.push(w),w=0,M=0),w=Math.max(w,a),M+=S,g[n]={left:0,top:0,width:a,height:d}}),k+=w,y.push(w),p.width+=k}n.width=p.width,n.height=p.height},afterFit:o,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var n=this,a=n.options,o=a.labels,r=t.defaults.global,l=r.elements.line,s=n.width,u=n.lineWidths;if(a.display){var d,c=n.ctx,h=i.getValueOrDefault,f=h(o.fontColor,r.defaultFontColor),g=h(o.fontSize,r.defaultFontSize),p=h(o.fontStyle,r.defaultFontStyle),m=h(o.fontFamily,r.defaultFontFamily),v=i.fontString(g,p,m);c.textAlign="left",c.textBaseline="top",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=v;var b=e(o,g),x=n.legendHitBoxes,y=function(e,n,i){if(!(isNaN(b)||b<=0)){c.save(),c.fillStyle=h(i.fillStyle,r.defaultColor),c.lineCap=h(i.lineCap,l.borderCapStyle),c.lineDashOffset=h(i.lineDashOffset,l.borderDashOffset),c.lineJoin=h(i.lineJoin,l.borderJoinStyle),c.lineWidth=h(i.lineWidth,l.borderWidth),c.strokeStyle=h(i.strokeStyle,r.defaultColor);var o=0===h(i.lineWidth,l.borderWidth);if(c.setLineDash&&c.setLineDash(h(i.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var s=g*Math.SQRT2/2,u=s/Math.SQRT2,d=e+u,f=n+u;t.canvasHelpers.drawPoint(c,i.pointStyle,s,d,f)}else o||c.strokeRect(e,n,b,g),c.fillRect(e,n,b,g);c.restore()}},k=function(t,e,n,i){c.fillText(n.text,b+g/2+t,e),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(b+g/2+t,e+g/2),c.lineTo(b+g/2+t+i,e+g/2),c.stroke())},w=n.isHorizontal();d=w?{x:n.left+(s-u[0])/2,y:n.top+o.padding,line:0}:{x:n.left+o.padding,y:n.top+o.padding,line:0};var M=g+o.padding;i.each(n.legendItems,function(t,e){var i=c.measureText(t.text).width,a=b+g/2+i,r=d.x,l=d.y;w?r+a>=s&&(l=d.y+=M,d.line++,r=d.x=n.left+(s-u[d.line])/2):l+M>n.bottom&&(r=d.x=r+n.columnWidths[d.line]+o.padding,l=d.y=n.top+o.padding,d.line++),y(r,l,t),x[e].left=r,x[e].top=l,k(r,l,t,i),w?d.x+=a+o.padding:d.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var l=e.legendHitBoxes,s=0;s<l.length;++s){var u=l[s];if(o>=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[s]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[s]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(e){var o=e.options.legend,r=e.legend;o?(o=i.configMerge(t.defaults.global.legend,o),r?(a.configure(e,r,o),r.options=o):n(e,o)):r&&(a.removeBox(e,r),delete e.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{}],43:[function(t,e,n){"use strict";e.exports=function(t){function e(e,n){var a=new t.Title({ctx:e.ctx,options:n,chart:e});i.configure(e,a,n),i.addBox(e,a),e.titleBlock=a}var n=t.helpers,i=t.layoutService,a=n.noop;return t.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},t.Title=t.Element.extend({initialize:function(t){var e=this;n.extend(e,t),e.legendHitBoxes=[];
14
+ },beforeUpdate:a,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:a,beforeSetDimensions:a,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:a,beforeBuildLabels:a,buildLabels:a,afterBuildLabels:a,beforeFit:a,fit:function(){var e=this,i=n.getValueOrDefault,a=e.options,o=t.defaults.global,r=a.display,l=i(a.fontSize,o.defaultFontSize),s=e.minSize;e.isHorizontal()?(s.width=e.maxWidth,s.height=r?l+2*a.padding:0):(s.width=r?l+2*a.padding:0,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:a,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var e=this,i=e.ctx,a=n.getValueOrDefault,o=e.options,r=t.defaults.global;if(o.display){var l,s,u,d=a(o.fontSize,r.defaultFontSize),c=a(o.fontStyle,r.defaultFontStyle),h=a(o.fontFamily,r.defaultFontFamily),f=n.fontString(d,c,h),g=0,p=e.top,m=e.left,v=e.bottom,b=e.right;i.fillStyle=a(o.fontColor,r.defaultFontColor),i.font=f,e.isHorizontal()?(l=m+(b-m)/2,s=p+(v-p)/2,u=b-m):(l="left"===o.position?m+d/2:b-d/2,s=p+(v-p)/2,u=v-p,g=Math.PI*("left"===o.position?-.5:.5)),i.save(),i.translate(l,s),i.rotate(g),i.textAlign="center",i.textBaseline="middle",i.fillText(o.text,0,0,u),i.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(a){var o=a.options.title,r=a.titleBlock;o?(o=n.configMerge(t.defaults.global.title,o),r?(i.configure(a,r,o),r.options=o):e(a,o)):r&&(t.layoutService.removeBox(a,r),delete a.titleBlock)}}}},{}],44:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n={position:"bottom"},i=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1;var i;void 0!==t.options.ticks.min&&(i=e.indexOf(n,t.options.ticks.min),t.minIndex=i!==-1?i:t.minIndex),void 0!==t.options.ticks.max&&(i=e.indexOf(n,t.options.ticks.max),t.maxIndex=i!==-1?i:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.isHorizontal();return i.yLabels&&!a?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e,n,i){var a,o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&null!==t&&(a=o.isHorizontal()?t.x:t.y),void 0!==a||void 0!==t&&isNaN(e)){var l=o.getLabels();t=a||t;var s=l.indexOf(t);e=s!==-1?s:e}if(o.isHorizontal()){var u=o.width/r,d=u*(e-o.minIndex);return(o.options.gridLines.offsetGridLines&&i||o.maxIndex===o.minIndex&&i)&&(d+=u/2),o.left+Math.round(d)}var c=o.height/r,h=c*(e-o.minIndex);return o.options.gridLines.offsetGridLines&&i&&(h+=c/2),o.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,n=this,i=Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),a=n.isHorizontal(),o=(a?n.width:n.height)/i;return t-=a?n.left:n.top,n.options.gridLines.offsetGridLines&&(t-=o/2),e=t<=0?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",i,n)}},{}],45:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.linear}},i=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,i=n.options,a=n.chart,o=a.data,r=o.datasets,l=n.isHorizontal(),s=0,u=1;n.min=null,n.max=null;var d=i.stacked;if(void 0===d&&e.each(r,function(e,n){if(!d){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(d=!0)}}),i.stacked||d){var c={};e.each(r,function(o,r){var l=a.getDatasetMeta(r),s=[l.type,void 0===i.stacked&&void 0===l.stack?r:"",l.stack].join(".");void 0===c[s]&&(c[s]={positiveValues:[],negativeValues:[]});var u=c[s].positiveValues,d=c[s].negativeValues;a.isDatasetVisible(r)&&t(l)&&e.each(o.data,function(t,e){var a=+n.getRightValue(t);isNaN(a)||l.data[e].hidden||(u[e]=u[e]||0,d[e]=d[e]||0,i.relativePoints?u[e]=100:a<0?d[e]+=a:u[e]+=a)})}),e.each(c,function(t){var i=t.positiveValues.concat(t.negativeValues),a=e.min(i),o=e.max(i);n.min=null===n.min?a:Math.min(n.min,a),n.max=null===n.max?o:Math.max(n.max,o)})}else e.each(r,function(i,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(i.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===n.min?n.min=i:i<n.min&&(n.min=i),null===n.max?n.max=i:i>n.max&&(n.max=i))})});n.min=isFinite(n.min)?n.min:s,n.max=isFinite(n.max)?n.max:u,this.handleTickRangeOptions()},getTickLimit:function(){var n,i=this,a=i.options.ticks;if(i.isHorizontal())n=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(i.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);n=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(i.height/(2*o)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,a=+n.getRightValue(t),o=n.end-i;return n.isHorizontal()?(e=n.left+n.width/o*(a-i),Math.round(e)):(e=n.bottom-n.height/o*(a-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",i,n)}},{}],46:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,n=t.options,i=n.ticks;if(i.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);a<0&&o<0?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==i.min?t.min=i.min:void 0!==i.suggestedMin&&(null===t.min?t.min=i.suggestedMin:t.min=Math.min(t.min,i.suggestedMin)),void 0!==i.max?t.max=i.max:void 0!==i.suggestedMax&&(null===t.max?t.max=i.suggestedMax:t.max=Math.max(t.max,i.suggestedMax)),t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var n=this,i=n.options,a=i.ticks,o=n.getTickLimit();o=Math.max(2,o);var r={maxTicks:o,min:a.min,max:a.max,stepSize:e.getValueOrDefault(a.fixedStepSize,a.stepSize)},l=n.ticks=t.Ticks.generators.linear(r,n);n.handleDirectionalChanges(),n.max=e.max(l),n.min=e.min(l),a.reverse?(l.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],47:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},i=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,i=n.options,a=i.ticks,o=n.chart,r=o.data,l=r.datasets,s=e.getValueOrDefault,u=n.isHorizontal();n.min=null,n.max=null,n.minNotZero=null;var d=i.stacked;if(void 0===d&&e.each(l,function(e,n){if(!d){var i=o.getDatasetMeta(n);o.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(d=!0)}}),i.stacked||d){var c={};e.each(l,function(a,r){var l=o.getDatasetMeta(r),s=[l.type,void 0===i.stacked&&void 0===l.stack?r:"",l.stack].join(".");o.isDatasetVisible(r)&&t(l)&&(void 0===c[s]&&(c[s]=[]),e.each(a.data,function(t,e){var a=c[s],o=+n.getRightValue(t);isNaN(o)||l.data[e].hidden||(a[e]=a[e]||0,i.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(c,function(t){var i=e.min(t),a=e.max(t);n.min=null===n.min?i:Math.min(n.min,i),n.max=null===n.max?a:Math.max(n.max,a)})}else e.each(l,function(i,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(i.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===n.min?n.min=i:i<n.min&&(n.min=i),null===n.max?n.max=i:i>n.max&&(n.max=i),0!==i&&(null===n.minNotZero||i<n.minNotZero)&&(n.minNotZero=i))})});n.min=s(a.min,n.min),n.max=s(a.max,n.max),n.min===n.max&&(0!==n.min&&null!==n.min?(n.min=Math.pow(10,Math.floor(e.log10(n.min))-1),n.max=Math.pow(10,Math.floor(e.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){var n=this,i=n.options,a=i.ticks,o={min:a.min,max:a.max},r=n.ticks=t.Ticks.generators.logarithmic(o,n);n.isHorizontal()||r.reverse(),n.max=e.max(r),n.min=e.min(r),a.reverse?(r.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var n,i,a,o=this,r=o.start,l=+o.getRightValue(t),s=o.options,u=s.ticks;return o.isHorizontal()?(a=e.log10(o.end)-e.log10(r),0===l?i=o.left:(n=o.width,i=o.left+n/a*(e.log10(l)-e.log10(r)))):(n=o.height,0!==r||u.reverse?0===o.end&&u.reverse?(a=e.log10(o.start)-e.log10(o.minNotZero),i=l===o.end?o.top:l===o.minNotZero?o.top+.02*n:o.top+.02*n+.98*n/a*(e.log10(l)-e.log10(o.minNotZero))):0===l?i=u.reverse?o.top:o.bottom:(a=e.log10(o.end)-e.log10(r),n=o.height,i=o.bottom-n/a*(e.log10(l)-e.log10(r))):(a=e.log10(o.end)-e.log10(o.minNotZero),i=l===r?o.bottom:l===o.minNotZero?o.bottom-.02*n:o.bottom-.02*n-.98*n/a*(e.log10(l)-e.log10(o.minNotZero)))),i},getValueForPixel:function(t){var n,i,a=this,o=e.log10(a.end)-e.log10(a.start);return a.isHorizontal()?(i=a.width,n=a.start*Math.pow(10,(t-a.left)*o/i)):(i=a.height,n=Math.pow(10,(a.bottom-t)*o/i)/a.start),n}});t.scaleService.registerScaleType("logarithmic",i,n)}},{}],48:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function n(t){var e=t.options.pointLabels,n=f.getValueOrDefault(e.fontSize,g.defaultFontSize),i=f.getValueOrDefault(e.fontStyle,g.defaultFontStyle),a=f.getValueOrDefault(e.fontFamily,g.defaultFontFamily),o=f.fontString(n,i,a);return{size:n,style:i,family:a,font:o}}function i(t,e,n){return f.isArray(n)?{w:f.longestText(t,t.font,n),h:n.length*e+1.5*(n.length-1)*e}:{w:t.measureText(n).width,h:e}}function a(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||t>a?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function o(t){var o,r,l,s=n(t),u=Math.min(t.height/2,t.width/2),d={r:t.width,l:0,t:t.height,b:0},c={};t.ctx.font=s.font,t._pointLabelSizes=[];var h=e(t);for(o=0;o<h;o++){l=t.getPointPosition(o,u),r=i(t.ctx,s.size,t.pointLabels[o]||""),t._pointLabelSizes[o]=r;var g=t.getIndexAngle(o),p=f.toDegrees(g)%360,m=a(p,l.x,r.w,0,180),v=a(p,l.y,r.h,90,270);m.start<d.l&&(d.l=m.start,c.l=g),m.end>d.r&&(d.r=m.end,c.r=g),v.start<d.t&&(d.t=v.start,c.t=g),v.end>d.b&&(d.b=v.end,c.b=g)}t.setReductions(u,d,c)}function r(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function s(t,e,n,i){if(f.isArray(e))for(var a=n.y,o=1.5*i,r=0;r<e.length;++r)t.fillText(e[r],n.x,a),a+=o;else t.fillText(e,n.x,n.y)}function u(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function d(t){var i=t.ctx,a=f.getValueOrDefault,o=t.options,r=o.angleLines,d=o.pointLabels;i.lineWidth=r.lineWidth,i.strokeStyle=r.color;var c=t.getDistanceFromCenterForValue(o.reverse?t.min:t.max),h=n(t);i.textBaseline="top";for(var p=e(t)-1;p>=0;p--){if(r.display){var m=t.getPointPosition(p,c);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(d.display){var v=t.getPointPosition(p,c+5),b=a(d.fontColor,g.defaultFontColor);i.font=h.font,i.fillStyle=b;var x=t.getIndexAngle(p),y=f.toDegrees(x);i.textAlign=l(y),u(y,t._pointLabelSizes[p],v),s(i,t.pointLabels[p]||"",v,h.size)}}}function c(t,n,i,a){var o=t.ctx;if(o.strokeStyle=f.getValueAtIndexOrDefault(n.color,a-1),o.lineWidth=f.getValueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var r=e(t);if(0===r)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var s=1;s<r;s++)l=t.getPointPosition(s,i),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}function h(t){return f.isNumber(t)?t:0}var f=t.helpers,g=t.defaults.global,p={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:t.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},m=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=f.min([t.height,t.width]),a=f.getValueOrDefault(n.fontSize,g.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;f.each(e.data.datasets,function(a,o){if(e.isDatasetVisible(o)){var r=e.getDatasetMeta(o);f.each(a.data,function(e,a){var o=+t.getRightValue(e);isNaN(o)||r.data[a].hidden||(n=Math.min(o,n),i=Math.max(o,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=f.getValueOrDefault(t.fontSize,g.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){this.options.pointLabels.display?o(this):r(this)},setReductions:function(t,e,n){var i=this,a=e.l/Math.sin(n.l),o=Math.max(e.r-i.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),l=-Math.max(e.b-i.height,0)/Math.cos(n.b);a=h(a),o=h(o),r=h(r),l=h(l),i.drawingArea=Math.min(Math.round(t-(a+o)/2),Math.round(t-(r+l)/2)),i.setCenterPoint(a,o,r,l)},setCenterPoint:function(t,e,n,i){var a=this,o=a.width-e-a.drawingArea,r=t+a.drawingArea,l=n+a.drawingArea,s=a.height-i-a.drawingArea;a.xCenter=Math.round((r+o)/2+a.left),a.yCenter=Math.round((l+s)/2+a.top)},getIndexAngle:function(t){var n=2*Math.PI/e(this),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,a=i*Math.PI*2/360;return t*n+a},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,i=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(i)*e)+n.xCenter,y:Math.round(Math.sin(i)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=f.getValueOrDefault;if(e.display){var o=t.ctx,r=a(i.fontSize,g.defaultFontSize),l=a(i.fontStyle,g.defaultFontStyle),s=a(i.fontFamily,g.defaultFontFamily),u=f.fontString(r,l,s);f.each(t.ticks,function(l,s){if(s>0||e.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(n.display&&0!==s&&c(t,n,d,s),i.display){var f=a(i.fontColor,g.defaultFontColor);if(o.font=u,i.showLabelBackdrop){var p=o.measureText(l).width;o.fillStyle=i.backdropColor,o.fillRect(t.xCenter-p/2-i.backdropPaddingX,h-r/2-i.backdropPaddingY,p+2*i.backdropPaddingX,r+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=f,o.fillText(l,t.xCenter,h)}}}),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",m,p)}},{}],49:[function(t,e,n){"use strict";var i=t(1);i="function"==typeof i?i:window.moment,e.exports=function(t){function e(t,e){var n=t.options.time;if("string"==typeof n.parser)return i(e,n.parser);if("function"==typeof n.parser)return n.parser(e);if("function"==typeof e.getMonth||"number"==typeof e)return i(e);if(e.isValid&&e.isValid())return e;var a=n.format;return"string"!=typeof a&&a.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),a(e)):i(e,a)}function n(t,e,n,i){for(var a,o=Object.keys(l),r=o.length,s=o.indexOf(t);s<r;s++){a=o[s];var u=l[a],d=u.steps&&u.steps[u.steps.length-1]||u.maxStep;if(void 0===d||Math.ceil((n-e)/(d*u.size))<=i)break}return a}function a(t,e,n,i){var a=l[n],o=a.size,r=Math.ceil((e-t)/o),s=1,u=e-t;if(a.steps)for(var d=a.steps.length,c=0;c<d&&r>i;c++)s=a.steps[c],r=Math.ceil(u/(o*s));else for(;r>i&&i>0;)++s,r=Math.ceil(u/(o*s));return s}function o(t,e,n){var a=[];if(t.maxTicks){var o=t.stepSize;a.push(void 0!==t.min?t.min:n.min);for(var r=i(n.min);r.add(o,t.unit).valueOf()<n.max;)a.push(r.valueOf());var l=t.max||n.max;a[a.length-1]!==l&&a.push(l)}return a}var r=t.helpers,l={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},s={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}};t.Ticks.generators.time=function(t,e){var n,a,r=t.isoWeekday;return"week"===t.unit&&r!==!1?(n=i(e.min).startOf("isoWeek").isoWeekday(r).valueOf(),a=i(e.max).startOf("isoWeek").isoWeekday(r),e.max-a>0&&a.add(1,"week"),a=a.valueOf()):(n=i(e.min).startOf(t.unit).valueOf(),a=i(e.max).startOf(t.unit),e.max-a>0&&a.add(1,t.unit),a=a.valueOf()),o(t,e,{min:n,max:a})};var u=t.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var t,n=this,i=n.options.time,a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,l=n.chart.data,s={labels:[],datasets:[]};r.each(l.labels,function(r,l){var u=e(n,r);u.isValid()&&(i.round&&u.startOf(i.round),t=u.valueOf(),a=Math.min(t,a),o=Math.max(t,o),s.labels[l]=t)}),r.each(l.datasets,function(l,u){var d=[];"object"==typeof l.data[0]&&null!==l.data[0]&&n.chart.isDatasetVisible(u)?r.each(l.data,function(r,l){var s=e(n,n.getRightValue(r));s.isValid()&&(i.round&&s.startOf(i.round),t=s.valueOf(),a=Math.min(t,a),o=Math.max(t,o),d[l]=t)}):d=s.labels.slice(),s.datasets[u]=d}),n.dataMin=a,n.dataMax=o,n._parsedData=s},buildTicks:function(){var i,o,l=this,s=l.options.time,u=l.dataMin,d=l.dataMax;if(s.min){var c=e(l,s.min);s.round&&c.round(s.round),i=c.valueOf()}s.max&&(o=e(l,s.max).valueOf());var h=l.getLabelCapacity(i||u),f=s.unit||n(s.minUnit,i||u,o||d,h);l.displayFormat=s.displayFormats[f];var g=s.stepSize||a(i||u,o||d,f,h);l.ticks=t.Ticks.generators.time({maxTicks:h,min:i,max:o,stepSize:g,unit:f,isoWeekday:s.isoWeekday},{min:u,max:d}),l.max=r.max(l.ticks),l.min=r.min(l.ticks)},getLabelForIndex:function(t,n){var i=this,a=i.chart.data.labels&&t<i.chart.data.labels.length?i.chart.data.labels[t]:"",o=i.chart.data.datasets[n].data[t];return null!==o&&"object"==typeof o&&(a=i.getRightValue(o)),i.options.time.tooltipFormat&&(a=e(i,a).format(i.options.time.tooltipFormat)),a},tickFormatFunction:function(t,e,n){var i=t.format(this.displayFormat),a=this.options.ticks,o=r.getValueOrDefault(a.callback,a.userCallback);return o?o(i,e,n):i},convertTicksToLabels:function(){var t=this;t.ticksAsTimestamps=t.ticks,t.ticks=t.ticks.map(function(t){return i(t)}).map(t.tickFormatFunction,t)},getPixelForOffset:function(t){var e=this,n=e.max-e.min,i=n?(t-e.min)/n:0;if(e.isHorizontal()){var a=e.width*i;return e.left+Math.round(a)}var o=e.height*i;return e.top+Math.round(o)},getPixelForValue:function(t,n,i){var a=this,o=null;if(void 0!==n&&void 0!==i&&(o=a._parsedData.datasets[i][n]),null===o&&(t&&t.isValid||(t=e(a,a.getRightValue(t))),t&&t.isValid&&t.isValid()&&(o=t.valueOf())),null!==o)return a.getPixelForOffset(o)},getPixelForTick:function(t){return this.getPixelForOffset(this.ticksAsTimestamps[t])},getValueForPixel:function(t){var e=this,n=e.isHorizontal()?e.width:e.height,a=(t-(e.isHorizontal()?e.left:e.top))/n;return i(e.min+a*(e.max-e.min))},getLabelWidth:function(e){var n=this,i=n.options.ticks,a=n.ctx.measureText(e).width,o=Math.cos(r.toRadians(i.maxRotation)),l=Math.sin(r.toRadians(i.maxRotation)),s=r.getValueOrDefault(i.fontSize,t.defaults.global.defaultFontSize);return a*o+s*l},getLabelCapacity:function(t){var e=this;e.displayFormat=e.options.time.displayFormats.millisecond;var n=e.tickFormatFunction(i(t),0,[]),a=e.getLabelWidth(n),o=e.isHorizontal()?e.width:e.height,r=o/a;return r}});t.scaleService.registerScaleType("time",u,s)}},{1:1}]},{},[7])(7)});
obfx_modules/stats/views/dashboard-widget-tpl.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Dashboard Widget View for Stats Module of Orbit Fox.
4
+ *
5
+ * @link https://themeisle.com
6
+ * @since 1.0.0
7
+ *
8
+ * @package Orbit_Fox_Modules
9
+ * @subpackage Orbit_Fox_Modules/stats/views
10
+ * @codeCoverageIgnore
11
+ */
12
+
13
+ $html_title = '';
14
+ if ( trim( $title ) != '' ) {
15
+ $html_title = '<h3>' . $title . ' <small><i> for ' . $display_year . '</i></small></h3>';
16
+ }
17
+
18
+ $html_desc = '';
19
+ if ( trim( $desc ) != '' ) {
20
+ $html_desc = '<hr/><small>' . $desc . '</small>';
21
+ }
22
+
23
+ $posts_data = '';
24
+ $comments_data = '';
25
+ $graph_shows = $this->get_option( 'graph_shows' );
26
+ if ( $graph_shows == 0 || $graph_shows == 2 ) {
27
+ $posts_data = 'data-posts="' . json_encode( $posts_count ) . '"';
28
+ }
29
+ if ( $graph_shows == 1 || $graph_shows == 2 ) {
30
+ $comments_data = 'data-comments="' . json_encode( $comments_count ) . '"';
31
+ }
32
+
33
+ ?>
34
+
35
+ <?php echo $html_title; ?>
36
+ <canvas id="obfxChart" <?php echo $posts_data; ?> <?php echo $comments_data; ?> ></canvas>
37
+ <?php echo $html_desc; ?>
readme.txt CHANGED
@@ -1,26 +1,95 @@
1
- === ThemeIsle Companion ===
2
  Contributors: themeisle, codeinwp, rodicaelena, baicusandrei
3
- Tags: widget, admin, widgets
4
  Requires at least: 3.0
5
- Tested up to: 4.7.2
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Enhances ThemeIsle's themes with extra functionalities.
11
 
12
  == Description ==
13
 
14
- Enhances ThemeIsle's themes with extra functionalities.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  == Changelog ==
 
 
 
 
 
 
17
 
18
  = 1.0.3 =
19
 
20
  * New widgets for Rhea child theme
21
  * Improved front page selection mechanism for Hestia
22
 
23
- = 1.0.1 =
24
 
25
  * Changed tested up to
26
 
1
+ === Orbit Fox Companion ===
2
  Contributors: themeisle, codeinwp, rodicaelena, baicusandrei
3
+ Tags: widget, admin, widgets, sharing, reporting, sections, themes
4
  Requires at least: 3.0
5
+ Tested up to: 4.8
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Enhance your website with extra functionality through modules like: social media share buttons & icons, reporting, analytics(upcoming), security(upcoming) and caching(upcoming).
11
 
12
  == Description ==
13
 
14
+ Extend your theme functionality with <a href="https://themeisle.com/plugins/orbit-fox-companion/" rel="nofollow">Orbit Fox Companion</a> with various modules like Social Media Share Buttons & Icons, reporting, analytics(upcoming), security(upcoming) and caching(upcoming).
15
+
16
+ This is an easy-to-use WordPress plugin with features that are loaded only if you need them or they are compatible with your current WordPress theme and plugins.
17
+
18
+ **Why should i use this with Zerif/Hestia themes:**
19
+
20
+ - More widgets & sections
21
+
22
+ - By using it along with our themes you gain access to a lot of useful widgets like **Testimonials**, **Our Focus**, **About Us** and more other.
23
+
24
+
25
+ **Why use our sharing module:**
26
+
27
+ - It's easy to use
28
+
29
+ - Enable sharing networks right from your admin dashboard and choose for what kind of mobile device you would like to use.
30
+
31
+ - It's fully customizable
32
+
33
+ Choose from more than 20+ social networks to share with full control for every device that your visitors use. You can have a set of sharing options for mobile and a different one for desktop, all of them switched on/off from your WordPress instance.
34
+
35
+
36
+
37
+
38
+ We've also built some fantastic <a href="http://themeisle.com/wordpress-themes/free/" rel="nofollow" target="_blank">free themes</a> that work well with Orbit Fox Companion, check them out.
39
+
40
+ **Features:**
41
+
42
+ - Sharing module
43
+ - Reporting module
44
+ - More widgets and sections for Hestia Theme
45
+ - More widgets and sections for Zerif Theme
46
+
47
+
48
+
49
+
50
+ == Frequently Asked Questions ==
51
+
52
+ = How I can get support for this plugin ? =
53
+
54
+ You can learn more about Orbit Fox Companion and ask for help by <a href="https://themeisle.com/contact/" >visiting ThemeIsle website</a>.
55
+
56
+ = What can I do with this plugin =
57
+
58
+ This plugin extends the features of your themes by adding numerous widgets if you are using Zerif and Hestia themes and some modules for sharing and reporting for general use.
59
+
60
+
61
+ == Installation ==
62
+
63
+ Activating the Orbit Fox Companion plugin is just like any other plugin. If you've uploaded the plugin package to your server already, skip to step 5 below:
64
+
65
+ 1. In your WordPress admin, go to **Plugins &gt; Add New**
66
+ 2. In the Search field type "Orbit Fox"
67
+ 3. Under "Orbit Fox Companion" click the **Install Now** link
68
+ 4. Once the process is complete, click the **Activate Plugin** link
69
+ 5. Now, you're able to use Orbit fox and setup the modules you need. These can be found at **Tools &gt; Orbit Fox Companion**
70
+ 6. Make the changes desired, then click the **Save changes** button at the bottom
71
+
72
+
73
+ == Screenshots ==
74
+
75
+ 1. Screenshot 1. How you can enable/disable modules
76
+ 2. Screenshot 2. How the sharing module is looking
77
+ 3. Screenshot 3. How reports module is looking
78
 
79
  == Changelog ==
80
+ = 2.0.1 - 2017-08-14 =
81
+
82
+ * Fixed issues with grey icons in Hestia.
83
+ * Fixed Recommended Actions flags in customizer.
84
+
85
+
86
 
87
  = 1.0.3 =
88
 
89
  * New widgets for Rhea child theme
90
  * Improved front page selection mechanism for Hestia
91
 
92
+ = 1.0.1 =
93
 
94
  * Changed tested up to
95
 
themeisle-companion.php CHANGED
@@ -1,47 +1,97 @@
1
  <?php
2
- /*
3
- * Plugin Name: ThemeIsle Companion
4
- * Plugin URI: https://github.com/Codeinwp/themeisle-companion
5
- * Description: Enhances ThemeIsle's themes with extra functionalities.
6
- * Version: 1.0.5
7
- * Author: Themeisle
8
- * Author URI: http://themeisle.com
9
- * Text Domain: themeisle-companion
10
- * Domain Path: /languages
11
- * License: GPLv2
12
- * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  */
14
 
15
- define( 'THEMEISLE_COMPANION_VERSION', '1.0.5' );
16
- define( 'THEMEISLE_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
17
- define( 'THEMEISLE_COMPANION_URL', plugin_dir_url( __FILE__ ) );
18
-
19
-
20
- if ( ! function_exists( 'add_action' ) ) {
21
- die('Nothing to do...');
22
  }
23
- add_action( 'plugins_loaded', 'themeisle_companion_textdomain' );
24
 
25
  /**
26
- * Load plugin textdomain.
 
27
  */
28
- function themeisle_companion_textdomain() {
29
- load_plugin_textdomain( 'themeisle-companion', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
 
30
  }
31
 
 
 
 
 
 
 
 
 
32
 
33
- function themeisle_companion_loader() {
34
- if ( function_exists( 'zerif_setup' ) ) {
35
- require_once( THEMEISLE_COMPANION_PATH . 'inc/zerif-lite/zerif-lite-functions.php' );
36
- }
37
 
38
- if ( function_exists( 'hestia_setup_theme' ) ) {
39
- require_once( THEMEISLE_COMPANION_PATH . 'inc/hestia/hestia-functions.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
 
 
 
41
 
42
- if ( function_exists( 'rhea_lite_setup' ) ) {
43
- require_once( THEMEISLE_COMPANION_PATH . 'inc/rhea/rhea-companion.php' );
44
- }
45
  }
46
 
47
- add_action( 'after_setup_theme', 'themeisle_companion_loader', 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
+ /**
3
+ * The plugin bootstrap file
4
+ *
5
+ * This file is read by WordPress to generate the plugin information in the plugin
6
+ * admin area. This file also includes all of the dependencies used by the plugin,
7
+ * registers the activation and deactivation functions, and defines a function
8
+ * that starts the plugin.
9
+ *
10
+ * @link https://themeisle.com
11
+ * @since 1.0.0
12
+ * @package Orbit_Fox
13
+ *
14
+ * @wordpress-plugin
15
+ * Plugin Name: Orbit Fox Companion
16
+ * Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
17
+ * Description: Enhances ThemeIsle's themes with extra functionality.
18
+ * Version: 2.0.1
19
+ * Author: Themeisle
20
+ * Author URI: https://themeisle.com
21
+ * License: GPL-2.0+
22
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23
+ * Text Domain: themeisle-companion
24
+ * Domain Path: /languages
25
+ * WordPress Available: yes
26
+ * Requires License: no
27
  */
28
 
29
+ // If this file is called directly, abort.
30
+ if ( ! defined( 'WPINC' ) ) {
31
+ die;
 
 
 
 
32
  }
 
33
 
34
  /**
35
+ * The code that runs during plugin activation.
36
+ * This action is documented in core/includes/class-orbit-fox-activator.php
37
  */
38
+ function activate_orbit_fox() {
39
+ $obfx_activator = new Orbit_Fox_Activator();
40
+ $obfx_activator::activate();
41
  }
42
 
43
+ /**
44
+ * The code that runs during plugin deactivation.
45
+ * This action is documented in core/includes/class-orbit-fox-deactivator.php
46
+ */
47
+ function deactivate_orbit_fox() {
48
+ $obfx_deactivator = new Orbit_Fox_Deactivator();
49
+ $obfx_deactivator::deactivate();
50
+ }
51
 
52
+ register_activation_hook( __FILE__, 'activate_orbit_fox' );
53
+ register_deactivation_hook( __FILE__, 'deactivate_orbit_fox' );
 
 
54
 
55
+ /**
56
+ * Begins execution of the plugin.
57
+ *
58
+ * Since everything within the plugin is registered via hooks,
59
+ * then kicking off the plugin from this point in the file does
60
+ * not affect the page life cycle.
61
+ *
62
+ * @since 1.0.0
63
+ */
64
+ function run_orbit_fox() {
65
+ define( 'OBFX_URL', plugins_url( '/', __FILE__ ) );
66
+ define( 'OBX_PATH', dirname( __FILE__ ) );
67
+ $plugin = new Orbit_Fox();
68
+ $plugin->run();
69
+ $vendor_file = OBX_PATH . '/vendor/autoload.php';
70
+ if ( is_readable( $vendor_file ) ) {
71
+ require_once $vendor_file;
72
  }
73
+ add_filter(
74
+ 'themeisle_sdk_products', function ( $products ) {
75
+ $products[] = __FILE__;
76
 
77
+ return $products;
78
+ }
79
+ );
80
  }
81
 
82
+ require( 'class-autoloader.php' );
83
+ Autoloader::set_plugins_path( plugin_dir_path( __DIR__ ) );
84
+ Autoloader::define_namespaces( array( 'Orbit_Fox', 'OBFX', 'OBFX_Module' ) );
85
+ /**
86
+ * Invocation of the Autoloader::loader method.
87
+ *
88
+ * @since 1.0.0
89
+ */
90
+ spl_autoload_register( array( 'Autoloader', 'loader' ) );
91
+
92
+ /**
93
+ * The start of the app.
94
+ *
95
+ * @since 1.0.0
96
+ */
97
+ run_orbit_fox();
uninstall.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired when the plugin is uninstalled.
4
+ *
5
+ * When populating this file, consider the following flow
6
+ * of control:
7
+ *
8
+ * - This method should be static
9
+ * - Check if the $_REQUEST content actually is the plugin name
10
+ * - Run an admin referrer check to make sure it goes through authentication
11
+ * - Verify the output of $_GET makes sense
12
+ * - Repeat with other user roles. Best directly by using the links/query string parameters.
13
+ * - Repeat things for multisite. Once for a single site in the network, once sitewide.
14
+ *
15
+ * This file may be updated more in future version of the Boilerplate; however, this is the
16
+ * general skeleton and outline for how the file should work.
17
+ *
18
+ * For more information, see the following discussion:
19
+ * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
20
+ *
21
+ * @link https://themeisle.com
22
+ * @since 1.0.0
23
+ *
24
+ * @package Orbit_Fox
25
+ */
26
+
27
+ // If uninstall not called from WordPress, then exit.
28
+ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
29
+ exit;
30
+ }
vendor/autoload.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload.php @generated by Composer
4
+
5
+ require_once __DIR__ . '/composer' . '/autoload_real.php';
6
+
7
+ return ComposerAutoloaderInit1163fdb19d8675f98860f27888593a7c::getLoader();
vendor/codeinwp/themeisle-sdk/LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ {one line to give the program's name and a brief idea of what it does.}
635
+ Copyright (C) {year} {name of author}
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ {project} Copyright (C) {year} {fullname}
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php ADDED
@@ -0,0 +1,470 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The deactivate feedback model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Feedback
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
16
+ /**
17
+ * Deactivate feedback model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Feedback_Deactivate extends ThemeIsle_SDK_Feedback {
20
+
21
+ /**
22
+ * @var array $options_plugin The main options list for plugins.
23
+ */
24
+ private $options_plugin = array(
25
+ 'I only needed the plugin for a short period' => array(
26
+ 'id' => 1,
27
+ ),
28
+ 'The plugin broke my site' => array(
29
+ 'id' => 2,
30
+ ),
31
+ 'I found a better plugin' => array(
32
+ 'id' => 3,
33
+ 'type' => 'text',
34
+ 'placeholder' => 'What\'s the plugin\'s name?',
35
+ ),
36
+ 'The plugin suddenly stopped working' => array(
37
+ 'id' => 4,
38
+ ),
39
+ 'I no longer need the plugin' => array(
40
+ 'id' => 5,
41
+ 'type' => 'textarea',
42
+ 'placeholder' => 'If you could improve one thing about our product, what would it be?',
43
+ ),
44
+ 'It\'s a temporary deactivation. I\'m just debugging an issue.' => array(
45
+ 'id' => 6,
46
+ ),
47
+ );
48
+
49
+ /**
50
+ * @var array $options_theme The main options list for themes.
51
+ */
52
+ private $options_theme = array(
53
+ 'I don\'t know how to make it look like demo' => array(
54
+ 'id' => 7,
55
+ ),
56
+ 'It lacks options' => array(
57
+ 'id' => 8,
58
+ ),
59
+ 'Is not working with a plugin that I need' => array(
60
+ 'id' => 9,
61
+ 'type' => 'text',
62
+ 'placeholder' => 'What is the name of the plugin',
63
+ ),
64
+ 'I want to try a new design, I don\'t like {theme} style' => array(
65
+ 'id' => 10,
66
+ ),
67
+ );
68
+
69
+ /**
70
+ * @var array $other The other option
71
+ */
72
+ private $other = array(
73
+ 'Other' => array(
74
+ 'id' => 999,
75
+ 'type' => 'textarea',
76
+ 'placeholder' => 'cmon cmon tell us',
77
+ ),
78
+ );
79
+
80
+ /**
81
+ * @var string $heading_plugin The heading of the modal
82
+ */
83
+ private $heading_plugin = 'If you have a moment, please let us know why you are deactivating:';
84
+
85
+ /**
86
+ * @var string $heading_theme The heading of the modal
87
+ */
88
+ private $heading_theme = 'Looking to change {theme}, what doesn\'t work for you?';
89
+
90
+ /**
91
+ * @var string $button_submit_before The text of the deactivate button before an option is chosen
92
+ */
93
+ private $button_submit_before = 'Skip &amp; Deactivate';
94
+
95
+ /**
96
+ * @var string $button_submit The text of the deactivate button
97
+ */
98
+ private $button_submit = 'Submit &amp; Deactivate';
99
+
100
+ /**
101
+ * @var string $button_cancel The text of the cancel button
102
+ */
103
+ private $button_cancel = 'Cancel';
104
+
105
+ /**
106
+ * @var int how many seconds before the deactivation window is triggered for themes
107
+ */
108
+ const AUTO_TRIGGER_DEACTIVATE_WINDOW_SECONDS = 3;
109
+
110
+ /**
111
+ * @var int how many days before the deactivation window pops up again for the theme
112
+ */
113
+ const PAUSE_DEACTIVATE_WINDOW_DAYS = 100;
114
+
115
+ /**
116
+ * ThemeIsle_SDK_Feedback_Deactivate constructor.
117
+ *
118
+ * @param ThemeIsle_SDK_Product $product_object The product object.
119
+ */
120
+ public function __construct( $product_object ) {
121
+ parent::__construct( $product_object );
122
+ }
123
+
124
+ /**
125
+ * Registers the hooks
126
+ */
127
+ public function setup_hooks_child() {
128
+ global $pagenow;
129
+
130
+ if ( ( $this->product->get_type() === 'plugin' && $pagenow === 'plugins.php' ) || ( $this->product->get_type() === 'theme' && $pagenow === 'theme-install.php' ) ) {
131
+ add_action( 'admin_head', array( $this, 'load_resources' ) );
132
+ }
133
+ add_action( 'wp_ajax_' . $this->product->get_key() . __CLASS__, array( $this, 'post_deactivate' ) );
134
+ }
135
+
136
+ /**
137
+ * Loads the additional resources
138
+ */
139
+ function load_resources() {
140
+ add_thickbox();
141
+
142
+ $id = $this->product->get_key() . '_deactivate';
143
+
144
+ $this->add_css( $this->product->get_type(), $this->product->get_key() );
145
+ $this->add_js( $this->product->get_type(), $this->product->get_key(), '#TB_inline?' . apply_filters( $this->product->get_key() . '_feedback_deactivate_attributes', 'width=600&height=550' ) . '&inlineId=' . $id );
146
+
147
+ echo '<div id="' . $id . '" style="display:none;" class="themeisle-deactivate-box">' . $this->get_html( $this->product->get_type(), $this->product->get_key() ) . '</div>';
148
+ }
149
+
150
+ /**
151
+ * Loads the css
152
+ *
153
+ * @param string $type The type of product.
154
+ * @param string $key The product key.
155
+ */
156
+ function add_css( $type, $key ) {
157
+ $suffix = 'theme' === $type ? 'theme-install-php' : 'plugins-php';
158
+ ?>
159
+ <style type="text/css" id="<?php echo $key; ?>ti-deactivate-css">
160
+ input[name="ti-deactivate-option"] ~ div {
161
+ display: none;
162
+ }
163
+
164
+ input[name="ti-deactivate-option"]:checked ~ div {
165
+ display: block;
166
+ }
167
+
168
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_window.thickbox-loading:before {
169
+ background: none !important;
170
+ }
171
+
172
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_title {
173
+ font-size: 21px;
174
+ padding: 20px 0;
175
+ background-color: #f3f3f3;
176
+ }
177
+
178
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.actions {
179
+ padding: 20px 0;
180
+ background-color: #f3f3f3;
181
+ border-top: 1px solid #dddddd;
182
+ }
183
+
184
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button.button-primary {
185
+ margin-right: 20px;
186
+ }
187
+
188
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container input.button {
189
+ margin-right: 20px;
190
+ }
191
+
192
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_ajaxWindowTitle {
193
+ text-align: left;
194
+ margin-left: 15px;
195
+ }
196
+
197
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container div.revive_network-container {
198
+ background-color: #ffffff;
199
+ }
200
+
201
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li {
202
+ font-size: 14px;
203
+ }
204
+
205
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li label {
206
+ margin-left: 10px;
207
+ line-height: 32px;
208
+ font-size: 16px;
209
+ }
210
+
211
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_ajaxContent {
212
+ padding: 10px 20px;
213
+ }
214
+
215
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container li div textarea {
216
+ padding: 10px 15px;
217
+ width: 100%;
218
+ }
219
+
220
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container ul.ti-list li div {
221
+ margin: 10px 30px;
222
+ }
223
+
224
+ .<?php echo $key; ?>-container #TB_title #TB_ajaxWindowTitle {
225
+ display: block;
226
+ }
227
+
228
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container .actions {
229
+
230
+ width: 100%;
231
+ display: block;
232
+ position: absolute;
233
+ left: 0px;
234
+ bottom: 0px;
235
+ text-align: right;
236
+ }
237
+
238
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container #TB_title {
239
+
240
+ height: 33px;
241
+ width: 100%;
242
+ text-align: center;
243
+ }
244
+
245
+ .theme-install-php .<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon:before {
246
+ font-size: 32px;
247
+ }
248
+
249
+ .<?php echo $key; ?>-container #TB_closeWindowButton .tb-close-icon {
250
+
251
+ color: #eee;
252
+ }
253
+
254
+ .<?php echo $key; ?>-container #TB_closeWindowButton {
255
+ left: auto;
256
+ right: -30px;
257
+ color: #eee;
258
+ }
259
+
260
+ body.<?php echo $suffix; ?> .<?php echo $key; ?>-container {
261
+
262
+ margin: auto !important;
263
+ height: 550px !important;
264
+ top: 0 !important;
265
+ left: 0 !important;
266
+ bottom: 0 !important;
267
+ right: 0 !important;
268
+ }
269
+ </style>
270
+ <?php
271
+ }
272
+
273
+ /**
274
+ * Loads the js
275
+ *
276
+ * @param string $type The type of product.
277
+ * @param string $key The product key.
278
+ * @param string $src The url that will hijack the deactivate button url.
279
+ */
280
+ function add_js( $type, $key, $src ) {
281
+ $heading = 'plugin' === $type ? $this->heading_plugin : str_replace( '{theme}', $this->product->get_name(), $this->heading_theme );
282
+ $heading = apply_filters( $this->product->get_key() . '_feedback_deactivate_heading', $heading );
283
+ ?>
284
+ <script type="text/javascript" id="ti-deactivate-js">
285
+ (function ($) {
286
+ $(document).ready(function () {
287
+ var auto_trigger = false;
288
+ var target_element = 'tr[data-plugin^="<?php echo $this->product->get_slug(); ?>/"] span.deactivate a';
289
+ <?php
290
+ if ( 'theme' === $type ) {
291
+ ?>
292
+ auto_trigger = true;
293
+ if ($('a.ti-auto-anchor').length == 0) {
294
+ $('body').append($('<a class="ti-auto-anchor" href=""></a>'));
295
+ }
296
+ target_element = 'a.ti-auto-anchor';
297
+ <?php
298
+ }
299
+ ?>
300
+
301
+ if (auto_trigger) {
302
+ setTimeout(function () {
303
+ $('a.ti-auto-anchor').trigger('click');
304
+ }, <?php echo self::AUTO_TRIGGER_DEACTIVATE_WINDOW_SECONDS * 1000; ?> );
305
+ }
306
+ $( document ).on( 'thickbox:removed', function() {
307
+ $.ajax({
308
+ url: ajaxurl,
309
+ method: 'post',
310
+ data: {
311
+ 'action' : '<?php echo $key . __CLASS__; ?>',
312
+ 'nonce' : '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
313
+ 'type' : '<?php echo $type; ?>',
314
+ 'key' : '<?php echo $key; ?>'
315
+ },
316
+ });
317
+ });
318
+ var href = $(target_element).attr('href');
319
+ $('#<?php echo $key; ?>ti-deactivate-no').on('click', function (e) {
320
+ e.preventDefault();
321
+ e.stopPropagation();
322
+
323
+ $('body').unbind('thickbox:removed');
324
+ tb_remove();
325
+ });
326
+
327
+ $('#<?php echo $key; ?> ul.ti-list label, #<?php echo $key; ?> ul.ti-list input[name="ti-deactivate-option"]').on('click', function (e) {
328
+ $('#<?php echo $key; ?>ti-deactivate-yes').val($('#<?php echo $key; ?>ti-deactivate-yes').attr('data-after-text'));
329
+
330
+ var radio = $(this).prop('tagName') === 'LABEL' ? $(this).parent() : $(this);
331
+ if (radio.parent().find('textarea').length > 0 && radio.parent().find('textarea').val().length === 0) {
332
+ $('#<?php echo $key; ?>ti-deactivate-yes').attr('disabled', 'disabled');
333
+ radio.parent().find('textarea').on('keyup', function (ee) {
334
+ if ($(this).val().length === 0) {
335
+ $('#<?php echo $key; ?>ti-deactivate-yes').attr('disabled', 'disabled');
336
+ } else {
337
+ $('#<?php echo $key; ?>ti-deactivate-yes').removeAttr('disabled');
338
+ }
339
+ });
340
+ } else {
341
+ $('#<?php echo $key; ?>ti-deactivate-yes').removeAttr('disabled');
342
+ }
343
+ });
344
+
345
+ $('#<?php echo $key; ?>ti-deactivate-yes').attr('data-ti-action', href).on('click', function (e) {
346
+ e.preventDefault();
347
+ e.stopPropagation();
348
+ $.ajax({
349
+ url: ajaxurl,
350
+ method: 'post',
351
+ data: {
352
+ 'action' : '<?php echo $key . __CLASS__; ?>',
353
+ 'nonce' : '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
354
+ 'id' : $('#<?php echo $key; ?> input[name="ti-deactivate-option"]:checked').parent().attr('ti-option-id'),
355
+ 'msg' : $('#<?php echo $key; ?> input[name="ti-deactivate-option"]:checked').parent().find('textarea').val(),
356
+ 'type' : '<?php echo $type; ?>',
357
+ 'key' : '<?php echo $key; ?>'
358
+ },
359
+ });
360
+ var redirect = $(this).attr('data-ti-action');
361
+ if (redirect != '') {
362
+ location.href = redirect;
363
+ } else {
364
+ $('body').unbind('thickbox:removed');
365
+ tb_remove();
366
+ }
367
+ });
368
+
369
+ $(target_element).attr('name', '<?php echo esc_html( $heading ); ?>').attr('href', '<?php echo $src; ?>').addClass('thickbox');
370
+ var thicbox_timer;
371
+ $(target_element).on('click', function () {
372
+ tiBindThickbox();
373
+ });
374
+
375
+ function tiBindThickbox() {
376
+ var thicbox_timer = setTimeout(function () {
377
+ if ($("#<?php echo esc_html( $key ); ?>").is(":visible")) {
378
+ $("body").trigger('thickbox:iframe:loaded');
379
+ $("#TB_window").addClass("<?php echo $key; ?>-container");
380
+ clearTimeout(thicbox_timer);
381
+ $('body').unbind('thickbox:removed');
382
+ } else {
383
+ tiBindThickbox();
384
+ }
385
+ }, 100);
386
+ }
387
+ });
388
+ })(jQuery);
389
+ </script>
390
+ <?php
391
+ }
392
+
393
+ /**
394
+ * Generates the HTML
395
+ *
396
+ * @param string $type The type of product.
397
+ * @param string $key The product key.
398
+ */
399
+ function get_html( $type, $key ) {
400
+ $options = 'plugin' === $type ? $this->options_plugin : $this->options_theme;
401
+ $button_submit_before = 'plugin' === $type ? $this->button_submit_before : 'Submit';
402
+ $button_submit = 'plugin' === $type ? $this->button_submit : 'Submit';
403
+ $options = $this->randomize_options( apply_filters( $this->product->get_key() . '_feedback_deactivate_options', $options ) );
404
+ $button_submit_before = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit_before', $button_submit_before );
405
+ $button_submit = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_submit', $button_submit );
406
+ $button_cancel = apply_filters( $this->product->get_key() . '_feedback_deactivate_button_cancel', $this->button_cancel );
407
+
408
+ $options += $this->other;
409
+
410
+ $list = '';
411
+ foreach ( $options as $title => $attributes ) {
412
+ $id = $attributes['id'];
413
+ $list .= '<li ti-option-id="' . $id . '"><input type="radio" name="ti-deactivate-option" id="' . $key . $id . '"><label for="' . $key . $id . '">' . str_replace( '{theme}', $this->product->get_name(), $title ) . '</label>';
414
+ if ( array_key_exists( 'type', $attributes ) ) {
415
+ $list .= '<div>';
416
+ $placeholder = array_key_exists( 'placeholder', $attributes ) ? __( $attributes['placeholder'] ) : '';
417
+ switch ( $attributes['type'] ) {
418
+ case 'text':
419
+ $list .= '<textarea style="width: 100%" rows="1" name="comments" placeholder="' . $placeholder . '"></textarea>';
420
+ break;
421
+ case 'textarea':
422
+ $list .= '<textarea style="width: 100%" rows="2" name="comments" placeholder="' . $placeholder . '"></textarea>';
423
+ break;
424
+ }
425
+ $list .= '</div>';
426
+ }
427
+ $list .= '</li>';
428
+ }
429
+
430
+ return '<div id="' . $this->product->get_key() . '">'
431
+ . '<ul class="ti-list">' . $list . '</ul>'
432
+ . '<div class="actions">'
433
+ . get_submit_button(
434
+ __( $button_submit_before ), 'secondary', $this->product->get_key() . 'ti-deactivate-yes', false, array(
435
+ 'data-after-text' => $button_submit,
436
+ )
437
+ )
438
+ . get_submit_button( __( $button_cancel ), 'primary', $this->product->get_key() . 'ti-deactivate-no', false )
439
+ . '</div></div>';
440
+ }
441
+
442
+ /**
443
+ * Called when the deactivate button is clicked
444
+ */
445
+ function post_deactivate() {
446
+ check_ajax_referer( (string) __CLASS__, 'nonce' );
447
+
448
+ if ( ! empty( $_POST['id'] ) ) {
449
+ $this->call_api(
450
+ array(
451
+ 'type' => 'deactivate',
452
+ 'id' => $_POST['id'],
453
+ 'comment' => isset( $_POST['msg'] ) ? $_POST['msg'] : '',
454
+ )
455
+ );
456
+ }
457
+
458
+ $this->post_deactivate_or_cancel();
459
+ }
460
+
461
+ /**
462
+ * Called when the deactivate/cancel button is clicked
463
+ */
464
+ private function post_deactivate_or_cancel() {
465
+ if ( isset( $_POST['type'] ) && isset( $_POST['key'] ) && 'theme' === $_POST['type'] ) {
466
+ set_transient( 'ti_sdk_pause_' . $_POST['key'], true, PAUSE_DEACTIVATE_WINDOW_DAYS * DAY_IN_SECONDS );
467
+ }
468
+ }
469
+ }
470
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-factory.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The feedback factory class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Feedback
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Factory' ) ) :
16
+ /**
17
+ * Feedback model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Feedback_Factory {
20
+
21
+ /**
22
+ * @var array $instances collection of the instances that are registered with the factory
23
+ */
24
+ private $_instances = array();
25
+
26
+ /**
27
+ * ThemeIsle_SDK_Feedback_Factory constructor.
28
+ *
29
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
30
+ * @param array $feedback_types the feedback types.
31
+ */
32
+ public function __construct( $product_object, $feedback_types ) {
33
+ if ( $product_object instanceof ThemeIsle_SDK_Product && $feedback_types && is_array( $feedback_types ) ) {
34
+ foreach ( $feedback_types as $type ) {
35
+ $class = 'ThemeIsle_SDK_Feedback_' . ucwords( $type );
36
+ $instance = new $class( $product_object );
37
+ $this->_instances[ $type ] = $instance;
38
+ $instance->setup_hooks();
39
+ }
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Get the registered instances
45
+ */
46
+ public function get_instances() {
47
+ return $this->_instances;
48
+ }
49
+ }
50
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-review.php ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The review feedback model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Feedback
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Review' ) ) :
16
+ /**
17
+ * Deactivate feedback model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Feedback_Review extends ThemeIsle_SDK_Feedback {
20
+
21
+ /**
22
+ * @var string $heading The heading of the modal
23
+ */
24
+ private $heading = 'Hey, it’s great to see you have {product} active for a few days now. How is everything going? If you can spare a few moments to rate it on WordPress.org it would help us a lot (and boost my motivation). Cheers! <br/> <br/>~ {developer}, developer of {product}';
25
+
26
+ /**
27
+ * @var string $button_cancel The text of the cancel button
28
+ */
29
+ private $button_cancel = 'No, thanks.';
30
+ /**
31
+ * @var array Developers who work for each type of product for review purpose.
32
+ */
33
+ private $developers = array(
34
+ 'plugin' => array( 'Marius', 'Bogdan' ),
35
+ 'theme' => array( 'Rodica', 'Andrei', 'Bogdan', 'Cristi' ),
36
+ );
37
+ /**
38
+ * @var string $button_already The text of the already did it button
39
+ */
40
+ private $button_do = 'Ok, I will gladly help.';
41
+
42
+ /**
43
+ * ThemeIsle_SDK_Feedback_Deactivate constructor.
44
+ *
45
+ * @param ThemeIsle_SDK_Product $product_object The product object.
46
+ */
47
+ public function __construct( $product_object ) {
48
+ parent::__construct( $product_object );
49
+ }
50
+
51
+ /**
52
+ * Registers the hooks
53
+ */
54
+ public function setup_hooks_child() {
55
+ add_action( 'wp_ajax_' . $this->product->get_key() . __CLASS__, array( $this, 'dismiss' ) );
56
+ }
57
+
58
+ /**
59
+ * Shows the notification
60
+ */
61
+ function show_notification() {
62
+ if ( ! $this->product->is_wordpress_available() ) {
63
+ $this->disable();
64
+
65
+ return false;
66
+ }
67
+ $show = get_option( $this->product->get_key() . '_review_flag', 'yes' );
68
+ if ( 'no' === $show ) {
69
+ return false;
70
+ }
71
+ add_action( 'admin_notices', array( $this, 'admin_notices' ) );
72
+
73
+ return true;
74
+ }
75
+
76
+ /**
77
+ * Shows the admin notice
78
+ */
79
+ function admin_notices() {
80
+ $id = $this->product->get_key() . '_review';
81
+
82
+ $this->add_css( $this->product->get_key() );
83
+ $this->add_js( $this->product->get_key() );
84
+
85
+ echo '<div class="notice notice-success is-dismissible" id="' . $id . '" ><div class="themeisle-review-box">' . $this->get_html( $this->product->get_key() ) . '</div></div>';
86
+ }
87
+
88
+ /**
89
+ * Loads the css
90
+ *
91
+ * @param string $key The product key.
92
+ */
93
+ function add_css( $key ) {
94
+ ?>
95
+ <style type="text/css" id="<?php echo $key; ?>ti-review-css">
96
+ #<?php echo $key; ?>-review-notification {
97
+ padding-bottom: 5px;
98
+ }
99
+
100
+ #<?php echo $key; ?>-review-notification .review-dismiss {
101
+ margin-left: 5px;
102
+ }
103
+ </style>
104
+ <?php
105
+ }
106
+
107
+ /**
108
+ * Loads the js
109
+ *
110
+ * @param string $key The product key.
111
+ */
112
+ function add_js( $key ) {
113
+ ?>
114
+ <script type="text/javascript" id="<?php echo $key; ?>ti-review-js">
115
+ (function ($) {
116
+ $(document).ready(function () {
117
+ $('#<?php echo $key; ?>_review').on('click', '.notice-dismiss, .review-dismiss', function (e) {
118
+
119
+ $.ajax({
120
+ url: ajaxurl,
121
+ method: "post",
122
+ data: {
123
+ 'nonce': '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
124
+ 'action': '<?php echo $this->product->get_key() . __CLASS__; ?>'
125
+ },
126
+ success: function () {
127
+ $('#<?php echo $key; ?>_review').hide();
128
+ }
129
+ });
130
+ });
131
+ });
132
+ })(jQuery);
133
+ </script>
134
+ <?php
135
+ }
136
+
137
+ /**
138
+ * Generates the HTML
139
+ *
140
+ * @param string $key The product key.
141
+ */
142
+ function get_html( $key ) {
143
+ $link = 'https://wordpress.org/support/' . $this->product->get_type() . '/' . $this->product->get_slug() . '/reviews/#wporg-footer';
144
+ $heading = apply_filters( $this->product->get_key() . '_feedback_review_heading', $this->heading );
145
+ $heading = str_replace(
146
+ array( '{product}' ),
147
+ trim( str_replace( 'Lite', '', $this->product->get_name() ) ), $heading
148
+ );
149
+ $heading = str_replace( '{developer}', $this->developers[ $this->product->get_type() ][ rand( 0, ( count( $this->developers[ $this->product->get_type() ] ) - 1 ) ) ], $heading );
150
+
151
+ $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', $this->button_cancel );
152
+ $button_do = apply_filters( $this->product->get_key() . '_feedback_review_button_do', $this->button_do );
153
+
154
+ return '<div id="' . $this->product->get_key() . '-review-notification" class="themeisle-sdk-review-box">'
155
+ . '<p>' . $heading . '</p>'
156
+ . '<div class="actions">'
157
+ . '<a href="' . $link . '" target="_blank" class="button button-primary review-dismiss"> ' . $button_do . '</a>'
158
+ . get_submit_button( $button_cancel, 'review-dismiss ' . $this->product->get_key() . '-ti-review', $this->product->get_key() . 'ti-review-no', false )
159
+ . '</div></div>';
160
+ }
161
+
162
+ /**
163
+ * Called when the either button is clicked
164
+ */
165
+ function dismiss() {
166
+ check_ajax_referer( (string) __CLASS__, 'nonce' );
167
+
168
+ $this->disable();
169
+ }
170
+
171
+ /**
172
+ * Disables the notification
173
+ */
174
+ protected function disable() {
175
+ update_option( $this->product->get_key() . '_review_flag', 'no' );
176
+ }
177
+
178
+ /**
179
+ * Enables the notification
180
+ */
181
+ protected function enable() {
182
+ update_option( $this->product->get_key() . '_review_flag', 'yes' );
183
+ }
184
+ }
185
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The feedback model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Feedback
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Feedback' ) ) :
16
+ /**
17
+ * Feedback model for ThemeIsle SDK.
18
+ */
19
+ abstract class ThemeIsle_SDK_Feedback {
20
+ /**
21
+ * @var ThemeIsle_SDK_Product $product Themeisle Product.
22
+ */
23
+ protected $product;
24
+
25
+ /**
26
+ * @var string $feedback_url Url where to send the feedback
27
+ */
28
+ private $feedback_url = 'http://feedback.themeisle.com/wordpress/wp-json/__pirate_feedback_/v1/feedback';
29
+
30
+ /**
31
+ * ThemeIsle_SDK_Feedback constructor.
32
+ *
33
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
34
+ */
35
+ public function __construct( $product_object ) {
36
+ if ( $product_object instanceof ThemeIsle_SDK_Product ) {
37
+ $this->product = $product_object;
38
+ }
39
+ $this->setup_hooks();
40
+ }
41
+
42
+ /**
43
+ * Registers the hooks and then delegates to the child
44
+ */
45
+ public function setup_hooks() {
46
+ $this->setup_hooks_child();
47
+ }
48
+
49
+ /**
50
+ * Calls the API
51
+ *
52
+ * @param string $attributes The attributes of the post body.
53
+ */
54
+ protected function call_api( $attributes ) {
55
+ $slug = $this->product->get_slug();
56
+ $version = $this->product->get_version();
57
+ $attributes['slug'] = $slug;
58
+ $attributes['version'] = $version;
59
+
60
+ $response = wp_remote_post(
61
+ $this->feedback_url, array(
62
+ 'body' => $attributes,
63
+ )
64
+ );
65
+ }
66
+
67
+ /**
68
+ * Randomizes the options array
69
+ *
70
+ * @param array $options The options array.
71
+ */
72
+ function randomize_options( $options ) {
73
+ $new = array();
74
+ $keys = array_keys( $options );
75
+ shuffle( $keys );
76
+
77
+ foreach ( $keys as $key ) {
78
+ $new[ $key ] = $options[ $key ];
79
+ }
80
+
81
+ return $new;
82
+ }
83
+
84
+ /**
85
+ * Abstract function for delegating to the child
86
+ */
87
+ protected abstract function setup_hooks_child();
88
+
89
+ }
90
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-licenser.php ADDED
@@ -0,0 +1,710 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The main loader class for license handling.
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Licenser
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ if ( ! class_exists( 'ThemeIsle_SDK_Licenser' ) ) :
12
+ /**
13
+ * Class ThemeIsle_SDK_Licenser
14
+ *
15
+ * Used to update the themeisle products
16
+ */
17
+ class ThemeIsle_SDK_Licenser {
18
+
19
+ /**
20
+ * @var string $license_key The license key string
21
+ */
22
+ public $license_key;
23
+
24
+ /**
25
+ * @var bool $do_check This ensures that the custom API request only runs on the second time that WP fires the update check
26
+ */
27
+ private $do_check = false;
28
+
29
+ /**
30
+ * @var bool $failed_checks Number of failed checks to the api endpoint
31
+ */
32
+ private $failed_checks = 0;
33
+ /**
34
+ * @var ThemeIsle_SDK_Product $product The ThemeIsle Product.
35
+ */
36
+ private $product;
37
+ /**
38
+ * @var string $product_key The product update response key.
39
+ */
40
+ private $product_key;
41
+ /**
42
+ * @var int $max_failed Maximum failed checks allowed before show the notice
43
+ */
44
+ private static $max_failed = 5;
45
+
46
+ /**
47
+ * ThemeIsle_SDK_Licenser constructor.
48
+ *
49
+ * @param ThemeIsle_SDK_Product $product The product object.
50
+ */
51
+ public function __construct( $product ) {
52
+ $this->product = $product;
53
+ $this->product_key = $this->product->get_key() . '-update-response';
54
+ if ( ! $this->product->requires_license() ) {
55
+ $this->license_key = 'free';
56
+ } else {
57
+ $license_data = get_option( $this->product->get_key() . '_license_data', '' );
58
+ $this->failed_checks = intval( get_option( $this->product->get_key() . '_failed_checks', 0 ) );
59
+ if ( $license_data !== '' ) {
60
+ $this->license_key = isset( $license_data->key ) ? $license_data->key : get_option( $this->product->get_key() . '_license', '' );
61
+ } else {
62
+ $this->license_key = get_option( $this->product->get_key() . '_license', '' );
63
+ }
64
+ $this->register_license_hooks();
65
+ }
66
+ }
67
+
68
+ /**
69
+ * Register license hooks for the themeisle products
70
+ */
71
+ public function register_license_hooks() {
72
+ add_action( 'admin_init', array( $this, 'register_settings' ) );
73
+ add_action( 'admin_init', array( $this, 'activate_license' ) );
74
+ add_action( 'admin_init', array( $this, 'product_valid' ), 99999999 );
75
+ add_action( 'admin_notices', array( $this, 'show_notice' ) );
76
+ }
77
+
78
+ /**
79
+ * @param string $r Update payload.
80
+ * @param string $url The api url.
81
+ *
82
+ * @return mixed List of themes to check for update.
83
+ */
84
+ function disable_wporg_update( $r, $url ) {
85
+
86
+ if ( 0 !== strpos( $url, 'https://api.wordpress.org/themes/update-check/' ) ) {
87
+ return $r;
88
+ }
89
+
90
+ // Decode the JSON response
91
+ $themes = json_decode( $r['body']['themes'] );
92
+
93
+ unset( $themes->themes->{$this->product->get_slug()} );
94
+
95
+ // Encode the updated JSON response
96
+ $r['body']['themes'] = json_encode( $themes );
97
+
98
+ return $r;
99
+ }
100
+
101
+ /**
102
+ * Register the setting for the license of the product
103
+ *
104
+ * @return bool
105
+ */
106
+ public function register_settings() {
107
+ if ( ! is_admin() ) {
108
+ return false;
109
+ }
110
+ add_settings_field(
111
+ $this->product->get_key() . '_license',
112
+ $this->product->get_name() . ' license',
113
+ array( $this, 'license_view' ),
114
+ 'general'
115
+ );
116
+ }
117
+
118
+ /**
119
+ * The license view field
120
+ */
121
+ public function license_view() {
122
+ $status = $this->get_license_status();
123
+ $value = $this->license_key;
124
+
125
+ $activate_string = apply_filters( $this->product->get_key() . '_lc_activate_string', 'Activate' );
126
+ $deactivate_string = apply_filters( $this->product->get_key() . '_lc_deactivate_string', 'Deactivate' );
127
+ $valid_string = apply_filters( $this->product->get_key() . '_lc_valid_string', 'Valid' );
128
+ $invalid_string = apply_filters( $this->product->get_key() . '_lc_invalid_string', 'Invalid' );
129
+ $license_message = apply_filters( $this->product->get_key() . '_lc_license_message', 'Enter your license from %s purchase history in order to get %s updates' );
130
+
131
+ echo '<p ><input ' . ( ( $status === 'valid' ) ? ( 'style="border:1px solid #7ad03a; "' ) : '' ) . ' type="text" id="' . $this->product->get_key() . '_license" name="' . $this->product->get_key() . '_license" value="' . $value . '" /><a ' . ( ( $status === 'valid' ) ? ( 'style="color:#fff;background: #7ad03a; display: inline-block;text-decoration: none;font-size: 13px;line-height: 26px;height: 26px; margin-left:5px; padding: 0 10px 1px; -webkit-border-radius: 3px;border-radius: 3px; ">' . $valid_string ) : ( 'style="color:#fff;background: #dd3d36; display: inline-block;text-decoration: none;font-size: 13px;line-height: 26px;height: 26px; margin-left:5px; padding: 0 10px 1px; -webkit-border-radius: 3px;border-radius: 3px; ">' . $invalid_string ) ) . ' </a>&nbsp;&nbsp;&nbsp;<button name="' . $this->product->get_key() . '_btn_trigger" ' . ( ( $status === 'valid' ) ? ( ' class="button button-primary">' . $deactivate_string ) : ( ' class="button button-primary" value="yes" type="submit" >' . $activate_string ) ) . ' </button></p><p class="description">' . sprintf( $license_message, '<a href="' . $this->product->get_store_url() . '">' . $this->product->get_store_name() . '</a> ', $this->product->get_type() ) . '</p>';
132
+
133
+ }
134
+
135
+ /**
136
+ * Return the license status.
137
+ *
138
+ * @return string The License status.
139
+ */
140
+ public function get_license_status() {
141
+ $license_data = get_option( $this->product->get_key() . '_license_data', '' );
142
+ if ( $license_data !== '' ) {
143
+ return isset( $license_data->license ) ? $license_data->license : get_option( $this->product->get_key() . '_license_status', 'not_active' );
144
+ } else {
145
+ return get_option( $this->product->get_key() . '_license_status', 'not_active' );
146
+ }
147
+
148
+ }
149
+
150
+ /**
151
+ * Check if the license is active or not
152
+ *
153
+ * @return bool
154
+ */
155
+ public function check_activation() {
156
+ $license_data = get_option( $this->product->get_key() . '_license_data', '' );
157
+ if ( $license_data !== '' ) {
158
+ return isset( $license_data->error ) ? ( $license_data->error == 'no_activations_left' ) : false;
159
+ }
160
+
161
+ return false;
162
+ }
163
+
164
+ /**
165
+ * Check if the license is about to expire in the next month
166
+ *
167
+ * @return bool
168
+ */
169
+ function check_expiration() {
170
+ $license_data = get_option( $this->product->get_key() . '_license_data', '' );
171
+ if ( $license_data !== '' ) {
172
+ if ( isset( $license_data->expires ) ) {
173
+ if ( strtotime( $license_data->expires ) - time() < 30 * 24 * 3600 ) {
174
+ return true;
175
+ }
176
+ }
177
+ }
178
+
179
+ return false;
180
+ }
181
+
182
+ /**
183
+ * Return the renew url from the store used
184
+ *
185
+ * @return string The renew url.
186
+ */
187
+ function renew_url() {
188
+ $license_data = get_option( $this->product->get_key() . '_license_data', '' );
189
+ if ( $license_data !== '' ) {
190
+ if ( isset( $license_data->download_id ) && isset( $license_data->key ) ) {
191
+ return $this->product->get_store_url() . '/checkout/?edd_license_key=' . $license_data->key . '&download_id=' . $license_data->download_id;
192
+ }
193
+ }
194
+
195
+ return $this->product->get_store_url();
196
+ }
197
+
198
+ /**
199
+ * Check if we hide the notificatin nag or not
200
+ *
201
+ * @param string $hide The notification to hide.
202
+ *
203
+ * @return bool Either hide them or not.
204
+ */
205
+ function check_hide( $hide ) {
206
+ if ( isset( $_GET[ $this->product->get_key() . '_hide_' . $hide ] ) ) {
207
+ if ( $_GET[ $this->product->get_key() . '_hide_' . $hide ] === 'yes' ) {
208
+ update_option( $this->product->get_key() . '_hide_' . $hide, 'yes' );
209
+
210
+ return false;
211
+ }
212
+ } else {
213
+ $license = get_option( $this->product->get_key() . '_hide_' . $hide, '' );
214
+ if ( $license === 'yes' ) {
215
+ return false;
216
+ }
217
+ }
218
+
219
+ return true;
220
+ }
221
+
222
+ /**
223
+ * Show the admin notice regarding the license status
224
+ *
225
+ * @return bool
226
+ */
227
+ function show_notice() {
228
+ if ( ! is_admin() ) {
229
+ return false;
230
+ }
231
+ $status = $this->get_license_status();
232
+ $no_activations_string = apply_filters(
233
+ $this->product->get_key() . '_lc_no_activations_string', 'No activations left for %s !!!. You need to
234
+ upgrade your plan in order to use %s on more
235
+ websites. Please ask the %s
236
+ Staff for more details.'
237
+ );
238
+ $no_valid_string = apply_filters(
239
+ $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s , please add
240
+ your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a
241
+ href="%s">here</a> '
242
+ );
243
+ $expiration_string = apply_filters(
244
+ $this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire
245
+ for %s. You can go to %s and renew it '
246
+ );
247
+ $hide_notice_string = apply_filters( $this->product->get_key() . '_lc_hide_notice_string', 'Hide Notice' );
248
+ if ( $status != 'valid' ) {
249
+ if ( $this->check_activation() ) {
250
+ if ( $this->check_hide( 'activation' ) ) {
251
+ ?>
252
+ <div class="error">
253
+ <p><strong>
254
+ <?php
255
+ echo sprintf(
256
+ $no_activations_string, $this->product->get_name(), $this->product->get_name(), '<a href="' . $this->product->get_store_url() . '"
257
+ target="_blank">' . $this->product->get_store_name() . '</a>'
258
+ );
259
+ ?>
260
+ </strong> | <a
261
+ href="<?php echo add_query_arg( $this->product->get_key() . '_activation', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
262
+ </p>
263
+ </div>
264
+ <?php
265
+ return false;
266
+ }
267
+ }
268
+ ?>
269
+ <?php if ( $this->check_hide( 'valid' ) ) : ?>
270
+ <div class="error">
271
+ <p>
272
+ <strong><?php echo sprintf( $no_valid_string, $this->product->get_name() . ' ' . $this->product->get_type(), $this->product->get_store_url(), admin_url( 'options-general.php' ) . '#' . $this->product->get_key() ); ?> </strong>|
273
+ <a
274
+ href="<?php echo add_query_arg( $this->product->get_key() . '_hide_valid', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
275
+ </p>
276
+ </div>
277
+ <?php endif; ?>
278
+ <?php
279
+ } else {
280
+ if ( $this->check_expiration() ) {
281
+ if ( $this->check_hide( 'expiration' ) ) {
282
+ ?>
283
+ <div class="update-nag">
284
+ <p>
285
+ <strong>
286
+ <?php
287
+ echo sprintf(
288
+ $expiration_string, $this->product->get_name() . ' ' . $this->product->get_type(), '<a
289
+ href="' . $this->renew_url() . '"
290
+ target="_blank">' . $this->product->get_store_name() . '</a>'
291
+ );
292
+ ?>
293
+ </strong> |
294
+ <a
295
+ href="<?php echo add_query_arg( $this->product->get_key() . '_hide_expiration', 'yes' ); ?> "><?php echo $hide_notice_string; ?></a>
296
+ </p>
297
+ </div>
298
+ <?php
299
+ }
300
+ }
301
+ }
302
+ }
303
+
304
+ /**
305
+ * Run the license check call
306
+ */
307
+ public function product_valid() {
308
+ if ( false === ( $license = get_transient( $this->product->get_key() . '_license_data' ) ) ) {
309
+ $license = $this->check_license();
310
+ set_transient( $this->product->get_key() . '_license_data', $license, 12 * HOUR_IN_SECONDS );
311
+ update_option( $this->product->get_key() . '_license_data', $license );
312
+ }
313
+
314
+ }
315
+
316
+ /**
317
+ * Increment the failed checks
318
+ */
319
+ private function increment_failed_checks() {
320
+ $this->failed_checks ++;
321
+ update_option( $this->product->get_key() . '_failed_checks', $this->failed_checks );
322
+ }
323
+
324
+ /**
325
+ * Reset the failed checks
326
+ */
327
+ private function reset_failed_checks() {
328
+ $this->failed_checks = 1;
329
+ update_option( $this->product->get_key() . '_failed_checks', $this->failed_checks );
330
+ }
331
+
332
+ /**
333
+ * Check the license status
334
+ *
335
+ * @return object The license data.
336
+ */
337
+ public function check_license() {
338
+ $status = $this->get_license_status();
339
+ if ( $status == 'not_active' ) {
340
+ $license_data = new stdClass();
341
+ $license_data->license = 'not_active';
342
+
343
+ return $license_data;
344
+ }
345
+ $license = trim( $this->license_key );
346
+ $api_params = array(
347
+ 'edd_action' => 'check_license',
348
+ 'license' => $license,
349
+ 'item_name' => rawurlencode( $this->product->get_name() ),
350
+ 'url' => rawurlencode( home_url() ),
351
+ );
352
+ // Call the custom API.
353
+ $response = wp_remote_get(
354
+ add_query_arg( $api_params, $this->product->get_store_url() ), array(
355
+ 'timeout' => 15,
356
+ 'sslverify' => false,
357
+ )
358
+ );
359
+ if ( is_wp_error( $response ) ) {
360
+ $license_data = new stdClass();
361
+ $license_data->license = 'valid';
362
+
363
+ } else {
364
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
365
+ if ( ! is_object( $license_data ) ) {
366
+ $license_data = new stdClass();
367
+ $license_data->license = 'valid';
368
+ }
369
+ }
370
+ $license_old = get_option( $this->product->get_key() . '_license_data', '' );
371
+ if ( $license_old->license == 'valid' && ( $license_data->license != $license_old->license ) ) {
372
+ $this->increment_failed_checks();
373
+ } else {
374
+ $this->reset_failed_checks();
375
+ }
376
+
377
+ if ( $this->failed_checks <= self::$max_failed ) {
378
+ return $license_old;
379
+ }
380
+
381
+ if ( isset( $license_old->hide_valid ) ) {
382
+ $license_data->hide_valid = true;
383
+ }
384
+
385
+ if ( ! isset( $license_data->key ) ) {
386
+ $license_data->key = isset( $license_old->key ) ? $license_old->key : '';
387
+ }
388
+
389
+ if ( isset( $license_old->hide_expiration ) ) {
390
+ $license_data->hide_expiration = true;
391
+ }
392
+
393
+ if ( isset( $license_old->hide_activation ) ) {
394
+ $license_data->hide_activation = true;
395
+ }
396
+
397
+ return $license_data;
398
+
399
+ }
400
+
401
+ /**
402
+ * Activate the license remotely
403
+ */
404
+ function activate_license() {
405
+ // listen for our activate button to be clicked
406
+ if ( isset( $_POST[ $this->product->get_key() . '_btn_trigger' ] ) ) {
407
+ $status = $this->get_license_status();
408
+ // retrieve the license from the database
409
+ $license = $_POST[ $this->product->get_key() . '_license' ];
410
+ $api_params = array(
411
+ 'license' => $license,
412
+ 'item_name' => rawurlencode( $this->product->get_name() ),
413
+ 'url' => rawurlencode( home_url() ),
414
+ );
415
+ if ( $status != 'valid' ) {
416
+ // data to send in our API request
417
+ $api_params['edd_action'] = 'activate_license';
418
+ } else {
419
+ $api_params['edd_action'] = 'deactivate_license';
420
+ }
421
+ // Call the custom API.
422
+ $response = wp_remote_get( add_query_arg( $api_params, $this->product->get_store_url() ) );
423
+ // make sure the response came back okay
424
+ if ( is_wp_error( $response ) ) {
425
+ $license_data = new stdClass();
426
+ $license_data->license = ( $status != 'valid' ) ? 'valid' : 'invalid';
427
+
428
+ } else {
429
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
430
+ if ( ! is_object( $license_data ) ) {
431
+ $license_data = new stdClass();
432
+ $license_data->license = ( $status != 'valid' ) ? 'valid' : 'invalid';
433
+ }
434
+ }
435
+ if ( ! isset( $license_data->key ) ) {
436
+ $license_data->key = $license;
437
+ }
438
+ if ( $license_data->license == 'valid' ) {
439
+ $this->reset_failed_checks();
440
+ }
441
+
442
+ if ( isset( $license_data->plan ) ) {
443
+ update_option( $this->product->get_key() . '_license_plan', $license_data->plan );
444
+ }
445
+
446
+ update_option( $this->product->get_key() . '_license_data', $license_data );
447
+ delete_transient( $this->product->get_key() . '_license_data' );
448
+ set_transient( $this->product->get_key() . '_license_data', $license_data, 12 * HOUR_IN_SECONDS );
449
+
450
+ }
451
+ }
452
+
453
+ /**
454
+ * Enable the license system
455
+ */
456
+ public function enable() {
457
+ if ( $this->product->get_type() == 'plugin' ) {
458
+ add_filter(
459
+ 'pre_set_site_transient_update_plugins', array(
460
+ $this,
461
+ 'pre_set_site_transient_update_plugins_filter',
462
+ )
463
+ );
464
+ add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 );
465
+ add_filter( 'http_request_args', array( $this, 'http_request_args' ), 10, 2 );
466
+ }
467
+ if ( $this->product->get_type() == 'theme' ) {
468
+ add_filter( 'site_transient_update_themes', array( &$this, 'theme_update_transient' ) );
469
+ add_filter( 'delete_site_transient_update_themes', array( &$this, 'delete_theme_update_transient' ) );
470
+ add_action( 'load-update-core.php', array( &$this, 'delete_theme_update_transient' ) );
471
+ add_action( 'load-themes.php', array( &$this, 'delete_theme_update_transient' ) );
472
+ add_action( 'load-themes.php', array( &$this, 'load_themes_screen' ) );
473
+ add_filter( 'http_request_args', array( $this, 'disable_wporg_update' ), 5, 2 );
474
+
475
+ }
476
+
477
+ }
478
+
479
+ /**
480
+ * Load the Themes screen
481
+ */
482
+ function load_themes_screen() {
483
+ add_thickbox();
484
+ add_action( 'admin_notices', array( &$this, 'update_nag' ) );
485
+ }
486
+
487
+ /**
488
+ * Alter the nag for themes update
489
+ */
490
+ function update_nag() {
491
+ $theme = wp_get_theme( $this->product->get_slug() );
492
+ $api_response = get_transient( $this->product_key );
493
+ if ( false === $api_response ) {
494
+ return;
495
+ }
496
+ $update_url = wp_nonce_url( 'update.php?action=upgrade-theme&amp;theme=' . urlencode( $this->product->get_slug() ), 'upgrade-theme_' . $this->product->get_slug() );
497
+ $update_message = apply_filters( 'themeisle_sdk_license_update_message', 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.' );
498
+ $update_onclick = ' onclick="if ( confirm(\'' . esc_js( $update_message ) . '\') ) {return true;}return false;"';
499
+ if ( version_compare( $this->product->get_version(), $api_response->new_version, '<' ) ) {
500
+ echo '<div id="update-nag">';
501
+ printf(
502
+ '<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.',
503
+ $theme->get( 'Name' ),
504
+ $api_response->new_version,
505
+ '#TB_inline?width=640&amp;inlineId=' . $this->product->get_version() . '_changelog',
506
+ $theme->get( 'Name' ),
507
+ $update_url,
508
+ $update_onclick
509
+ );
510
+ echo '</div>';
511
+ echo '<div id="' . $this->product->get_slug() . '_' . 'changelog" style="display:none;">';
512
+ echo wpautop( $api_response->sections['changelog'] );
513
+ echo '</div>';
514
+ }
515
+ }
516
+
517
+ /**
518
+ * @param mixed $value The transient data.
519
+ *
520
+ * @return mixed
521
+ */
522
+ function theme_update_transient( $value ) {
523
+ $update_data = $this->check_for_update();
524
+ if ( $update_data ) {
525
+ $value->response[ $this->product->get_slug() ] = $update_data;
526
+ }
527
+
528
+ return $value;
529
+ }
530
+
531
+ /**
532
+ * Delete the update transient
533
+ */
534
+ function delete_theme_update_transient() {
535
+ delete_transient( $this->product_key );
536
+ }
537
+
538
+ /**
539
+ * Check for updates
540
+ *
541
+ * @return array|bool Either the update data or false in case of failure
542
+ */
543
+ function check_for_update() {
544
+ $theme = wp_get_theme( $this->product->get_slug() );
545
+ $update_data = get_transient( $this->product_key );
546
+ if ( false === $update_data ) {
547
+ $failed = false;
548
+ if ( empty( $this->license_key ) ) {
549
+ return false;
550
+ }
551
+ $api_params = array(
552
+ 'edd_action' => 'get_version',
553
+ 'version' => $this->product->get_version(),
554
+ 'license' => $this->license_key,
555
+ 'name' => $this->product->get_name(),
556
+ 'slug' => $this->product->get_slug(),
557
+ 'author' => $this->product->get_store_name(),
558
+ 'url' => rawurlencode( home_url() ),
559
+ );
560
+ $response = wp_remote_post(
561
+ $this->product->get_store_url(), array(
562
+ 'timeout' => 15,
563
+ 'sslverify' => false,
564
+ 'body' => $api_params,
565
+ )
566
+ );
567
+ // make sure the response was successful
568
+ if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
569
+ $failed = true;
570
+ }
571
+ $update_data = json_decode( wp_remote_retrieve_body( $response ) );
572
+ if ( ! is_object( $update_data ) ) {
573
+ $failed = true;
574
+ }
575
+ // if the response failed, try again in 30 minutes
576
+ if ( $failed ) {
577
+ $data = new stdClass;
578
+ $data->new_version = $this->product->get_version();
579
+ set_transient( $this->product_key, $data, strtotime( '+30 minutes' ) );
580
+
581
+ return false;
582
+ }
583
+ // if the status is 'ok', return the update arguments
584
+ if ( ! $failed ) {
585
+ $update_data->sections = maybe_unserialize( $update_data->sections );
586
+ set_transient( $this->product_key, $update_data, strtotime( '+12 hours' ) );
587
+ }
588
+ }
589
+ if ( version_compare( $this->product->get_version(), $update_data->new_version, '>=' ) ) {
590
+ return false;
591
+ }
592
+
593
+ return (array) $update_data;
594
+ }
595
+
596
+ /**
597
+ * Check for Updates at the defined API endpoint and modify the update array.
598
+ *
599
+ * This function dives into the update API just when WordPress creates its update array,
600
+ * then adds a custom API call and injects the custom plugin data retrieved from the API.
601
+ * It is reassembled from parts of the native WordPress plugin update code.
602
+ * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
603
+ *
604
+ * @uses api_request()
605
+ *
606
+ * @param array $_transient_data Update array build by WordPress.
607
+ *
608
+ * @return array Modified update array with custom plugin data.
609
+ */
610
+ public function pre_set_site_transient_update_plugins_filter( $_transient_data ) {
611
+ if ( empty( $_transient_data ) || ! $this->do_check ) {
612
+ $this->do_check = true;
613
+
614
+ return $_transient_data;
615
+ }
616
+ $api_response = $this->api_request();
617
+ if ( false !== $api_response && is_object( $api_response ) && isset( $api_response->new_version ) ) {
618
+ if ( version_compare( $this->product->get_version(), $api_response->new_version, '<' ) ) {
619
+ $_transient_data->response[ $this->product->get_slug() . '/' . $this->product->get_file() ] = $api_response;
620
+ }
621
+ }
622
+
623
+ return $_transient_data;
624
+ }
625
+
626
+ /**
627
+ * Calls the API and, if successfull, returns the object delivered by the API.
628
+ *
629
+ * @uses get_bloginfo()
630
+ * @uses wp_remote_post()
631
+ * @uses is_wp_error()
632
+ *
633
+ * @param string $_action The requested action.
634
+ * @param array $_data Parameters for the API action.
635
+ *
636
+ * @return false||object
637
+ */
638
+ private function api_request( $_action = '', $_data = '' ) {
639
+ if ( empty( $this->license_key ) ) {
640
+ return;
641
+ }
642
+ $api_params = array(
643
+ 'edd_action' => 'get_version',
644
+ 'license' => $this->license_key,
645
+ 'name' => rawurlencode( $this->product->get_name() ),
646
+ 'slug' => rawurlencode( $this->product->get_slug() ),
647
+ 'author' => $this->product->get_store_name(),
648
+ 'url' => rawurlencode( home_url() ),
649
+ );
650
+ $request = wp_remote_post(
651
+ $this->product->get_store_url(), array(
652
+ 'timeout' => 15,
653
+ 'sslverify' => false,
654
+ 'body' => $api_params,
655
+ )
656
+ );
657
+ if ( ! is_wp_error( $request ) ) :
658
+ $request = json_decode( wp_remote_retrieve_body( $request ) );
659
+ if ( $request && isset( $request->sections ) ) {
660
+ $request->sections = maybe_unserialize( $request->sections );
661
+ }
662
+
663
+ return $request;
664
+ else :
665
+ return false;
666
+ endif;
667
+ }
668
+
669
+ /**
670
+ * Updates information on the "View version x.x details" page with custom data.
671
+ *
672
+ * @uses api_request()
673
+ *
674
+ * @param mixed $_data Plugin data.
675
+ * @param string $_action Action to send.
676
+ * @param object $_args Arguments to use.
677
+ *
678
+ * @return object $_data
679
+ */
680
+ public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
681
+ if ( ( $_action != 'plugin_information' ) || ! isset( $_args->slug ) || ( $_args->slug != $this->product->get_slug() ) ) {
682
+ return $_data;
683
+ }
684
+ $api_response = $this->api_request();
685
+ if ( false !== $api_response ) {
686
+ $_data = $api_response;
687
+ }
688
+
689
+ return $_data;
690
+ }
691
+
692
+ /**
693
+ * Disable SSL verification in order to prevent download update failures
694
+ *
695
+ * @param array $args Http args.
696
+ * @param string $url Url to check.
697
+ *
698
+ * @return object $array
699
+ */
700
+ function http_request_args( $args, $url ) {
701
+ // If it is an https request and we are performing a package download, disable ssl verification
702
+ if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
703
+ $args['sslverify'] = false;
704
+ }
705
+
706
+ return $args;
707
+ }
708
+
709
+ }
710
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-loader.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The main loader class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Loader
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Loader' ) ) :
16
+ /**
17
+ * Singleton loader for ThemeIsle SDK.
18
+ */
19
+ final class ThemeIsle_SDK_Loader {
20
+ /**
21
+ * @var ThemeIsle_SDK_Loader instance The singleton instance
22
+ */
23
+ private static $instance;
24
+ /**
25
+ * @var string $version The class version.
26
+ */
27
+ private static $version = '1.0.0';
28
+ /**
29
+ * @var array The products which use the SDK.
30
+ */
31
+ private static $products;
32
+
33
+ /**
34
+ * Register product into SDK.
35
+ *
36
+ * @param string $basefile The product basefile.
37
+ *
38
+ * @return ThemeIsle_SDK_Loader The singleton object.
39
+ */
40
+ public static function init_product( $basefile ) {
41
+
42
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof ThemeIsle_SDK_Loader ) ) {
43
+ self::$instance = new ThemeIsle_SDK_Loader;
44
+
45
+ }
46
+ $product_object = new ThemeIsle_SDK_Product( $basefile );
47
+ self::$products[ $product_object->get_slug() ] = $product_object;
48
+
49
+ $notifications = array();
50
+ // Based on the WordPress Available file header we enable the logger or not.
51
+ if ( ! $product_object->is_wordpress_available() ) {
52
+ $licenser = new ThemeIsle_SDK_Licenser( $product_object );
53
+ $licenser->enable();
54
+ }
55
+
56
+ $logger = new ThemeIsle_SDK_Logger( $product_object );
57
+ if ( $product_object->is_logger_active() ) {
58
+ $logger->enable();
59
+ } else {
60
+ $notifications[] = $logger;
61
+ }
62
+
63
+ $feedback = new ThemeIsle_SDK_Feedback_Factory( $product_object, $product_object->get_feedback_types() );
64
+
65
+ $instances = $feedback->get_instances();
66
+ if ( array_key_exists( 'review', $instances ) ) {
67
+ $notifications[] = $instances['review'];
68
+ }
69
+ new ThemeIsle_SDK_Notification_Manager( $product_object, $notifications );
70
+ if ( ! $product_object->is_external_author() ) {
71
+ new ThemeIsle_SDK_Widgets_Factory( $product_object, $product_object->get_widget_types() );
72
+ }
73
+
74
+ return self::$instance;
75
+ }
76
+
77
+ /**
78
+ * Get all products using the SDK.
79
+ *
80
+ * @return array Products available.
81
+ */
82
+ public static function get_products() {
83
+ return self::$products;
84
+ }
85
+
86
+
87
+ }
88
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The main loader class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Logger
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ if ( ! class_exists( 'ThemeIsle_SDK_Logger' ) ) :
12
+ /**
13
+ * Class ThemeIsle_SDK_Logger
14
+ *
15
+ * Send the statistics to the Themeisle Endpoint
16
+ */
17
+ /**
18
+ * Class ThemeIsle_SDK_Logger
19
+ */
20
+ class ThemeIsle_SDK_Logger {
21
+
22
+ /**
23
+ * @var string $logging_url Url where to send the logs
24
+ */
25
+ private $logging_url = 'http://log.themeisle.com/wp-json/v1/logs/';
26
+
27
+ /**
28
+ * @var ThemeIsle_SDK_Product $product Themeisle Product.
29
+ */
30
+ private $product;
31
+
32
+ /**
33
+ * @var string $product_cron Cron name handler
34
+ */
35
+ private $product_cron;
36
+
37
+ /**
38
+ * @var string $heading The heading of the modal
39
+ */
40
+ private $heading = 'Do you enjoy {product}? Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.';
41
+
42
+ /**
43
+ * @var string $button_submit The text of the submit button
44
+ */
45
+ private $button_submit = 'Sure, I would love to help.';
46
+
47
+ /**
48
+ * @var string $button_cancel The text of the cancel button
49
+ */
50
+ private $button_cancel = 'No, thanks.';
51
+
52
+ /**
53
+ * ThemeIsle_SDK_Logger constructor.
54
+ *
55
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
56
+ */
57
+ public function __construct( $product_object ) {
58
+ if ( $product_object instanceof ThemeIsle_SDK_Product ) {
59
+ $this->product = $product_object;
60
+ $this->product_cron = $product_object->get_key() . '_log_activity';
61
+ }
62
+ add_action( 'wp_ajax_' . $this->product->get_key() . __CLASS__, array( $this, 'dismiss' ) );
63
+ }
64
+
65
+
66
+ /**
67
+ * Start the cron to send the log. It will randomize the interval in order to not send all the logs at the same time.
68
+ */
69
+ public function enable() {
70
+ if ( ! wp_next_scheduled( $this->product_cron ) ) {
71
+ wp_schedule_single_event( time() + ( rand( 15, 24 ) * 3600 ), $this->product_cron );
72
+ }
73
+ add_action( $this->product_cron, array( $this, 'send_log' ) );
74
+ }
75
+
76
+ /**
77
+ * Send the statistics to the api endpoint
78
+ */
79
+ public function send_log() {
80
+ wp_remote_post(
81
+ $this->logging_url, array(
82
+ 'method' => 'POST',
83
+ 'timeout' => 3,
84
+ 'redirection' => 5,
85
+ 'headers' => array(
86
+ 'X-ThemeIsle-Event' => 'log_site',
87
+ ),
88
+ 'body' => array(
89
+ 'site' => get_site_url(),
90
+ 'slug' => $this->product->get_slug(),
91
+ 'version' => $this->product->get_version(),
92
+ 'data' => apply_filters( $this->product->get_key() . '_logger_data', array() ),
93
+ ),
94
+ )
95
+ );
96
+ }
97
+
98
+ /**
99
+ * Dismiss the notification
100
+ */
101
+ function dismiss() {
102
+ check_ajax_referer( (string) __CLASS__, 'nonce' );
103
+
104
+ $flag = intval( $_POST['enable'] ) === 1;
105
+ update_option( $this->product->logger_option, ( $flag ? 'yes' : 'no' ) );
106
+
107
+ if ( true === $flag ) {
108
+ $this->enable();
109
+ }
110
+ }
111
+
112
+ /**
113
+ * Shows the notification
114
+ */
115
+ function show_notification() {
116
+ $show = $this->product->is_logger_active();
117
+ $checked = get_option( $this->product->logger_option, '' );
118
+ if ( ! $show && $checked == '' ) {
119
+ add_action( 'admin_notices', array( $this, 'admin_notices' ) );
120
+
121
+ return true;
122
+ }
123
+
124
+ return false;
125
+ }
126
+
127
+ /**
128
+ * Shows the admin notice
129
+ */
130
+ function admin_notices() {
131
+ $id = $this->product->get_key() . '_logger';
132
+
133
+ $this->add_media( $this->product->get_key() );
134
+
135
+ echo '<div class="notice notice-success is-dismissible " id="' . $this->product->get_key() . '-logger-notification" ><div id="' . $id . '" class="themeisle-logger-box">' . $this->get_html( $this->product->get_key() ) . '</div></div>';
136
+ }
137
+
138
+ /**
139
+ * Generates the HTML
140
+ *
141
+ * @param string $key The product key.
142
+ */
143
+ function get_html( $key ) {
144
+ $heading = apply_filters( $this->product->get_key() . '_logger_heading', $this->heading );
145
+ $heading = str_replace(
146
+ array( '{product}' ), array(
147
+ trim( str_replace( 'Lite', '', $this->product->get_name() ) ),
148
+ ),
149
+ $heading
150
+ );
151
+ $button_submit = apply_filters( $this->product->get_key() . '_logger_button_submit', $this->button_submit );
152
+ $button_cancel = apply_filters( $this->product->get_key() . '_logger_button_cancel', $this->button_cancel );
153
+
154
+ return '<div >'
155
+ . '<p>' . $heading . '</p>'
156
+ . '<div class="actions">'
157
+ . get_submit_button(
158
+ __( $button_submit ), 'primary ' . $this->product->get_key() . '-ti-logger', $this->product->get_key() . 'ti-logger-yes', false, array(
159
+ 'data-ti-log-enable' => 1,
160
+ )
161
+ )
162
+ . get_submit_button(
163
+ __( $button_cancel ), 'secondary ' . $this->product->get_key() . '-ti-logger', $this->product->get_key() . 'ti-logger-no', false, array(
164
+ 'data-ti-log-enable' => 0,
165
+ )
166
+ )
167
+ . '</div></div>';
168
+ }
169
+
170
+ /**
171
+ * Loads the js
172
+ *
173
+ * @param string $key The product key.
174
+ */
175
+ function add_media( $key ) {
176
+ ?>
177
+ <style type="text/css">
178
+ #<?php echo $key; ?>-logger-notification {
179
+ padding-bottom: 5px;
180
+ }
181
+
182
+ #<?php echo $key; ?>-logger-notification .button {
183
+ margin-left: 5px;
184
+ }
185
+ </style>
186
+ <script type="text/javascript" id="<?php echo $key; ?>ti-logger-js">
187
+ (function ($) {
188
+ $(document).ready(function () {
189
+ $('.<?php echo $key; ?>-ti-logger').on('click', function (e) {
190
+
191
+ $.ajax({
192
+ url: ajaxurl,
193
+ method: "post",
194
+ data: {
195
+ 'nonce': '<?php echo wp_create_nonce( (string) __CLASS__ ); ?>',
196
+ 'action': '<?php echo $this->product->get_key() . __CLASS__; ?>',
197
+ 'enable': $(this).attr('data-ti-log-enable')
198
+ },
199
+ success: function () {
200
+ $('#<?php echo $key; ?>-logger-notification').hide();
201
+ }
202
+ });
203
+ });
204
+ });
205
+ })(jQuery);
206
+ </script>
207
+ <?php
208
+ }
209
+
210
+ }
211
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-notification-manager.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The notification manager class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Notification
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Notification_Manager' ) ) :
16
+ /**
17
+ * Notification manager model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Notification_Manager {
20
+ /**
21
+ * Time between notifications.
22
+ */
23
+ const NOTIFICATION_INTERVAL_HOURS = 100;
24
+ /**
25
+ * @var array Notifications for the current product.
26
+ */
27
+ private $notifications = array();
28
+ /**
29
+ * @var ThemeIsle_SDK_Product Current product.
30
+ */
31
+ private $product;
32
+ /**
33
+ * @var array ThemeIsle_SDK_Feedback Feedbacks available.
34
+ */
35
+ private $callbacks = array();
36
+
37
+ /**
38
+ * ThemeIsle_SDK_Notification_Manager constructor.
39
+ *
40
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
41
+ * @param array $callbacks the objects that will be called when a notification is due.
42
+ */
43
+ public function __construct( $product_object, $callbacks ) {
44
+ $this->product = $product_object;
45
+ $this->callbacks = $callbacks;
46
+ $this->setup_hooks();
47
+ }
48
+
49
+ /**
50
+ * Setup the notifications.
51
+ */
52
+ function setup_notifications() {
53
+ if ( ! current_user_can( 'manage_options' ) ) {
54
+ return;
55
+ }
56
+ // Load the notifications only if we have it installed after the required interval.
57
+ if ( ( time() - $this->product->get_install_time() ) > self::NOTIFICATION_INTERVAL_HOURS * HOUR_IN_SECONDS ) {
58
+ if ( $this->product instanceof ThemeIsle_SDK_Product && $this->callbacks && is_array( $this->callbacks ) ) {
59
+ foreach ( $this->callbacks as $instance ) {
60
+ $this->notifications[ $this->product->get_key() . get_class( $instance ) ] = $instance;
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ /**
67
+ * Setup the internal hooks
68
+ */
69
+ private function setup_hooks() {
70
+ add_action( 'admin_head', array( $this, 'show_notification' ) );
71
+ add_action( 'admin_init', array( $this, 'setup_notifications' ) );
72
+ }
73
+
74
+ /**
75
+ * Shows the notification
76
+ */
77
+ function show_notification() {
78
+
79
+ $hidden = get_option( 'themeisle_sdk_notification_hidden', array() );
80
+ $instances = $this->notifications;
81
+ if ( empty( $instances ) ) {
82
+ return;
83
+ }
84
+
85
+ // Get timestamp of last notification.
86
+ $old = 0;
87
+ if ( ! empty( $hidden ) ) {
88
+ $old = $hidden[ count( $hidden ) - 1 ]['time'];
89
+ }
90
+ // Check if the current one is expired.
91
+ if ( ( time() - $old ) > self::NOTIFICATION_INTERVAL_HOURS * HOUR_IN_SECONDS ) {
92
+ // Get hidden notifications key.
93
+ $hidden_ones = wp_list_pluck( $hidden, 'key' );
94
+ // Get the non-hidden notifications.
95
+ $available_notifications = array_diff( array_keys( $instances ), $hidden_ones );
96
+ if ( empty( $available_notifications ) ) {
97
+ return;
98
+ }
99
+ // Get the first notification available.
100
+ $new_one = reset( $available_notifications );
101
+
102
+ $instance = $instances[ $new_one ];
103
+ $hidden[] = array(
104
+ 'time' => time(),
105
+ 'key' => $new_one,
106
+ );
107
+ update_option( 'themeisle_sdk_notification_hidden', $hidden );
108
+ } else {
109
+ $key = $hidden[ count( $hidden ) - 1 ]['key'];
110
+ if ( ! isset( $this->notifications[ $key ] ) ) {
111
+ return;
112
+ } else {
113
+ $instance = $this->notifications[ $key ];
114
+ }
115
+ }
116
+ $instance->show_notification();
117
+ }
118
+ }
119
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The product model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Product
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
16
+ /**
17
+ * Product model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Product {
20
+ /**
21
+ * @var string $slug THe product slug.
22
+ */
23
+ private $slug;
24
+ /**
25
+ * @var string $basefile The file with headers.
26
+ */
27
+ private $basefile;
28
+ /**
29
+ * @var string $type The product type ( plugin | theme ).
30
+ */
31
+ private $type;
32
+ /**
33
+ * @var string $file The file name.
34
+ */
35
+ private $file;
36
+ /**
37
+ * @var string $name The product name.
38
+ */
39
+ private $name;
40
+ /**
41
+ * @var string $key The product ready key.
42
+ */
43
+ private $key;
44
+ /**
45
+ * @var string $author_url The url of the author.
46
+ */
47
+ private $author_url;
48
+ /**
49
+ * @var string $store_url The store url.
50
+ */
51
+ private $store_url;
52
+ /**
53
+ * @var int $install The date of install.
54
+ */
55
+ private $install;
56
+ /**
57
+ * @var string $store_name The store name.
58
+ */
59
+ private $store_name;
60
+ /**
61
+ * @var array $allowed_authors The allowed authors.
62
+ */
63
+ private $allowed_authors = array( 'proteusthemes.com', 'anarieldesign.com' );
64
+ /**
65
+ * @var bool $requires_license Either user needs to activate it with license.
66
+ */
67
+ private $requires_license;
68
+ /**
69
+ * @var bool $wordpress_available Either is available on WordPress or not.
70
+ */
71
+ private $wordpress_available;
72
+ /**
73
+ * @var string $version The product version.
74
+ */
75
+ private $version;
76
+ /**
77
+ * @var string $logger_option Logger option key.
78
+ */
79
+ public $logger_option;
80
+ /**
81
+ * @var string $pro_slug Pro slug, if available.
82
+ */
83
+ public $pro_slug;
84
+ /**
85
+ * @var string $feedback_types All the feedback types the product supports
86
+ */
87
+ private $feedback_types = array();
88
+
89
+ /**
90
+ * @var string $widget_types All the widget types the product supports
91
+ */
92
+ private $widget_types = array( 'dashboard_blog' );
93
+
94
+ /**
95
+ * ThemeIsle_SDK_Product constructor.
96
+ *
97
+ * @param string $basefile Product basefile.
98
+ */
99
+ public function __construct( $basefile ) {
100
+ if ( ! empty( $basefile ) ) {
101
+ if ( is_readable( $basefile ) ) {
102
+ $this->basefile = $basefile;
103
+ $this->setup_from_path();
104
+ $this->setup_from_fileheaders();
105
+ }
106
+ }
107
+ $install = get_option( $this->get_key() . '_install', 0 );
108
+ if ( $install === 0 ) {
109
+ $install = time();
110
+ update_option( $this->get_key() . '_install', time() );
111
+ }
112
+ $this->install = $install;
113
+
114
+ $this->logger_option = $this->get_key() . '_logger_flag';
115
+
116
+ }
117
+
118
+ /**
119
+ * Setup props from fileheaders.
120
+ */
121
+ public function setup_from_fileheaders() {
122
+ $file_headers = array(
123
+ 'Requires License' => 'Requires License',
124
+ 'WordPress Available' => 'WordPress Available',
125
+ 'Pro Slug' => 'Pro Slug',
126
+ 'Version' => 'Version',
127
+ );
128
+ if ( $this->type == 'plugin' ) {
129
+ $file_headers['Name'] = 'Plugin Name';
130
+ $file_headers['AuthorName'] = 'Author';
131
+ $file_headers['AuthorURI'] = 'Author URI';
132
+ }
133
+ if ( $this->type == 'theme' ) {
134
+ $file_headers['Name'] = 'Theme Name';
135
+ $file_headers['AuthorName'] = 'Author';
136
+ $file_headers['AuthorURI'] = 'Author URI';
137
+ }
138
+ $file_headers = get_file_data( $this->basefile, $file_headers );
139
+
140
+ $this->name = $file_headers['Name'];
141
+ $this->store_name = $file_headers['AuthorName'];
142
+ $this->author_url = $file_headers['AuthorURI'];
143
+ $this->store_url = $file_headers['AuthorURI'];
144
+ if ( $this->is_external_author() ) {
145
+ $this->store_url = 'https://themeisle.com';
146
+ $this->store_name = 'ThemeIsle';
147
+ }
148
+ $this->requires_license = ( $file_headers['Requires License'] == 'yes' ) ? true : false;
149
+ $this->wordpress_available = ( $file_headers['WordPress Available'] == 'yes' ) ? true : false;
150
+ $this->pro_slug = ! empty( $file_headers['Pro Slug'] ) ? $file_headers['Pro Slug'] : '';
151
+ $this->version = $file_headers['Version'];
152
+ if ( $this->require_uninstall_feedback() ) {
153
+ $this->feedback_types[] = 'deactivate';
154
+ }
155
+ if ( $this->is_wordpress_available() ) {
156
+ $this->feedback_types[] = 'review';
157
+ }
158
+ }
159
+
160
+ /**
161
+ * Check if the product is by external author or not.
162
+ *
163
+ * @return bool Either is external author or no.
164
+ */
165
+ public function is_external_author() {
166
+ foreach ( $this->allowed_authors as $author ) {
167
+ if ( strpos( $this->author_url, $author ) !== false ) {
168
+ return true;
169
+ }
170
+ }
171
+
172
+ return false;
173
+ }
174
+
175
+ /**
176
+ * The magic var_dump info method.
177
+ *
178
+ * @return array Debug info.
179
+ */
180
+ public function __debugInfo() {
181
+ return array(
182
+ 'name' => $this->name,
183
+ 'slug' => $this->slug,
184
+ 'version' => $this->version,
185
+ 'basefile' => $this->basefile,
186
+ 'key' => $this->key,
187
+ 'type' => $this->type,
188
+ 'store_name' => $this->store_name,
189
+ 'store_url' => $this->store_url,
190
+ 'wordpress_available' => $this->wordpress_available,
191
+ 'requires_license' => $this->requires_license,
192
+ );
193
+
194
+ }
195
+
196
+ /**
197
+ * Setup props from path.
198
+ */
199
+ public function setup_from_path() {
200
+ $this->file = basename( $this->basefile );
201
+ $dir = dirname( $this->basefile );
202
+ $this->slug = basename( $dir );
203
+ $exts = explode( '.', $this->basefile );
204
+ $ext = $exts[ count( $exts ) - 1 ];
205
+ if ( $ext == 'css' ) {
206
+ $this->type = 'theme';
207
+ }
208
+ if ( $ext == 'php' ) {
209
+ $this->type = 'plugin';
210
+ }
211
+ $this->key = self::key_ready_name( $this->slug );
212
+ }
213
+
214
+ /**
215
+ * @param string $string the String to be normalized for cron handler.
216
+ *
217
+ * @return string $name The normalized string.
218
+ */
219
+ static function key_ready_name( $string ) {
220
+ return str_replace( '-', '_', strtolower( trim( $string ) ) );
221
+ }
222
+
223
+ /**
224
+ * Getter for product name.
225
+ *
226
+ * @return string The product name.
227
+ */
228
+ public function get_name() {
229
+ return $this->name;
230
+ }
231
+
232
+ /**
233
+ * Getter for product version.
234
+ *
235
+ * @return string The product version.
236
+ */
237
+ public function get_version() {
238
+ return $this->version;
239
+ }
240
+
241
+ /**
242
+ * If product is available on wordpress.org or not.
243
+ *
244
+ * @return bool Either is wp available or not.
245
+ */
246
+ public function is_wordpress_available() {
247
+ return $this->wordpress_available;
248
+ }
249
+
250
+ /**
251
+ * Return the product key.
252
+ *
253
+ * @return string The product key.
254
+ */
255
+ public function get_key() {
256
+ return $this->key;
257
+ }
258
+
259
+ /**
260
+ * Either the product requires license or not.
261
+ *
262
+ * @return bool Either requires license or not.
263
+ */
264
+ public function requires_license() {
265
+ return $this->requires_license;
266
+ }
267
+
268
+ /**
269
+ * Check if the product is either theme or plugin.
270
+ *
271
+ * @return string Product type.
272
+ */
273
+ public function get_type() {
274
+ return $this->type;
275
+ }
276
+
277
+ /**
278
+ * Returns the Store name.
279
+ *
280
+ * @return string Store name.
281
+ */
282
+ public function get_store_name() {
283
+ return $this->store_name;
284
+ }
285
+
286
+ /**
287
+ * Returns the store url.
288
+ *
289
+ * @return string The store url.
290
+ */
291
+ public function get_store_url() {
292
+ return $this->store_url;
293
+ }
294
+
295
+ /**
296
+ * Returns the product slug.
297
+ *
298
+ * @return string The product slug.
299
+ */
300
+ public function get_slug() {
301
+ return $this->slug;
302
+ }
303
+
304
+ /**
305
+ * Returns product basefile, which holds the metaheaders.
306
+ *
307
+ * @return string The product basefile.
308
+ */
309
+ public function get_basefile() {
310
+ return $this->basefile;
311
+ }
312
+
313
+ /**
314
+ * Returns product filename.
315
+ *
316
+ * @return string The product filename.
317
+ */
318
+ public function get_file() {
319
+ return $this->file;
320
+ }
321
+
322
+ /**
323
+ * Returns feedback types
324
+ *
325
+ * @return array The feedback types.
326
+ */
327
+ public function get_feedback_types() {
328
+ return apply_filters( $this->get_key() . '_feedback_types', $this->feedback_types );
329
+ }
330
+
331
+ /**
332
+ * Returns widget types
333
+ *
334
+ * @return array The widget types.
335
+ */
336
+ public function get_widget_types() {
337
+ return apply_filters( $this->get_key() . '_widget_types', $this->widget_types );
338
+ }
339
+
340
+ /**
341
+ * We log the user website and product version.
342
+ *
343
+ * @return bool Either we log the data or not.
344
+ */
345
+ public function is_logger_active() {
346
+ // If is not available on WordPress log this automatically.
347
+ if ( ! $this->is_wordpress_available() ) {
348
+ return true;
349
+ } else {
350
+ $pro_slug = $this->get_pro_slug();
351
+ if ( ! empty( $pro_slug ) ) {
352
+
353
+ $all_products = ThemeIsle_SDK_Loader::get_products();
354
+ if ( isset( $all_products[ $pro_slug ] ) ) {
355
+ return true;
356
+ }
357
+ }
358
+
359
+ return ( get_option( $this->get_key() . '_logger_flag', 'no' ) === 'yes' );
360
+
361
+ }
362
+ }
363
+
364
+ /**
365
+ * Returns the pro slug, if available.
366
+ *
367
+ * @return string The pro slug.
368
+ */
369
+ public function get_pro_slug() {
370
+ return $this->pro_slug;
371
+ }
372
+
373
+ /**
374
+ * Return the install timestamp.
375
+ *
376
+ * @return int The install timestamp.
377
+ */
378
+ public function get_install_time() {
379
+ return $this->install;
380
+ }
381
+
382
+ /**
383
+ * We require feedback on uninstall.
384
+ *
385
+ * @return bool Either we should require feedback on uninstall or not.
386
+ */
387
+ public function require_uninstall_feedback() {
388
+ if ( $this->get_type() == 'theme' && ! $this->is_external_author() ) {
389
+ return ! get_transient( 'ti_sdk_pause_' . $this->get_key(), false );
390
+ }
391
+
392
+ if ( $this->get_type() == 'plugin' ) {
393
+
394
+ return true;
395
+ }
396
+
397
+ return false;
398
+ }
399
+
400
+ }
401
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget-dashboard-blog.php ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The blog dashboard model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Widgets
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Widget_Dashboard_Blog' ) ) :
16
+ /**
17
+ * Blog dashboard widget model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Widget_Dashboard_Blog extends ThemeIsle_SDK_Widget {
20
+
21
+ /**
22
+ * @var array instance The instances.
23
+ */
24
+ protected $product;
25
+ /**
26
+ * @var array Feed items.
27
+ */
28
+ private $items = array();
29
+
30
+ /**
31
+ * ThemeIsle_SDK_Widget_Dashboard_Blog constructor.
32
+ *
33
+ * @param ThemeIsle_SDK_Product $product_object The product object.
34
+ */
35
+ public function __construct( $product_object ) {
36
+ $this->product = $product_object;
37
+ parent::__construct( $product_object );
38
+ }
39
+
40
+ /**
41
+ * Registers the hooks
42
+ */
43
+ public function setup_hooks_child() {
44
+ $this->setup_vars();
45
+ add_action( 'wp_dashboard_setup', array( &$this, 'add_widget' ) );
46
+ add_action( 'wp_network_dashboard_setup', array( &$this, 'add_widget' ) );
47
+ add_filter( 'themeisle_sdk_recommend_plugin_or_theme', array( &$this, 'recommend_plugin_or_theme' ) );
48
+ }
49
+
50
+ /**
51
+ * Setup class variables
52
+ */
53
+ function setup_vars() {
54
+ $this->dashboard_name = apply_filters( 'themeisle_sdk_dashboard_widget_name', 'WordPress Guides/Tutorials' );
55
+ $this->feeds = apply_filters(
56
+ 'themeisle_sdk_dashboard_widget_feeds', array(
57
+ 'https://themeisle.com/blog/feed',
58
+ )
59
+ );
60
+ }
61
+
62
+ /**
63
+ * Add widget to the dashboard
64
+ *
65
+ * @return string|void
66
+ */
67
+ function add_widget() {
68
+ global $wp_meta_boxes;
69
+ if ( isset( $wp_meta_boxes['dashboard']['normal']['core']['themeisle'] ) ) {
70
+ return;
71
+ }
72
+ wp_add_dashboard_widget(
73
+ 'themeisle', $this->dashboard_name, array(
74
+ &$this,
75
+ 'render_dashboard_widget',
76
+ )
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Setup feed items.
82
+ */
83
+ private function setup_feeds() {
84
+ $items_normalized = array();
85
+ if ( false === ( $items_normalized = get_transient( 'themeisle_sdk_feed_items' ) ) ) {
86
+ // Load SimplePie Instance
87
+ $feed = fetch_feed( $this->feeds );
88
+ // TODO report error when is an error loading the feed
89
+ if ( is_wp_error( $feed ) ) {
90
+ return;
91
+ }
92
+
93
+ $items = $feed->get_items( 0, 5 );
94
+ foreach ( (array) $items as $item ) {
95
+ $items_normalized[] = array(
96
+ 'title' => $item->get_title(),
97
+ 'date' => $item->get_date( 'U' ),
98
+ 'link' => $item->get_permalink(),
99
+ );
100
+ }
101
+ set_transient( 'themeisle_sdk_feed_items', $items_normalized, 48 * HOUR_IN_SECONDS );
102
+ }
103
+ $this->items = $items_normalized;
104
+ }
105
+
106
+ /**
107
+ * Render widget content
108
+ */
109
+ function render_dashboard_widget() {
110
+ $this->setup_feeds();
111
+ ?>
112
+ <style type="text/css">
113
+ #themeisle ul {
114
+ margin-bottom: 0px;
115
+ }
116
+
117
+ #themeisle ul li.ti-dw-recommend-item {
118
+
119
+ padding-left: 7px;
120
+ border-top: 1px solid #eee;
121
+
122
+ margin-bottom: 0px;
123
+ padding-top: 6px;
124
+ }
125
+
126
+ #themeisle h2.hndle {
127
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALfSURBVEhL7VW/ayJBFL7/5ZqziBzIcSCHxUE4hAiCgnAQsBASOAikEAIeCAaCiJAyIBICQURYwoJoEUmxa6MWioWxURu30mq77b57s86acX+oOQhp8sFjdmbfzrfve2/efMI74IP0VTB0gz/th/8iNbQxOt0eOmoN6WgAn78cwJeoYcLf78KrSPVneU3isEQZoz0D3pt03jhDrDTERJXxWM3A5yAOIPmgce/t2IvUGFzjkDa+7C5RTx0gWbxG0v8bBXUG3fLReigk4rh55gtbsAfpGDfhVTS+VA19bYbH7BkqU/56AzNU7nrYpbI7qfbEcxfBkSOHJGO27Vk0htqEYoXvARdS+tsEJyAJY1GRkOxnGTdq2zuaRZOkJ1Wi1+h7ODlJB/l1kYRKZVyKhMwoSmUw5M4uWMhIcl9f1l1qB2m/aMkZQIE2d5BeDTGiSD0VfC4jZPmSKiO+LMJGuoRE1bkiOIW00CAdW3NuxzLmxhD1hyHmug7dbBRD9KdLc4dR6Zfgn0ffXN2EjVSMLIcOrWxuwiyyPhYGI7X0m/agqPeIib5+yit/LWILKYuUlrTa5kbMwjko7J0AXc1RLZwifRF58Us1YXMzYSMV5WQ5ZWsG5VnYaG1BxM7zKBRzOAkHac460gxK9sUnVBqbu9rhKCS9lRaq1/poCeUq7tL6uPnjSLeoBRo9/KXjslqP4Na1gbiQssiULK9gP+VVqPnFQMblnwi+WmTfIji5amLES1mn/mz9yCFVuddZdiFlIJlTK+JtH2/AaPMogzipzrZ+4yQ1qCL1JSaNDL6bf81y1aOb5R6Vhow6G1tPNK9Borl0R2NLRiEaxNEF9Wa3yrHBSarTbeHot7ySqVmYR4AucDYuaJyzkfptZ0e/FeGa03m3jOQPizCAo0QG9W2ktL5HgGt45JRgaBh1x9R1WHY0KCTnLZOW5Kw0miuZq01ITGa6Z18Db9I3xAfpm+IdSIF/du91gSA2+I8AAAAASUVORK5CYII=');
128
+ background-repeat: no-repeat;
129
+ background-position: 90% 50%;
130
+ background-size: 29px;
131
+ }
132
+
133
+ .ti-dw-feed-item {
134
+ display: flex;
135
+ align-items: center;
136
+ }
137
+
138
+ .ti-dw-feed-item a {
139
+ float: left;
140
+ width: 89.9%;
141
+ }
142
+
143
+ .ti-dw-feed-item .ti-dw-day-container {
144
+ width: 100%;
145
+ letter-spacing: 3px;
146
+ display: block;
147
+ }
148
+
149
+ .ti-dw-feed-item .ti-dw-month-container {
150
+
151
+ width: 100%;
152
+ display: block;
153
+ font-weight: 600;
154
+ padding: 0px;
155
+ margin-top: -6px;
156
+ text-transform: uppercase;
157
+ font-size: 10px;
158
+ letter-spacing: 1px;
159
+ }
160
+
161
+ .ti-dw-feed-item .ti-dw-date-container {
162
+ float: left;
163
+ min-height: 30px;
164
+ margin-right: 0.1%;
165
+ width: 10%;
166
+ text-align: center;
167
+ }
168
+
169
+ .ti-dw-recommend-item span {
170
+ color: #72777c;
171
+ }
172
+
173
+ </style>
174
+ <ul>
175
+ <?php
176
+ foreach ( $this->items as $item ) {
177
+ ?>
178
+ <li class="ti-dw-feed-item"><span class="ti-dw-date-container"><span
179
+ class="ti-dw-day-container"><?php echo date( 'd', $item['date'] ); ?></span> <span
180
+ class="ti-dw-month-container"><?php echo substr( date( 'M', $item['date'] ), 0, 3 ); ?></span></span><a
181
+ href="
182
+ <?php
183
+ echo add_query_arg(
184
+ array(
185
+ 'utm_campaign' => 'feed',
186
+ 'utm_medium' => 'dashboard_widget',
187
+ ), $item['link']
188
+ );
189
+ ?>
190
+ " target="_blank"><?php echo $item['title']; ?></a>
191
+ <div class="clear"></div>
192
+ </li>
193
+ <?php
194
+ }
195
+
196
+ $recommend = apply_filters( 'themeisle_sdk_recommend_plugin_or_theme', array() );
197
+ if ( is_array( $recommend ) && ! empty( $recommend ) ) {
198
+
199
+ $type = $recommend['type'];
200
+ if ( ( $type == 'theme' && current_user_can( 'install_themes' ) ) || ( $type == 'plugin' && current_user_can( 'install_plugins' ) ) ) {
201
+ add_thickbox();
202
+ $url = add_query_arg(
203
+ array(
204
+ 'theme' => $recommend['slug'],
205
+ ), network_admin_url( 'theme-install.php' )
206
+ );
207
+
208
+ if ( 'plugin' === $type ) {
209
+
210
+ $url = add_query_arg(
211
+ array(
212
+ 'tab' => 'plugin-information',
213
+ 'plugin' => $recommend['slug'],
214
+ ), network_admin_url( 'plugin-install.php' )
215
+ );
216
+ }
217
+ ?>
218
+ <li class="ti-dw-recommend-item ">
219
+ <span class="ti-dw-recommend"><?php echo apply_filters( 'themeisle_sdk_dashboard_popular_label', sprintf( 'Popular %s', ucwords( $type ) ) ); ?>
220
+ : </span>
221
+ <?php
222
+ echo trim(
223
+ str_replace(
224
+ array(
225
+ 'lite',
226
+ 'Lite',
227
+ ), '', $recommend['name']
228
+ )
229
+ );
230
+ ?>
231
+ (<a class="thickbox open-plugin-details-modal"
232
+ href="<?php echo $url . '&TB_iframe=true&width=600&height=500'; ?>"><?php echo apply_filters( 'themeisle_sdk_dashboard_install_label', 'Install' ); ?></a>)
233
+ </li>
234
+
235
+ <?php
236
+ }
237
+ }
238
+ ?>
239
+ </ul>
240
+
241
+ <?php
242
+
243
+ }
244
+
245
+ /**
246
+ * Either the current product is installed or not.
247
+ *
248
+ * @param array $val The current recommended product.
249
+ *
250
+ * @return bool Either we should exclude the plugin or not.
251
+ */
252
+ public function remove_current_products( $val ) {
253
+ if ( $val['type'] === 'theme' ) {
254
+ $exist = wp_get_theme( $val['slug'] );
255
+
256
+ return ! $exist->exists();
257
+ } else {
258
+ $all_plugins = array_keys( get_plugins() );
259
+ foreach ( $all_plugins as $slug ) {
260
+ if ( strpos( $slug, $val['slug'] ) !== false ) {
261
+ return false;
262
+ }
263
+ }
264
+
265
+ return true;
266
+ }
267
+ }
268
+
269
+ /**
270
+ * Fetch themes from wporg api.
271
+ *
272
+ * @param string $author The author name.
273
+ *
274
+ * @return array The list of themes.
275
+ */
276
+ function get_themes_from_wporg( $author ) {
277
+ $products = wp_remote_get(
278
+ 'https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[author]=' . $author . '&request[per_page]=30&request[fields][active_installs]=true'
279
+ );
280
+ $products = json_decode( wp_remote_retrieve_body( $products ) );
281
+ if ( is_object( $products ) ) {
282
+ $products = isset( $products->themes ) ? $products->themes : array();
283
+ } else {
284
+ $products = array();
285
+ }
286
+
287
+ return $products;
288
+ }
289
+
290
+ /**
291
+ * Fetch plugin from wporg api.
292
+ *
293
+ * @param string $author The author slug.
294
+ *
295
+ * @return array The list of plugins for the selected author.
296
+ */
297
+ function get_plugins_from_wporg( $author ) {
298
+ $products = wp_remote_get(
299
+ 'https://api.wordpress.org/plugins/info/1.1/?action=query_plugins&request[author]=' . $author . '&request[author]=codeinwp&request[per_page]=20&request[fields][active_installs]=true'
300
+ );
301
+ $products = json_decode( wp_remote_retrieve_body( $products ) );
302
+ if ( is_object( $products ) ) {
303
+ $products = isset( $products->plugins ) ? $products->plugins : array();
304
+ } else {
305
+ $products = array();
306
+ }
307
+
308
+ return $products;
309
+ }
310
+
311
+ /**
312
+ * Fetch products from the recomended section.
313
+ *
314
+ * @return array|mixed The list of products to use in recomended section.
315
+ */
316
+ function get_product_from_api() {
317
+ if ( false === ( $products = get_transient( 'themeisle_sdk_products' ) ) ) {
318
+ $products = array();
319
+ $themeisle_themes = $this->get_themes_from_wporg( 'themeisle' );
320
+ $codeinwp_themes = $this->get_themes_from_wporg( 'codeinwp' );
321
+
322
+ $themeisle_plugins = $this->get_plugins_from_wporg( 'themeisle' );
323
+ $codeinwp_plugins = $this->get_plugins_from_wporg( 'codeinwp' );
324
+
325
+ $all_themes = array_merge( $themeisle_themes, $codeinwp_themes );
326
+ foreach ( $all_themes as $theme ) {
327
+ if ( $theme->active_installs < 4999 ) {
328
+ continue;
329
+ }
330
+ $products[] = array(
331
+ 'name' => $theme->name,
332
+ 'type' => 'theme',
333
+ 'slug' => $theme->slug,
334
+ 'installs' => $theme->active_installs,
335
+ );
336
+ }
337
+ $all_plugins = array_merge( $themeisle_plugins, $codeinwp_plugins );
338
+ foreach ( $all_plugins as $plugin ) {
339
+ if ( $plugin->active_installs < 5999 ) {
340
+ continue;
341
+ }
342
+ $products[] = array(
343
+ 'name' => $plugin->name,
344
+ 'type' => 'plugin',
345
+ 'slug' => $plugin->slug,
346
+ 'installs' => $plugin->active_installs,
347
+ );
348
+ }
349
+ set_transient( 'themeisle_sdk_products', $products, 6 * HOUR_IN_SECONDS );
350
+ }
351
+
352
+ return $products;
353
+ }
354
+
355
+ /**
356
+ * Contact the API and fetch the recommended plugins/themes
357
+ */
358
+ function recommend_plugin_or_theme() {
359
+ $products = $this->get_product_from_api();
360
+ if ( ! is_array( $products ) ) {
361
+ $products = array();
362
+ }
363
+ $products = array_filter( $products, array( $this, 'remove_current_products' ) );
364
+ $products = array_merge( $products );
365
+ if ( count( $products ) > 1 ) {
366
+ shuffle( $products );
367
+ $products = array_slice( $products, 0, 1 );
368
+ }
369
+ $to_recommend = isset( $products[0] ) ? $products[0] : $products;
370
+
371
+ return $to_recommend;
372
+ }
373
+ }
374
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The widget model class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Widgets
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Widget' ) ) :
16
+ /**
17
+ * Widget model for ThemeIsle SDK.
18
+ */
19
+ abstract class ThemeIsle_SDK_Widget {
20
+ /**
21
+ * @var ThemeIsle_SDK_Product $product Themeisle Product.
22
+ */
23
+ protected $product;
24
+
25
+ /**
26
+ * ThemeIsle_SDK_Widget constructor.
27
+ *
28
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
29
+ */
30
+ public function __construct( $product_object ) {
31
+ if ( $product_object instanceof ThemeIsle_SDK_Product ) {
32
+ $this->product = $product_object;
33
+ }
34
+ $this->setup_hooks();
35
+ }
36
+
37
+ /**
38
+ * Registers the hooks and then delegates to the child
39
+ */
40
+ public function setup_hooks() {
41
+ $this->setup_hooks_child();
42
+ }
43
+
44
+ /**
45
+ * Abstract function for delegating to the child
46
+ */
47
+ protected abstract function setup_hooks_child();
48
+
49
+ }
50
+ endif;
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widgets-factory.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The widgets factory class for ThemeIsle SDK
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @subpackage Widgets
7
+ * @copyright Copyright (c) 2017, Marius Cristea
8
+ * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9
+ * @since 1.0.0
10
+ */
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+ if ( ! class_exists( 'ThemeIsle_SDK_Widgets_Factory' ) ) :
16
+ /**
17
+ * Widgets factory model for ThemeIsle SDK.
18
+ */
19
+ class ThemeIsle_SDK_Widgets_Factory {
20
+
21
+ /**
22
+ * ThemeIsle_SDK_Widgets_Factory constructor.
23
+ *
24
+ * @param ThemeIsle_SDK_Product $product_object Product Object.
25
+ * @param array $widgets the widgets.
26
+ */
27
+ public function __construct( $product_object, $widgets ) {
28
+ if ( $product_object instanceof ThemeIsle_SDK_Product && $widgets && is_array( $widgets ) ) {
29
+ foreach ( $widgets as $widget ) {
30
+ $class = 'ThemeIsle_SDK_Widget_' . str_replace( ' ', '_', ucwords( str_replace( '_', ' ', $widget ) ) );
31
+ $instance = new $class( $product_object );
32
+ $instance->setup_hooks();
33
+ }
34
+ }
35
+ }
36
+ }
37
+ endif;
vendor/codeinwp/themeisle-sdk/composer.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "codeinwp/themeisle-sdk",
3
+ "description": "ThemeIsle SDK ",
4
+ "keywords": [
5
+ "wordpress"
6
+ ],
7
+ "homepage": "https://github.com/Codeinwp/themeisle-sdk",
8
+ "license": "GPL-2.0+",
9
+ "authors": [
10
+ {
11
+ "name": "ThemeIsle team",
12
+ "email": "friends@themeisle.com",
13
+ "homepage": "https://themeisle.com"
14
+ }
15
+ ],
16
+ "autoload": {
17
+ "files": [
18
+ "load.php"
19
+ ]
20
+ },
21
+ "support": {
22
+ "issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
23
+ }
24
+ }
vendor/codeinwp/themeisle-sdk/index.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package ThemeIsleSDK
4
+ * Ignore this.
5
+ */
vendor/codeinwp/themeisle-sdk/load.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Loader for the ThemeIsleSDK
4
+ *
5
+ * Logic for loading always the latest SDK from the installed themes/plugins.
6
+ *
7
+ * @package ThemeIsleSDK
8
+ * @copyright Copyright (c) 2017, Marius Cristea
9
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ * @since 1.1.0
11
+ */
12
+
13
+ // Current SDK version and path.
14
+ $themeisle_sdk_version = '1.5.5';
15
+ $themeisle_sdk_path = dirname( __FILE__ );
16
+
17
+ global $themeisle_sdk_max_version;
18
+ global $themeisle_sdk_max_path;
19
+
20
+ if ( version_compare( $themeisle_sdk_version, $themeisle_sdk_max_version ) >= 0 ) {
21
+ $themeisle_sdk_max_version = $themeisle_sdk_version;
22
+ $themeisle_sdk_max_path = $themeisle_sdk_path;
23
+ }
24
+
25
+ // load the latest sdk version from the active Themeisle products
26
+ if ( ! function_exists( 'themeisle_sdk_load_latest' ) ) :
27
+ /**
28
+ * Always load the latest sdk version.
29
+ */
30
+ function themeisle_sdk_load_latest() {
31
+ global $themeisle_sdk_max_path;
32
+ require_once $themeisle_sdk_max_path . '/start.php';
33
+ }
34
+ endif;
35
+ add_action( 'init', 'themeisle_sdk_load_latest' );
vendor/codeinwp/themeisle-sdk/start.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File responsible for sdk files loading.
4
+ *
5
+ * @package ThemeIsleSDK
6
+ * @copyright Copyright (c) 2017, Marius Cristea
7
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8
+ * @since 1.1.0
9
+ */
10
+ $products = apply_filters( 'themeisle_sdk_products', array() );
11
+ $path = dirname( __FILE__ );
12
+ $files_to_load = array(
13
+ 'class-themeisle-sdk-loader.php',
14
+ 'class-themeisle-sdk-product.php',
15
+ 'class-themeisle-sdk-logger.php',
16
+ 'class-themeisle-sdk-licenser.php',
17
+ 'class-themeisle-sdk-feedback-factory.php',
18
+ 'class-themeisle-sdk-feedback.php',
19
+ 'class-themeisle-sdk-feedback-deactivate.php',
20
+ 'class-themeisle-sdk-feedback-review.php',
21
+ 'class-themeisle-sdk-notification-manager.php',
22
+ 'class-themeisle-sdk-widget.php',
23
+ 'class-themeisle-sdk-widget-dashboard-blog.php',
24
+ 'class-themeisle-sdk-widgets-factory.php',
25
+ );
26
+
27
+ foreach ( $files_to_load as $file ) {
28
+ $file_path = $path . '/' . $file;
29
+ if ( is_readable( $file_path ) ) {
30
+ require_once $file_path;
31
+ }
32
+ }
33
+ foreach ( $products as $product ) {
34
+ ThemeIsle_SDK_Loader::init_product( $product );
35
+ }
vendor/composer/ClassLoader.php ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ * Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
+
13
+ namespace Composer\Autoload;
14
+
15
+ /**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
+ *
18
+ * $loader = new \Composer\Autoload\ClassLoader();
19
+ *
20
+ * // register classes with namespaces
21
+ * $loader->add('Symfony\Component', __DIR__.'/component');
22
+ * $loader->add('Symfony', __DIR__.'/framework');
23
+ *
24
+ * // activate the autoloader
25
+ * $loader->register();
26
+ *
27
+ * // to enable searching the include path (eg. for PEAR packages)
28
+ * $loader->setUseIncludePath(true);
29
+ *
30
+ * In this example, if you try to use a class in the Symfony\Component
31
+ * namespace or one of its children (Symfony\Component\Console for instance),
32
+ * the autoloader will first look for the class under the component/
33
+ * directory, and it will then fallback to the framework/ directory if not
34
+ * found before giving up.
35
+ *
36
+ * This class is loosely based on the Symfony UniversalClassLoader.
37
+ *
38
+ * @author Fabien Potencier <fabien@symfony.com>
39
+ * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see http://www.php-fig.org/psr/psr-0/
41
+ * @see http://www.php-fig.org/psr/psr-4/
42
+ */
43
+ class ClassLoader
44
+ {
45
+ // PSR-4
46
+ private $prefixLengthsPsr4 = array();
47
+ private $prefixDirsPsr4 = array();
48
+ private $fallbackDirsPsr4 = array();
49
+
50
+ // PSR-0
51
+ private $prefixesPsr0 = array();
52
+ private $fallbackDirsPsr0 = array();
53
+
54
+ private $useIncludePath = false;
55
+ private $classMap = array();
56
+
57
+ private $classMapAuthoritative = false;
58
+
59
+ public function getPrefixes()
60
+ {
61
+ if (!empty($this->prefixesPsr0)) {
62
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
63
+ }
64
+
65
+ return array();
66
+ }
67
+
68
+ public function getPrefixesPsr4()
69
+ {
70
+ return $this->prefixDirsPsr4;
71
+ }
72
+
73
+ public function getFallbackDirs()
74
+ {
75
+ return $this->fallbackDirsPsr0;
76
+ }
77
+
78
+ public function getFallbackDirsPsr4()
79
+ {
80
+ return $this->fallbackDirsPsr4;
81
+ }
82
+
83
+ public function getClassMap()
84
+ {
85
+ return $this->classMap;
86
+ }
87
+
88
+ /**
89
+ * @param array $classMap Class to filename map
90
+ */
91
+ public function addClassMap(array $classMap)
92
+ {
93
+ if ($this->classMap) {
94
+ $this->classMap = array_merge($this->classMap, $classMap);
95
+ } else {
96
+ $this->classMap = $classMap;
97
+ }
98
+ }
99
+
100
+ /**
101
+ * Registers a set of PSR-0 directories for a given prefix, either
102
+ * appending or prepending to the ones previously set for this prefix.
103
+ *
104
+ * @param string $prefix The prefix
105
+ * @param array|string $paths The PSR-0 root directories
106
+ * @param bool $prepend Whether to prepend the directories
107
+ */
108
+ public function add($prefix, $paths, $prepend = false)
109
+ {
110
+ if (!$prefix) {
111
+ if ($prepend) {
112
+ $this->fallbackDirsPsr0 = array_merge(
113
+ (array) $paths,
114
+ $this->fallbackDirsPsr0
115
+ );
116
+ } else {
117
+ $this->fallbackDirsPsr0 = array_merge(
118
+ $this->fallbackDirsPsr0,
119
+ (array) $paths
120
+ );
121
+ }
122
+
123
+ return;
124
+ }
125
+
126
+ $first = $prefix[0];
127
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
128
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
129
+
130
+ return;
131
+ }
132
+ if ($prepend) {
133
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
134
+ (array) $paths,
135
+ $this->prefixesPsr0[$first][$prefix]
136
+ );
137
+ } else {
138
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
139
+ $this->prefixesPsr0[$first][$prefix],
140
+ (array) $paths
141
+ );
142
+ }
143
+ }
144
+
145
+ /**
146
+ * Registers a set of PSR-4 directories for a given namespace, either
147
+ * appending or prepending to the ones previously set for this namespace.
148
+ *
149
+ * @param string $prefix The prefix/namespace, with trailing '\\'
150
+ * @param array|string $paths The PSR-4 base directories
151
+ * @param bool $prepend Whether to prepend the directories
152
+ *
153
+ * @throws \InvalidArgumentException
154
+ */
155
+ public function addPsr4($prefix, $paths, $prepend = false)
156
+ {
157
+ if (!$prefix) {
158
+ // Register directories for the root namespace.
159
+ if ($prepend) {
160
+ $this->fallbackDirsPsr4 = array_merge(
161
+ (array) $paths,
162
+ $this->fallbackDirsPsr4
163
+ );
164
+ } else {
165
+ $this->fallbackDirsPsr4 = array_merge(
166
+ $this->fallbackDirsPsr4,
167
+ (array) $paths
168
+ );
169
+ }
170
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
171
+ // Register directories for a new namespace.
172
+ $length = strlen($prefix);
173
+ if ('\\' !== $prefix[$length - 1]) {
174
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
175
+ }
176
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
177
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
178
+ } elseif ($prepend) {
179
+ // Prepend directories for an already registered namespace.
180
+ $this->prefixDirsPsr4[$prefix] = array_merge(
181
+ (array) $paths,
182
+ $this->prefixDirsPsr4[$prefix]
183
+ );
184
+ } else {
185
+ // Append directories for an already registered namespace.
186
+ $this->prefixDirsPsr4[$prefix] = array_merge(
187
+ $this->prefixDirsPsr4[$prefix],
188
+ (array) $paths
189
+ );
190
+ }
191
+ }
192
+
193
+ /**
194
+ * Registers a set of PSR-0 directories for a given prefix,
195
+ * replacing any others previously set for this prefix.
196
+ *
197
+ * @param string $prefix The prefix
198
+ * @param array|string $paths The PSR-0 base directories
199
+ */
200
+ public function set($prefix, $paths)
201
+ {
202
+ if (!$prefix) {
203
+ $this->fallbackDirsPsr0 = (array) $paths;
204
+ } else {
205
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
206
+ }
207
+ }
208
+
209
+ /**
210
+ * Registers a set of PSR-4 directories for a given namespace,
211
+ * replacing any others previously set for this namespace.
212
+ *
213
+ * @param string $prefix The prefix/namespace, with trailing '\\'
214
+ * @param array|string $paths The PSR-4 base directories
215
+ *
216
+ * @throws \InvalidArgumentException
217
+ */
218
+ public function setPsr4($prefix, $paths)
219
+ {
220
+ if (!$prefix) {
221
+ $this->fallbackDirsPsr4 = (array) $paths;
222
+ } else {
223
+ $length = strlen($prefix);
224
+ if ('\\' !== $prefix[$length - 1]) {
225
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
226
+ }
227
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
228
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
229
+ }
230
+ }
231
+
232
+ /**
233
+ * Turns on searching the include path for class files.
234
+ *
235
+ * @param bool $useIncludePath
236
+ */
237
+ public function setUseIncludePath($useIncludePath)
238
+ {
239
+ $this->useIncludePath = $useIncludePath;
240
+ }
241
+
242
+ /**
243
+ * Can be used to check if the autoloader uses the include path to check
244
+ * for classes.
245
+ *
246
+ * @return bool
247
+ */
248
+ public function getUseIncludePath()
249
+ {
250
+ return $this->useIncludePath;
251
+ }
252
+
253
+ /**
254
+ * Turns off searching the prefix and fallback directories for classes
255
+ * that have not been registered with the class map.
256
+ *
257
+ * @param bool $classMapAuthoritative
258
+ */
259
+ public function setClassMapAuthoritative($classMapAuthoritative)
260
+ {
261
+ $this->classMapAuthoritative = $classMapAuthoritative;
262
+ }
263
+
264
+ /**
265
+ * Should class lookup fail if not found in the current class map?
266
+ *
267
+ * @return bool
268
+ */
269
+ public function isClassMapAuthoritative()
270
+ {
271
+ return $this->classMapAuthoritative;
272
+ }
273
+
274
+ /**
275
+ * Registers this instance as an autoloader.
276
+ *
277
+ * @param bool $prepend Whether to prepend the autoloader or not
278
+ */
279
+ public function register($prepend = false)
280
+ {
281
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
282
+ }
283
+
284
+ /**
285
+ * Unregisters this instance as an autoloader.
286
+ */
287
+ public function unregister()
288
+ {
289
+ spl_autoload_unregister(array($this, 'loadClass'));
290
+ }
291
+
292
+ /**
293
+ * Loads the given class or interface.
294
+ *
295
+ * @param string $class The name of the class
296
+ * @return bool|null True if loaded, null otherwise
297
+ */
298
+ public function loadClass($class)
299
+ {
300
+ if ($file = $this->findFile($class)) {
301
+ includeFile($file);
302
+
303
+ return true;
304
+ }
305
+ }
306
+
307
+ /**
308
+ * Finds the path to the file where the class is defined.
309
+ *
310
+ * @param string $class The name of the class
311
+ *
312
+ * @return string|false The path if found, false otherwise
313
+ */
314
+ public function findFile($class)
315
+ {
316
+ // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
317
+ if ('\\' == $class[0]) {
318
+ $class = substr($class, 1);
319
+ }
320
+
321
+ // class map lookup
322
+ if (isset($this->classMap[$class])) {
323
+ return $this->classMap[$class];
324
+ }
325
+ if ($this->classMapAuthoritative) {
326
+ return false;
327
+ }
328
+
329
+ $file = $this->findFileWithExtension($class, '.php');
330
+
331
+ // Search for Hack files if we are running on HHVM
332
+ if ($file === null && defined('HHVM_VERSION')) {
333
+ $file = $this->findFileWithExtension($class, '.hh');
334
+ }
335
+
336
+ if ($file === null) {
337
+ // Remember that this class does not exist.
338
+ return $this->classMap[$class] = false;
339
+ }
340
+
341
+ return $file;
342
+ }
343
+
344
+ private function findFileWithExtension($class, $ext)
345
+ {
346
+ // PSR-4 lookup
347
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
348
+
349
+ $first = $class[0];
350
+ if (isset($this->prefixLengthsPsr4[$first])) {
351
+ foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
352
+ if (0 === strpos($class, $prefix)) {
353
+ foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
354
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
355
+ return $file;
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+
362
+ // PSR-4 fallback dirs
363
+ foreach ($this->fallbackDirsPsr4 as $dir) {
364
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
365
+ return $file;
366
+ }
367
+ }
368
+
369
+ // PSR-0 lookup
370
+ if (false !== $pos = strrpos($class, '\\')) {
371
+ // namespaced class name
372
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
373
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
374
+ } else {
375
+ // PEAR-like class name
376
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
377
+ }
378
+
379
+ if (isset($this->prefixesPsr0[$first])) {
380
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
381
+ if (0 === strpos($class, $prefix)) {
382
+ foreach ($dirs as $dir) {
383
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
384
+ return $file;
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+
391
+ // PSR-0 fallback dirs
392
+ foreach ($this->fallbackDirsPsr0 as $dir) {
393
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
394
+ return $file;
395
+ }
396
+ }
397
+
398
+ // PSR-0 include paths.
399
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
400
+ return $file;
401
+ }
402
+ }
403
+ }
404
+
405
+ /**
406
+ * Scope isolated include.
407
+ *
408
+ * Prevents access to $this/self from included files.
409
+ */
410
+ function includeFile($file)
411
+ {
412
+ include $file;
413
+ }
vendor/composer/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Copyright (c) 2016 Nils Adermann, Jordi Boggiano
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished
9
+ to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
vendor/composer/autoload_classmap.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_classmap.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_files.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_files.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ '957c51f8f334b5ea3be310bfb8b3492c' => $vendorDir . '/codeinwp/themeisle-sdk/load.php',
10
+ '4577ab960be90dedc8f8512147cf356d' => $vendorDir . '/codeinwp/themeisle-sdk/load.php',
11
+ );
vendor/composer/autoload_namespaces.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_namespaces.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_psr4.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_psr4.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_real.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_real.php @generated by Composer
4
+
5
+ class ComposerAutoloaderInit1163fdb19d8675f98860f27888593a7c
6
+ {
7
+ private static $loader;
8
+
9
+ public static function loadClassLoader($class)
10
+ {
11
+ if ('Composer\Autoload\ClassLoader' === $class) {
12
+ require __DIR__ . '/ClassLoader.php';
13
+ }
14
+ }
15
+
16
+ public static function getLoader()
17
+ {
18
+ if (null !== self::$loader) {
19
+ return self::$loader;
20
+ }
21
+
22
+ spl_autoload_register(array('ComposerAutoloaderInit1163fdb19d8675f98860f27888593a7c', 'loadClassLoader'), true, true);
23
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit1163fdb19d8675f98860f27888593a7c', 'loadClassLoader'));
25
+
26
+ $map = require __DIR__ . '/autoload_namespaces.php';
27
+ foreach ($map as $namespace => $path) {
28
+ $loader->set($namespace, $path);
29
+ }
30
+
31
+ $map = require __DIR__ . '/autoload_psr4.php';
32
+ foreach ($map as $namespace => $path) {
33
+ $loader->setPsr4($namespace, $path);
34
+ }
35
+
36
+ $classMap = require __DIR__ . '/autoload_classmap.php';
37
+ if ($classMap) {
38
+ $loader->addClassMap($classMap);
39
+ }
40
+
41
+ $loader->register(true);
42
+
43
+ $includeFiles = require __DIR__ . '/autoload_files.php';
44
+ foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire1163fdb19d8675f98860f27888593a7c($fileIdentifier, $file);
46
+ }
47
+
48
+ return $loader;
49
+ }
50
+ }
51
+
52
+ function composerRequire1163fdb19d8675f98860f27888593a7c($fileIdentifier, $file)
53
+ {
54
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
+ require $file;
56
+
57
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
58
+ }
59
+ }
vendor/composer/installed.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "codeinwp/themeisle-sdk",
4
+ "version": "dev-master",
5
+ "version_normalized": "9999999-dev",
6
+ "source": {
7
+ "type": "git",
8
+ "url": "git@github.com:Codeinwp/themeisle-sdk.git",
9
+ "reference": "f05bd8f0fe4d628424484e2bdd6d20ee65f454ee"
10
+ },
11
+ "dist": {
12
+ "type": "zip",
13
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/f05bd8f0fe4d628424484e2bdd6d20ee65f454ee",
14
+ "reference": "f05bd8f0fe4d628424484e2bdd6d20ee65f454ee",
15
+ "shasum": ""
16
+ },
17
+ "time": "2017-08-08 22:09:54",
18
+ "type": "library",
19
+ "installation-source": "dist",
20
+ "autoload": {
21
+ "files": [
22
+ "load.php"
23
+ ]
24
+ },
25
+ "license": [
26
+ "GPL-2.0+"
27
+ ],
28
+ "authors": [
29
+ {
30
+ "name": "ThemeIsle team",
31
+ "email": "friends@themeisle.com",
32
+ "homepage": "https://themeisle.com"
33
+ }
34
+ ],
35
+ "description": "ThemeIsle SDK ",
36
+ "homepage": "https://github.com/Codeinwp/themeisle-sdk",
37
+ "keywords": [
38
+ "wordpress"
39
+ ],
40
+ "support": {
41
+ "issues": "https://github.com/Codeinwp/themeisle-sdk/issues"
42
+ }
43
+ }
44
+ ]