Post Snippets - Version 2.5.4

Version Description

Download this release

Release Info

Developer davdebcom
Plugin Icon 128x128 Post Snippets
Version 2.5.4
Comparing to
See all releases

Code changes from version 2.5.3 to 2.5.4

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.
assets/features.css ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ * CSS for the features interest page in the Paytium plugin
4
+ *
5
+ */
6
+
7
+ .ps_features_wrap {
8
+ overflow: hidden;
9
+ }
10
+
11
+ .ps_features_wrap_intro {
12
+ margin: 10px 10px 30px 10px;
13
+ font-size: 20px;
14
+ }
15
+
16
+ .ps_features_wrap .products {
17
+ overflow: hidden;
18
+ }
19
+
20
+ .ps_features_wrap ul {
21
+ list-style: none;
22
+ padding: 0;
23
+ }
24
+
25
+ .ps_features_wrap .products li {
26
+ float: left;
27
+ margin: 0 2em 2em 0 !important;
28
+ padding: 0;
29
+ vertical-align: top;
30
+ width: 300px;
31
+
32
+ text-decoration: none;
33
+ color: inherit;
34
+ border: 1px solid #ddd;
35
+ display: block;
36
+ min-height: 220px;
37
+ overflow: hidden;
38
+ background: #f5f5f5;
39
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);
40
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);
41
+ }
42
+
43
+ .ps_features_wrap .products li:hover {
44
+ background: #ebebeb;
45
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);
46
+ }
47
+
48
+ .ps_features_wrap .products li img {
49
+ max-height: 40px;
50
+ padding: 20px;
51
+ display: block;
52
+ margin: 0;
53
+ background: #fff;
54
+ border-right: 260px solid #fff;
55
+ }
56
+ .ps_features_wrap .products li h2 {
57
+ margin: 0!important;
58
+ padding: 30px!important;
59
+ background: #fff;
60
+
61
+ color: #23282d;
62
+ font-size: 1.3em;
63
+
64
+ display: block;
65
+ font-weight: 600;
66
+ height: 20px;
67
+ }
68
+
69
+ img {
70
+ border: none;
71
+ }
72
+
73
+ .ps_features_wrap .products li p {
74
+ padding: 20px 20px 0 20px;
75
+ margin: 10px 0 0 0;
76
+ height: 55px;
77
+ }
78
+
79
+ .ps_features_wrap .products li .price {
80
+ float: right;
81
+ margin: 10px;
82
+ font-weight: bold;
83
+ font-size: 1.3em;
84
+ }
85
+
86
+ .ps_features_wrap .ml-subscribe-form {
87
+ text-align: center;
88
+ }
89
+
90
+ .ps_features_wrap .ml-subscribe-form button {
91
+ -webkit-transition-property: border, background, color;
92
+ transition-property: border, background, color;
93
+ -webkit-transition-duration: .05s;
94
+ transition-duration: .05s;
95
+ -webkit-transition-timing-function: ease-in-out;
96
+ transition-timing-function: ease-in-out;
97
+
98
+ display: inline-block;
99
+ text-decoration: none;
100
+ font-size: 13px;
101
+ line-height: 26px;
102
+ height: 28px;
103
+ margin: 0;
104
+ padding: 0 10px 1px 10px;
105
+ cursor: pointer;
106
+ -webkit-appearance: none;
107
+ -webkit-border-radius: 3px;
108
+ border-radius: 3px;
109
+ white-space: nowrap;
110
+ -webkit-box-sizing: border-box;
111
+ -moz-box-sizing: border-box;
112
+ box-sizing: border-box;
113
+
114
+ background: #0085ba;
115
+ -webkit-box-shadow: 0 1px 0 #006799;
116
+ box-shadow: 0 1px 0 #006799;
117
+ color: #000000;
118
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
119
+ margin-top: 25px;
120
+ }
121
+
122
+ .ps_features_wrap .ml-subscribe-form button {
123
+ border: none !important;
124
+ cursor: pointer !important;
125
+ width: 100% !important;
126
+ border-radius: 0 !important;
127
+ height: 40px !important;
128
+ background-color: #0085ba !important;
129
+ color: #FFFFFF !important;
130
+ font-family: 'Arial', sans-serif !important;
131
+ font-size: 16px !important;
132
+ text-align: center !important;
133
+ padding: 0 !important;
134
+ }
135
+
136
+ .ps_features_wrap .form-control {
137
+ margin: 0 10px 15px 10px;
138
+ width: 250px;
139
+ height: 30px;
140
+ text-align: center;
141
+ }
142
+
143
+ .ps_features_wrap #mlb2-3151587.ml-subscribe-form button[disabled] {
144
+ cursor: not-allowed!important;
145
+ }
146
+
147
+ .ps_features_wrap .ml-subscribe-form button .loading {
148
+ color: red;
149
+ border: 1px solid red;
150
+ }
151
+
152
+ .ps_features_wrap .products li .loading img {
153
+ background-color: #0085ba !important;
154
+ border-right: 0;
155
+ display: inline;
156
+ padding: 0;
157
+ margin-top: 10px;
158
+ border-top: 0 solid red;
159
+ }
160
+
161
+ .ps-features-success-message {
162
+ padding: 0 20px 10px 20px !important;
163
+ text-align: left;
164
+ margin: 0 0 0 0 !important;
165
+ font-weight: bold;
166
+ }
167
+
168
+ .ps-voted-note {
169
+ font-weight: bold;
170
+ }
171
+
172
+ .ps-voted-note-large {
173
+ font-weight: bold;
174
+ margin: 45px 0px 45px 0px;
175
+ font-size: 15px;
176
+ text-align: center;
177
+ background-color: rgba(255, 185, 0, 0.41);
178
+ padding: 20px;
179
+ }
180
+
181
+ .ps-votes-left {
182
+ font-weight: bold;
183
+ margin: 0px 0px 35px 0px;
184
+ font-size: 15px;
185
+ text-align: center;
186
+ background-color: rgba(255, 185, 0, 0.41);
187
+ padding: 15px;
188
+ width: 100%
189
+ }
190
+
191
+ .tab-features {
192
+ color: red;
193
+ }
assets/newsletter.css ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ * CSS for the newsletter opt-in form in the Post Snippets plugin
4
+ *
5
+ */
6
+
7
+ #ps-newsletter-notice #mlb2-6493346.ml-subscribe-form button {
8
+ -webkit-transition-property: border, background, color;
9
+ transition-property: border, background, color;
10
+ -webkit-transition-duration: .05s;
11
+ transition-duration: .05s;
12
+ -webkit-transition-timing-function: ease-in-out;
13
+ transition-timing-function: ease-in-out;
14
+
15
+ display: inline-block;
16
+ text-decoration: none;
17
+ font-size: 13px;
18
+ line-height: 26px;
19
+ height: 28px;
20
+ margin: 0;
21
+ //margin-top: -1px;
22
+ padding: 0 10px 1px 10px;
23
+ cursor: pointer;
24
+ -webkit-appearance: none;
25
+ -webkit-border-radius: 3px;
26
+ border-radius: 3px;
27
+ white-space: nowrap;
28
+ -webkit-box-sizing: border-box;
29
+ -moz-box-sizing: border-box;
30
+ box-sizing: border-box;
31
+
32
+ background: #0085ba;
33
+ border-width: 1px;
34
+ border-style: solid;
35
+ border-color: #0073aa #006799 #006799;
36
+ -webkit-box-shadow: 0 1px 0 #006799;
37
+ box-shadow: 0 1px 0 #006799;
38
+ color: #fff;
39
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
40
+ }
41
+
42
+ /* Add a nice gradient to the subscribe button */
43
+ #ps-newsletter-notice #mlb2-6493346.ml-subscribe-form button:hover {
44
+ background: #008ec2;
45
+ border-color: #006799;
46
+ color: #fff;
47
+ }
48
+
49
+ /* Disable the submit button during processing */
50
+ #ps-newsletter-notice #mlb2-6493346.ml-subscribe-form button[disabled] {
51
+ cursor: not-allowed!important;
52
+ }
53
+
54
+ /* Make the email field red if the value is incorrect */
55
+ #ps-newsletter-notice #mlb2-6493346.ml-subscribe-form .form-group.ml-error .form-control {
56
+ border-color: red!important;
57
+ }
58
+
59
+ /* Align form in notice */
60
+ #ps-newsletter-notice .ml-subscribe-form.ml-subscribe-form-6493346 {
61
+ margin: 5px 0 5px 0;
62
+ }
63
+
64
+ /* Make the email field just as big as the buttons */
65
+ #ps-newsletter-notice #mlb2-6493346 .subscribe-form .form-section.horizontal .form-group .form-control {
66
+ height: 28px;
67
+ }
68
+
69
+ /* Set the "Hide this" button one pixel lower so it aligns with "Subscribe now" button */
70
+ #ps-newsletter-notice #mlb2-6493346 .subscribe-form .button-secondary {
71
+ margin-top: 1px;
72
+ }
73
+
assets/post-snippets.css CHANGED
@@ -77,4 +77,9 @@
77
  .post-snippets-invalid {
78
  background-color: #ffaaaa !important;
79
  border: 1px solid #ff0000 !important;
 
 
 
 
 
80
  }
77
  .post-snippets-invalid {
78
  background-color: #ffaaaa !important;
79
  border: 1px solid #ff0000 !important;
80
+ }
81
+
82
+ .post-snippets-documentation-note {
83
+ width: 98%;
84
+ text-align: right;
85
  }
lang/post-snippets-be_BY.mo CHANGED
Binary file
lang/post-snippets-be_BY.po CHANGED
@@ -7,15 +7,15 @@ msgstr ""
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
- "PO-Revision-Date: 2011-11-04 09:25+0200\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Web Geeks\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Poedit-Language: Belarusian\n"
17
- "X-Poedit-Country: BELARUS\n"
18
  "X-Poedit-SourceCharset: utf-8\n"
 
 
19
 
20
  #: post-snippets.php:70
21
  msgid "Post Snippets requires WordPress version 2.7 or later!"
@@ -41,18 +41,15 @@ msgstr "Дададзены новы сниппет "
41
  msgid "Delete Selected"
42
  msgstr "Выдаленне абранага"
43
 
44
- #: post-snippets.php:230
45
- #: post-snippets.php:239
46
  msgid "Title"
47
  msgstr "Загаловак"
48
 
49
- #: post-snippets.php:231
50
- #: post-snippets.php:240
51
  msgid "Variables"
52
  msgstr "Зменныя"
53
 
54
- #: post-snippets.php:232
55
- #: post-snippets.php:241
56
  msgid "Snippet"
57
  msgstr "Сниппет"
58
 
@@ -98,7 +95,7 @@ msgstr "Post Snippets"
98
 
99
  #. Plugin URI of an extension
100
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
101
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
102
 
103
  #. Description of an extension
104
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -106,9 +103,8 @@ msgstr "Крамы фрагмент HTML-код ці паўтор тэксту,
106
 
107
  #. Author of an extension
108
  msgid "Johan Steen"
109
- msgstr "Johan Steen"
110
 
111
  #. Author URI of an extension
112
  msgid "http://coding.cglounge.com/"
113
- msgstr "http://coding.cglounge.com/"
114
-
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
+ "PO-Revision-Date: 2017-11-30 10:34+0100\n"
11
  "Last-Translator: \n"
12
  "Language-Team: Web Geeks\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
 
 
16
  "X-Poedit-SourceCharset: utf-8\n"
17
+ "Language: be_BY\n"
18
+ "X-Generator: Poedit 2.0.4\n"
19
 
20
  #: post-snippets.php:70
21
  msgid "Post Snippets requires WordPress version 2.7 or later!"
41
  msgid "Delete Selected"
42
  msgstr "Выдаленне абранага"
43
 
