Forget About Shortcode Buttons - Version 1.0.0

Version Description

  • Initial Release

=

Download this release

Release Info

Developer DesignsAndCode
Plugin Icon wp plugin Forget About Shortcode Buttons
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

LICENSE 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
+ Search & Filter is a simple search and filtering plugin for WordPress
294
+ Copyright (C) 2013 Ross Morsali
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.
assets/css/button-styles.css ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('../../../../../wp-includes/css/dashicons.min.css'); /* hacky? */
2
+
3
+ a.fasc-button
4
+ {
5
+ display:inline-block;
6
+ color:#ffffff;
7
+ text-decoration:none;
8
+ margin: 3px 0;
9
+ }
10
+ a.fasc-button:hover
11
+ {
12
+ text-decoration:none;
13
+ }
14
+ a.fasc-button.fasc-ico:before
15
+ {
16
+ vertical-align:middle;
17
+ display: inline-block;
18
+
19
+ -webkit-font-smoothing: antialiased;
20
+ margin-top:-2px;
21
+ }
22
+ a.fasc-size-xsmall.fasc-ico:before {
23
+
24
+ font:400 12px/1 dashicons;
25
+ padding-right:4px;
26
+
27
+ }
28
+ a.fasc-size-small.fasc-ico:before {
29
+
30
+ font:400 14px/1 dashicons;
31
+ padding-right:4px;
32
+
33
+ }
34
+ a.fasc-size-medium.fasc-ico:before {
35
+
36
+ font:400 16px/1 dashicons;
37
+ padding-right:5px;
38
+
39
+ }
40
+ a.fasc-size-large.fasc-ico:before
41
+ {
42
+ font:400 20px/1 dashicons;
43
+ padding-right:6px;
44
+ line-height:22px;
45
+ }
46
+ a.fasc-size-xlarge.fasc-ico:before
47
+ {
48
+ font:400 28px/1 dashicons;
49
+ padding-right:6px;
50
+ line-height:22px;
51
+ }
52
+
53
+ /* sizes */
54
+
55
+ span.fasc-editor-hidden
56
+ {
57
+ display:none;
58
+ }
59
+
60
+ .fasc-size-xsmall
61
+ {
62
+ font-size:10px;
63
+ padding:5px 7px;
64
+ border:0;
65
+ }
66
+ .fasc-size-small
67
+ {
68
+ font-size:12px;
69
+ padding:6px 8px;
70
+ border:0;
71
+ }
72
+
73
+ .fasc-size-medium
74
+ {
75
+ font-size:14px;
76
+ padding:7px 9px;
77
+ font-size:14px;
78
+ border:0;
79
+ }
80
+
81
+ .fasc-size-large
82
+ {
83
+ font-size:18px;
84
+ padding:8px 10px;
85
+ border:0;
86
+ }
87
+ .fasc-size-xlarge
88
+ {
89
+ font-size:24px;
90
+ padding:11px 13px;
91
+ border:0;
92
+ }
93
+
94
+
95
+ /* Types */
96
+
97
+ /* glossy */
98
+ .fasc-type-glossy
99
+ {
100
+
101
+ background-color: #247edd;
102
+
103
+ border:1px solid rgba(0,0,0, 0.1);
104
+ /*text-shadow:1px solid rgba(0,0,0, 0.1);*/
105
+
106
+ /*-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
107
+ box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);*/
108
+ background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
109
+ background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
110
+ background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
111
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 51%, rgba(0, 0, 0, 0.04));
112
+
113
+ }
114
+ .fasc-type-glossy.fasc-size-xlarge
115
+ {
116
+
117
+ }
118
+ .fasc-type-glossy.fasc-size-large
119
+ {
120
+
121
+ }
122
+ .fasc-type-glossy.fasc-size-medium
123
+ {
124
+
125
+ }
126
+ .fasc-type-glossy.fasc-size-small
127
+ {
128
+
129
+ }
130
+ .fasc-type-glossy.fasc-size-xsmall
131
+ {
132
+
133
+ }
134
+
135
+
136
+
137
+
138
+
139
+ /* 3d */
140
+ .fasc-type-popout.fasc-size-xlarge
141
+ {
142
+ -webkit-box-shadow: 7px 7px 0px #777777;
143
+ -moz-box-shadow: 7px 7px 0px #777777;
144
+ box-shadow: 7px 7px 0px #777777;
145
+ }
146
+ .fasc-type-popout.fasc-size-large
147
+ {
148
+ -webkit-box-shadow: 6px 6px 0px #777777;
149
+ -moz-box-shadow: 6px 6px 0px #777777;
150
+ box-shadow: 6px 6px 0px #777777;
151
+ }
152
+ .fasc-type-popout.fasc-size-medium
153
+ {
154
+ -webkit-box-shadow: 5px 5px 0px #777777;
155
+ -moz-box-shadow: 5px 5px 0px #777777;
156
+ box-shadow: 5px 5px 0px #777777;
157
+ }
158
+ .fasc-type-popout.fasc-size-small
159
+ {
160
+ -webkit-box-shadow: 4px 4px 0px #777777;
161
+ -moz-box-shadow: 4px 4px 0px #777777;
162
+ box-shadow: 4px 4px 0px #777777;
163
+ }
164
+ .fasc-type-popout.fasc-size-xsmall
165
+ {
166
+ -webkit-box-shadow: 3px 3px 0px #777777;
167
+ -moz-box-shadow: 3px 3px 0px #777777;
168
+ box-shadow: 3px 3px 0px #777777;
169
+ }
170
+
171
+
172
+ /* rounded */
173
+ .rounded.fasc-size-xlarge
174
+ {
175
+ border-radius:15px;
176
+ }
177
+ .rounded.fasc-size-large
178
+ {
179
+ border-radius:10px;
180
+ }
181
+ .rounded.fasc-size-medium
182
+ {
183
+ border-radius:9px;
184
+ }
185
+ .rounded.fasc-size-small
186
+ {
187
+ border-radius:8px;
188
+ }
189
+ .rounded.fasc-size-xsmall
190
+ {
191
+ border-radius:7px;
192
+ }
193
+
194
+
195
+
assets/css/custom-editor-style.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ @import url(button-styles.css);
2
+
3
+ /* Add overwrites as needed so that the content of the editor field is attractive and not broken */
4
+ body { background: #ffffff; }
5
+
6
+ .fasc-button
7
+ {
8
+ cursor:help;
9
+ }
assets/css/fasc-buttons.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ .mce-i-fascbutton-ico:before {
4
+ content: '\f132';
5
+ content: '\f310';
6
+ display: inline-block;
7
+ -webkit-font-smoothing: antialiased;
8
+ font:400 20px/1 dashicons;
9
+
10
+ }
11
+
assets/js/fasc-buttons/button-styles.css ADDED
File without changes
assets/js/fasc-buttons/button.png ADDED
Binary file
assets/js/fasc-buttons/dashicons-grid.php ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <!-- admin menu -->
3
+ <div data-code="f333" class="dashicons dashicons-menu"></div>
4
+ <div data-code="f319" class="dashicons dashicons-admin-site"></div>
5
+ <div data-code="f226" class="dashicons dashicons-dashboard"></div>
6
+ <div data-code="f109" class="dashicons dashicons-admin-post"></div>
7
+ <div data-code="f104" class="dashicons dashicons-admin-media"></div>
8
+ <div data-code="f103" class="dashicons dashicons-admin-links"></div>
9
+ <div data-code="f105" class="dashicons dashicons-admin-page"></div>
10
+ <div data-code="f101" class="dashicons dashicons-admin-comments"></div>
11
+ <div data-code="f100" class="dashicons dashicons-admin-appearance"></div>
12
+ <div data-code="f106" class="dashicons dashicons-admin-plugins"></div>
13
+ <div data-code="f110" class="dashicons dashicons-admin-users"></div>
14
+ <div data-code="f107" class="dashicons dashicons-admin-tools"></div>
15
+ <div data-code="f108" class="dashicons dashicons-admin-settings"></div>
16
+ <div data-code="f112" class="dashicons dashicons-admin-network"></div>
17
+ <div data-code="f102" class="dashicons dashicons-admin-home"></div>
18
+ <div data-code="f111" class="dashicons dashicons-admin-generic"></div>
19
+ <div data-code="f148" class="dashicons dashicons-admin-collapse"></div>
20
+
21
+ <!-- welcome screen -->
22
+ <div data-code="f119" class="dashicons dashicons-welcome-write-blog"></div>
23
+ <!--<div data-code="f119" class="dashicons dashicons-welcome-edit-page"></div> Duplicate -->
24
+ <div data-code="f133" class="dashicons dashicons-welcome-add-page"></div>
25
+ <div data-code="f115" class="dashicons dashicons-welcome-view-site"></div>
26
+ <div data-code="f116" class="dashicons dashicons-welcome-widgets-menus"></div>
27
+ <div data-code="f117" class="dashicons dashicons-welcome-comments"></div>
28
+ <div data-code="f118" class="dashicons dashicons-welcome-learn-more"></div>
29
+
30
+ <!-- post formats -->
31
+ <!--<div data-code="f109" class="dashicons dashicons-format-standard"></div> Duplicate -->
32
+ <div data-code="f123" class="dashicons dashicons-format-aside"></div>
33
+ <div data-code="f128" class="dashicons dashicons-format-image"></div>
34
+ <div data-code="f161" class="dashicons dashicons-format-gallery"></div>
35
+ <div data-code="f126" class="dashicons dashicons-format-video"></div>
36
+ <div data-code="f130" class="dashicons dashicons-format-status"></div>
37
+ <div data-code="f122" class="dashicons dashicons-format-quote"></div>
38
+ <!--<div data-code="f103" class="dashicons dashicons-format-links"></div> Duplicate -->
39
+ <div data-code="f125" class="dashicons dashicons-format-chat"></div>
40
+ <div data-code="f127" class="dashicons dashicons-format-audio"></div>
41
+ <div data-code="f306" class="dashicons dashicons-camera"></div>
42
+ <div data-code="f232" class="dashicons dashicons-images-alt"></div>
43
+ <div data-code="f233" class="dashicons dashicons-images-alt2"></div>
44
+ <div data-code="f234" class="dashicons dashicons-video-alt"></div>
45
+ <div data-code="f235" class="dashicons dashicons-video-alt2"></div>
46
+ <div data-code="f236" class="dashicons dashicons-video-alt3"></div>
47
+
48
+ <!-- media -->
49
+ <!-- This section will be launched on release of WordPress 3.9. Please don't used these icons until then.-->
50
+ <div data-code="f501" class="dashicons dashicons-media-archive"></div>
51
+ <div data-code="f500" class="dashicons dashicons-media-audio"></div>
52
+ <div data-code="f499" class="dashicons dashicons-media-code"></div>
53
+ <div data-code="f498" class="dashicons dashicons-media-default"></div>
54
+ <div data-code="f497" class="dashicons dashicons-media-document"></div>
55
+ <div data-code="f496" class="dashicons dashicons-media-interactive"></div>
56
+ <div data-code="f495" class="dashicons dashicons-media-spreadsheet"></div>
57
+ <div data-code="f491" class="dashicons dashicons-media-text"></div>
58
+ <div data-code="f490" class="dashicons dashicons-media-video"></div>
59
+ <div data-code="f492" class="dashicons dashicons-playlist-audio"></div>
60
+ <div data-code="f493" class="dashicons dashicons-playlist-video"></div>
61
+
62
+
63
+ <!-- image editing -->
64
+ <div data-code="f165" class="dashicons dashicons-image-crop"></div>
65
+ <div data-code="f166" class="dashicons dashicons-image-rotate-left"></div>
66
+ <div data-code="f167" class="dashicons dashicons-image-rotate-right"></div>
67
+ <div data-code="f168" class="dashicons dashicons-image-flip-vertical"></div>
68
+ <div data-code="f169" class="dashicons dashicons-image-flip-horizontal"></div>
69
+ <div data-code="f171" class="dashicons dashicons-undo"></div>
70
+ <div data-code="f172" class="dashicons dashicons-redo"></div>
71
+
72
+ <!-- tinymce -->
73
+ <div data-code="f200" class="dashicons dashicons-editor-bold"></div>
74
+ <div data-code="f201" class="dashicons dashicons-editor-italic"></div>
75
+ <div data-code="f203" class="dashicons dashicons-editor-ul"></div>
76
+ <div data-code="f204" class="dashicons dashicons-editor-ol"></div>
77
+ <div data-code="f205" class="dashicons dashicons-editor-quote"></div>
78
+ <div data-code="f206" class="dashicons dashicons-editor-alignleft"></div>
79
+ <div data-code="f207" class="dashicons dashicons-editor-aligncenter"></div>
80
+ <div data-code="f208" class="dashicons dashicons-editor-alignright"></div>
81
+ <div data-code="f209" class="dashicons dashicons-editor-insertmore"></div>
82
+ <div data-code="f210" class="dashicons dashicons-editor-spellcheck"></div>
83
+ <div data-code="f211" class="dashicons dashicons-editor-distractionfree"></div>
84
+ <div data-code="f212" class="dashicons dashicons-editor-kitchensink"></div>
85
+ <div data-code="f213" class="dashicons dashicons-editor-underline"></div>
86
+ <div data-code="f214" class="dashicons dashicons-editor-justify"></div>
87
+ <div data-code="f215" class="dashicons dashicons-editor-textcolor"></div>
88
+ <div data-code="f216" class="dashicons dashicons-editor-paste-word"></div>
89
+ <div data-code="f217" class="dashicons dashicons-editor-paste-text"></div>
90
+ <div data-code="f218" class="dashicons dashicons-editor-removeformatting"></div>
91
+ <div data-code="f219" class="dashicons dashicons-editor-video"></div>
92
+ <div data-code="f220" class="dashicons dashicons-editor-customchar"></div>
93
+ <div data-code="f221" class="dashicons dashicons-editor-outdent"></div>
94
+ <div data-code="f222" class="dashicons dashicons-editor-indent"></div>
95
+ <div data-code="f223" class="dashicons dashicons-editor-help"></div>
96
+ <div data-code="f224" class="dashicons dashicons-editor-strikethrough"></div>
97
+ <div data-code="f225" class="dashicons dashicons-editor-unlink"></div>
98
+ <div data-code="f320" class="dashicons dashicons-editor-rtl"></div>
99
+ <!-- This section will be launched on release of WordPress 3.9. Please don't used these icons until then.-->
100
+ <div data-code="f464" class="dashicons dashicons-editor-break"></div>
101
+ <div data-code="f475" class="dashicons dashicons-editor-code"></div>
102
+ <div data-code="f476" class="dashicons dashicons-editor-paragraph"></div>
103
+
104
+
105
+ <!-- posts -->
106
+ <div data-code="f135" class="dashicons dashicons-align-left"></div>
107
+ <div data-code="f136" class="dashicons dashicons-align-right"></div>
108
+ <div data-code="f134" class="dashicons dashicons-align-center"></div>
109
+ <div data-code="f138" class="dashicons dashicons-align-none"></div>
110
+ <div data-code="f160" class="dashicons dashicons-lock"></div>
111
+ <div data-code="f145" class="dashicons dashicons-calendar"></div>
112
+ <div data-code="f177" class="dashicons dashicons-visibility"></div>
113
+ <div data-code="f173" class="dashicons dashicons-post-status"></div>
114
+ <div data-code="f464" class="dashicons dashicons-edit"></div>
115
+ <div data-code="f182" class="dashicons dashicons-trash"></div>
116
+
117
+ <!-- sorting -->
118
+ <div data-code="f142" class="dashicons dashicons-arrow-up"></div>
119
+ <div data-code="f140" class="dashicons dashicons-arrow-down"></div>
120
+ <div data-code="f139" class="dashicons dashicons-arrow-right"></div>
121
+ <div data-code="f141" class="dashicons dashicons-arrow-left"></div>
122
+ <div data-code="f342" class="dashicons dashicons-arrow-up-alt"></div>
123
+ <div data-code="f346" class="dashicons dashicons-arrow-down-alt"></div>
124
+ <div data-code="f344" class="dashicons dashicons-arrow-right-alt"></div>
125
+ <div data-code="f340" class="dashicons dashicons-arrow-left-alt"></div>
126
+ <div data-code="f343" class="dashicons dashicons-arrow-up-alt2"></div>
127
+ <div data-code="f347" class="dashicons dashicons-arrow-down-alt2"></div>
128
+ <div data-code="f345" class="dashicons dashicons-arrow-right-alt2"></div>
129
+ <div data-code="f341" class="dashicons dashicons-arrow-left-alt2"></div>
130
+ <div data-code="f156" class="dashicons dashicons-sort"></div>
131
+ <div data-code="f229" class="dashicons dashicons-leftright"></div>
132
+ <div data-code="f503" class="dashicons dashicons-randomize"></div>
133
+ <div data-code="f163" class="dashicons dashicons-list-view"></div>
134
+ <div data-code="f164" class="dashicons dashicons-exerpt-view"></div>
135
+
136
+ <!-- social -->
137
+ <div data-code="f237" class="dashicons dashicons-share"></div>
138
+ <div data-code="f240" class="dashicons dashicons-share-alt"></div>
139
+ <div data-code="f242" class="dashicons dashicons-share-alt2"></div>
140
+ <div data-code="f301" class="dashicons dashicons-twitter"></div>
141
+ <div data-code="f303" class="dashicons dashicons-rss"></div>
142
+ <div data-code="f465" class="dashicons dashicons-email"></div>
143
+ <div data-code="f466" class="dashicons dashicons-email-alt"></div>
144
+ <div data-code="f304" class="dashicons dashicons-facebook"></div>
145
+ <div data-code="f305" class="dashicons dashicons-facebook-alt"></div>
146
+ <div data-code="f462" class="dashicons dashicons-googleplus"></div>
147
+ <div data-code="f325" class="dashicons dashicons-networking"></div>
148
+
149
+ <!-- WPorg specific icons: Jobs, Profiles, WordCamps -->
150
+ <div data-code="f308" class="dashicons dashicons-hammer"></div>
151
+ <div data-code="f309" class="dashicons dashicons-art"></div>
152
+ <div data-code="f310" class="dashicons dashicons-migrate"></div>
153
+ <div data-code="f311" class="dashicons dashicons-performance"></div>
154
+ <!-- This section will be launched on release of WordPress 3.9. Please don't used these icons until then.-->
155
+ <div data-code="f483" class="dashicons dashicons-universal-access"></div>
156
+ <div data-code="f486" class="dashicons dashicons-tickets"></div>
157
+ <div data-code="f484" class="dashicons dashicons-nametag"></div>
158
+ <div data-code="f481" class="dashicons dashicons-organizer"></div>
159
+ <div data-code="f487" class="dashicons dashicons-sponsor"></div>
160
+ <div data-code="f488" class="dashicons dashicons-speaker"></div>
161
+ <div data-code="f489" class="dashicons dashicons-session"></div>
162
+
163
+
164
+ <!-- internal/products -->
165
+ <div data-code="f120" class="dashicons dashicons-wordpress"></div>
166
+ <div data-code="f324" class="dashicons dashicons-wordpress-alt"></div>
167
+ <div data-code="f157" class="dashicons dashicons-pressthis"></div>
168
+ <div data-code="f463" class="dashicons dashicons-update"></div>
169
+ <div data-code="f180" class="dashicons dashicons-screenoptions"></div>
170
+ <div data-code="f348" class="dashicons dashicons-info"></div>
171
+ <div data-code="f174" class="dashicons dashicons-cart"></div>
172
+ <div data-code="f175" class="dashicons dashicons-feedback"></div>
173
+ <div data-code="f176" class="dashicons dashicons-cloud"></div>
174
+ <div data-code="f326" class="dashicons dashicons-translation"></div>
175
+
176
+ <!-- taxonomies -->
177
+ <div data-code="f323" class="dashicons dashicons-tag"></div>
178
+ <div data-code="f318" class="dashicons dashicons-category"></div>
179
+
180
+ <!-- widgets -->
181
+ <!-- This section will be launched on release of WordPress 3.9. Please don't used these icons until then. -->
182
+ <div data-code="f478" class="dashicons dashicons-archive"></div>
183
+ <div data-code="f479" class="dashicons dashicons-tagcloud"></div>
184
+ <div data-code="f480" class="dashicons dashicons-text"></div>
185
+
186
+
187
+ <!-- alerts/notifications/flags -->
188
+ <div data-code="f147" class="dashicons dashicons-yes"></div>
189
+ <div data-code="f158" class="dashicons dashicons-no"></div>
190
+ <div data-code="f335" class="dashicons dashicons-no-alt"></div>
191
+ <div data-code="f132" class="dashicons dashicons-plus"></div>
192
+ <div data-code="f502" class="dashicons dashicons-plus-alt"></div>
193
+ <div data-code="f460" class="dashicons dashicons-minus"></div>
194
+ <div data-code="f153" class="dashicons dashicons-dismiss"></div>
195
+ <div data-code="f159" class="dashicons dashicons-marker"></div>
196
+ <div data-code="f155" class="dashicons dashicons-star-filled"></div>
197
+ <div data-code="f459" class="dashicons dashicons-star-half"></div>
198
+ <div data-code="f154" class="dashicons dashicons-star-empty"></div>
199
+ <div data-code="f227" class="dashicons dashicons-flag"></div>
200
+
201
+ <!-- misc/cpt -->
202
+ <div data-code="f230" class="dashicons dashicons-location"></div>
203
+ <div data-code="f231" class="dashicons dashicons-location-alt"></div>
204
+ <div data-code="f178" class="dashicons dashicons-vault"></div>
205
+ <div data-code="f332" class="dashicons dashicons-shield"></div>
206
+ <div data-code="f334" class="dashicons dashicons-shield-alt"></div>
207
+ <div data-code="f468" class="dashicons dashicons-sos"></div>
208
+ <div data-code="f179" class="dashicons dashicons-search"></div>
209
+ <div data-code="f181" class="dashicons dashicons-slides"></div>
210
+ <div data-code="f183" class="dashicons dashicons-analytics"></div>
211
+ <div data-code="f184" class="dashicons dashicons-chart-pie"></div>
212
+ <div data-code="f185" class="dashicons dashicons-chart-bar"></div>
213
+ <div data-code="f238" class="dashicons dashicons-chart-line"></div>
214
+ <div data-code="f239" class="dashicons dashicons-chart-area"></div>
215
+ <div data-code="f307" class="dashicons dashicons-groups"></div>
216
+ <div data-code="f338" class="dashicons dashicons-businessman"></div>
217
+ <div data-code="f336" class="dashicons dashicons-id"></div>
218
+ <div data-code="f337" class="dashicons dashicons-id-alt"></div>
219
+ <div data-code="f312" class="dashicons dashicons-products"></div>
220
+ <div data-code="f313" class="dashicons dashicons-awards"></div>
221
+ <div data-code="f314" class="dashicons dashicons-forms"></div>
222
+ <div data-code="f473" class="dashicons dashicons-testimonial"></div>
223
+ <div data-code="f322" class="dashicons dashicons-portfolio"></div>
224
+ <div data-code="f330" class="dashicons dashicons-book"></div>
225
+ <div data-code="f331" class="dashicons dashicons-book-alt"></div>
226
+ <div data-code="f316" class="dashicons dashicons-download"></div>
227
+ <div data-code="f317" class="dashicons dashicons-upload"></div>
228
+ <div data-code="f321" class="dashicons dashicons-backup"></div>
229
+ <div data-code="f469" class="dashicons dashicons-clock"></div>
230
+ <div data-code="f339" class="dashicons dashicons-lightbulb"></div>
231
+ <div data-code="f482" class="dashicons dashicons-microphone"></div>
232
+ <div data-code="f472" class="dashicons dashicons-desktop"></div>
233
+ <div data-code="f471" class="dashicons dashicons-tablet"></div>
234
+ <div data-code="f470" class="dashicons dashicons-smartphone"></div>
235
+ <div data-code="f328" class="dashicons dashicons-smiley"></div>
assets/js/fasc-buttons/jquery.minicolors.css ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .minicolors {
2
+ position: relative;
3
+ }
4
+
5
+ .minicolors-swatch {
6
+ position: absolute;
7
+ vertical-align: middle;
8
+ background: url(jquery.minicolors.png) -80px 0;
9
+ border: solid 1px #ccc;
10
+ cursor: text;
11
+ padding: 0;
12
+ margin: 0;
13
+ display: inline-block;
14
+ }
15
+
16
+ .minicolors-swatch-color {
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ right: 0;
21
+ bottom: 0;
22
+ }
23
+
24
+ .minicolors input[type=hidden] + .minicolors-swatch {
25
+ width: 28px;
26
+ position: static;
27
+ cursor: pointer;
28
+ }
29
+
30
+ /* Panel */
31
+ .minicolors-panel {
32
+ position: absolute;
33
+ width: 173px;
34
+ height: 152px;
35
+ background: white;
36
+ border: solid 1px #CCC;
37
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2);
38
+ z-index: 99999;
39
+ -moz-box-sizing: content-box;
40
+ -webkit-box-sizing: content-box;
41
+ box-sizing: content-box;
42
+ display: none;
43
+ }
44
+
45
+ .minicolors-panel.minicolors-visible {
46
+ display: block;
47
+ }
48
+
49
+ /* Panel positioning */
50
+ .minicolors-position-top .minicolors-panel {
51
+ top: -154px;
52
+ }
53
+
54
+ .minicolors-position-right .minicolors-panel {
55
+ right: 0;
56
+ }
57
+
58
+ .minicolors-position-bottom .minicolors-panel {
59
+ top: auto;
60
+ }
61
+
62
+ .minicolors-position-left .minicolors-panel {
63
+ left: 0;
64
+ }
65
+
66
+ .minicolors-with-opacity .minicolors-panel {
67
+ width: 194px;
68
+ }
69
+
70
+ .minicolors .minicolors-grid {
71
+ position: absolute;
72
+ top: 1px;
73
+ left: 1px;
74
+ width: 150px;
75
+ height: 150px;
76
+ background: url(jquery.minicolors.png) -120px 0;
77
+ cursor: crosshair;
78
+ }
79
+
80
+ .minicolors .minicolors-grid-inner {
81
+ position: absolute;
82
+ top: 0;
83
+ left: 0;
84
+ width: 150px;
85
+ height: 150px;
86
+ background: none;
87
+ }
88
+
89
+ .minicolors-slider-saturation .minicolors-grid {
90
+ background-position: -420px 0;
91
+ }
92
+
93
+ .minicolors-slider-saturation .minicolors-grid-inner {
94
+ background: url(jquery.minicolors.png) -270px 0;
95
+ }
96
+
97
+ .minicolors-slider-brightness .minicolors-grid {
98
+ background-position: -570px 0;
99
+ }
100
+
101
+ .minicolors-slider-brightness .minicolors-grid-inner {
102
+ background: black;
103
+ }
104
+
105
+ .minicolors-slider-wheel .minicolors-grid {
106
+ background-position: -720px 0;
107
+ }
108
+
109
+ .minicolors-slider,
110
+ .minicolors-opacity-slider {
111
+ position: absolute;
112
+ top: 1px;
113
+ left: 152px;
114
+ width: 20px;
115
+ height: 150px;
116
+ background: white url(jquery.minicolors.png) 0 0;
117
+ cursor: row-resize;
118
+ }
119
+
120
+ .minicolors-slider-saturation .minicolors-slider {
121
+ background-position: -60px 0;
122
+ }
123
+
124
+ .minicolors-slider-brightness .minicolors-slider {
125
+ background-position: -20px 0;
126
+ }
127
+
128
+ .minicolors-slider-wheel .minicolors-slider {
129
+ background-position: -20px 0;
130
+ }
131
+
132
+ .minicolors-opacity-slider {
133
+ left: 173px;
134
+ background-position: -40px 0;
135
+ display: none;
136
+ }
137
+
138
+ .minicolors-with-opacity .minicolors-opacity-slider {
139
+ display: block;
140
+ }
141
+
142
+ /* Pickers */
143
+ .minicolors-grid .minicolors-picker {
144
+ position: absolute;
145
+ top: 70px;
146
+ left: 70px;
147
+ width: 12px;
148
+ height: 12px;
149
+ border: solid 1px black;
150
+ border-radius: 10px;
151
+ margin-top: -6px;
152
+ margin-left: -6px;
153
+ background: none;
154
+ }
155
+
156
+ .minicolors-grid .minicolors-picker > div {
157
+ position: absolute;
158
+ top: 0;
159
+ left: 0;
160
+ width: 8px;
161
+ height: 8px;
162
+ border-radius: 8px;
163
+ border: solid 2px white;
164
+ -moz-box-sizing: content-box;
165
+ -webkit-box-sizing: content-box;
166
+ box-sizing: content-box;
167
+ }
168
+
169
+ .minicolors-picker {
170
+ position: absolute;
171
+ top: 0;
172
+ left: 0;
173
+ width: 18px;
174
+ height: 2px;
175
+ background: white;
176
+ border: solid 1px black;
177
+ margin-top: -2px;
178
+ -moz-box-sizing: content-box;
179
+ -webkit-box-sizing: content-box;
180
+ box-sizing: content-box;
181
+ }
182
+
183
+ /* Inline controls */
184
+ .minicolors-inline {
185
+ display: inline-block;
186
+ }
187
+
188
+ .minicolors-inline .minicolors-input {
189
+ display: none !important;
190
+ }
191
+
192
+ .minicolors-inline .minicolors-panel {
193
+ position: relative;
194
+ top: auto;
195
+ left: auto;
196
+ box-shadow: none;
197
+ z-index: auto;
198
+ display: inline-block;
199
+ }
200
+
201
+ /* Default theme */
202
+ .minicolors-theme-default .minicolors-swatch {
203
+ top: 5px;
204
+ left: 5px;
205
+ width: 18px;
206
+ height: 18px;
207
+ }
208
+ .minicolors-theme-default.minicolors-position-right .minicolors-swatch {
209
+ left: auto;
210
+ right: 5px;
211
+ }
212
+ .minicolors-theme-default.minicolors {
213
+ width: auto;
214
+ display: inline-block;
215
+ }
216
+ .minicolors-theme-default .minicolors-input {
217
+ height: 20px;
218
+ width: auto;
219
+ display: inline-block;
220
+ padding-left: 26px;
221
+ }
222
+ .minicolors-theme-default.minicolors-position-right .minicolors-input {
223
+ padding-right: 26px;
224
+ padding-left: inherit;
225
+ }
226
+
227
+ /* Bootstrap theme */
228
+ .minicolors-theme-bootstrap .minicolors-swatch {
229
+ top: 3px;
230
+ left: 3px;
231
+ width: 28px;
232
+ height: 28px;
233
+ border-radius: 3px;
234
+ }
235
+ .minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch {
236
+ left: auto;
237
+ right: 3px;
238
+ }
239
+ .minicolors-theme-bootstrap .minicolors-input {
240
+ padding-left: 44px;
241
+ }
242
+ .minicolors-theme-bootstrap.minicolors-position-right .minicolors-input {
243
+ padding-right: 44px;
244
+ padding-left: 12px;
245
+ }
assets/js/fasc-buttons/jquery.minicolors.min.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery MiniColors: A tiny color picker built on jQuery
3
+ *
4
+ * Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/)
5
+ *
6
+ * Licensed under the MIT license: http://opensource.org/licenses/MIT
7
+ *
8
+ */jQuery&&function(e){function t(t,n){var r=e('<div class="minicolors" />'),i=e.minicolors.defaults;if(t.data("minicolors-initialized"))return;n=e.extend(!0,{},i,n);r.addClass("minicolors-theme-"+n.theme).toggleClass("minicolors-with-opacity",n.opacity);n.position!==undefined&&e.each(n.position.split(" "),function(){r.addClass("minicolors-position-"+this)});t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",n).prop("size",7).wrap(r).after('<div class="minicolors-panel minicolors-slider-'+n.control+'">'+'<div class="minicolors-slider">'+'<div class="minicolors-picker"></div>'+"</div>"+'<div class="minicolors-opacity-slider">'+'<div class="minicolors-picker"></div>'+"</div>"+'<div class="minicolors-grid">'+'<div class="minicolors-grid-inner"></div>'+'<div class="minicolors-picker"><div></div></div>'+"</div>"+"</div>");if(!n.inline){t.after('<span class="minicolors-swatch"><span class="minicolors-swatch-color"></span></span>');t.next(".minicolors-swatch").on("click",function(e){e.preventDefault();t.focus()})}t.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end();n.inline&&t.parent().addClass("minicolors-inline");u(t,!1);t.data("minicolors-initialized",!0)}function n(e){var t=e.parent();e.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input");t.before(e).remove()}function r(e){var t=e.parent(),n=t.find(".minicolors-panel"),r=e.data("minicolors-settings");if(!e.data("minicolors-initialized")||e.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus"))return;i();t.addClass("minicolors-focus");n.stop(!0,!0).fadeIn(r.showSpeed,function(){r.show&&r.show.call(e.get(0))})}function i(){e(".minicolors-focus").each(function(){var t=e(this),n=t.find(".minicolors-input"),r=t.find(".minicolors-panel"),i=n.data("minicolors-settings");r.fadeOut(i.hideSpeed,function(){i.hide&&i.hide.call(n.get(0));t.removeClass("minicolors-focus")})})}function s(e,t,n){var r=e.parents(".minicolors").find(".minicolors-input"),i=r.data("minicolors-settings"),s=e.find("[class$=-picker]"),u=e.offset().left,a=e.offset().top,f=Math.round(t.pageX-u),l=Math.round(t.pageY-a),c=n?i.animationSpeed:0,h,p,d,v;if(t.originalEvent.changedTouches){f=t.originalEvent.changedTouches[0].pageX-u;l=t.originalEvent.changedTouches[0].pageY-a}f<0&&(f=0);l<0&&(l=0);f>e.width()&&(f=e.width());l>e.height()&&(l=e.height());if(e.parent().is(".minicolors-slider-wheel")&&s.parent().is(".minicolors-grid")){h=75-f;p=75-l;d=Math.sqrt(h*h+p*p);v=Math.atan2(p,h);v<0&&(v+=Math.PI*2);if(d>75){d=75;f=75-75*Math.cos(v);l=75-75*Math.sin(v)}f=Math.round(f);l=Math.round(l)}e.is(".minicolors-grid")?s.stop(!0).animate({top:l+"px",left:f+"px"},c,i.animationEasing,function(){o(r,e)}):s.stop(!0).animate({top:l+"px"},c,i.animationEasing,function(){o(r,e)})}function o(e,t){function n(e,t){var n,r;if(!e.length||!t)return null;n=e.offset().left;r=e.offset().top;return{x:n-t.offset().left+e.outerWidth()/2,y:r-t.offset().top+e.outerHeight()/2}}var r,i,s,o,u,f,l,h=e.val(),d=e.attr("data-opacity"),v=e.parent(),g=e.data("minicolors-settings"),y=v.find(".minicolors-swatch"),b=v.find(".minicolors-grid"),w=v.find(".minicolors-slider"),E=v.find(".minicolors-opacity-slider"),S=b.find("[class$=-picker]"),x=w.find("[class$=-picker]"),T=E.find("[class$=-picker]"),N=n(S,b),C=n(x,w),k=n(T,E);if(t.is(".minicolors-grid, .minicolors-slider")){switch(g.control){case"wheel":o=b.width()/2-N.x;u=b.height()/2-N.y;f=Math.sqrt(o*o+u*u);l=Math.atan2(u,o);l<0&&(l+=Math.PI*2);if(f>75){f=75;N.x=69-75*Math.cos(l);N.y=69-75*Math.sin(l)}i=p(f/.75,0,100);r=p(l*180/Math.PI,0,360);s=p(100-Math.floor(C.y*(100/w.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:i,b:100}));break;case"saturation":r=p(parseInt(N.x*(360/b.width()),10),0,360);i=p(100-Math.floor(C.y*(100/w.height())),0,100);s=p(100-Math.floor(N.y*(100/b.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:100,b:s}));v.find(".minicolors-grid-inner").css("opacity",i/100);break;case"brightness":r=p(parseInt(N.x*(360/b.width()),10),0,360);i=p(100-Math.floor(N.y*(100/b.height())),0,100);s=p(100-Math.floor(C.y*(100/w.height())),0,100);h=m({h:r,s:i,b:s});w.css("backgroundColor",m({h:r,s:i,b:100}));v.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:r=p(360-parseInt(C.y*(360/w.height()),10),0,360);i=p(Math.floor(N.x*(100/b.width())),0,100);s=p(100-Math.floor(N.y*(100/b.height())),0,100);h=m({h:r,s:i,b:s});b.css("backgroundColor",m({h:r,s:100,b:100}))}e.val(c(h,g.letterCase))}if(t.is(".minicolors-opacity-slider")){g.opacity?d=parseFloat(1-k.y/E.height()).toFixed(2):d=1;g.opacity&&e.attr("data-opacity",d)}y.find("SPAN").css({backgroundColor:h,opacity:d});a(e,h,d)}function u(e,t){var n,r,i,s,o,u,f,l=e.parent(),d=e.data("minicolors-settings"),v=l.find(".minicolors-swatch"),y=l.find(".minicolors-grid"),b=l.find(".minicolors-slider"),w=l.find(".minicolors-opacity-slider"),E=y.find("[class$=-picker]"),S=b.find("[class$=-picker]"),x=w.find("[class$=-picker]");n=c(h(e.val(),!0),d.letterCase);n||(n=c(h(d.defaultValue,!0),d.letterCase));r=g(n);t||e.val(n);if(d.opacity){i=e.attr("data-opacity")===""?1:p(parseFloat(e.attr("data-opacity")).toFixed(2),0,1);isNaN(i)&&(i=1);e.attr("data-opacity",i);v.find("SPAN").css("opacity",i);o=p(w.height()-w.height()*i,0,w.height());x.css("top",o+"px")}v.find("SPAN").css("backgroundColor",n);switch(d.control){case"wheel":u=p(Math.ceil(r.s*.75),0,y.height()/2);f=r.h*Math.PI/180;s=p(75-Math.cos(f)*u,0,y.width());o=p(75-Math.sin(f)*u,0,y.height());E.css({top:o+"px",left:s+"px"});o=150-r.b/(100/y.height());n===""&&(o=0);S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:r.s,b:100}));break;case"saturation":s=p(5*r.h/12,0,150);o=p(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.s*(b.height()/100),0,b.height());S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:100,b:r.b}));l.find(".minicolors-grid-inner").css("opacity",r.s/100);break;case"brightness":s=p(5*r.h/12,0,150);o=p(y.height()-Math.ceil(r.s/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.b*(b.height()/100),0,b.height());S.css("top",o+"px");b.css("backgroundColor",m({h:r.h,s:r.s,b:100}));l.find(".minicolors-grid-inner").css("opacity",1-r.b/100);break;default:s=p(Math.ceil(r.s/(100/y.width())),0,y.width());o=p(y.height()-Math.ceil(r.b/(100/y.height())),0,y.height());E.css({top:o+"px",left:s+"px"});o=p(b.height()-r.h/(360/b.height()),0,b.height());S.css("top",o+"px");y.css("backgroundColor",m({h:r.h,s:100,b:100}))}e.data("minicolors-initialized")&&a(e,n,i)}function a(e,t,n){var r=e.data("minicolors-settings"),i=e.data("minicolors-lastChange");if(!i||i.hex!==t||i.opacity!==n){e.data("minicolors-lastChange",{hex:t,opacity:n});if(r.change)if(r.changeDelay){clearTimeout(e.data("minicolors-changeTimeout"));e.data("minicolors-changeTimeout",setTimeout(function(){r.change.call(e.get(0),t,n)},r.changeDelay))}else r.change.call(e.get(0),t,n);e.trigger("change").trigger("input")}}function f(t){var n=h(e(t).val(),!0),r=b(n),i=e(t).attr("data-opacity");if(!r)return null;i!==undefined&&e.extend(r,{a:parseFloat(i)});return r}function l(t,n){var r=h(e(t).val(),!0),i=b(r),s=e(t).attr("data-opacity");if(!i)return null;s===undefined&&(s=1);return n?"rgba("+i.r+", "+i.g+", "+i.b+", "+parseFloat(s)+")":"rgb("+i.r+", "+i.g+", "+i.b+")"}function c(e,t){return t==="uppercase"?e.toUpperCase():e.toLowerCase()}function h(e,t){e=e.replace(/[^A-F0-9]/ig,"");if(e.length!==3&&e.length!==6)return"";e.length===3&&t&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return"#"+e}function p(e,t,n){e<t&&(e=t);e>n&&(e=n);return e}function d(e){var t={},n=Math.round(e.h),r=Math.round(e.s*255/100),i=Math.round(e.b*255/100);if(r===0)t.r=t.g=t.b=i;else{var s=i,o=(255-r)*i/255,u=(s-o)*(n%60)/60;n===360&&(n=0);if(n<60){t.r=s;t.b=o;t.g=o+u}else if(n<120){t.g=s;t.b=o;t.r=s-u}else if(n<180){t.g=s;t.r=o;t.b=o+u}else if(n<240){t.b=s;t.r=o;t.g=s-u}else if(n<300){t.b=s;t.g=o;t.r=o+u}else if(n<360){t.r=s;t.g=o;t.b=s-u}else{t.r=0;t.g=0;t.b=0}}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function v(t){var n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];e.each(n,function(e,t){t.length===1&&(n[e]="0"+t)});return"#"+n.join("")}function m(e){return v(d(e))}function g(e){var t=y(b(e));t.s===0&&(t.h=360);return t}function y(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),i=r-n;t.b=r;t.s=r!==0?255*i/r:0;t.s!==0?e.r===r?t.h=(e.g-e.b)/i:e.g===r?t.h=2+(e.b-e.r)/i:t.h=4+(e.r-e.g)/i:t.h=-1;t.h*=60;t.h<0&&(t.h+=360);t.s*=100/255;t.b*=100/255;return t}function b(e){e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:e>>16,g:(e&65280)>>8,b:e&255}}e.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}};e.extend(e.fn,{minicolors:function(s,o){switch(s){case"destroy":e(this).each(function(){n(e(this))});return e(this);case"hide":i();return e(this);case"opacity":if(o===undefined)return e(this).attr("data-opacity");e(this).each(function(){u(e(this).attr("data-opacity",o))});return e(this);case"rgbObject":return f(e(this),s==="rgbaObject");case"rgbString":case"rgbaString":return l(e(this),s==="rgbaString");case"settings":if(o===undefined)return e(this).data("minicolors-settings");e(this).each(function(){var t=e(this).data("minicolors-settings")||{};n(e(this));e(this).minicolors(e.extend(!0,t,o))});return e(this);case"show":r(e(this).eq(0));return e(this);case"value":if(o===undefined)return e(this).val();e(this).each(function(){u(e(this).val(o))});return e(this);default:s!=="create"&&(o=s);e(this).each(function(){t(e(this),o)});return e(this)}}});e(document).on("mousedown.minicolors touchstart.minicolors",function(t){e(t.target).parents().add(t.target).hasClass("minicolors")||i()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var n=e(this);t.preventDefault();e(document).data("minicolors-target",n);s(n,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var n=e(document).data("minicolors-target");n&&s(n,t)}).on("mouseup.minicolors touchend.minicolors",function(){e(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(t){var n=e(this).parent().find(".minicolors-input");t.preventDefault();r(n)}).on("focus.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;r(t)}).on("blur.minicolors",".minicolors-input",function(){var t=e(this),n=t.data("minicolors-settings");if(!t.data("minicolors-initialized"))return;t.val(h(t.val(),!0));t.val()===""&&t.val(h(n.defaultValue,!0));t.val(c(t.val(),n.letterCase))}).on("keydown.minicolors",".minicolors-input",function(t){var n=e(this);if(!n.data("minicolors-initialized"))return;switch(t.keyCode){case 9:i();break;case 13:case 27:i();n.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;u(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=e(this);if(!t.data("minicolors-initialized"))return;setTimeout(function(){u(t,!0)},1)})}(jQuery);
assets/js/fasc-buttons/jquery.minicolors.png ADDED
Binary file
assets/js/fasc-buttons/popup.css ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ body
3
+ {
4
+ padding:0;
5
+ margin:0;
6
+ overflow:visible;
7
+
8
+ }
9
+
10
+ html
11
+ {
12
+ overflow-y:hidden;
13
+ }
14
+
15
+
16
+ #button-dialog label { font-weight:bold; }
17
+ #button-dialog { font-size:14px; }
18
+ #button-dialog .inputrow { padding: 7px 0; height: auto; display:block; clear:both; }
19
+ #button-dialog .inputrowc { padding: 0 0 7px 0; height: auto; display:block; clear:both; }
20
+ #button-dialog .inputrow.wbreak { margin-bottom:5px; border-bottom: 1px solid #cccccc; }
21
+ #button-dialog .inputrow > label { display: block; float: left; margin: 0 0 0 0; width: 15%; text-align:left; line-height:26px; }
22
+ #button-dialog .inputrow > .inputwrap { display: block; float: right; width: 85%; text-align:right; }
23
+ #button-dialog .inputrow > .inputwrap input[type="text"] { width:90%; }
24
+
25
+ #button-dialog .inputrowc > label { display: block; margin: 0 0 0 0; text-align:left; line-height:26px; }
26
+ #button-dialog .inputrowc > .inputwrap { display: block;}
27
+
28
+ #button-dialog select, #button-dialog input { display: inline-block; auto; padding: 3px 5px; font-size:14px; }
29
+ #button-dialog .inputrow > .inputwrap > select, #button-dialog .inputrow > .inputwrap > input { float: right; }
30
+ #button-dialog #insert { display: block; line-height: 24px; text-align: center; margin: 15px 15px 0 0; float: right; font-size:14px; }
31
+ .preview-button-area { display: block; text-align:center; border:1px dashed #aaaaaa; height:90px; padding:5px; margin:15px; overflow:auto;}
32
+
33
+ small
34
+ {
35
+ color:#888;
36
+ }
37
+
38
+ input[type="text"], select
39
+ {
40
+ color:#333333;
41
+ }
42
+ #button-dialog .main input
43
+ {
44
+ padding:7px;
45
+ }
46
+ input[type="text"]
47
+ {
48
+
49
+ }
50
+ .inputcol.left
51
+ {
52
+ float:left;
53
+ width:45%;
54
+ }
55
+ .inputcol.right
56
+ {
57
+ float:right;
58
+ width:45%;
59
+ }
60
+
61
+ .inputcol.right, .inputcol.right label, .inputcol.right .inputrowc > label
62
+ {
63
+ /*text-align:right;*/
64
+ }
65
+
66
+ .inputcol .inputrow label, .inputcol .inputrow .inputwrap
67
+ {
68
+ width:auto;
69
+ display:block;
70
+ float:none;
71
+
72
+ }
73
+
74
+ .clear
75
+ {
76
+ clear:both;
77
+ height:0;
78
+ font-size:0;
79
+ text-indent:-1000px;
80
+ border:0;
81
+ display:block;
82
+ }
83
+ .preview-button-area:before {
84
+ content: '';
85
+ display: inline-block;
86
+ height: 100%;
87
+ vertical-align: middle;
88
+ margin-right: -0.25em; /* Adjusts for spacing */
89
+ }
90
+
91
+ .centered-button
92
+ {
93
+ display: inline-block;
94
+ vertical-align: middle;
95
+ }
96
+
97
+ #button-dialog #button-color, #button-dialog #text-color
98
+ {
99
+ padding-left:30px;
100
+ }
101
+
102
+
103
+ #tab-header
104
+ {
105
+ display:block;
106
+ padding-top:0;
107
+ margin:15px 10px 0 15px;
108
+ }
109
+
110
+ #tab-header ul, #tab-header li
111
+ {
112
+ margin:0;
113
+ padding:0;
114
+ display:block;
115
+ list-style-type:none;
116
+ list-style:none;
117
+ }
118
+ #tab-header li
119
+ {
120
+ padding:10px;
121
+ float:left;
122
+ margin-right:5px;
123
+ }
124
+ #tab-header li.active
125
+ {
126
+ border:1px solid #cccccc;
127
+ border-bottom:none;
128
+ background-color:#ffffff;
129
+ z-index:100;
130
+ position:relative;
131
+ margin-bottom:-1px;
132
+ }
133
+
134
+ #tab-header a
135
+ {
136
+ text-decoration:none;
137
+ color: #666666;
138
+ }
139
+
140
+ #tab-header li a
141
+ {
142
+ color:#21759b;
143
+ }
144
+ #tab-header li a:hover
145
+ {
146
+ color:#d54e21;
147
+ }
148
+ #tab-header li.active a
149
+ {
150
+ color:#333333;
151
+
152
+ }
153
+
154
+ .fasc-tab-content
155
+ {
156
+ border-top:1px solid #cccccc;
157
+ border-bottom:1px solid #cccccc;
158
+ background-color:#ffffff;
159
+ padding-top:10px;
160
+ z-index:10;
161
+ position:relative;
162
+ padding:20px 25px 10px 25px;
163
+
164
+ }
165
+ #tab-2-content
166
+ {
167
+ display:none;
168
+ }
169
+ #tab-2-content .ico-grid
170
+ {
171
+ height:220px;
172
+ overflow-y:scroll;
173
+ /*background-color:#fafafa;*/
174
+
175
+ }
176
+
177
+ #tab-2-content .ico-grid div
178
+ {
179
+ font-size:30px;
180
+ display:block;
181
+ width:14%;
182
+ height:50px;
183
+ margin-right:5px;
184
+ margin-bottom:5px;
185
+ background-color:#f7fdff;
186
+ border:1px solid #f7fdff;
187
+ float:left;
188
+ display:table-cell;
189
+ vertical-align:center;
190
+ text-align:center;
191
+ line-height:50px;
192
+ color:#666666;
193
+ cursor:pointer;
194
+ border-radius:3px;
195
+ }
196
+ #tab-2-content .ico-grid div:hover
197
+ {
198
+ color:#333333;
199
+ border:1px solid #cccccc;
200
+ }
201
+ #tab-2-content .ico-grid div.active, #tab-2-content .ico-grid div.active:hover
202
+ {
203
+ color:#000000;
204
+ background-color:#eff8fb;
205
+ border:1px solid #aaaaaa;
206
+ }
207
+
208
+ #tab-2-content table
209
+ {
210
+ width:100%;
211
+ }
212
+
213
+ #tab-2-content table td
214
+ {
215
+ background-color:#cccccc;
216
+ text-align:center;
217
+ vertical-align:center;
218
+ padding:10px;
219
+ }
220
+ #tab-2-content label
221
+ {
222
+ font-weight:normal;
223
+ }
224
+
225
+ #fasc-footer
226
+ {
227
+ position:absolute;
228
+ padding:15px 0;
229
+ bottom:0;
230
+ left:0;
231
+ text-align:right;
232
+ display:block;
233
+ width:100%;
234
+ }
235
+
236
+ /*
237
+ a.fasc-button
238
+ {
239
+ -webkit-transition: all 0.3s ease;
240
+ -moz-transition: all 0.3s ease;
241
+ -o-transition: all 0.3s ease;
242
+ -ms-transition: all 0.3s ease;
243
+ transition: all 0.3s ease;
244
+ }*/
assets/js/fasc-buttons/popup.js ADDED
@@ -0,0 +1 @@
 
1
+ function getButton(){var e=jQuery("#button-dialog input#button-url").val();var t=jQuery("#button-dialog input#button-text").val();var n=jQuery("#button-dialog select#button-size").val();var r=jQuery("#button-dialog input#button-color").val();var i=jQuery("#button-dialog input#text-color").val();var s=jQuery("#button-dialog select#button-type").val();var o=jQuery("#button-dialog select#button-align").val();var u=jQuery("#button-dialog input#new-window").prop("checked");var a="";var f="";var l="";var c="";var h="";var p="";var d="";if(u==true){p=' target="_blank"'}if(s){if(s!=""){l=" "+s}}if(n){if(n!=""){c=" "+n}}var v=$("#tab-2-content .ico-grid div.active");var m="";var g="";if(v.length==1){var y=v.attr("class").split(" ");for(var b=0;b<y.length;b++){if(y[b]!="dashicons"&&y[b]!="active"){m=" fasc-ico "+y[b];g=' data-icon-class="'+y[b]+'"'}}}var w='<a href="'+e+'" class="fasc-button'+c+l+m+'"'+p+g+' data-size="'+n+'" data-type="'+s+'" style="background-color:'+r+";color:"+i+';" data-fasc-style="background-color:'+r+";color:"+i+';">'+t+"</a>";return w}function rgb2hex(e){if(e.search("rgb")==-1){return e}else{e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/);function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}return"#"+t(e[1])+t(e[2])+t(e[3])}}var $currentNode=null;(function(e){e(function(){e("#tab-header a").click(function(){$this=e(this);var t=$this.attr("href");$this.parent().parent().find("li").removeClass("active");$this.parent().addClass("active");e("#button-dialog .fasc-tab-content").hide();e("#button-dialog "+t).show();return false});e("#tab-2-content .ico-grid div").click(function(t){t.preventDefault();e("#tab-2-content .ico-grid div").removeClass("active");e(this).addClass("active");$previewButton.html(getButton());e("#tab-2-content .fasc-ico-position").removeAttr("checked");e('#tab-2-content .fasc-ico-position[value="before"]').prop("checked",true);return false});e("#tab-2-content .fasc-ico-position").change(function(t){if(e(this).val()=="none"){e("#tab-2-content .ico-grid div").removeClass("active")}else if(e(this).val()=="before"){var n=e("#tab-2-content .ico-grid div.active");if(n.length==1){}else{e(e("#tab-2-content .ico-grid > div").get(0)).addClass("active")}}$previewButton.html(getButton())});$previewButton=jQuery(".preview-button-area .centered-button");e('#button-dialog select, #button-dialog input[type="checkbox"]').change(function(){$previewButton.html(getButton())});e('#button-dialog input[type="text"]').keyup(function(){$previewButton.html(getButton())});e('#button-dialog input[type="text"]').keyup(function(){$previewButton.html(getButton())});$previewButton.html(getButton())})})(window.jQuery);var ButtonDialog={local_ed:"ed",init:function(e){ButtonDialog.local_ed=e;tinyMCEPopup.resizeToInnerSize();var t=top.tinymce.activeEditor.windowManager.getParams();$currentNode=t.target;if(source=="click"){var n="";var r=$currentNode.attr("href");jQuery("#button-dialog input#button-url").val(r);var i=$currentNode.attr("target");if(typeof i!="undefined"){if(i=="_blank"){jQuery("#button-dialog input#new-window").prop("checked",true)}}var s=$currentNode.text();jQuery("#button-dialog input#button-text").val(s);if($currentNode.is("[data-icon-class]")){var o=$currentNode.attr("data-icon-class");jQuery(".ico-grid ."+o).addClass("active");$('#tab-2-content .fasc-ico-position[value="before"]').attr("checked","checked")}var u=$currentNode.attr("data-size");jQuery("#button-size option").removeAttr("selected");jQuery('#button-size option[value="'+u+'"]').attr("selected","selected");var a=$currentNode.attr("data-type");jQuery("#button-type option").removeAttr("selected");jQuery('#button-type option[value="'+a+'"]').attr("selected","selected");var f=rgb2hex($currentNode.css("color"));jQuery("#text-color").val(f);var l=rgb2hex($currentNode.css("background-color"));jQuery("#button-color").val(l)}else{var s=e.selection.getContent();jQuery("#button-dialog input#button-text").val(s)}$previewButton=jQuery(".preview-button-area .centered-button");$previewButton.html(getButton());$("#button-color, #text-color").minicolors({position:"top left",change:function(e,t){$previewButton.html(getButton())}})},insert:function(t){if(source=="click"){$currentNode.remove()}tinyMCEPopup.execCommand("mceReplaceContent",false,getButton());tinyMCEPopup.close()}};tinyMCEPopup.onInit.add(ButtonDialog.init,ButtonDialog)
assets/js/fasc-buttons/popup.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // this file contains the contents of the popup window
3
+ $source = "insert";
4
+ $title = "Insert Button";
5
+ $insert_text = "Insert";
6
+ if(isset($_GET['source']))
7
+ {
8
+ if($_GET['source']=="click")
9
+ {
10
+ $source = "click";
11
+ $title = "Edit Button";
12
+ $insert_text = "Update";
13
+ }
14
+ }
15
+ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
16
+ <html xmlns="http://www.w3.org/1999/xhtml">
17
+ <head>
18
+ <title><?php echo $title; ?></title>
19
+ <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
20
+ <script language="javascript" type="text/javascript" src="../../../../../../wp-includes/js/tinymce/tiny_mce_popup.js"></script>
21
+ <link rel="stylesheet" href="../../css/button-styles.css" />
22
+ <script src="jquery.minicolors.min.js"></script>
23
+ <link rel="stylesheet" href="jquery.minicolors.css">
24
+ <link rel="stylesheet" href="popup.css">
25
+ <script type="text/javascript">
26
+ var source = "<?php echo $source; ?>";
27
+ </script>
28
+ <script type="text/javascript" src="popup.js"></script>
29
+ </head>
30
+ <body>
31
+
32
+ <!-- http://www.problogdesign.com/wordpress/user-friendly-short-codes-with-tinymce/ -->
33
+ <!-- http://www.tinymce.com/develop/bugtracker_view.php?id=5575 -->
34
+
35
+ <div id="button-dialog">
36
+ <div class="preview-button-area">
37
+ <div class="centered-button">
38
+
39
+ </div>
40
+ </div>
41
+
42
+ <form action="/" method="get" accept-charset="utf-8">
43
+
44
+ <div id="tab-header">
45
+ <ul>
46
+ <li class="active"><a href="#tab-1-content">Properties</a></li>
47
+ <li><a href="#tab-2-content">Icon</a></li>
48
+ </ul><div class="clear"></div>
49
+ </div>
50
+
51
+ <div id="tab-1-content" class="fasc-tab-content">
52
+ <div class="inputrow main">
53
+ <label for="button-text">Text</label>
54
+ <div class="inputwrap">
55
+ <input type="text" name="button-text" value="" id="button-text" value="" placeholder="Enter your text&hellip;" />
56
+ </div>
57
+ <div class="clear"></div>
58
+ </div>
59
+ <div class="inputrow main">
60
+ <label for="button-url">URL</label>
61
+ <div class="inputwrap">
62
+ <input type="text" name="button-url" value="" id="button-url" /><br />
63
+ </div>
64
+ <div class="inputwrap">
65
+ <label for="new-window"><small>Open link in new window?</small></label> <input type="checkbox" id="new-window" name="new-window" value="1" />
66
+ </div>
67
+ <div class="clear"></div>
68
+ </div>
69
+
70
+ <div class="inputrow">
71
+
72
+ <div class="inputcol left">
73
+ <div class="inputrowc">
74
+ <label for="text-color">Text Color</label>
75
+ <div class="inputwrap">
76
+ <input type="text" id="text-color" name="text-color" value="#ffffff" />
77
+ </div>
78
+ <div class="clear"></div>
79
+ </div>
80
+ <div class="inputrowc">
81
+ <label for="button-type">Type</label>
82
+ <div class="inputwrap">
83
+ <select name="button-type" id="button-type">
84
+ <option value="fasc-type-flat" selected="selected">Flat</option>
85
+ <option value="fasc-type-flat rounded">Flat Rounded</option>
86
+ <option value="fasc-type-glossy">Glossy</option>
87
+ <option value="fasc-type-glossy rounded">Glossy Rounded</option>
88
+ <option value="fasc-type-popout">Pop out</option>
89
+ <option value="fasc-type-popout rounded">Pop out Rounded</option>
90
+ </select>
91
+ </div>
92
+ <div class="clear"></div>
93
+ </div>
94
+ </div>
95
+ <div class="inputcol right">
96
+
97
+ <div class="inputrowc">
98
+ <label for="button-color">Button Color</label>
99
+ <div class="inputwrap">
100
+ <input type="text" id="button-color" name="button-color" value="#33809e" />
101
+ </div>
102
+ <div class="clear"></div>
103
+ </div>
104
+ <div class="inputrowc">
105
+ <label for="button-size">Size</label>
106
+ <div class="inputwrap">
107
+ <select name="button-size" id="button-size" size="1">
108
+ <option value="fasc-size-xsmall">Extra Small</option>
109
+ <option value="fasc-size-small">Small</option>
110
+ <option value="fasc-size-medium" selected="selected">Medium</option>
111
+ <option value="fasc-size-large">Large</option>
112
+ <option value="fasc-size-xlarge">Extra Large</option>
113
+ </select>
114
+ </div>
115
+ <div class="clear"></div>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="clear"></div>
120
+ </div>
121
+
122
+ <div class="inputrow" style="display:none;">
123
+ <label for="button-align">Alignment</label>
124
+ <div class="inputwrap">
125
+ <select name="button-align" id="button-align" size="1">
126
+ <option value="" selected="selected">None</option>
127
+ <option value="left"=>Left</option>
128
+ <option value="right">Right</option>
129
+ </select>
130
+ </div>
131
+ <div class="clear"></div>
132
+ </div>
133
+ </div>
134
+
135
+ <div id="tab-2-content" class="fasc-tab-content">
136
+ <div class="inputrow">
137
+ <label><strong>Position</strong></label>
138
+ <div class="inputwrap">
139
+
140
+ <label><input type="radio" name="fasc-ico-position" value="none" class="fasc-ico-position" checked="checked" /> None</label>
141
+ <label><input type="radio" name="fasc-ico-position" value="before" class="fasc-ico-position" /> Before</label>
142
+ <!--<label><input type="radio" name="fasc-ico-position" value="after" /> After</label>
143
+ <label><input type="radio" name="fasc-ico-position" value="center" /> Center</label>-->
144
+
145
+ </div>
146
+ <div class="clear"></div>
147
+ </div>
148
+
149
+ <div class="ico-grid">
150
+ <input type="hidden" value="" id="fasc-ico-val" name="fasc-ico-val" />
151
+ <?php require_once("dashicons-grid.php"); ?>
152
+ </div>
153
+ </div>
154
+ <div id="fasc-footer">
155
+ <a href="javascript:ButtonDialog.insert(ButtonDialog.local_ed)" id="insert" style="display: block; line-height: 24px;"><?php echo $insert_text; ?></a>
156
+ </div>
157
+
158
+
159
+ </form>
160
+ </div>
161
+
162
+ </body>
163
+ </html>
assets/js/fasc-buttons/scripts.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(e){"use strict";e(function(){tinymce.create("tinymce.plugins.fascbuttons",{init:function(t,n){function r(){var e=tinymce.activeEditor.dom.select(".fasc-button");var n=false;jQuery(e).each(function(){if(jQuery(this).is("[data-fasc-style]")){var e=jQuery(this).attr("data-fasc-style").replace(/\s+/,"");var r="";if(jQuery(this).is("[style]")){r=jQuery(this).attr("style").replace(/\s+/,"")}if(e!=r){jQuery(this).attr("style",jQuery(this).attr("data-fasc-style"));t.nodeChanged();n=true}}});if(n==true){t.undoManager.removeLevel()}}function i(){var t=tinymce.activeEditor.dom.select(".fasc-button");jQuery(t).each(function(){if(jQuery(this).is("[data-fasc-style]")){var t=tinymce.activeEditor.dom.parseStyle(jQuery(this).attr("data-fasc-style"));var n=tinymce.activeEditor.dom.parseStyle(jQuery(this).attr("style"));if(e(t).not(n).length==0&&e(n).not(t).length==0){}else{}}})}var s=t;var o=false;var u={};var a=520;var f=420;if(tinymce.majorVersion<4){alert("FASC Buttons only work with WordPress 3.9 and above. Please update your WordPress installation")}t.addButton("fascbuttons",{icon:"fascbutton-ico",tooltip:"Insert Button",onclick:function(){t.windowManager.open({url:n+"/popup.php?source=insert",width:f,height:a},{plugin_url:n})}});t.addCommand("mcebutton",function(){t.windowManager.open({url:n+"/popup.php?source=insert",width:f,height:a},{plugin_url:n})});t.on("change",function(e){r()});t.onInit.add(function(e){e.undoManager.onAdd.add(function(e,t){});e.undoManager.removeLevel=function(){if(this.data.length>1){this.data.splice(this.data.length-1,1)}}});t.on("undo",function(e,t){i()});t.on("redo",function(e){});t.on("dblClick",function(e){if(jQuery(e.target).hasClass("fasc-button")){t.windowManager.open({url:n+"/popup.php?source=click",width:f,height:a},{plugin_url:n,target:jQuery(e.target)})}});t.on("click",function(e,t){});t.on("keyDown",function(e,t){})},createControl:function(e,t){return null},getInfo:function(){return{longname:"Forget About Shortcodes Buttons",author:"Ross Morsali",authorurl:"http://www.designsandcode.com/",infourl:"",version:"1.0"}}});tinymce.PluginManager.add("fascbuttons",tinymce.plugins.fascbuttons)})})(jQuery)
forget-about-shortcode-buttons.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Forget About Shortcode Buttons
4
+ Plugin URI: http://www.designsandcode.com/551/wordpress-forget-about-shortcode-buttons/
5
+ Description: A visual way to add buttons in the post editor screen.
6
+ Author: Designs & Code
7
+ Author URI: http://www.designsandcode.com/
8
+ License: GPL v3
9
+ Version: 1.0.0
10
+ Text Domain: fascbuttons
11
+ */
12
+
13
+ /*
14
+ * Set up Plugin Globals
15
+ */
16
+ if (!defined('FASC_BUTTONS_VERSION_NUM'))
17
+ define('FASC_BUTTONS_VERSION_NUM', '1.0.0');
18
+
19
+ if (!defined('PLUGIN_SLUG'))
20
+ define('PLUGIN_SLUG', 'fasc-buttons');
21
+
22
+ if (!defined('FASC_BUTTONS_THEME_DIR'))
23
+ define('FASC_BUTTONS_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
24
+
25
+ if (!defined('FASC_BUTTONS_PLUGIN_NAME'))
26
+ define('FASC_BUTTONS_PLUGIN_NAME', trim(dirname(plugin_basename(__FILE__)), '/'));
27
+
28
+ if (!defined('FASC_BUTTONS_PLUGIN_DIR'))
29
+ define('FASC_BUTTONS_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . FASC_BUTTONS_PLUGIN_NAME);
30
+
31
+ if (!defined('FASC_BUTTONS_PLUGIN_URL'))
32
+ define('FASC_BUTTONS_PLUGIN_URL', WP_PLUGIN_URL . '/' . FASC_BUTTONS_PLUGIN_NAME);
33
+
34
+ if (!defined('FASC_BUTTONS_BASENAME'))
35
+ define('FASC_BUTTONS_BASENAME', plugin_basename(__FILE__));
36
+
37
+ if (!defined('FASC_BUTTONS_VERSION_KEY'))
38
+ define('FASC_BUTTONS_VERSION_KEY', 'fascbuttons_version');
39
+
40
+
41
+ add_option(FASC_BUTTONS_VERSION_KEY, FASC_BUTTONS_VERSION_NUM);
42
+
43
+
44
+ /*
45
+ * Set up Plugin Globals
46
+ */
47
+ if ( ! class_exists( 'FascButtons' ) )
48
+ {
49
+ class FascButtons
50
+ {
51
+ private $has_form_posted = false;
52
+
53
+ public function __construct()
54
+ {
55
+
56
+ //admin styles
57
+ add_action( 'admin_enqueue_scripts', array($this, 'fasc_admin_styles') );
58
+ add_filter( 'mce_css', array($this,'plugin_mce_css') );
59
+
60
+ //admin script
61
+ add_action('init', array($this,'tiny_mce_fasc_button'));
62
+
63
+ //regular styles
64
+ add_action( 'wp_print_styles', array($this, 'fasc_fe_styles') );
65
+
66
+
67
+ }
68
+ public function fasc_fe_styles()
69
+ {
70
+ wp_enqueue_style( 'fasc-buttons-style', plugins_url( '/assets/css/button-styles.css' , __FILE__ ) );
71
+ }
72
+ public function fasc_admin_styles()
73
+ {
74
+ wp_enqueue_style( 'fasc-buttons-style', plugins_url( '/assets/css/fasc-buttons.css' , __FILE__ ) );
75
+ }
76
+
77
+ public function plugin_mce_css( $mce_css )
78
+ {
79
+ if ( ! empty( $mce_css ) )
80
+ $mce_css .= ',';
81
+
82
+ $mce_css .= plugins_url( '/assets/css/custom-editor-style.css' , __FILE__ );
83
+
84
+ return $mce_css;
85
+ }
86
+
87
+ public function add_mce_plugin( $plugin_array )
88
+ {
89
+ $plugin_array["fascbuttons"] = plugins_url( '/assets/js/'.PLUGIN_SLUG.'/scripts.js' , __FILE__ );
90
+ return $plugin_array;
91
+ }
92
+
93
+ public function tiny_mce_fasc_button()
94
+ {
95
+
96
+ if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
97
+ {
98
+ return;
99
+ }
100
+
101
+ if ( get_user_option('rich_editing') == 'true' )
102
+ {
103
+ add_filter( 'mce_external_plugins', array($this, 'add_mce_plugin') );
104
+ add_filter( 'mce_buttons', array($this, 'register_button') );
105
+ }
106
+
107
+ }
108
+
109
+ public function register_button( $buttons )
110
+ {
111
+ array_push( $buttons, "|", 'fascbuttons' );
112
+ return $buttons;
113
+ }
114
+
115
+ }
116
+ }
117
+
118
+ if ( class_exists( 'FascButtons' ) )
119
+ {
120
+ global $FascButtons;
121
+ $FascButtons = new FascButtons();
122
+ }
123
+
124
+
125
+
readme.txt ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Forget About Shortcode Buttons ===
2
+ Contributors: DesignsAndCode
3
+ Donate link:
4
+ Tags: button, shortcode, edit, buttons, wysiwyg, post editor, tinymce, shortcodes, button editor
5
+ Requires at least: 3.9
6
+ Tested up to: 3.9
7
+ Stable tag: 1.0.0
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ A visual way to add buttons in the post editor screen.
12
+
13
+ == Installation ==
14
+
15
+ 1. Upload the entire `fasc-buttons` folder to the `/wp-content/plugins/` directory.
16
+ 1. Activate the plugin through the 'Plugins' menu in WordPress.
17
+
18
+ For basic usage, you can also have a look at the [plugin homepage](http://www.designsandcode.com/551/wordpress-forget-about-shortcode-buttons/).
19
+
20
+ == Frequently Asked Questions ==
21
+
22
+
23
+
24
+ == Screenshots ==
25
+
26
+ 1. Some of the buttons you can create in the Post Editor
27
+ 2. Edit button properties popup
28
+ 3. Add an icon to your buttons
29
+ 4. Buttons on the fontend in the WP 2014 theme
30
+
31
+
32
+ == Changelog ==
33
+
34
+ = 1.0.0 =
35
+ * Initial Release
36
+
37
+ == Upgrade Notice ==
38
+
39
+
40
+
41
+ == Description ==
42
+
43
+ **This plugin is only compatible with WordPress 3.9 and upwards**
44
+
45
+ Forget About Shortcode (FASC) Buttons are a visual way to add buttons in the post editor screen. Instead of adding shortcodes in the post editor, you insert real, styled buttons - making the process of adding buttons to your posts and pages much more natural whilst improving the appearance and usability of the post editor.
46
+
47
+ https://www.youtube.com/watch?v=BA9ruSe-i1A
48
+
49
+ FASC Buttons tries to be as clean as possible with the html, only using data attributes for necessary features - the buttons you use in the post editor use the exact same classes as on the front end of your site with no extra or hidden markup to make them behave this way.
50
+
51
+ Editing a button couldn't be easier - just double click a button and an options panel appears allowing you to completely reconfigure the current button - beats tedious shortcodes and using precise syntax!
52
+
53
+ Includes Dashicons to add to your buttons and use in your themes.
54
+
55
+ = Links =
56
+
57
+ * [FASC Buttons Discussion](http://www.designsandcode.com/551/wordpress-forget-about-shortcode-buttons/)
58
+ * [FASC Buttons Video Demo](https://www.youtube.com/watch?v=BA9ruSe-i1A)
59
+
60
+