44
+ #: post-snippets.php:230 post-snippets.php:239
 
45
  msgid "Title"
46
  msgstr "Загаловак"
47
 
48
+ #: post-snippets.php:231 post-snippets.php:240
 
49
  msgid "Variables"
50
  msgstr "Зменныя"
51
 
52
+ #: post-snippets.php:232 post-snippets.php:241
 
53
  msgid "Snippet"
54
  msgstr "Сниппет"
55
 
95
 
96
  #. Plugin URI of an extension
97
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
98
+ msgstr "https://www.postsnippets.com/"
99
 
100
  #. Description of an extension
101
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
103
 
104
  #. Author of an extension
105
  msgid "Johan Steen"
106
+ msgstr "David de Boer"
107
 
108
  #. Author URI of an extension
109
  msgid "http://coding.cglounge.com/"
110
+ msgstr "https://www.postsnippets.com/"
 
lang/post-snippets-de_DE.mo CHANGED
Binary file
lang/post-snippets-de_DE.po CHANGED
@@ -3,19 +3,19 @@ msgstr ""
3
  "Project-Id-Version: Post Snippets v1.7\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
5
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
6
- "PO-Revision-Date: 2011-11-21 10:36-0800\n"
7
  "Last-Translator: Brian Flores <baflores@gmail.com>\n"
8
  "Language-Team: MLL Designs <me_leon@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
- "X-Poedit-Language: Spanish\n"
14
- "X-Poedit-Country: SPAIN\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
- "X-Poedit-Basepath: ../\n"
18
  "X-Textdomain-Support: yes\n"
 
 
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ post-snippets
@@ -49,20 +49,17 @@ msgid "Delete Selected"
49
  msgstr "Ausgewähltes Snippet löschen"
50
 
51
  # @ post-snippets
52
- #: post-snippets.php:230
53
- #: post-snippets.php:239
54
  msgid "Title"
55
  msgstr "Titel"
56
 
57
  # @ post-snippets
58
- #: post-snippets.php:231
59
- #: post-snippets.php:240
60
  msgid "Variables"
61
  msgstr "Variablen"
62
 
63
  # @ post-snippets
64
- #: post-snippets.php:232
65
- #: post-snippets.php:241
66
  msgid "Snippet"
67
  msgstr "Snippet"
68
 
@@ -117,7 +114,7 @@ msgstr "Post Snippets "
117
 
118
  #. Plugin URI of an extension
119
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
120
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/ "
121
 
122
  #. Description of an extension
123
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -125,9 +122,8 @@ msgstr "Speichert HTML Code Snippets oder wiederkehrende Texte, die Sie häufig
125
 
126
  #. Author of an extension
127
  msgid "Johan Steen"
128
- msgstr "Johan Steen"
129
 
130
  #. Author URI of an extension
131
  msgid "http://coding.cglounge.com/"
132
- msgstr "http://coding.cglounge.com/"
133
-
3
  "Project-Id-Version: Post Snippets v1.7\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
5
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
6
+ "PO-Revision-Date: 2017-11-30 10:34+0100\n"
7
  "Last-Translator: Brian Flores <baflores@gmail.com>\n"
8
  "Language-Team: MLL Designs <me_leon@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
 
 
13
  "X-Poedit-SourceCharset: utf-8\n"
14
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Poedit-Basepath: ..\n"
16
  "X-Textdomain-Support: yes\n"
17
+ "Language: es_ES\n"
18
+ "X-Generator: Poedit 2.0.4\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ post-snippets
49
  msgstr "Ausgewähltes Snippet löschen"
50
 
51
  # @ post-snippets
52
+ #: post-snippets.php:230 post-snippets.php:239
 
53
  msgid "Title"
54
  msgstr "Titel"
55
 
56
  # @ post-snippets
57
+ #: post-snippets.php:231 post-snippets.php:240
 
58
  msgid "Variables"
59
  msgstr "Variablen"
60
 
61
  # @ post-snippets
62
+ #: post-snippets.php:232 post-snippets.php:241
 
63
  msgid "Snippet"
64
  msgstr "Snippet"
65
 
114
 
115
  #. Plugin URI of an extension
116
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
117
+ msgstr "https://www.postsnippets.com/"
118
 
119
  #. Description of an extension
120
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
122
 
123
  #. Author of an extension
124
  msgid "Johan Steen"
125
+ msgstr "David de Boer"
126
 
127
  #. Author URI of an extension
128
  msgid "http://coding.cglounge.com/"
129
+ msgstr "https://www.postsnippets.com/"
 
lang/post-snippets-es_ES.mo CHANGED
Binary file
lang/post-snippets-es_ES.po CHANGED
@@ -3,19 +3,19 @@ msgstr ""
3
  "Project-Id-Version: Post Snippets v1.7\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
5
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
6
- "PO-Revision-Date: 2011-02-25 23:17-0400\n"
7
  "Last-Translator: Melvis Leon <me_leon@hotmail.com>\n"
8
  "Language-Team: MLL Designs <me_leon@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
- "X-Poedit-Language: Spanish\n"
14
- "X-Poedit-Country: SPAIN\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
- "X-Poedit-Basepath: ../\n"
18
  "X-Textdomain-Support: yes\n"
 
 
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ post-snippets
@@ -49,20 +49,17 @@ msgid "Delete Selected"
49
  msgstr "Eliminar seleccionados"
50
 
51
  # @ post-snippets
52
- #: post-snippets.php:230
53
- #: post-snippets.php:239
54
  msgid "Title"
55
  msgstr "T&iacute;tulo"
56
 
57
  # @ post-snippets
58
- #: post-snippets.php:231
59
- #: post-snippets.php:240
60
  msgid "Variables"
61
  msgstr "Variables"
62
 
63
  # @ post-snippets
64
- #: post-snippets.php:232
65
- #: post-snippets.php:241
66
  msgid "Snippet"
67
  msgstr "Snippet"
68
 
@@ -117,7 +114,7 @@ msgstr "Post Snippets"
117
 
118
  #. Plugin URI of an extension
119
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
120
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
121
 
122
  #. Description of an extension
123
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -125,9 +122,8 @@ msgstr "Almacena de snippets(fragmentos) de código HTML o texto recurrente para
125
 
126
  #. Author of an extension
127
  msgid "Johan Steen"
128
- msgstr "Johan Steen"
129
 
130
  #. Author URI of an extension
131
  msgid "http://coding.cglounge.com/"
132
- msgstr "http://coding.cglounge.com/"
133
-
3
  "Project-Id-Version: Post Snippets v1.7\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
5
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
6
+ "PO-Revision-Date: 2017-11-30 10:34+0100\n"
7
  "Last-Translator: Melvis Leon <me_leon@hotmail.com>\n"
8
  "Language-Team: MLL Designs <me_leon@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
 
 
13
  "X-Poedit-SourceCharset: utf-8\n"
14
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Poedit-Basepath: ..\n"
16
  "X-Textdomain-Support: yes\n"
17
+ "Language: es_ES\n"
18
+ "X-Generator: Poedit 2.0.4\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  # @ post-snippets
49
  msgstr "Eliminar seleccionados"
50
 
51
  # @ post-snippets
52
+ #: post-snippets.php:230 post-snippets.php:239
 
53
  msgid "Title"
54
  msgstr "T&iacute;tulo"
55
 
56
  # @ post-snippets
57
+ #: post-snippets.php:231 post-snippets.php:240
 
58
  msgid "Variables"
59
  msgstr "Variables"
60
 
61
  # @ post-snippets
62
+ #: post-snippets.php:232 post-snippets.php:241
 
63
  msgid "Snippet"
64
  msgstr "Snippet"
65
 
114
 
115
  #. Plugin URI of an extension
116
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
117
+ msgstr "https://www.postsnippets.com/"
118
 
119
  #. Description of an extension
120
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
122
 
123
  #. Author of an extension
124
  msgid "Johan Steen"
125
+ msgstr "David de Boer"
126
 
127
  #. Author URI of an extension
128
  msgid "http://coding.cglounge.com/"
129
+ msgstr "https://www.postsnippets.com/"
 
lang/post-snippets-he_IL.mo CHANGED
Binary file
lang/post-snippets-he_IL.po CHANGED
@@ -7,17 +7,17 @@ msgstr ""
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
- "PO-Revision-Date: 2011-10-12 18:24+0200\n"
11
  "Last-Translator: שגיב SEO <info@sagive.co.il>\n"
12
  "Language-Team: Sagive SEO <info@sagive.co.il>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Poedit-Language: Hebrew\n"
17
- "X-Poedit-Country: ISRAEL\n"
18
  "X-Poedit-SourceCharset: utf-8\n"
19
  "X-Poedit-KeywordsList: __;_e\n"
20
- "X-Poedit-Basepath: ./\n"
 
 
21
  "X-Poedit-SearchPath-0: ..\n"
22
 
23
  #: post-snippets.php:70
@@ -44,18 +44,15 @@ msgstr "הוסף סניפט חדש"
44
  msgid "Delete Selected"
45
  msgstr "מחק סניפטים מסומנים"
46
 
47
- #: post-snippets.php:230
48
- #: post-snippets.php:239
49
  msgid "Title"
50
  msgstr "כותרת"
51
 
52
- #: post-snippets.php:231
53
- #: post-snippets.php:240
54
  msgid "Variables"
55
  msgstr "משתנים"
56
 
57
- #: post-snippets.php:232
58
- #: post-snippets.php:241
59
  msgid "Snippet"
60
  msgstr "סניפט"
61
 
@@ -101,7 +98,7 @@ msgstr "פוסט סניפטס' (Post Snippets)"
101
 
102
  #. Plugin URI of an extension
103
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
104
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
105
 
106
  #. Description of an extension
107
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -109,9 +106,8 @@ msgstr "מאחסן סניפטים (קטעי קוד) של שפת HTML או טקס
109
 
110
  #. Author of an extension
111
  msgid "Johan Steen"
112
- msgstr "Johan Steen"
113
 
114
  #. Author URI of an extension
115
  msgid "http://coding.cglounge.com/"
116
- msgstr "http://coding.cglounge.com/"
117
-
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
+ "PO-Revision-Date: 2017-11-30 10:33+0100\n"
11
  "Last-Translator: שגיב SEO <info@sagive.co.il>\n"
12
  "Language-Team: Sagive SEO <info@sagive.co.il>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
 
 
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
+ "X-Poedit-Basepath: .\n"
19
+ "Language: he_IL\n"
20
+ "X-Generator: Poedit 2.0.4\n"
21
  "X-Poedit-SearchPath-0: ..\n"
22
 
23
  #: post-snippets.php:70
44
  msgid "Delete Selected"
45
  msgstr "מחק סניפטים מסומנים"
46
 
47
+ #: post-snippets.php:230 post-snippets.php:239
 
48
  msgid "Title"
49
  msgstr "כותרת"
50
 
51
+ #: post-snippets.php:231 post-snippets.php:240
 
52
  msgid "Variables"
53
  msgstr "משתנים"
54
 
55
+ #: post-snippets.php:232 post-snippets.php:241
 
56
  msgid "Snippet"
57
  msgstr "סניפט"
58
 
98
 
99
  #. Plugin URI of an extension
100
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
101
+ msgstr "‫https://www.postsnippets.com/"
102
 
103
  #. Description of an extension
104
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
106
 
107
  #. Author of an extension
108
  msgid "Johan Steen"
109
+ msgstr "‫David de Boer"
110
 
111
  #. Author URI of an extension
112
  msgid "http://coding.cglounge.com/"
113
+ msgstr "‫https://www.postsnippets.com/"
 
lang/post-snippets-ro_RO.mo CHANGED
Binary file
lang/post-snippets-ro_RO.po CHANGED
@@ -7,11 +7,11 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2012-03-07 10:57+0200\n"
11
- "X-Poedit-Language: Romanian\n"
12
- "X-Poedit-Country: Romania\n"
13
  "Language-Team: Web Geeks\n"
14
  "Last-Translator: \n"
 
 
15
 
16
  #: classes/settings.php:33
17
  msgid "Add New Snippet"
@@ -25,27 +25,19 @@ msgstr "Ştergere selectate"
25
  msgid "(Use the help dropdown button above for additional information.)"
26
  msgstr "(Utilizaţi butonul ajutor dropdown de mai sus pentru informaţii suplimentare.)"
27
 
28
- #: classes/settings.php:44
29
- #: classes/settings.php:53
30
- #: classes/help.php:91
31
  msgid "Title"
32
  msgstr "Titlul"
33
 
34
- #: classes/settings.php:45
35
- #: classes/settings.php:54
36
- #: classes/help.php:98
37
  msgid "Variables"
38
  msgstr "Variabile"
39
 
40
- #: classes/settings.php:46
41
- #: classes/settings.php:55
42
- #: classes/help.php:109
43
  msgid "Snippet"
44
  msgstr "Fragment"
45
 
46
- #: classes/settings.php:76
47
- #: classes/help.php:46
48
- #: classes/help.php:258
49
  msgid "Shortcode"
50
  msgstr "Shortcode"
51
 
@@ -53,8 +45,7 @@ msgstr "Shortcode"
53
  msgid "PHP Code"
54
  msgstr "Cod PHP"
55
 
56
- #: classes/settings.php:90
57
- #: classes/help.php:125
58
  msgid "Description"
59
  msgstr "Descriere"
60
 
@@ -62,18 +53,15 @@ msgstr "Descriere"
62
  msgid "Update Snippets"
63
  msgstr "Fragmente de actualizare"
64
 
65
- #: classes/help.php:41
66
- #: classes/help.php:256
67
  msgid "Basic"
68
  msgstr "Bază"
69
 
70
- #: classes/help.php:51
71
- #: classes/help.php:260
72
  msgid "PHP"
73
  msgstr "PHP"
74
 
75
- #: classes/help.php:56
76
- #: classes/help.php:262
77
  msgid "Advanced"
78
  msgstr "Avansate"
79
 
@@ -97,9 +85,7 @@ msgstr "Da fragmentul de un titlu care vă ajută să se identifice în editorul
97
  msgid "A comma separated list of custom variables you can reference in your snippet. A variable can also be assigned a default value that will be used in the insert window by using the equal sign, variable=default."
98
  msgstr "O separate prin virgulă listă de variabile personalizate puteţi de referinţă în fragmentul. O variabila poate fi atribuit, de asemenea, o valoare implicită, care va fi utilizat în fereastra Inserare folosind semnul egal, implicit=variabil."
99
 
100
- #: classes/help.php:104
101
- #: classes/help.php:115
102
- #: classes/help.php:230
103
  msgid "Example"
104
  msgstr "Exemplu"
105
 
@@ -195,8 +181,7 @@ msgstr "Acest fragment este insera numai, nu variabilele definite."
195
  msgid "A snippet named Untitled has been added."
196
  msgstr "S-a adăugat un fragment numit fără titlu."
197
 
198
- #: post-snippets.php:595
199
- #: post-snippets.php:745
200
  msgid "Snippets have been updated."
201
  msgstr "Fragmente au fost actualizate."
202
 
@@ -236,9 +221,7 @@ msgstr "Fragmente de import"
236
  msgid "Snippets successfully imported."
237
  msgstr "Fragmente importate cu succes."
238
 
239
- #: post-snippets.php:749
240
- #: post-snippets.php:753
241
- #: post-snippets.php:755
242
  msgid "Snippets could not be imported:"
243
  msgstr "Fragmente nu ar putea fi importate:"
244
 
@@ -256,7 +239,7 @@ msgstr "Fragmente post"
256
 
257
  #. Plugin URI of the plugin/theme
258
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
259
- msgstr "https://code.bitbebop.com/wordpress/post-snippets/"
260
 
261
  #. Description of the plugin/theme
262
  msgid "Build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts. Variables to replace parts of the snippet on insert can be used. The snippets can be inserted as-is or as shortcodes."
@@ -264,9 +247,8 @@ msgstr "Construieste o bibliotecă, cu fragmente de cod HTML, codul PHP sau text
264
 
265
  #. Author of the plugin/theme
266
  msgid "Johan Steen"
267
- msgstr "Johan Steen"
268
 
269
  #. Author URI of the plugin/theme
270
  msgid "https://code.bitbebop.com/"
271
- msgstr "https://code.bitbebop.com/"
272
-
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2017-11-30 10:33+0100\n"
 
 
11
  "Language-Team: Web Geeks\n"
12
  "Last-Translator: \n"
13
+ "Language: ro\n"
14
+ "X-Generator: Poedit 2.0.4\n"
15
 
16
  #: classes/settings.php:33
17
  msgid "Add New Snippet"
25
  msgid "(Use the help dropdown button above for additional information.)"
26
  msgstr "(Utilizaţi butonul ajutor dropdown de mai sus pentru informaţii suplimentare.)"
27
 
28
+ #: classes/settings.php:44 classes/settings.php:53 classes/help.php:91
 
 
29
  msgid "Title"
30
  msgstr "Titlul"
31
 
32
+ #: classes/settings.php:45 classes/settings.php:54 classes/help.php:98
 
 
33
  msgid "Variables"
34
  msgstr "Variabile"
35
 
36
+ #: classes/settings.php:46 classes/settings.php:55 classes/help.php:109
 
 
37
  msgid "Snippet"
38
  msgstr "Fragment"
39
 
40
+ #: classes/settings.php:76 classes/help.php:46 classes/help.php:258
 
 
41
  msgid "Shortcode"
42
  msgstr "Shortcode"
43
 
45
  msgid "PHP Code"
46
  msgstr "Cod PHP"
47
 
48
+ #: classes/settings.php:90 classes/help.php:125
 
49
  msgid "Description"
50
  msgstr "Descriere"
51
 
53
  msgid "Update Snippets"
54
  msgstr "Fragmente de actualizare"
55
 
56
+ #: classes/help.php:41 classes/help.php:256
 
57
  msgid "Basic"
58
  msgstr "Bază"
59
 
60
+ #: classes/help.php:51 classes/help.php:260
 
61
  msgid "PHP"
62
  msgstr "PHP"
63
 
64
+ #: classes/help.php:56 classes/help.php:262
 
65
  msgid "Advanced"
66
  msgstr "Avansate"
67
 
85
  msgid "A comma separated list of custom variables you can reference in your snippet. A variable can also be assigned a default value that will be used in the insert window by using the equal sign, variable=default."
86
  msgstr "O separate prin virgulă listă de variabile personalizate puteţi de referinţă în fragmentul. O variabila poate fi atribuit, de asemenea, o valoare implicită, care va fi utilizat în fereastra Inserare folosind semnul egal, implicit=variabil."
87
 
88
+ #: classes/help.php:104 classes/help.php:115 classes/help.php:230
 
 
89
  msgid "Example"
90
  msgstr "Exemplu"
91
 
181
  msgid "A snippet named Untitled has been added."
182
  msgstr "S-a adăugat un fragment numit fără titlu."
183
 
184
+ #: post-snippets.php:595 post-snippets.php:745
 
185
  msgid "Snippets have been updated."
186
  msgstr "Fragmente au fost actualizate."
187
 
221
  msgid "Snippets successfully imported."
222
  msgstr "Fragmente importate cu succes."
223
 
224
+ #: post-snippets.php:749 post-snippets.php:753 post-snippets.php:755
 
 
225
  msgid "Snippets could not be imported:"
226
  msgstr "Fragmente nu ar putea fi importate:"
227
 
239
 
240
  #. Plugin URI of the plugin/theme
241
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
242
+ msgstr "https://www.postsnippets.com/"
243
 
244
  #. Description of the plugin/theme
245
  msgid "Build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts. Variables to replace parts of the snippet on insert can be used. The snippets can be inserted as-is or as shortcodes."
247
 
248
  #. Author of the plugin/theme
249
  msgid "Johan Steen"
250
+ msgstr "David de Boer"
251
 
252
  #. Author URI of the plugin/theme
253
  msgid "https://code.bitbebop.com/"
254
+ msgstr "https://www.postsnippets.com/"
 
lang/post-snippets-ru_RU.mo CHANGED
Binary file
lang/post-snippets-ru_RU.po CHANGED
@@ -7,7 +7,7 @@ msgstr ""
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
- "PO-Revision-Date: 2015-08-07 15:16+0300\n"
11
  "Last-Translator: Fat Cow <zhr@tut.by>\n"
12
  "Language-Team: Fat Cow <zhr@tut.by>\n"
13
  "MIME-Version: 1.0\n"
@@ -15,7 +15,7 @@ msgstr ""
15
  "Content-Transfer-Encoding: 8bit\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "Language: ru_RU\n"
18
- "X-Generator: Poedit 1.8.4\n"
19
 
20
  #: post-snippets.php:70
21
  msgid "Post Snippets requires WordPress version 2.7 or later!"
@@ -95,7 +95,7 @@ msgstr "Post Snippets"
95
 
96
  #. Plugin URI of an extension
97
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
98
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
99
 
100
  #. Description of an extension
101
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -103,8 +103,8 @@ msgstr "Магазины фрагмент HTML-код или повторени
103
 
104
  #. Author of an extension
105
  msgid "Johan Steen"
106
- msgstr "Johan Steen"
107
 
108
  #. Author URI of an extension
109
  msgid "http://coding.cglounge.com/"
110
- msgstr "http://coding.cglounge.com/"
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
+ "PO-Revision-Date: 2017-11-30 10:33+0100\n"
11
  "Last-Translator: Fat Cow <zhr@tut.by>\n"
12
  "Language-Team: Fat Cow <zhr@tut.by>\n"
13
  "MIME-Version: 1.0\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "Language: ru_RU\n"
18
+ "X-Generator: Poedit 2.0.4\n"
19
 
20
  #: post-snippets.php:70
21
  msgid "Post Snippets requires WordPress version 2.7 or later!"
95
 
96
  #. Plugin URI of an extension
97
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
98
+ msgstr "https://www.postsnippets.com/"
99
 
100
  #. Description of an extension
101
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
103
 
104
  #. Author of an extension
105
  msgid "Johan Steen"
106
+ msgstr "David de Boer"
107
 
108
  #. Author URI of an extension
109
  msgid "http://coding.cglounge.com/"
110
+ msgstr "https://www.postsnippets.com/"
lang/post-snippets-sk_SK.mo CHANGED
Binary file
lang/post-snippets-sk_SK.po CHANGED
@@ -7,10 +7,11 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2012-12-03 15:17+0400\n"
11
  "Last-Translator: \n"
12
  "Language-Team: \n"
13
- "X-Generator: Poedit 1.5.4\n"
 
14
 
15
  #: classes/settings.php:33
16
  msgid "Add New Snippet"
@@ -328,7 +329,7 @@ msgstr "Príspevok úryvky"
328
 
329
  #. Plugin URI of the plugin/theme
330
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
331
- msgstr "https://code.bitbebop.com/wordpress/post-snippets/"
332
 
333
  #. Description of the plugin/theme
334
  msgid ""
@@ -342,8 +343,8 @@ msgstr ""
342
 
343
  #. Author of the plugin/theme
344
  msgid "Johan Steen"
345
- msgstr "Johan Steen"
346
 
347
  #. Author URI of the plugin/theme
348
  msgid "https://code.bitbebop.com/"
349
- msgstr "https://code.bitbebop.com/"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2017-11-30 10:32+0100\n"
11
  "Last-Translator: \n"
12
  "Language-Team: \n"
13
+ "X-Generator: Poedit 2.0.4\n"
14
+ "Language: sk_SK\n"
15
 
16
  #: classes/settings.php:33
17
  msgid "Add New Snippet"
329
 
330
  #. Plugin URI of the plugin/theme
331
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
332
+ msgstr "https://www.postsnippets.com/"
333
 
334
  #. Description of the plugin/theme
335
  msgid ""
343
 
344
  #. Author of the plugin/theme
345
  msgid "Johan Steen"
346
+ msgstr "David de Boer"
347
 
348
  #. Author URI of the plugin/theme
349
  msgid "https://code.bitbebop.com/"
350
+ msgstr "https://www.postsnippets.com/"
lang/post-snippets-sr_RS.mo CHANGED
Binary file
lang/post-snippets-sr_RS.po CHANGED
@@ -7,11 +7,11 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2013-10-14 10:37+0100\n"
11
  "Language-Team: Web Geeks\n"
12
  "Last-Translator: \n"
13
  "Language: ro_RO\n"
14
- "X-Generator: Poedit 1.5.7\n"
15
 
16
  #: classes/settings.php:33
17
  msgid "Add New Snippet"
@@ -122,7 +122,7 @@ msgid ""
122
  "You will get the option to replace url and name on insert if they are "
123
  "defined as variables."
124
  msgstr ""
125
- "Dobićete mogućnost da zamenite URL i ime na unosu ako su definisane kao "
126
  "varijable"
127
 
128
  #: classes/help.php:128
@@ -130,7 +130,7 @@ msgid ""
130
  "An optional description for the Snippet. If filled out, the description will "
131
  "be displayed in the snippets insert window in the post editor."
132
  msgstr ""
133
- "Opcioni opis za snippet.. Ako je popunjen ,opis će biti prikazan u snippetu "
134
  "iznad prozora u post editoru ."
135
 
136
  #: classes/help.php:141
@@ -140,7 +140,7 @@ msgid ""
140
  "is of course that you can insert a block of text or code in many places on "
141
  "the site, and update the content from one single place."
142
  msgstr ""
143
- "Kada omogućite shortcode potvrdu ,snippet se ne ubacuje direktno već umetnut "
144
  "kao kratak broj . Očigledna prednost je , naravno, da možete da umetnete "
145
  "blok teksta ili koda na mnogim mestima na sajtu , i ažuriranje sadržaja sa "
146
  "jednom mestu ."
@@ -152,7 +152,7 @@ msgid ""
152
  "and not the content will be inserted in the post."
153
  msgstr ""
154
  "Ime koje koristi skraćenica je isto kao naslov snippeta( prostori nisu "
155
- "dozvoljeni) Kada ubacite snippet skraćenicu, skraćenica a ne sadržaj će biti "
156
  "ubačena u post."
157
 
158
  #: classes/help.php:148
@@ -162,7 +162,7 @@ msgid ""
162
  "variable is reserved, so don't use it in the variables field."
163
  msgstr ""
164
  "Ako ste zaključalii skraćenicu u vašim postovima, možete da pristupite "
165
- "sadržaju pomoću promenljive { sadržaj } u fragmentu . {Sadržaj } "
166
  "promenljiva je rezervisana , pa nemojte ga koristiti na terenu promenljivih ."
167
 
168
  #: classes/help.php:152
@@ -190,7 +190,7 @@ msgid ""
190
  "the snippet as a shortcode."
191
  msgstr ""
192
  "Snippeti definisani kao prečice mogu neobavezno biti ocenjeni kao PHP kod "
193
- "omogućujući PHP potvrdu . PHP snippet je dostupan samo kada se tretira "
194
  "snippet kao skraćenica."
195
 
196
  #: classes/help.php:174
@@ -206,7 +206,7 @@ msgid ""
206
  msgstr ""
207
  "Sa snippetom definisanim kao onaj gore , možete ga nazvati svojom "
208
  "definicijom skraćenice u postu . Hajde da se pretvaramo da je snippet primer "
209
- "nazvan phpcode i ima jednu promenljivu definisanu loop_me , onda će se zvati "
210
  "ovako iz posta :"
211
 
212
  #: classes/help.php:189
@@ -215,7 +215,7 @@ msgid ""
215
  "the string supplied in the shortcode and then the PHP code will be "
216
  "evaluated. (Outputting the string five times in this case. Wow!)"
217
  msgstr ""
218
- "Kada se izvršava skraćenica loop_me promenljiva će biti zamenjen sa stringom "
219
  "isporučujen na skrćenicu , a zatim će se PHP kod ocenjivati . (Outputting "
220
  "stringa pet puta u ovom slučaju)"
221
 
@@ -225,7 +225,7 @@ msgid ""
225
  "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
226
  "be wrapped in <?php #code; ?>."
227
  msgstr ""
228
- "Obratite pažnju na redosled procene , bilo koji snippet promenljive će biti "
229
  "zamenjen pre nego što se snippet ocenjuje kao PHP kod . Takođe, imajte na "
230
  "umu da PHP kod ne treba da bude umotan u <?php #code; ?>."
231
 
@@ -234,7 +234,7 @@ msgid ""
234
  "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
235
  "by using the get_post_snippet() function."
236
  msgstr ""
237
- "Možete da preuzmete Post Snippet direktno od PHP , u temi npr, pomoću "
238
  "get_post_snippet () funkcije.."
239
 
240
  #: classes/help.php:209
@@ -329,7 +329,7 @@ msgstr "Post Snippets"
329
 
330
  #. Plugin URI of the plugin/theme
331
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
332
- msgstr "https://code.bitbebop.com/wordpress/post-snippets/"
333
 
334
  #. Description of the plugin/theme
335
  msgid ""
@@ -344,8 +344,8 @@ msgstr ""
344
 
345
  #. Author of the plugin/theme
346
  msgid "Johan Steen"
347
- msgstr "Johan Steen"
348
 
349
  #. Author URI of the plugin/theme
350
  msgid "https://code.bitbebop.com/"
351
- msgstr "https://code.bitbebop.com/"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2017-11-30 10:32+0100\n"
11
  "Language-Team: Web Geeks\n"
12
  "Last-Translator: \n"
13
  "Language: ro_RO\n"
14
+ "X-Generator: Poedit 2.0.4\n"
15
 
16
  #: classes/settings.php:33
17
  msgid "Add New Snippet"
122
  "You will get the option to replace url and name on insert if they are "
123
  "defined as variables."
124
  msgstr ""
125
+ "Dobićete mogućnost da zamenite URL i ime na unosu ako su definisane kao "
126
  "varijable"
127
 
128
  #: classes/help.php:128
130
  "An optional description for the Snippet. If filled out, the description will "
131
  "be displayed in the snippets insert window in the post editor."
132
  msgstr ""
133
+ "Opcioni opis za snippet.. Ako je popunjen ,opis će biti prikazan u snippetu "
134
  "iznad prozora u post editoru ."
135
 
136
  #: classes/help.php:141
140
  "is of course that you can insert a block of text or code in many places on "
141
  "the site, and update the content from one single place."
142
  msgstr ""
143
+ "Kada omogućite shortcode potvrdu ,snippet se ne ubacuje direktno već umetnut "
144
  "kao kratak broj . Očigledna prednost je , naravno, da možete da umetnete "
145
  "blok teksta ili koda na mnogim mestima na sajtu , i ažuriranje sadržaja sa "
146
  "jednom mestu ."
152
  "and not the content will be inserted in the post."
153
  msgstr ""
154
  "Ime koje koristi skraćenica je isto kao naslov snippeta( prostori nisu "
155
+ "dozvoljeni) Kada ubacite snippet skraćenicu, skraćenica a ne sadržaj će biti "
156
  "ubačena u post."
157
 
158
  #: classes/help.php:148
162
  "variable is reserved, so don't use it in the variables field."
163
  msgstr ""
164
  "Ako ste zaključalii skraćenicu u vašim postovima, možete da pristupite "
165
+ "sadržaju pomoću promenljive { sadržaj } u fragmentu . {Sadržaj } "
166
  "promenljiva je rezervisana , pa nemojte ga koristiti na terenu promenljivih ."
167
 
168
  #: classes/help.php:152
190
  "the snippet as a shortcode."
191
  msgstr ""
192
  "Snippeti definisani kao prečice mogu neobavezno biti ocenjeni kao PHP kod "
193
+ "omogućujući PHP potvrdu . PHP snippet je dostupan samo kada se tretira "
194
  "snippet kao skraćenica."
195
 
196
  #: classes/help.php:174
206
  msgstr ""
207
  "Sa snippetom definisanim kao onaj gore , možete ga nazvati svojom "
208
  "definicijom skraćenice u postu . Hajde da se pretvaramo da je snippet primer "
209
+ "nazvan phpcode i ima jednu promenljivu definisanu loop_me , onda će se zvati "
210
  "ovako iz posta :"
211
 
212
  #: classes/help.php:189
215
  "the string supplied in the shortcode and then the PHP code will be "
216
  "evaluated. (Outputting the string five times in this case. Wow!)"
217
  msgstr ""
218
+ "Kada se izvršava skraćenica loop_me promenljiva će biti zamenjen sa stringom "
219
  "isporučujen na skrćenicu , a zatim će se PHP kod ocenjivati . (Outputting "
220
  "stringa pet puta u ovom slučaju)"
221
 
225
  "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
226
  "be wrapped in <?php #code; ?>."
227
  msgstr ""
228
+ "Obratite pažnju na redosled procene , bilo koji snippet promenljive će biti "
229
  "zamenjen pre nego što se snippet ocenjuje kao PHP kod . Takođe, imajte na "
230
  "umu da PHP kod ne treba da bude umotan u <?php #code; ?>."
231
 
234
  "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
235
  "by using the get_post_snippet() function."
236
  msgstr ""
237
+ "Možete da preuzmete Post Snippet direktno od PHP , u temi npr, pomoću "
238
  "get_post_snippet () funkcije.."
239
 
240
  #: classes/help.php:209
329
 
330
  #. Plugin URI of the plugin/theme
331
  msgid "https://code.bitbebop.com/wordpress/post-snippets/"
332
+ msgstr "https://www.postsnippets.com/"
333
 
334
  #. Description of the plugin/theme
335
  msgid ""
344
 
345
  #. Author of the plugin/theme
346
  msgid "Johan Steen"
347
+ msgstr "David de Boer"
348
 
349
  #. Author URI of the plugin/theme
350
  msgid "https://code.bitbebop.com/"
351
+ msgstr "https://www.postsnippets.com/"
lang/post-snippets-sv_SE.mo CHANGED
Binary file
lang/post-snippets-tr_TR.mo CHANGED
Binary file
lang/post-snippets-tr_TR.po CHANGED
@@ -7,14 +7,14 @@ msgstr ""
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
- "PO-Revision-Date: 2011-01-23 02:21+0200\n"
11
  "Last-Translator: JSEL <jselivingston@gmail.com>\n"
12
  "Language-Team: www.tml.web.tr <jselivingston@gmail.com>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Poedit-Country: TURKEY\n"
17
- "X-Poedit-Language: Turkish\n"
18
 
19
  #: post-snippets.php:70
20
  msgid "Post Snippets requires WordPress version 2.7 or later!"
@@ -40,18 +40,15 @@ msgstr "Yeni Snippet Ekle"
40
  msgid "Delete Selected"
41
  msgstr "Seçili Olanları Sil"
42
 
43
- #: post-snippets.php:230
44
- #: post-snippets.php:239
45
  msgid "Title"
46
  msgstr "Başlık"
47
 
48
- #: post-snippets.php:231
49
- #: post-snippets.php:240
50
  msgid "Variables"
51
  msgstr "Değişkenler"
52
 
53
- #: post-snippets.php:232
54
- #: post-snippets.php:241
55
  msgid "Snippet"
56
  msgstr "Snippet"
57
 
@@ -97,7 +94,7 @@ msgstr "Post Snippets"
97
 
98
  #. Plugin URI of an extension
99
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
100
- msgstr "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
101
 
102
  #. Description of an extension
103
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
@@ -105,9 +102,8 @@ msgstr "Yazılarınızda sıklıkla kullandığınız HTML kodu veya metinlerdek
105
 
106
  #. Author of an extension
107
  msgid "Johan Steen"
108
- msgstr "Johan Steen"
109
 
110
  #. Author URI of an extension
111
  msgid "http://coding.cglounge.com/"
112
- msgstr "http://coding.cglounge.com/"
113
-
7
  "Project-Id-Version: Post Snippets\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
9
  "POT-Creation-Date: 2009-03-24 09:38+0000\n"
10
+ "PO-Revision-Date: 2017-11-30 10:31+0100\n"
11
  "Last-Translator: JSEL <jselivingston@gmail.com>\n"
12
  "Language-Team: www.tml.web.tr <jselivingston@gmail.com>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
+ "Language: tr_TR\n"
17
+ "X-Generator: Poedit 2.0.4\n"
18
 
19
  #: post-snippets.php:70
20
  msgid "Post Snippets requires WordPress version 2.7 or later!"
40
  msgid "Delete Selected"
41
  msgstr "Seçili Olanları Sil"
42
 
43
+ #: post-snippets.php:230 post-snippets.php:239
 
44
  msgid "Title"
45
  msgstr "Başlık"
46
 
47
+ #: post-snippets.php:231 post-snippets.php:240
 
48
  msgid "Variables"
49
  msgstr "Değişkenler"
50
 
51
+ #: post-snippets.php:232 post-snippets.php:241
 
52
  msgid "Snippet"
53
  msgstr "Snippet"
54
 
94
 
95
  #. Plugin URI of an extension
96
  msgid "http://coding.cglounge.com/wordpress-plugins/post-snippets/"
97
+ msgstr "https://www.postsnippets.com/"
98
 
99
  #. Description of an extension
100
  msgid "Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button, Quicktags or Shortcodes."
102
 
103
  #. Author of an extension
104
  msgid "Johan Steen"
105
+ msgstr "David de Boer"
106
 
107
  #. Author URI of an extension
108
  msgid "http://coding.cglounge.com/"
109
+ msgstr "https://www.postsnippets.com/"
 
post-snippets.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Post Snippets
5
  *
@@ -14,7 +13,7 @@
14
  * Plugin Name: Post Snippets
15
  * Plugin URI: https://www.postsnippets.com
16
  * Description: Create custom shortcodes and reusable content and insert them in into your posts and pages.
17
- * Version: 2.5.3
18
  * Author: David de Boer
19
  * Author URI: https://www.postsnippets.com
20
  * License: GPL-2.0+
@@ -26,12 +25,30 @@
26
  /** Load all of the necessary class files for the plugin */
27
  spl_autoload_register('PostSnippets::autoload');
28
 
29
- /**
30
- * Init Singleton Class.
31
- *
32
- * @author Johan Steen <artstorm at gmail dot com>
33
- * @link https://www.postsnippets.com
34
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  class PostSnippets
36
  {
37
  /** Holds the plugin instance */
@@ -207,7 +224,7 @@ class PostSnippets
207
  }
208
 
209
  /**
210
- * Displays a warning when installed in an old Wordpress version.
211
  */
212
  public function wpVersionError()
213
  {
1
  <?php
 
2
  /**
3
  * Post Snippets
4
  *
13
  * Plugin Name: Post Snippets
14
  * Plugin URI: https://www.postsnippets.com
15
  * Description: Create custom shortcodes and reusable content and insert them in into your posts and pages.
16
+ * Version: 2.5.4
17
  * Author: David de Boer
18
  * Author URI: https://www.postsnippets.com
19
  * License: GPL-2.0+
25
  /** Load all of the necessary class files for the plugin */
26
  spl_autoload_register('PostSnippets::autoload');
27
 
28
+ if ( ! defined( 'PS_MAIN_FILE' ) ) {
29
+ define( 'PS_MAIN_FILE', basename(__FILE__) );
30
+ }
31
+
32
+ if ( ! defined( 'PS_MAIN_FILE_PATH' ) ) {
33
+ define( 'PS_MAIN_FILE_PATH', __FILE__ );
34
+ }
35
+
36
+ if ( ! defined( 'PS_DIRECTORY' ) ) {
37
+ define( 'PS_DIRECTORY', plugin_basename(dirname( __FILE__ )) );
38
+ }
39
+
40
+ if ( ! defined( 'PS_PATH' ) ) {
41
+ define( 'PS_PATH', plugin_dir_path( __FILE__ ) );
42
+ }
43
+
44
+ if ( ! defined( 'PS_URL' ) ) {
45
+ define( 'PS_URL', plugins_url( '', __FILE__ ) . '/' );
46
+ }
47
+
48
+ if ( ! defined( 'PS_MAIN_PAGE_URL' ) ) {
49
+ define( 'PS_MAIN_PAGE_URL', esc_url( admin_url( 'options-general.php?page=' . PS_DIRECTORY . '/' . PS_MAIN_FILE ) ) );
50
+ }
51
+
52
  class PostSnippets
53
  {
54
  /** Holds the plugin instance */
224
  }
225
 
226
  /**
227
+ * Displays a warning when installed in an old WordPress version.
228
  */
229
  public function wpVersionError()
230
  {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom snippet, custom shortcode, snippet, snippets, shortcode, shortcodes
4
  Requires at least: 3.3
5
  Tested up to: 4.9
6
  Requires PHP: 5.3
7
- Stable tag: 2.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,14 @@ your clients to be able to use PHP code in a post snippet.
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
 
 
100
  = Version 2.5.3 - 14 Feb 2016 =
101
  * Fixes an issue with the compression library for import and export.
102
 
@@ -164,7 +172,7 @@ your clients to be able to use PHP code in a post snippet.
164
  = Version 2.3 - 1 Jun 2013 =
165
  * Updates `PostSnippets::getSnippet($name, $variables)` to be able
166
  to accept an array with variables and not only a querystring. Fixes
167
- [issue #22](https://github.com/artstorm/post-snippets/issues/22).
168
  * Removes `get_post_snippet()` which was deprecated in version 2.1.
169
  * Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code
170
  execution in snippets. Add
@@ -184,7 +192,7 @@ your clients to be able to use PHP code in a post snippet.
184
  Post Snippets Admin. Add
185
  `define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);`
186
  to wp-config.php to enable access for those users. Fixes
187
- [issue #12](https://github.com/artstorm/post-snippets/issues/12).
188
  * Optimizes code for the admin section.
189
 
190
  = Version 2.2 - 26 Apr 2013 =
@@ -211,7 +219,7 @@ your clients to be able to use PHP code in a post snippet.
211
  users are not affected by this change.
212
  * Refactored code to comply with the PSR-0 standard.
213
  * Migrated to GitHub to maintain the code in development.
214
- [Post Snippets at GitHub](https://github.com/artstorm/post-snippets).
215
  * Included Polish translation (pl_PL) by Tomasz Wesołowski.
216
  * Included Slovak translation (sk_SK) by Branco Radenovich.
217
 
4
  Requires at least: 3.3
5
  Tested up to: 4.9
6
  Requires PHP: 5.3
7
+ Stable tag: 2.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = Version 2.5.4 - 30 Nov 2017 =
101
+ * UI improvement: Add update, add new and delete buttons to top of Snippets list, not just bottom
102
+ * Add better note to guide new users to the documentation ('Help' in the top right of the screen)
103
+ * Update URL's etc to https://www.postsnippets.com and update other plugin details
104
+ * Add 'Get started' admin notice to guide new users to Post Snippets in WordPress Settings
105
+ * Add a newsletter opt-in so users can get Post Snippets updates via email
106
+ * Add 'Pro features' page for feature voting, tell me what you need in Post Snippets
107
+
108
  = Version 2.5.3 - 14 Feb 2016 =
109
  * Fixes an issue with the compression library for import and export.
110
 
172
  = Version 2.3 - 1 Jun 2013 =
173
  * Updates `PostSnippets::getSnippet($name, $variables)` to be able
174
  to accept an array with variables and not only a querystring. Fixes
175
+ [issue #22](https://github.com/davdebcom/post-snippets/issues/22).
176
  * Removes `get_post_snippet()` which was deprecated in version 2.1.
177
  * Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code
178
  execution in snippets. Add
192
  Post Snippets Admin. Add
193
  `define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);`
194
  to wp-config.php to enable access for those users. Fixes
195
+ [issue #12](https://github.com/davdebcom/post-snippets/issues/12).
196
  * Optimizes code for the admin section.
197
 
198
  = Version 2.2 - 26 Apr 2013 =
219
  users are not affected by this change.
220
  * Refactored code to comply with the PSR-0 standard.
221
  * Migrated to GitHub to maintain the code in development.
222
+ [Post Snippets at GitHub](https://github.com/davdebcom/post-snippets).
223
  * Included Polish translation (pl_PL) by Tomasz Wesołowski.
224
  * Included Slovak translation (sk_SK) by Branco Radenovich.
225
 
src/PostSnippets/Admin.php CHANGED
@@ -7,8 +7,6 @@ namespace PostSnippets;
7
  * Class that renders out the HTML for the settings screen and contains helpful
8
  * methods to simply the maintainance of the admin screen.
9
  *
10
- * @author Johan Steen <artstorm at gmail dot com>
11
- * @link https://code.bitbebop.com/
12
  */
13
  class Admin
14
  {
@@ -24,10 +22,21 @@ class Admin
24
  */
25
  public function __construct()
26
  {
27
- add_action('admin_menu', array(&$this, 'menu'));
28
- add_action('admin_init', array(&$this, 'init'));
29
- add_action('current_screen', array(&$this, 'addHeaderXss'));
30
- add_filter('plugin_action_links', array(&$this, 'actionLinks'), 10, 2);
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
 
33
 
@@ -104,6 +113,16 @@ class Admin
104
  );
105
  wp_localize_script('post-snippets', 'post_snippets', $translation_array);
106
 
 
 
 
 
 
 
 
 
 
 
107
  wp_enqueue_script('post-snippets');
108
  }
109
 
@@ -121,26 +140,19 @@ class Admin
121
  }
122
  }
123
 
124
- /**
125
- * Quick link to the Post Snippets Settings page from the Plugins page.
126
- *
127
- * @param array Array of all plugin links
128
- * @param string The current plugin file we're filtering.
129
- * @return Array with all the plugin's action links
130
- */
131
- public function actionLinks($links, $file)
132
- {
133
- $pluginFile = plugin_basename(dirname(\PostSnippets::FILE));
134
- $pluginFile .= '/post-snippets.php';
135
-
136
- if ($file == $pluginFile) {
137
- $url = 'options-general.php?page=post-snippets/post-snippets.php';
138
- $link = "<a href='{$url}'>";
139
- $link .= __('Settings', 'post-snippets').'</a>';
140
- $links[] = $link;
141
- }
142
- return $links;
143
- }
144
 
145
 
146
  // -------------------------------------------------------------------------
@@ -327,29 +339,29 @@ class Admin
327
 
328
  // Tabs
329
  $active_tab = isset($_GET[ 'tab' ]) ? $_GET[ 'tab' ] : 'snippets';
330
- $base_url = '?page=post-snippets/post-snippets.php&amp;tab=';
331
  $tabs = array(
332
  'snippets' => __('Manage Snippets', 'post-snippets'),
333
  'options' => __('Options', 'post-snippets'),
334
- 'tools' => __('Import/Export', 'post-snippets')
 
335
  );
336
  echo '<h2 class="nav-tab-wrapper">';
337
  foreach ($tabs as $tab => $title) {
338
  $active = ($active_tab == $tab) ? ' nav-tab-active' : '';
339
- echo "<a href='{$base_url}{$tab}' class='nav-tab {$active}'>{$title}</a>";
340
  }
341
  echo '</h2>';
342
- echo '<p class="description">';
343
- _e('Use the help dropdown button for additional information.', 'post-snippets');
344
- echo '</p>';
345
 
346
  // Tab content
347
  if ($active_tab == 'snippets') {
348
  $this->tabSnippets();
349
  } elseif ($active_tab == 'options') {
350
  $this->tabOptions();
351
- } else {
352
  $this->tabTools();
 
 
353
  }
354
 
355
  // Close it
@@ -363,7 +375,11 @@ class Admin
363
  */
364
  private function tabSnippets()
365
  {
366
- $data = array();
 
 
 
 
367
  echo View::render('admin_snippets', $data);
368
  }
369
 
@@ -374,7 +390,11 @@ class Admin
374
  */
375
  private function tabOptions()
376
  {
377
- $data = array();
 
 
 
 
378
  echo View::render('admin_options', $data);
379
  }
380
 
@@ -385,7 +405,11 @@ class Admin
385
  */
386
  private function tabTools()
387
  {
388
- $ie = new ImportExport();
 
 
 
 
389
 
390
  // Create header and export html form
391
  printf("<h3>%s</h3>", __('Import/Export', 'post-snippets'));
@@ -402,6 +426,19 @@ class Admin
402
  echo $ie->importSnippets();
403
  }
404
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
 
406
  /**
407
  * Creates a read-only overview page.
@@ -582,7 +619,7 @@ class Admin
582
  */
583
  public static function submit($name, $label, $class = 'button-primary', $wrap = true)
584
  {
585
- $btn = sprintf('<input type="submit" name="%s" value="%s" class="%s" />', $name, $label, $class);
586
 
587
  if ($wrap) {
588
  $btn = "<div class=\"submit\">{$btn}</div>";
@@ -590,4 +627,67 @@ class Admin
590
 
591
  echo $btn;
592
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  }
7
  * Class that renders out the HTML for the settings screen and contains helpful
8
  * methods to simply the maintainance of the admin screen.
9
  *
 
 
10
  */
11
  class Admin
12
  {
22
  */
23
  public function __construct()
24
  {
25
+ add_action( 'admin_menu', array ( &$this, 'menu' ) );
26
+ add_action( 'admin_init', array ( &$this, 'init' ) );
27
+ add_action( 'current_screen', array ( &$this, 'addHeaderXss' ) );
28
+ //add_filter( 'plugin_action_links', array ( &$this, 'actionLinks' ), 10, 2 );
29
+
30
+ add_filter( 'plugin_action_links_' . plugin_basename( PS_PATH . 'post-snippets.php' ), array (
31
+ $this,
32
+ 'actionLinks'
33
+ ) );
34
+
35
+ // Newsletter sign-up admin notice
36
+ add_action( 'admin_notices', array ( $this, 'admin_notice_newsletter' ) );
37
+
38
+ // Get started admin notice
39
+ add_action( 'admin_notices', array ( $this, 'admin_notice_get_started' ) );
40
  }
41
 
42
 
113
  );
114
  wp_localize_script('post-snippets', 'post_snippets', $translation_array);
115
 
116
+ // Add CSS for Pro features page
117
+ $features_style_url = plugins_url('/assets/features.css', \PostSnippets::FILE);
118
+ wp_register_style('post-snippets-features', $features_style_url, false, '2.0');
119
+ wp_enqueue_style('post-snippets-features');
120
+
121
+ // Add CSS for newsletter opt-in
122
+ $features_style_url = plugins_url('/assets/newsletter.css', \PostSnippets::FILE);
123
+ wp_register_style('post-snippets-newsletter', $features_style_url, false, '2.0');
124
+ wp_enqueue_style('post-snippets-newsletter');
125
+
126
  wp_enqueue_script('post-snippets');
127
  }
128
 
140
  }
141
  }
142
 
143
+ /**
144
+ * Quick link to the Post Snippets Settings page from the Plugins page.
145
+ *
146
+ * @param array $links Array of all plugin links
147
+ *
148
+ * @return array $links Array with all the plugin's action links
149
+ */
150
+ public function actionLinks( $links ) {
151
+
152
+ $links[] = '<a href="' . PS_MAIN_PAGE_URL . '">' . __( 'Settings', 'post-snippets' ) . '</a>';
153
+
154
+ return $links;
155
+ }
 
 
 
 
 
 
 
156
 
157
 
158
  // -------------------------------------------------------------------------
339
 
340
  // Tabs
341
  $active_tab = isset($_GET[ 'tab' ]) ? $_GET[ 'tab' ] : 'snippets';
342
+ $base_url = '?page=' . PS_DIRECTORY . '/post-snippets.php&amp;tab=';
343
  $tabs = array(
344
  'snippets' => __('Manage Snippets', 'post-snippets'),
345
  'options' => __('Options', 'post-snippets'),
346
+ 'tools' => __('Import/Export', 'post-snippets'),
347
+ 'features' => __('Pro features', 'post-snippets'),
348
  );
349
  echo '<h2 class="nav-tab-wrapper">';
350
  foreach ($tabs as $tab => $title) {
351
  $active = ($active_tab == $tab) ? ' nav-tab-active' : '';
352
+ echo "<a href='{$base_url}{$tab}' class='nav-tab {$active} tab-{$tab}'>{$title}</a>";
353
  }
354
  echo '</h2>';
 
 
 
355
 
356
  // Tab content
357
  if ($active_tab == 'snippets') {
358
  $this->tabSnippets();
359
  } elseif ($active_tab == 'options') {
360
  $this->tabOptions();
361
+ } elseif ($active_tab == 'tools') {
362
  $this->tabTools();
363
+ } else {
364
+ $this->tabFeatures();
365
  }
366
 
367
  // Close it
375
  */
376
  private function tabSnippets()
377
  {
378
+ echo '<p class="description post-snippets-documentation-note">';
379
+ _e('Click \'Help\' in the top right for the documentation!', 'post-snippets');
380
+ echo '</p>';
381
+
382
+ $data = array();
383
  echo View::render('admin_snippets', $data);
384
  }
385
 
390
  */
391
  private function tabOptions()
392
  {
393
+ echo '<p class="description post-snippets-documentation-note">';
394
+ _e('Click \'Help\' in the top right for the documentation!', 'post-snippets');
395
+ echo '</p>';
396
+
397
+ $data = array();
398
  echo View::render('admin_options', $data);
399
  }
400
 
405
  */
406
  private function tabTools()
407
  {
408
+ echo '<p class="description post-snippets-documentation-note">';
409
+ _e('Click \'Help\' in the top right for the documentation!', 'post-snippets');
410
+ echo '</p>';
411
+
412
+ $ie = new ImportExport();
413
 
414
  // Create header and export html form
415
  printf("<h3>%s</h3>", __('Import/Export', 'post-snippets'));
426
  echo $ie->importSnippets();
427
  }
428
 
429
+ /**
430
+ * Tab for Pro features
431
+ *
432
+ * @since Post Snippets 2.5.4
433
+ */
434
+ private function tabFeatures()
435
+ {
436
+ $features = new Features();
437
+
438
+ echo $features->showFeatures();
439
+
440
+ }
441
+
442
 
443
  /**
444
  * Creates a read-only overview page.
619
  */
620
  public static function submit($name, $label, $class = 'button-primary', $wrap = true)
621
  {
622
+ $btn = sprintf('<input type="submit" name="%s" value="%s" class="%s" />&nbsp;&nbsp;&nbsp;', $name, $label, $class);
623
 
624
  if ($wrap) {
625
  $btn = "<div class=\"submit\">{$btn}</div>";
627
 
628
  echo $btn;
629
  }
630
+
631
+ /**
632
+ *
633
+ * Show newsletter opt-in, only in Post Snippets.
634
+ * Not on Pro features tab/page.
635
+ * Not when user selected to Hide opt-in.
636
+ *
637
+ * @since 2.5.4
638
+ */
639
+ public function admin_notice_newsletter() {
640
+
641
+ // Hide newsletter opt-in if option is true
642
+ if ( get_option( 'ps_hide_admin_notice_newsletter' ) == true ) {
643
+ return;
644
+ }
645
+
646
+ // Set option if "hide" button click detected (custom querystring value set to 1).
647
+ if ( ! empty( $_REQUEST['ps-dismiss-newsletter-nag'] ) ) {
648
+ update_option( 'ps_hide_admin_notice_newsletter', true );
649
+ return;
650
+ }
651
+
652
+ // Show newsletter notice.
653
+ if ( strpos(get_current_screen()->id, '/post-snippets' ) !== false ) {
654
+ $active_tab = isset($_GET[ 'tab' ]) ? $_GET[ 'tab' ] : 'snippets';
655
+ if ( $active_tab != 'features' ) {
656
+ include_once( PS_PATH . '/views/admin_notice_newsletter.php' );
657
+ }
658
+
659
+ }
660
+ }
661
+
662
+
663
+ /**
664
+ *
665
+ * Show 'Get started' admin notice', everywhere.
666
+ * Not when user already clicked or dismissed.
667
+ *
668
+ * @since 2.5.4
669
+ */
670
+ public function admin_notice_get_started() {
671
+
672
+ // Hide newsletter opt-in if option is true
673
+ if ( get_option( 'ps_hide_admin_notice_get_started' ) == true ) {
674
+ return;
675
+ }
676
+
677
+ // Set option if "hide" button click detected (custom query string value set to 1).
678
+ if ( ! empty( $_REQUEST['ps-dismiss-get-started-nag'] ) ) {
679
+ update_option( 'ps_hide_admin_notice_get_started', true );
680
+ return;
681
+ }
682
+
683
+ // Show newsletter notice.
684
+ if ( strpos(get_current_screen()->id, '/post-snippets' ) == false ) {
685
+ $active_tab = isset($_GET[ 'tab' ]) ? $_GET[ 'tab' ] : 'snippets';
686
+ if ( $active_tab != 'features' ) {
687
+ include_once( PS_PATH . '/views/admin_notice_get_started.php' );
688
+ }
689
+
690
+ }
691
+ }
692
+
693
  }
src/PostSnippets/Features.php ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PostSnippets;
4
+
5
+ /**
6
+ * Post Snippets Features.
7
+ *
8
+ *
9
+ * @author David de Boer <david at postsnippets dot com>
10
+ * @link https://www.postsnippets.com
11
+ */
12
+
13
+ class Features {
14
+
15
+
16
+ public function showFeatures() {
17
+
18
+ // Get amount of snippets
19
+ $snippet_count = count( get_option( 'post_snippets_options' ) );
20
+
21
+ // Get price for this site
22
+ $prices = array ( '9', '19', '29', '39', '49', '59', '69', '79' );
23
+
24
+ if ( get_option( 'ps_pro_features_price' ) == false ) {
25
+
26
+ // The option already exists, so we just update it.
27
+ update_option( 'ps_pro_features_price', $prices[ array_rand( $prices ) ] );
28
+
29
+ }
30
+
31
+ // Now get the final price
32
+ $price = get_option( 'ps_pro_features_price' );
33
+
34
+ // Setup features
35
+ $features = array (
36
+ array (
37
+ 'title' => __( 'Advanced Import/Export', 'post-snippets' ),
38
+ 'image' => '',
39
+ 'description' => __( 'More control over import/export, export per tag/group and export to CSV/Excel.', 'post-snippets' ),
40
+ 'form-action-id' => 'n3f2y6',
41
+ 'form-id' => '6154019'
42
+ ),
43
+ array (
44
+ 'title' => __( 'Advanced Search/Filter', 'post-snippets' ),
45
+ 'image' => '',
46
+ 'description' => __( 'Search for snippets on name etc. and easily find the snippet you are looking for.', 'post-snippets' ),
47
+ 'form-action-id' => 'f0b7s1',
48
+ 'form-id' => '6154049'
49
+ ),
50
+ array (
51
+ 'title' => __( 'Sync Snippets', 'post-snippets' ),
52
+ 'image' => '',
53
+ 'description' => __( 'Sync snippets from one site to another, even in WordPress Multisite.', 'post-snippets' ),
54
+ 'form-action-id' => 'z7z9r9',
55
+ 'form-id' => '6154055'
56
+ ),
57
+ array (
58
+ 'title' => __( 'Access Manager', 'post-snippets' ),
59
+ 'image' => '',
60
+ 'description' => __( 'Determine who can view, edit and insert snippets on a per snippet basis.', 'post-snippets' ),
61
+ 'form-action-id' => 'c0i4e6',
62
+ 'form-id' => '6154061'
63
+ ),
64
+ array (
65
+ 'title' => __( 'Duplicate Snippets', 'post-snippets' ),
66
+ 'image' => '',
67
+ 'description' => __( 'Duplicate an existing snippet as new, and start editing it, with just one click.', 'post-snippets' ),
68
+ 'form-action-id' => 'm6i2a4',
69
+ 'form-id' => '6154067'
70
+ ),
71
+ array (
72
+ 'title' => __( 'Dedicated Edit View', 'post-snippets' ),
73
+ 'image' => '',
74
+ 'description' => __( 'Edit individual snippets on dedicated pages, with all the space you need.', 'post-snippets' ),
75
+ 'form-action-id' => 'm1i4x7',
76
+ 'form-id' => '6485580'
77
+ ),
78
+ array (
79
+ 'title' => __( 'Rich Text Editor', 'post-snippets' ),
80
+ 'image' => '',
81
+ 'description' => __( 'Create beautiful snippet content with formatting and images.', 'post-snippets' ),
82
+ 'form-action-id' => 'h4i6i5',
83
+ 'form-id' => '6154073'
84
+ ),
85
+ array (
86
+ 'title' => __( 'Conditional Logic', 'post-snippets' ),
87
+ 'image' => '',
88
+ 'description' => __( 'Show snippet content only on certain posts/pages, dates or for certain users.', 'post-snippets' ),
89
+ 'form-action-id' => 'x3h3o6',
90
+ 'form-id' => '6154085'
91
+ ),
92
+ array (
93
+ 'title' => __( 'Tags', 'post-snippets' ),
94
+ 'image' => '',
95
+ 'description' => __( 'Add one or multiple tags to snippets and easily find a group of tagged snippets.', 'post-snippets' ),
96
+ 'form-action-id' => 'p3a2u2',
97
+ 'form-id' => '6154079'
98
+ ),
99
+ array (
100
+ 'title' => __( 'Groups', 'post-snippets' ),
101
+ 'image' => '',
102
+ 'description' => __( 'Organize snippets into groups to keep similar snippets together.', 'post-snippets' ),
103
+ 'form-action-id' => 'p4c2b9',
104
+ 'form-id' => '6154171'
105
+ ),
106
+ array (
107
+ 'title' => __( 'Drag & Drop Sorting', 'post-snippets' ),
108
+ 'image' => '',
109
+ 'description' => __( 'Drag & Drop snippets into a any order and automatically save that order.', 'post-snippets' ),
110
+ 'form-action-id' => 'x6x1b1',
111
+ 'form-id' => '6154177'
112
+ ),
113
+ );
114
+
115
+ $html = '';
116
+
117
+ ob_start();
118
+
119
+ ?>
120
+
121
+ <div class="wrap">
122
+ <div id="pt-features">
123
+ <div id="pt-features-content">
124
+
125
+ <div class="ps_features_wrap">
126
+ <p class="ps_features_wrap_intro">
127
+ <?php echo __( 'Vote for new features in <strong>Post Snippets Pro</strong>!', 'post-snippets' ); ?>
128
+ </p>
129
+
130
+ <p class="ps_features_wrap_intro">
131
+ <?php echo sprintf( __( 'It\'s the professional version of Post Snippets, starting at $%s per year. You get three votes. The Pro version makes development and support for both versions sustainable, so you get a <strong>higher quality</strong> plugin.', 'post-snippets' ), $price ); ?>
132
+ </p>
133
+
134
+ <p class="ps_features_wrap_intro"><?php _e( 'Other suggestions? Send an email to <a href="mailto:david@postsnippets.com">david@postsnippets.com</a>.', 'post-snippets' ); ?>
135
+ </p>
136
+
137
+ <p class="ps-votes-left" style="display: none;">
138
+ <?php _e( 'You have 3 votes left!', 'post-snippets' ); ?>
139
+ </p>
140
+
141
+ <ul class="products" style="display: none;">
142
+
143
+ <?php
144
+ shuffle( $features );
145
+ foreach ( $features as $feature ) : ?>
146
+
147
+ <li class="product">
148
+
149
+ <?php if ( ! empty( $feature['image'] ) ) { ?>
150
+ <img
151
+ src=" <?php echo PS_URL . 'admin/feature_logos/' . str_replace( ' ', '', strtolower( $feature['title'] ) ) . '.png'; ?>"/>
152
+ <?php } else { ?>
153
+ <h2><?php echo $feature['title'] ?></h2>
154
+ <?php } ?>
155
+
156
+ <p><?php echo $feature['description'] ?></p>
157
+
158
+ <?php //include( PS_PATH . 'admin/views/admin-features-interest-form.php' ); ?>
159
+
160
+ <div id="mlb2-<?php echo $feature['form-id'] ?>"
161
+ class="ml-subscribe-form ml-subscribe-form-<?php echo $feature['form-id'] ?>">
162
+
163
+ <div class="subscribe-form ml-block-success" style="display:none">
164
+ <div class="form-section mb0">
165
+ <p class="ps-features-success-message"><?php _e( 'Thanks, I\'m deciding what features to build first, your vote helps!', 'post-snippets' ); ?></p>
166
+ </div>
167
+ </div>
168
+
169
+ <form class="ml-block-form" action="//app.mailerlite.com/webforms/submit/<?php echo $feature['form-action-id'] ?>"
170
+ data-id="177069" data-code="c7d6k5" method="POST" target="_blank">
171
+ <div class="subscribe-form horizontal">
172
+ <div class="form-section horizontal" style="display: inline">
173
+ <div class="form-group ml-field-email ml-validate-required ml-validate-email" style="display: inline">
174
+ <input style="display: none" type="text" name="fields[email]" class="form-control"
175
+ placeholder="Email*" value="<?php echo wp_get_current_user()->user_email; ?>">
176
+ </div>
177
+ <div class="form-group ml-field-ps_price ml-validate-required" style="display: inline">
178
+ <input style="display: none" type="text" name="fields[ps_price]" class="form-control" placeholder="PS Price*" value="<?php echo $price ?>" spellcheck="false">
179
+ </div>
180
+ <div class="form-group ml-field-ps_count ml-validate-required" style="display: inline">
181
+ <input style="display: none" type="text" name="fields[ps_count]" class="form-control" placeholder="PS Count*" value="<?php echo $snippet_count ?>" spellcheck="false">
182
+ </div>
183
+ </div>
184
+ <div class="form-section horizontal test" style="display: inline;">
185
+ <button type="submit" class="primary ps-vote-button">
186
+ <?php echo sprintf( __( 'I need this in Pro - $%s', 'post-snippets' ), $price); ?>
187
+ </button>
188
+
189
+ <p class="ps-voted-note" style="display: none;">
190
+ <?php _e( 'You\'ve already voted 3 times!', 'post-snippets' ); ?>
191
+ </p>
192
+
193
+ <button disabled="disabled" style="display: none;" type="button" class="loading">
194
+ <img src="//static.mailerlite.com/images/rolling.gif" width="20" height="20"
195
+ style="width: 20px; height: 20px;">
196
+ </button>
197
+
198
+ </div>
199
+
200
+ <div class="clearfix" style="clear: both;"></div>
201
+ <input type="hidden" name="ml-submit" value="1"/>
202
+ </div>
203
+ </form>
204
+
205
+ <script>
206
+ function ml_webform_success_<?php echo $feature['form-id'] ?>() {
207
+ jQuery('.ml-subscribe-form-<?php echo $feature['form-id'] ?> .ml-block-success').show();
208
+ jQuery('.ml-subscribe-form-<?php echo $feature['form-id'] ?> .ml-block-form, .subscribe-message').hide();
209
+ }
210
+ </script>
211
+
212
+ </div>
213
+
214
+ </li>
215
+
216
+ <?php endforeach; ?>
217
+
218
+ </ul>
219
+
220
+ <p class="ps-voted-note-large" style="display: none;" >
221
+ <?php _e( 'You\'ve voted three times! Thank you!', 'post-snippets' ); ?>
222
+ </p>
223
+ </div>
224
+
225
+ </div>
226
+ <!-- .pt-features-content -->
227
+ </div>
228
+ <!-- .pt-features -->
229
+ </div><!-- .wrap -->
230
+
231
+
232
+ <!-- START: Post Snippets Feature voting -->
233
+ <script type="text/javascript">
234
+
235
+ //localStorage.removeItem('PostSnippetsVotes');
236
+ //localStorage.setItem('PostSnippetsVotes', '0');
237
+
238
+ jQuery(document).ready(function ($) {
239
+
240
+ var psFeatures = $(this);
241
+ var votes = 3;
242
+
243
+ // If there are 0votex left in storage, don't show features, do show Thank you message
244
+ if (localStorage.getItem('PostSnippetsVotes') == '0') {
245
+ $(psFeatures).find(".products").each(function (index, element) {
246
+ $(element).hide();
247
+ $(".ps-voted-note-large").show();
248
+ });
249
+ } else {
250
+ $(".products").show();
251
+ }
252
+
253
+ // When vote button clicked:
254
+ $("button").click(function () {
255
+
256
+ // Decrease remaining of votes by one
257
+ votes--;
258
+
259
+ // If votes are two or one, show warning with remaining votes
260
+ if (votes == 2 || votes == 1) {
261
+ $(".ps-votes-left").text('You have ' + votes + ' votes left!').fadeIn();
262
+ }
263
+
264
+ // If votes are zero:
265
+ if (votes == 0) {
266
+
267
+ // Store votes in localStorage
268
+ localStorage.setItem('PostSnippetsVotes', votes);
269
+
270
+ // Remove features, do show Thank you message
271
+ $(psFeatures).find(".products").each(function (index, element) {
272
+ $(element).fadeOut();
273
+ $(".ps-votes-left").fadeOut();
274
+ $(".ps-voted-note-large").fadeIn();
275
+ });
276
+
277
+ }
278
+
279
+ });
280
+
281
+ });
282
+
283
+ </script>
284
+ <!-- END: Post Snippets Feature voting -->
285
+
286
+ <script type="text/javascript"
287
+ src="//static.mailerlite.com/js/w/webforms.min.js?vb01ce49eaf30b563212cfd1f3d202142"></script>
288
+
289
+ <?php
290
+
291
+ $html .= ob_get_contents();
292
+ ob_end_clean();
293
+
294
+ return $html;
295
+ }
296
+ }
src/PostSnippets/Help.php CHANGED
@@ -4,8 +4,6 @@ namespace PostSnippets;
4
  /**
5
  * Handles the plugin help screen.
6
  *
7
- * @author Johan Steen <artstorm at gmail dot com>
8
- * @link https://code.bitbebop.com/
9
  */
10
  class Help
11
  {
4
  /**
5
  * Handles the plugin help screen.
6
  *
 
 
7
  */
8
  class Help
9
  {
src/PostSnippets/ImportExport.php CHANGED
@@ -6,8 +6,6 @@ namespace PostSnippets;
6
  *
7
  * Class to handle import and export of Snippets.
8
  *
9
- * @author Johan Steen <artstorm at gmail dot com>
10
- * @link https://code.bitbebop.com/
11
  */
12
  class ImportExport
13
  {
6
  *
7
  * Class to handle import and export of Snippets.
8
  *
 
 
9
  */
10
  class ImportExport
11
  {
src/PostSnippets/Shortcode.php CHANGED
@@ -4,8 +4,6 @@ namespace PostSnippets;
4
  /**
5
  * Shortcode Handling.
6
  *
7
- * @author Johan Steen <artstorm at gmail dot com>
8
- * @link https://code.bitbebop.com/
9
  */
10
  class Shortcode
11
  {
4
  /**
5
  * Shortcode Handling.
6
  *
 
 
7
  */
8
  class Shortcode
9
  {
src/PostSnippets/View.php CHANGED
@@ -4,8 +4,6 @@ namespace PostSnippets;
4
  /**
5
  * View Handling.
6
  *
7
- * @author Johan Steen <artstorm at gmail dot com>
8
- * @link https://code.bitbebop.com/
9
  */
10
  class View
11
  {
4
  /**
5
  * View Handling.
6
  *
 
 
7
  */
8
  class View
9
  {
src/PostSnippets/WPEditor.php CHANGED
@@ -4,8 +4,6 @@ namespace PostSnippets;
4
  /**
5
  * Post Snippets WP Editor.
6
  *
7
- * @author Johan Steen <artstorm at gmail dot com>
8
- * @link https://code.bitbebop.com/
9
  */
10
  class WPEditor
11
  {
4
  /**
5
  * Post Snippets WP Editor.
6
  *
 
 
7
  */
8
  class WPEditor
9
  {
tinymce/editor_plugin.js CHANGED
@@ -39,9 +39,9 @@
39
  getInfo : function() {
40
  return {
41
  longname : 'Post Snippets',
42
- author : 'Johan Steen',
43
- authorurl : 'https://code.bitbebop.com/',
44
- infourl : 'https://code.bitbebop.com/wordpress/post-snippets/',
45
  version : '1.9'
46
  };
47
  }
39
  getInfo : function() {
40
  return {
41
  longname : 'Post Snippets',
42
+ author : 'David de Boer',
43
+ authorurl : 'https://www.postsnippets.com/',
44
+ infourl : 'https://www.postsnippets.com/',
45
  version : '1.9'
46
  };
47
  }
views/admin_notice_get_started.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Show a newsletter opt-in in Post Snippets settings.
5
+ *
6
+ * @package PS
7
+ * @subpackage Views
8
+ * @author David de Boer <david@postsnippets.com>
9
+ */
10
+
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+
16
+ // Get amount of snippets
17
+ $snippet_count = count( get_option( 'post_snippets_options' ) );
18
+
19
+ ?>
20
+
21
+ <style>
22
+ #pt-admin-notice .button-primary,
23
+ #pt-admin-notice .button-secondary {
24
+ margin-left: 15px;
25
+ }
26
+ </style>
27
+
28
+ <div id="ps-admin-notice" class="updated">
29
+ <p>
30
+ <?php _e( 'You\'ve just installed Post Snippets, find it under \'Settings\'.', 'post-snippets' ); ?>
31
+ &nbsp;&nbsp;
32
+ <a href="<?php echo PS_MAIN_PAGE_URL . '&ps-dismiss-get-started-nag=1'; ?>" class="button-primary"
33
+ style="vertical-align: baseline;"><?php _e( 'Go to Post Snippets', 'post-snippets' ); ?></a>
34
+ <a href="<?php echo esc_url( add_query_arg( 'ps-dismiss-get-started-nag', 1 ) ); ?>"
35
+ class="button-secondary"><?php _e( 'Hide this', 'post-snippets' ); ?></a>
36
+ </p>
37
+ </div>
38
+
39
+
40
+
views/admin_notice_newsletter.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Show a newsletter opt-in in Post Snippets settings.
5
+ *
6
+ * @package PS
7
+ * @subpackage Views
8
+ * @author David de Boer <david@postsnippets.com>
9
+ */
10
+
11
+ // Exit if accessed directly.
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+
16
+ // Get amount of snippets
17
+ $snippet_count = count( get_option( 'post_snippets_options' ) );
18
+
19
+ ?>
20
+
21
+ <div id="ps-newsletter-notice" class="updated">
22
+
23
+ <div id="mlb2-6493346" class="ml-subscribe-form ml-subscribe-form-6493346">
24
+
25
+ <div class="subscribe-form ml-block-success" style="display:none">
26
+ <div class="form-section mb0">
27
+ <p>
28
+ <?php _e( 'Thank you for subscribing to the Post Snippets newsletter!', 'post-snippets' ); ?>
29
+ </p>
30
+ </div>
31
+ </div>
32
+
33
+ <!-- FOR NEW PLUGIN - UPDATE BELOW ID IN ACTION URL -->
34
+ <form class="ml-block-form" action="//app.mailerlite.com/webforms/submit/a3m1f7" data-id="177069"
35
+ data-code="c7d6k5" method="POST" target="_blank">
36
+ <div class="subscribe-form horizontal">
37
+ <div class="form-section horizontal" style="display: inline">
38
+ <div class="form-group ml-field-email ml-validate-required ml-validate-email"
39
+ style="display: inline">
40
+ <span
41
+ class="subscribe-message"><?php _e( 'Subscribe for Post Snippets updates:', 'post-snippets' ); ?></span>
42
+ <input style="display: inline" type="text" name="fields[email]" class="form-control"
43
+ placeholder="Email*" value="<?php echo wp_get_current_user()->user_email; ?>">
44
+ </div>
45
+ <div class="form-group ml-field-ps_count ml-validate-required" style="display: none">
46
+ <input style="display: none" type="text" name="fields[ps_count]" class="form-control" placeholder="PS Count*" value="<?php echo $snippet_count ?>" spellcheck="false" autocapitalize="off" autocorrect="off">
47
+ </div>
48
+
49
+ </div>
50
+ <div class="form-section horizontal" style="display: inline">
51
+ <button type="submit" class="primary">
52
+ <?php _e( 'Subscribe now!', 'post-snippets' ); ?>
53
+ </button>
54
+
55
+ <button disabled="disabled" style="display: none;" type="button" class="loading primary">
56
+ <img src="//static.mailerlite.com/images/rolling.gif" width="20" height="20"
57
+ style="padding-top: 3px;">
58
+ </button>
59
+
60
+ </div>
61
+
62
+ <a href="<?php echo esc_url( add_query_arg( 'ps-dismiss-newsletter-nag', 1 ) ); ?>"
63
+ class="button-secondary"><?php _e( 'Hide this', 'post-snippets' ); ?></a>
64
+
65
+ <div class="clearfix" style="clear: both;"></div>
66
+ <input type="hidden" name="ml-submit" value="1"/>
67
+ </div>
68
+ </form>
69
+
70
+ <script>
71
+ function ml_webform_success_6493346() {
72
+ jQuery('.ml-subscribe-form-6493346 .ml-block-success').show();
73
+ jQuery('.ml-subscribe-form-6493346 .ml-block-form, .subscribe-message').hide();
74
+ window.location.search += '&ps-dismiss-newsletter-nag=1';
75
+ }
76
+ </script>
77
+
78
+ </div>
79
+ </div>
80
+ <script type="text/javascript"
81
+ src="//static.mailerlite.com/js/w/webforms.min.js?v3772b61f1ec61c541c401d4eadfdd02f"></script>
82
+
83
+
84
+
views/admin_snippets.php CHANGED
@@ -1,6 +1,12 @@
1
  <form method="post" action="">
2
  <?php wp_nonce_field('update_snippets', 'update_snippets_nonce'); ?>
3
 
 
 
 
 
 
 
4
  <table class="widefat fixed" cellspacing="0">
5
  <thead>
6
  <tr>
@@ -22,11 +28,13 @@
22
 
23
  <tbody>
24
  <?php
 
 
25
  $snippets = get_option(\PostSnippets::OPTION_KEY);
26
  if (!empty($snippets)) {
27
  foreach ($snippets as $key => $snippet) {
28
  ?>
29
- <tr class='recent'>
30
  <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='<?php echo $key;
31
  ?>' /></th>
32
  <td class='row-title'>
@@ -77,9 +85,10 @@ if (!empty($snippets)) {
77
  ?>
78
  </tbody>
79
  </table>
 
80
 
81
  <?php
82
- \PostSnippets\Admin::submit('update-snippets', __('Update Snippets', 'post-snippets'));
83
  \PostSnippets\Admin::submit('add-snippet', __('Add New Snippet', 'post-snippets'), 'button-secondary', false);
84
  \PostSnippets\Admin::submit('delete-snippets', __('Delete Selected', 'post-snippets'), 'button-secondary', false);
85
  echo '</form>';
1
  <form method="post" action="">
2
  <?php wp_nonce_field('update_snippets', 'update_snippets_nonce'); ?>
3
 
4
+ <?php
5
+ \PostSnippets\Admin::submit('update-snippets', __('Update Snippets', 'post-snippets'), 'button-primary', false);
6
+ \PostSnippets\Admin::submit('add-snippet', __('Add New Snippet', 'post-snippets'), 'button-secondary', false);
7
+ \PostSnippets\Admin::submit('delete-snippets', __('Delete Selected', 'post-snippets'), 'button-secondary', false);
8
+ ?>
9
+ <br /><br />
10
  <table class="widefat fixed" cellspacing="0">
11
  <thead>
12
  <tr>
28
 
29
  <tbody>
30
  <?php
31
+
32
+
33
  $snippets = get_option(\PostSnippets::OPTION_KEY);
34
  if (!empty($snippets)) {
35
  foreach ($snippets as $key => $snippet) {
36
  ?>
37
+ <tr class='recent'>
38
  <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='<?php echo $key;
39
  ?>' /></th>
40
  <td class='row-title'>
85
  ?>
86
  </tbody>
87
  </table>
88
+ <br />
89
 
90
  <?php
91
+ \PostSnippets\Admin::submit('update-snippets', __('Update Snippets', 'post-snippets'), 'button-primary', false);
92
  \PostSnippets\Admin::submit('add-snippet', __('Add New Snippet', 'post-snippets'), 'button-secondary', false);
93
  \PostSnippets\Admin::submit('delete-snippets', __('Delete Selected', 'post-snippets'), 'button-secondary', false);
94
  echo '</form>';
views/help/sidebar.php CHANGED
@@ -2,14 +2,15 @@
2
  <?php _e('Related:', 'post-snippets'); ?>
3
  </strong></p>
4
 
 
 
 
 
5
  <p><a href="http://wordpress.org/support/plugin/post-snippets" target="_blank"><?php
6
- _e('Support Forums', 'post-snippets');
7
  ?></a></p>
8
 
9
- <p><a href="https://github.com/artstorm/post-snippets" target="_blank"><?php
10
- _e('GitHub Repository', 'post-snippets');
11
  ?></a></p>
12
 
13
- <p><a href="https://code.bitbebop.com/donate/" target="_blank"><?php
14
- _e('Donate', 'post-snippets');
15
- ?></a></p>
2
  <?php _e('Related:', 'post-snippets'); ?>
3
  </strong></p>
4
 
5
+ <p><a href="//www.postsnippets.com" target="_blank"><?php
6
+ _e('Website', 'post-snippets');
7
+ ?></a></p>
8
+
9
  <p><a href="http://wordpress.org/support/plugin/post-snippets" target="_blank"><?php
10
+ _e('Support', 'post-snippets');
11
  ?></a></p>
12
 
13
+ <p><a href="https://github.com/davdebcom/post-snippets" target="_blank"><?php
14
+ _e('GitHub', 'post-snippets');
15
  ?></a></p>
16